<?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: pstdElastic2D and the PMLSize argument</title>
		<link>http://www.k-wave.org/forum/topic/pstdelastic2d-and-the-pmlsize-argument</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 01:00:46 +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/pstdelastic2d-and-the-pmlsize-argument" rel="self" type="application/rss+xml" />

		<item>
			<title>songrl on "pstdElastic2D and the PMLSize argument"</title>
			<link>http://www.k-wave.org/forum/topic/pstdelastic2d-and-the-pmlsize-argument#post-8585</link>
			<pubDate>Mon, 18 Jul 2022 03:51:42 +0000</pubDate>
			<dc:creator>songrl</dc:creator>
			<guid isPermaLink="false">8585@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Bradley,&#60;/p&#62;
&#60;p&#62;Why multi-axial PML is used in elastic code? What are the advantages over the PML used in the fluid code?&#60;br /&#62;
Would you please recommend some publications that discussed this problem? &#60;/p&#62;
&#60;p&#62;Best Regards,&#60;/p&#62;
&#60;p&#62;Ruolong.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "pstdElastic2D and the PMLSize argument"</title>
			<link>http://www.k-wave.org/forum/topic/pstdelastic2d-and-the-pmlsize-argument#post-8214</link>
			<pubDate>Tue, 15 Jun 2021 10:36:10 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">8214@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Chris,&#60;/p&#62;
&#60;p&#62;Regarding the PMLs, the elastic code uses a multi-axial PML, where the PML is also applied a small amount in the other direction. The &#34;amount&#34; is set by the flag &#60;code&#62;&#38;#39;MultiAxialPMLRatio&#38;#39;&#60;/code&#62; (set it to zero to turn it off). I suspect this might the reason the two are different. This is different to the PML used in the fluid code.&#60;/p&#62;
&#60;p&#62;If the medium is homogeneous, there is no conversion between the compressional and shear waves, so in principle the equations modelling the two wave types are completely decoupled. In practice though, they are being modelled by the same code, and making cp smaller than cs (which is not physical) might lead to strange effects.&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Wang on "pstdElastic2D and the PMLSize argument"</title>
			<link>http://www.k-wave.org/forum/topic/pstdelastic2d-and-the-pmlsize-argument#post-8210</link>
			<pubDate>Fri, 11 Jun 2021 17:24:13 +0000</pubDate>
			<dc:creator>Chris Wang</dc:creator>
			<guid isPermaLink="false">8210@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad,&#60;/p&#62;
&#60;p&#62;Recently I started to simulate shear wave propagation in tissue-mimicking phantoms by using the &#34;pstdElastic2D&#34; function. I am simulating a uniform phantom (100 mm x 100 mm) with a sinusoidal velocity source on the left side. I thought that in this situation the shear wave only propagates from left to right and therefore PMLs are only needed on the left and right sides but not needed on the top and bottom sides. (a) When I set the PMLSize to be zero on the top and bottom sides, I got uniform vibration amplitudes in the entire domain, which is expected. On the other hand, it is written in the k-Wave manual that &#34;To remove the PML, set the appropraite PMLAlpha to zero rather than forcing the PML to be of zero size. (Page 63)&#34; (b) When I set the PMLSize to be nonzero but PMLAlpha = 0 on the top and bottom sides, I got different results from those in (a). This leads me to the following question: How should the PMLs be set up in k-Wave? For example, should PMLs always be set up on all sides or only on the sides in the wave propagation direction? Why &#34;PMLSize = 0&#34; is not equivalent to &#34;PMLSize=/=0 &#38;amp; PMLAlpha = 0&#34;?&#60;/p&#62;
&#60;p&#62;Additionally, I would like to ask whether it is correct to set the compression wave speed (c_p) to be a small (nonphysical) value (e.g., 0.001 m/s) to reduce the compute time, if the focus is on the shear wave (I used c_s = 4.59 m/s). I tried simulations with different c_p values and found that the wave image results with c_p = 1000 m/s and c_p = 0.001 m/s seems nearly the same (for shear wave propagation in a uniform phantom). As far as I know, c_p should be quite different (either much larger or much smaller) from c_s to avoid numerical errors. I also noticed that the PMLs worked fine in attenuating the shear wave when c_p = 1000 m/s but did not work when c_p = 0.001 m/s. Is this behavior of the PMLs expected?&#60;/p&#62;
&#60;p&#62;Thank you very much and I look forward to your reply.&#60;/p&#62;
&#60;p&#62;Best regards,&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Andrea Addison on "pstdElastic2D and the PMLSize argument"</title>
			<link>http://www.k-wave.org/forum/topic/pstdelastic2d-and-the-pmlsize-argument#post-8059</link>
			<pubDate>Wed, 10 Feb 2021 14:25:38 +0000</pubDate>
			<dc:creator>Andrea Addison</dc:creator>
			<guid isPermaLink="false">8059@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Bradley,&#60;/p&#62;
&#60;p&#62;Thank you for your answer.&#60;/p&#62;
&#60;p&#62;Best regards&#60;br /&#62;
Andrea
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "pstdElastic2D and the PMLSize argument"</title>
			<link>http://www.k-wave.org/forum/topic/pstdelastic2d-and-the-pmlsize-argument#post-8014</link>
			<pubDate>Tue, 19 Jan 2021 20:17:53 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">8014@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;@Magnus: In 2D, the default size is 20 grid points. Worth checking that things you care about are not within the PML. There is no straightforward way to see the parameters, but you can see the defaults in &#60;code&#62;/private/kspaceFirstOrder_setDefaults&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;@Andrea: 5 points seems a little slim to me. I normally use 10 as a minimum, preferably more. The performance depends on the frequency content relevant to the grid spacing, and also the angle of incidence. There are some details for the fluid code in &#60;a href=&#34;http://bug.medphys.ucl.ac.uk/papers/2017-Robertson-JASA.pdf&#34;&#62;this paper&#60;/a&#62; that might be interesting, as well as some plots in the k-Wave user manual.&#60;/p&#62;
&#60;p&#62;Brad
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Andrea Addison on "pstdElastic2D and the PMLSize argument"</title>
			<link>http://www.k-wave.org/forum/topic/pstdelastic2d-and-the-pmlsize-argument#post-7990</link>
			<pubDate>Fri, 25 Dec 2020 21:06:59 +0000</pubDate>
			<dc:creator>Andrea Addison</dc:creator>
			<guid isPermaLink="false">7990@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I want to add another question that I believe related to this topic.&#60;br /&#62;
How we should decide the &#34;PML_size&#34; grid size in pstdElastic2D? In general, is 5 points per wavelength will be sufficient for full absorption in PML?&#60;/p&#62;
&#60;p&#62;Thank you for your time and effort,&#60;br /&#62;
Andrea
&#60;/p&#62;</description>
		</item>
		<item>
			<title>magnus on "pstdElastic2D and the PMLSize argument"</title>
			<link>http://www.k-wave.org/forum/topic/pstdelastic2d-and-the-pmlsize-argument#post-7987</link>
			<pubDate>Mon, 21 Dec 2020 08:42:41 +0000</pubDate>
			<dc:creator>magnus</dc:creator>
			<guid isPermaLink="false">7987@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I'm using pstdElastic2D for some simulations of a lamb wave propagating in a plate. I'm a bit puzzled by the effect of the 'PMLSize' input argument. If explicitly stated to a value eg 10, I do get a reasonable result. However, if I don't include this argument, I get a completely different behavior of the propagating lamb wave: higher propagation velocity and lower amplitudes (more damping with longer distance traveled.) According to the documentation, the default value of 'PMLSize' is also 10, so results should be identical. I have not found a way to read back the 'PMLSize' parameter so I'm not 100% sure what is actually used in the simulation if not stated explicitly.&#60;br /&#62;
Is there a way to read back all the parameters used in the simulation?&#60;br /&#62;
Is there any explanation for the behavior observed?&#60;/p&#62;
&#60;p&#62;Best regards&#60;br /&#62;
Magnus
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
