<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>k-Wave User Forum &#187; Topic: Failed to record shear stress.</title>
		<link>http://www.k-wave.org/forum/topic/failed-to-record-shear-stress</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 22:25:21 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.k-wave.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.k-wave.org/forum/rss/topic/failed-to-record-shear-stress" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Failed to record shear stress."</title>
			<link>http://www.k-wave.org/forum/topic/failed-to-record-shear-stress#post-7007</link>
			<pubDate>Thu, 22 Aug 2019 15:44:23 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">7007@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Patrick,&#60;/p&#62;
&#60;p&#62;Unfortunately, it is still not in the current release. Yes, that looks correct.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Patrick on "Failed to record shear stress."</title>
			<link>http://www.k-wave.org/forum/topic/failed-to-record-shear-stress#post-6995</link>
			<pubDate>Sun, 04 Aug 2019 05:25:55 +0000</pubDate>
			<dc:creator>Patrick</dc:creator>
			<guid isPermaLink="false">6995@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;As a follow-up. I modified the 3D elastic code to record the normal components of shear stress. Am I correct in using &#60;code&#62;sxx = sxx_split_x + sxx_split_y + sxx_split_z&#60;/code&#62;? (and similarly for syy and szz and of course with the correct indexing)&#60;/p&#62;
&#60;p&#62;Thanks again,&#60;br /&#62;
PC
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Patrick on "Failed to record shear stress."</title>
			<link>http://www.k-wave.org/forum/topic/failed-to-record-shear-stress#post-6994</link>
			<pubDate>Sun, 04 Aug 2019 04:25:24 +0000</pubDate>
			<dc:creator>Patrick</dc:creator>
			<guid isPermaLink="false">6994@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;Has the ability to record the components of shear stress been implemented in the current release? If so, how can this be done?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
PC
&#60;/p&#62;</description>
		</item>
		<item>
			<title>svch1mail on "Failed to record shear stress."</title>
			<link>http://www.k-wave.org/forum/topic/failed-to-record-shear-stress#post-6802</link>
			<pubDate>Wed, 27 Mar 2019 15:48:28 +0000</pubDate>
			<dc:creator>svch1mail</dc:creator>
			<guid isPermaLink="false">6802@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I had the same problem.&#60;br /&#62;
Thank you Brad for explanations, they work, but additionally in pstdElastic2D.m it need to add after 1017 line someting like:&#60;br /&#62;
SS.p=sensor_data.p;&#60;br /&#62;
SS.sxy=sensor_data.sxy;&#60;br /&#62;
sensor_data = SS;%sensor_data.p;&#60;br /&#62;
Thanks,&#60;br /&#62;
Sergiy
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Failed to record shear stress."</title>
			<link>http://www.k-wave.org/forum/topic/failed-to-record-shear-stress#post-6396</link>
			<pubDate>Sun, 08 Apr 2018 18:44:39 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6396@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Andy,&#60;/p&#62;
&#60;p&#62;For k-Wave V1.2, to hack it into the &#60;code&#62;pstdElastic2D&#60;/code&#62; in the simplest way, immediately before the time loop (line 617) add:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;sensor_data.sxy = castZeros([num_sensor_points, num_recorded_time_points]);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Then after line 814, add the following:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;sensor_data.sxy(:, file_index) = sxy_split_x(sensor_mask_index) + sxy_split_y(sensor_mask_index);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Similarly for 3D. Note, I haven't tried this, so let me know if it doesn't work for some reason.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ad000000 on "Failed to record shear stress."</title>
			<link>http://www.k-wave.org/forum/topic/failed-to-record-shear-stress#post-6374</link>
			<pubDate>Mon, 26 Mar 2018 18:24:04 +0000</pubDate>
			<dc:creator>ad000000</dc:creator>
			<guid isPermaLink="false">6374@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad,&#60;br /&#62;
Could you give a little bit more advice on the above hack?  I'm modeling the typical NDT case of a longitudinal wave launched in an acrylic wedge, which gets converted to shear wave in a steel part.  I'd like to extract the pressure (or velocity) from the shear wave in the steel, but there is also a longitudinal wave there (a couple, actually).  So the &#34;u&#34; or &#34;u_max&#34; data would map both waves together.  The shear stress, if it could be extracted and saved, would solve that problem.&#60;br /&#62;
Thanks,&#60;br /&#62;
Andy
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Failed to record shear stress."</title>
			<link>http://www.k-wave.org/forum/topic/failed-to-record-shear-stress#post-6212</link>
			<pubDate>Fri, 10 Nov 2017 15:22:49 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6212@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Lenny,&#60;/p&#62;
&#60;p&#62;You can define which parameters you would like to record using the &#60;code&#62;sensor.record&#60;/code&#62; input (see the documentation for details). Unfortunately, it's not currently possible to record the components of the stress (only the particle velocity or pressure). If you're comfortable with MATLAB, it is pretty easy to hack into the code (add it after line 814 in V1.2). It's on the list for a future release.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>xzy9588 on "Failed to record shear stress."</title>
			<link>http://www.k-wave.org/forum/topic/failed-to-record-shear-stress#post-6202</link>
			<pubDate>Wed, 08 Nov 2017 19:34:43 +0000</pubDate>
			<dc:creator>xzy9588</dc:creator>
			<guid isPermaLink="false">6202@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;This is my code&#60;/p&#62;
&#60;p&#62;clear all&#60;br /&#62;
close all&#60;br /&#62;
% create the computational grid&#60;br /&#62;
Nx = 100;           % number of grid points in the x (row) direction&#60;br /&#62;
Ny = 200;           % number of grid points in the y (column) direction&#60;br /&#62;
dx = 0.1e-3;        % grid point spacing in the x direction [m]&#60;br /&#62;
dy = 0.1e-3;        % grid point spacing in the y direction [m]&#60;br /&#62;
kgrid = kWaveGrid(Nx, dx, Ny, dy);&#60;/p&#62;
&#60;p&#62;% define the properties of the upper layer of the propagation medium&#60;br /&#62;
medium.sound_speed_compression = 1500 * ones(Nx, Ny);   % [m/s]&#60;br /&#62;
medium.sound_speed_shear       = zeros(Nx, Ny);         % [m/s]&#60;br /&#62;
medium.density                 = 1000 * ones(Nx, Ny);   % [kg/m^3]&#60;/p&#62;
&#60;p&#62;% define the properties of the lower layer of the propagation medium&#60;br /&#62;
medium.sound_speed_compression(Nx/2:end, :) = 2000;     % [m/s]&#60;br /&#62;
medium.sound_speed_shear(Nx/2:end, :)       = 800;      % [m/s]&#60;br /&#62;
medium.density(Nx/2:end, :)                 = 1200;     % [kg/m^3]&#60;/p&#62;
&#60;p&#62;% create the time array&#60;br /&#62;
cfl   = 0.05;    % Courant-Friedrichs-Lewy number&#60;br /&#62;
t_end = 5e-6;   % [s]&#60;br /&#62;
kgrid.makeTime(max(medium.sound_speed_compression(:)), cfl, t_end);&#60;/p&#62;
&#60;p&#62;% define a source&#60;/p&#62;
&#60;p&#62;source.s_mask = makeLine(Nx, Ny, [Nx/2,1],[1,Ny/2]);&#60;br /&#62;
%source.u_mask = makeLine(Nx, Ny, [Nx/2,1],[1,Ny/2]);&#60;br /&#62;
%create initial pressure distribution using makeDisc&#60;br /&#62;
disc_magnitude = 400; % [Pa]&#60;br /&#62;
source.p0 = disc_magnitude*source.s_mask ;&#60;br /&#62;
% define a time varying  source&#60;br /&#62;
%source_freq = 1e6;       % [Hz]&#60;br /&#62;
%source_mag = 0.00002;&#60;br /&#62;
%source.ux = source_mag * sin(2 * pi * source_freq * kgrid.t_array);&#60;br /&#62;
%source.uy = source_mag * sin(2 * pi * source_freq * kgrid.t_array);&#60;/p&#62;
&#60;p&#62;%display_mask=source.u_mask;&#60;br /&#62;
sensor.mask=makeLine(Nx,Ny,[40,40],[60,60]);&#60;br /&#62;
% define input arguments&#60;br /&#62;
input_args = {'PlotScale', [-100, 100, -70, 70], 'PlotPML', false,...&#60;br /&#62;
    'DisplayMask', sensor.mask, 'DataCast', 'single'};&#60;/p&#62;
&#60;p&#62;% run the simulation&#60;br /&#62;
sensor_data = pstdElastic2D(kgrid, medium, source, sensor, input_args{:});&#60;/p&#62;
&#60;p&#62;imagesc(sensor_data);&#60;br /&#62;
colormap(getColorMap);&#60;br /&#62;
colorbar;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>xzy9588 on "Failed to record shear stress."</title>
			<link>http://www.k-wave.org/forum/topic/failed-to-record-shear-stress#post-6201</link>
			<pubDate>Wed, 08 Nov 2017 18:56:19 +0000</pubDate>
			<dc:creator>xzy9588</dc:creator>
			<guid isPermaLink="false">6201@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello everyone,&#60;/p&#62;
&#60;p&#62;I tried to record the magnitude of shear stress using linear sensor mask to see how longitudinal wave can generate shear wave in a layered medium. But we failed to record the shear stress in sensors. How can I record the magnitude of shear stress as well as the pressure of longitudinal wave? &#60;/p&#62;
&#60;p&#62;Thank you&#60;br /&#62;
Lenny
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
