<?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: Boundary conditions - kWaveDiffusion</title>
		<link>http://www.k-wave.org/forum/topic/boundary-conditions-kwavediffusion</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 12:44:37 +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-kwavediffusion" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Boundary conditions - kWaveDiffusion"</title>
			<link>http://www.k-wave.org/forum/topic/boundary-conditions-kwavediffusion#post-7045</link>
			<pubDate>Thu, 12 Sep 2019 10:16:51 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">7045@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Rodrigo,&#60;/p&#62;
&#60;p&#62;This problem will be solved using the upcoming release (V1.3). In the meantime, you could reshape your data to 2D (space, time) before calling &#60;code&#62;extractAmpPhase&#60;/code&#62;:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;data_rs = reshape(data, [], size(data, 4));&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rodrigo.silva0494 on "Boundary conditions - kWaveDiffusion"</title>
			<link>http://www.k-wave.org/forum/topic/boundary-conditions-kwavediffusion#post-7035</link>
			<pubDate>Fri, 06 Sep 2019 20:23:27 +0000</pubDate>
			<dc:creator>rodrigo.silva0494</dc:creator>
			<guid isPermaLink="false">7035@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello, Mr. Treeby.&#60;/p&#62;
&#60;p&#62;Acctually my problem was in recording the acoustic pressure without setting any start index, which made me record a lot of information that I don't really need. I set the start index from a point after reaching the steady state - also close to the final time -, and the simulation worked perfectly. Sorry for my mistake.&#60;br /&#62;
Now I am indeed trying to use the extractAmpPhase function, but I recieve another error message informing that the data can't have more then 3 dimensions. How can I use this function if, since I'm running a 3D simulation, the input is a 4D matrix (3D + time)?&#60;/p&#62;
&#60;p&#62;Thank you.&#60;br /&#62;
Rodrigo Silva.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rodrigo.silva0494 on "Boundary conditions - kWaveDiffusion"</title>
			<link>http://www.k-wave.org/forum/topic/boundary-conditions-kwavediffusion#post-7033</link>
			<pubDate>Fri, 06 Sep 2019 16:13:21 +0000</pubDate>
			<dc:creator>rodrigo.silva0494</dc:creator>
			<guid isPermaLink="false">7033@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello, Brad.&#60;/p&#62;
&#60;p&#62;Thank you very much for your answer.&#60;br /&#62;
I've developed my own code for the thermal simulation, so I am no longer worried about changing the boundary conditions when using kWaveDiffusion. Instead of that, I am having troubles while solving the acoustic problem. When I try to calculate the acoustic pressure field by using the extractAmpPhase, I recieve a message informing that I'd need about 190GB of memory to finish the simulation. My medium is heterogeneous (layers of water, skin, fat and muscle), and the grid is 256x256x256.&#60;br /&#62;
Could you please give me any adivice for dealing with that?&#60;/p&#62;
&#60;p&#62;Thank you.&#60;br /&#62;
Rodrigo
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Boundary conditions - kWaveDiffusion"</title>
			<link>http://www.k-wave.org/forum/topic/boundary-conditions-kwavediffusion#post-7019</link>
			<pubDate>Thu, 22 Aug 2019 18:01:43 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">7019@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Rodrigo,&#60;/p&#62;
&#60;p&#62;Are your simulations in a homogeneous medium? If so, then this is possible with a few undocumented options, and some extra codes to calculate discrete trigonometric transforms. Let me know. If your medium is heterogeneous, unfortunately, only periodic boundary conditions are supported at this time. One practical way to counteract this is to make the domain larger, so the temperature on the boundary is maintained at 37. &#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rodrigo.silva0494 on "Boundary conditions - kWaveDiffusion"</title>
			<link>http://www.k-wave.org/forum/topic/boundary-conditions-kwavediffusion#post-6942</link>
			<pubDate>Sun, 30 Jun 2019 05:05:30 +0000</pubDate>
			<dc:creator>rodrigo.silva0494</dc:creator>
			<guid isPermaLink="false">6942@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Dear Mr. Treeby,&#60;/p&#62;
&#60;p&#62;First of all, thank you so much for developing this incredible tool.&#60;br /&#62;
I've been writing a code for a 3D heat transfer simulation by a HIFU, and I realized it was possible to create a temperature field by using the kWaveDiffusion class without defining the boundary conditions. Then, I read in another topic that, by default, the thermal simulation uses a periodic boundary condition.&#60;br /&#62;
I was wondering if there was a simple way to specify the boundary conditions I need for my simulation. My region consists in a 50mmx50mmx50mm cube, and the temperature at the six surfaces must be constant equals to 37 degC.&#60;/p&#62;
&#60;p&#62;Thank you for you attention.&#60;br /&#62;
Rodrigo Silva
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
