<?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: Kspaceorder2D and pstdelastic2D simultaneous use</title>
		<link>http://www.k-wave.org/forum/topic/kspaceorder2d-and-pstdelastic2d-simultaneous-use</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 22:32:32 +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/kspaceorder2d-and-pstdelastic2d-simultaneous-use" rel="self" type="application/rss+xml" />

		<item>
			<title>masud407 on "Kspaceorder2D and pstdelastic2D simultaneous use"</title>
			<link>http://www.k-wave.org/forum/topic/kspaceorder2d-and-pstdelastic2d-simultaneous-use#post-8838</link>
			<pubDate>Thu, 15 Jun 2023 15:49:05 +0000</pubDate>
			<dc:creator>masud407</dc:creator>
			<guid isPermaLink="false">8838@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Dr. Treeby, I tried with inserting velocity as input instead of stress, still, it can't track the shear stress. Am I supposed to get the similar result for velocity input instead of stress?&#60;/p&#62;
&#60;p&#62;source.u_mask = sensor.mask;&#60;br /&#62;
source.ux=sensor_data_fluid.ux;&#60;br /&#62;
source.uy=sensor_data_fluid.uy;&#60;br /&#62;
source.uz=sensor_data_fluid.uz;&#60;br /&#62;
sensor_data_elastic = pstdElastic3D(kgrid, medium, source, sensor, input_args{:});&#60;/p&#62;
&#60;p&#62;Also, I am not sure what to use for source. mask. I want to use the same transducer for both as a source of ARF and also for tracking. Can you please tell me a bit about selecting the source. u_mask/source.s_mask?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>masud407 on "Kspaceorder2D and pstdelastic2D simultaneous use"</title>
			<link>http://www.k-wave.org/forum/topic/kspaceorder2d-and-pstdelastic2d-simultaneous-use#post-8833</link>
			<pubDate>Tue, 13 Jun 2023 21:12:37 +0000</pubDate>
			<dc:creator>masud407</dc:creator>
			<guid isPermaLink="false">8833@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Dr. Treeby,&#60;/p&#62;
&#60;p&#62;Thanks, I actually removed the (rho * c) term and found that I got the normal stress, but it can't track the shear stress at all. I will try with a velocity source in the elastic code (instead of a stress source) as per your suggestion.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Kspaceorder2D and pstdelastic2D simultaneous use"</title>
			<link>http://www.k-wave.org/forum/topic/kspaceorder2d-and-pstdelastic2d-simultaneous-use#post-8832</link>
			<pubDate>Tue, 13 Jun 2023 19:48:12 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">8832@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;The inputs are in units of pressure (not particle velocity) so you can remove the scaling by the impedance (rho * c). Alternatively, also use a velocity source in the elastic code (instead of a stress source).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>masud407 on "Kspaceorder2D and pstdelastic2D simultaneous use"</title>
			<link>http://www.k-wave.org/forum/topic/kspaceorder2d-and-pstdelastic2d-simultaneous-use#post-8827</link>
			<pubDate>Tue, 13 Jun 2023 01:08:53 +0000</pubDate>
			<dc:creator>masud407</dc:creator>
			<guid isPermaLink="false">8827@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I used transducer.active_elements_mask as source.s_mask as following. The simulation runs but, the stress value are very low that it doesn't show anything the plot. Here is the code for that:&#60;/p&#62;
&#60;p&#62;input_signal = toneBurst(1/kgrid.dt, tone_burst_freq, tone_burst_cycles);&#60;br /&#62;
input_signal = (source_strength ./ (rho1 .* cp1)) .* input_signal;&#60;br /&#62;
source.s_mask = transducer.active_elements_mask;&#60;br /&#62;
source.sxx = -input_signal;&#60;br /&#62;
source.syy = source.sxx;&#60;br /&#62;
sensor_data_elastic = pstdElastic3D(kgrid, medium, source, sensor, input_args{:});
&#60;/p&#62;</description>
		</item>
		<item>
			<title>masud407 on "Kspaceorder2D and pstdelastic2D simultaneous use"</title>
			<link>http://www.k-wave.org/forum/topic/kspaceorder2d-and-pstdelastic2d-simultaneous-use#post-8826</link>
			<pubDate>Mon, 12 Jun 2023 23:09:52 +0000</pubDate>
			<dc:creator>masud407</dc:creator>
			<guid isPermaLink="false">8826@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Thanks, I am trying to replicate this example for a linear array transducer which will act as a source as well as a sensor. The kspaceFirstOrder3D portion works fine as I used a transducer. input signal as the source. where&#60;br /&#62;
input_signal = (source_strength ./ (rho1 .* cp1)) *toneBurst(1/kgrid.dt, tone_burst_freq, tone_burst_cycles);&#60;/p&#62;
&#60;p&#62;However for the pstdElastic3D simulation, I need to specify source.mask, source.sxx, and source.syy separately. For source Sxx, I am using -input signal=Sxx, but what should be the mask (source.mask) for transducer array? Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Kspaceorder2D and pstdelastic2D simultaneous use"</title>
			<link>http://www.k-wave.org/forum/topic/kspaceorder2d-and-pstdelastic2d-simultaneous-use#post-8822</link>
			<pubDate>Mon, 12 Jun 2023 08:10:05 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">8822@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;This is because the acoustic equation is formulated in terms of pressure and particle velocity (and acoustic density), while the elastic equation is formed in terms of stress and particle velocity, so the source must be set in terms of stress. In the parts of the domain where the shear speed is zero, the diagonal parts of the stress tensor are equal to the negative of the pressure (hence the code in the snippet you posted).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>masud407 on "Kspaceorder2D and pstdelastic2D simultaneous use"</title>
			<link>http://www.k-wave.org/forum/topic/kspaceorder2d-and-pstdelastic2d-simultaneous-use#post-8821</link>
			<pubDate>Mon, 12 Jun 2023 02:11:08 +0000</pubDate>
			<dc:creator>masud407</dc:creator>
			<guid isPermaLink="false">8821@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Dr. Treeby, thanks I got it. I have another follow-up question. After completing the kspaceFirstOrder2D, the example cleared out the source and used the following line to redefine the medium:&#60;/p&#62;
&#60;p&#62;clear source&#60;br /&#62;
source.s_mask = source_mask;&#60;br /&#62;
source.sxx = -source_strength*toneBurst(1/kgrid.dt, source_freq, source_cycles);&#60;br /&#62;
source.syy = source.sxx;&#60;/p&#62;
&#60;p&#62;I am wondering what is the reason for that. Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Kspaceorder2D and pstdelastic2D simultaneous use"</title>
			<link>http://www.k-wave.org/forum/topic/kspaceorder2d-and-pstdelastic2d-simultaneous-use#post-8819</link>
			<pubDate>Fri, 09 Jun 2023 22:22:02 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">8819@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;If you open the example from within the MATLAB help browser, you can click to open and run the code.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>masud407 on "Kspaceorder2D and pstdelastic2D simultaneous use"</title>
			<link>http://www.k-wave.org/forum/topic/kspaceorder2d-and-pstdelastic2d-simultaneous-use#post-8818</link>
			<pubDate>Fri, 09 Jun 2023 21:06:04 +0000</pubDate>
			<dc:creator>masud407</dc:creator>
			<guid isPermaLink="false">8818@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Dr. Treeby, thanks for your reply. I added the wrong link in my post. Here is the original one:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.k-wave.org/documentation/example_ewp_shear_wave_snells_law.php&#34; rel=&#34;nofollow&#34;&#62;http://www.k-wave.org/documentation/example_ewp_shear_wave_snells_law.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;It mentioned that The simulation is run twice, first using the fluid code kspaceFirstOrder2D, and then using the elastic code pstdElastic2D. I can see the separate example of pstdElastic2D code, but how can I use the outcome of kspaceFirstOrder2D as the input of  pstdElastic2D code? Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>masud407 on "Kspaceorder2D and pstdelastic2D simultaneous use"</title>
			<link>http://www.k-wave.org/forum/topic/kspaceorder2d-and-pstdelastic2d-simultaneous-use#post-8817</link>
			<pubDate>Fri, 09 Jun 2023 21:05:59 +0000</pubDate>
			<dc:creator>masud407</dc:creator>
			<guid isPermaLink="false">8817@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Dr. Treeby, thanks for your reply. I added the wrong link in my post. Here is the original one:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.k-wave.org/documentation/example_ewp_shear_wave_snells_law.php&#34; rel=&#34;nofollow&#34;&#62;http://www.k-wave.org/documentation/example_ewp_shear_wave_snells_law.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;It mentioned that The simulation is run twice, first using the fluid code kspaceFirstOrder2D, and then using the elastic code pstdElastic2D. I can see the separate example of pstdElastic2D code, but how can I use the outcome of kspaceFirstOrder2D as the input of  pstdElastic2D code? Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Kspaceorder2D and pstdelastic2D simultaneous use"</title>
			<link>http://www.k-wave.org/forum/topic/kspaceorder2d-and-pstdelastic2d-simultaneous-use#post-8816</link>
			<pubDate>Fri, 09 Jun 2023 20:48:39 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">8816@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;What do you mean by simultaneously? Note, the imaging examples are all in 3D to capture the out of plane effects. There are some general examples of how to use the &#60;code&#62;pstdElastic2D&#60;/code&#62; code under the &#34;Elastic Wave Propagation&#34; heading.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>masud407 on "Kspaceorder2D and pstdelastic2D simultaneous use"</title>
			<link>http://www.k-wave.org/forum/topic/kspaceorder2d-and-pstdelastic2d-simultaneous-use#post-8815</link>
			<pubDate>Fri, 09 Jun 2023 18:44:53 +0000</pubDate>
			<dc:creator>masud407</dc:creator>
			<guid isPermaLink="false">8815@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Can anyone please explain to me how I can use Kspaceorder2D and pstdelastic2D simultaneously for the following example?&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.k-wave.org/documentation/example_us_beam_patterns.php&#34; rel=&#34;nofollow&#34;&#62;http://www.k-wave.org/documentation/example_us_beam_patterns.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;What should be the input for the pstdelastic2d case? Any code example for this type of study? Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
