<?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: Room enclouse acoustic simulation</title>
		<link>http://www.k-wave.org/forum/topic/room-enclouse-acoustic-simulation</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 00:28:39 +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/room-enclouse-acoustic-simulation" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Room enclouse acoustic simulation"</title>
			<link>http://www.k-wave.org/forum/topic/room-enclouse-acoustic-simulation#post-3769</link>
			<pubDate>Mon, 08 Jul 2013 14:05:13 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">3769@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Adrian,&#60;/p&#62;
&#60;p&#62;Unfortunately, there is no easy way to do this using the functionality of the current release of the code (V1.0). The closest would be to set a region around the outside of your domain with a much higher density than the interior. &#60;/p&#62;
&#60;p&#62;However, there are some things you could try if you are happy doing some code edits of the simulation functions. For Dirichlet-type boundaries (sound-soft), set the pressure at the edges of the domain to zero, immediately after the pressure is calculated, i.e., in 2D&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;p(1, :) = 0;
p(end, :) = 0;
p(:, 1) = 0;
p(:, end) = 0;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Similarly, for Neumann-type boundaries (sound-hard), set the normal velocity at the edges of the domain to zero, immediately after the velocity is updated, i.e., in 2D&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;ux_sgx(1, :) = 0;
ux_sgx(end, :) = 0;
uy_sgy(:, 1) = 0;
uy_sgy(:, end) = 0;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Keep in mind I haven't properly tested this, so it's probably best to do some testing to make sure it's behaving as expected. You may need to use a layer more than one-grid point thick, i.e.,&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;ux_sgx(1:2, :) = 0;
ux_sgx(end-1:end, :) = 0;
uy_sgy(:, 1:2) = 0;
uy_sgy(:, end-1:end) = 0;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Let me know if you run into any problems.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ace2112 on "Room enclouse acoustic simulation"</title>
			<link>http://www.k-wave.org/forum/topic/room-enclouse-acoustic-simulation#post-3761</link>
			<pubDate>Tue, 02 Jul 2013 12:09:33 +0000</pubDate>
			<dc:creator>ace2112</dc:creator>
			<guid isPermaLink="false">3761@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I am trying to figure out how to set and enclosure to simulate wave propagation in a rectangular room.&#60;/p&#62;
&#60;p&#62;Any one have an idea? &#60;/p&#62;
&#60;p&#62;Best regards&#60;br /&#62;
Adrian
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
