<?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: Mirroring Boundary Conditions</title>
		<link>http://www.k-wave.org/forum/topic/boundary-conditions-instead-of-pml</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 09:10:00 +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/boundary-conditions-instead-of-pml" rel="self" type="application/rss+xml" />

		<item>
			<title>leakerb on "Mirroring Boundary Conditions"</title>
			<link>http://www.k-wave.org/forum/topic/boundary-conditions-instead-of-pml#post-7517</link>
			<pubDate>Thu, 21 May 2020 15:08:53 +0000</pubDate>
			<dc:creator>leakerb</dc:creator>
			<guid isPermaLink="false">7517@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Thanks Brad!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Mirroring Boundary Conditions"</title>
			<link>http://www.k-wave.org/forum/topic/boundary-conditions-instead-of-pml#post-7509</link>
			<pubDate>Thu, 21 May 2020 11:05:46 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">7509@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;HI leakerb,&#60;/p&#62;
&#60;p&#62;If you want a periodic boundary condition, just set &#60;code&#62;&#38;#39;PMLAlpha&#38;#39;, 0&#60;/code&#62;. The gradients in k-Wave are calculated by an FFT which assumes the field is periodic.&#60;/p&#62;
&#60;p&#62;You could also see &#60;a href=&#34;https://arxiv.org/abs/2005.00322&#34;&#62;this paper&#60;/a&#62; and &#60;a href=&#34;https://github.com/ucl-bug/matlab-dtts&#34;&#62;this respository&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Brad
&#60;/p&#62;</description>
		</item>
		<item>
			<title>leakerb on "Mirroring Boundary Conditions"</title>
			<link>http://www.k-wave.org/forum/topic/boundary-conditions-instead-of-pml#post-7508</link>
			<pubDate>Wed, 20 May 2020 17:03:53 +0000</pubDate>
			<dc:creator>leakerb</dc:creator>
			<guid isPermaLink="false">7508@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello,&#60;br /&#62;
I am trying to replicate the results of a paper where instead of the PML they used Dirichlet periodic boundary condition at the edges of the computational grid, so that opposite edges are mirrored.&#60;br /&#62;
The authors give the boundary condition for one pair of edges as:&#60;br /&#62;
sigma(0,y,t) = sigma(Lx,y,t), 0 &#38;lt;= y &#38;lt;= Ly&#60;br /&#62;
v(0,y,t) = v(Lx,y,t), 0 &#38;lt;= y &#38;lt;= Ly&#60;br /&#62;
Where Lx and Ly are the width and height of the computational grid.&#60;br /&#62;
How would this be implemented in k wave? I've read on some other posts that you can define Dirichlet sources at the edges to enforce boundary conditions, but I'm not sure how to do it for these conditions.&#60;br /&#62;
It seems to me like this is essentially the effect of setting PMLalpha to 0? But the way the conditions are described in the paper make me doubtful and I'm pretty new to this.&#60;br /&#62;
Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
