<?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: Correction to PML implementation</title>
		<link>http://www.k-wave.org/forum/topic/correction-to-pml-implementation</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:32:31 +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/correction-to-pml-implementation" rel="self" type="application/rss+xml" />

		<item>
			<title>bencox on "Correction to PML implementation"</title>
			<link>http://www.k-wave.org/forum/topic/correction-to-pml-implementation#post-402</link>
			<pubDate>Fri, 23 Mar 2012 22:53:58 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">402@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Well spotted! And thanks for writing in. Glad you're enjoying it. Keep the comments and bug reports coming please!&#60;/p&#62;
&#60;p&#62;Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jonathan Hargreaves on "Correction to PML implementation"</title>
			<link>http://www.k-wave.org/forum/topic/correction-to-pml-implementation#post-398</link>
			<pubDate>Fri, 23 Mar 2012 11:14:11 +0000</pubDate>
			<dc:creator>Jonathan Hargreaves</dc:creator>
			<guid isPermaLink="false">398@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello!  This release is very well timed as I was about to write to you with a bug report but you've fixed it.  Here's the info anyway for the benefit of anyone else experiencing the same issue:&#60;/p&#62;
&#60;p&#62;I’d been comparing the code to Tabei et al’s 2002 JASA paper and realised there was a mismatch, specifically that the following lines of code don’t match their equation 26:&#60;/p&#62;
&#60;p&#62;kspaceFirstOrder3D.m version B.0.4 lines 1032 – 1035:&#60;br /&#62;
&#60;code&#62;rhox = bsxfun(@times, pml_x, rhox - dt.*rho0 .* duxdx);&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;rhoy = bsxfun(@times, pml_y, rhoy - dt.*rho0 .* duydy);&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;rhoz = bsxfun(@times, pml_z, rhoz - dt.*rho0 .* duzdz);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I wasn’t getting the PML attenuation they reported so I suspected there may be a problem.  And low and behold in the new version you've fixed it! :-)&#60;/p&#62;
&#60;p&#62;kspaceFirstOrder3D.m version B.0.5 lines 812 – 814:&#60;br /&#62;
&#60;code&#62;rhox = bsxfun(@times, pml_x, bsxfun(@times, pml_x, rhox) - dt.*rho0 .* duxdx);&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;rhoy = bsxfun(@times, pml_y, bsxfun(@times, pml_y, rhoy) - dt.*rho0 .* duydy);&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;rhoz = bsxfun(@times, pml_z, bsxfun(@times, pml_z, rhoz) - dt.*rho0 .* duzdz);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Many thanks for your hard work in creating this excellent resource and your generosity in sharing and disseminating it.&#60;/p&#62;
&#60;p&#62;Jon
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
