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

		<item>
			<title>bastg on "C++ kWaveDiffusion"</title>
			<link>http://www.k-wave.org/forum/topic/c-kwavediffusion#post-9124</link>
			<pubDate>Thu, 15 Aug 2024 15:51:01 +0000</pubDate>
			<dc:creator>bastg</dc:creator>
			<guid isPermaLink="false">9124@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi -- I have three questions about KWaveDiffusion.&#60;/p&#62;
&#60;p&#62;1) The last post on this thread is 3+ years old. Has there been progress in making KWaveDiffusion faster since then, for example using a C++ implementation?&#60;/p&#62;
&#60;p&#62;2) I have been using the following calculation to set the time step:&#60;br /&#62;
&#38;gt;&#38;gt; DD = medium.thermal_conductivity ./ (medium.density .* medium.specific_heat);  % diffusivity map in m^2/s&#60;br /&#62;
&#38;gt;&#38;gt; diffTimeVoxel = 0.001^2 / ( 2 * max(DD(SIM&#38;gt;1)) ); % time it takes for heat to diffuse of 1 voxel (calculated using the fastest diffusivity value in the domain)&#60;br /&#62;
&#38;gt;&#38;gt; dt = diffTimeVoxel / CFL;  % I seem to obtain decent results for CFL=10 and CFL=5&#60;/p&#62;
&#60;p&#62;This works OK, I wonder what the developers think of this approach and what value they would recommend for CFL, based on theoretical considerations or experience. &#60;/p&#62;
&#60;p&#62;3) There are numerical difficulties when using medium.density=1 for air voxels, which is the correct physical value. Setting the density of air voxels to 1000 improves convergence dramatically. It does not seem to affect the results too much because the thermal conductivity of air is small, therefore heat simply does not propagate into that compartment anyway. What do the developers think of this fix?&#60;/p&#62;
&#60;p&#62;Thanks!  Bastien
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "C++ kWaveDiffusion"</title>
			<link>http://www.k-wave.org/forum/topic/c-kwavediffusion#post-7940</link>
			<pubDate>Thu, 26 Nov 2020 11:27:14 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">7940@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Davide,&#60;/p&#62;
&#60;p&#62;It's in the development pipeline, but we won't have anything ready for release for a while I'm afraid. In general, the stability limit for the diffusion code is large (due to the k-space correction), so if you're trying to speed things up, you could conduct a convergence test to see how big you can make your time steps and still get accurate results.&#60;/p&#62;
&#60;p&#62;Brad
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Davide on "C++ kWaveDiffusion"</title>
			<link>http://www.k-wave.org/forum/topic/c-kwavediffusion#post-7915</link>
			<pubDate>Fri, 06 Nov 2020 14:34:52 +0000</pubDate>
			<dc:creator>Davide</dc:creator>
			<guid isPermaLink="false">7915@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I was wondering if nowadays there is an available C++_based KWaveDiffusion.&#60;br /&#62;
Congratulations for this great toolbox! Thank you!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>vich on "C++ kWaveDiffusion"</title>
			<link>http://www.k-wave.org/forum/topic/c-kwavediffusion#post-7239</link>
			<pubDate>Sat, 22 Feb 2020 05:39:16 +0000</pubDate>
			<dc:creator>vich</dc:creator>
			<guid isPermaLink="false">7239@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I realize it must be really time-consuming to maintain and add new features to a project as big as k-Wave has become... I appreciate your hard work and that of everyone who has contributed to k-Wave: theoretical work, programming, documentation, physical validation, all of that is extremely valuable to us. Thank you!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "C++ kWaveDiffusion"</title>
			<link>http://www.k-wave.org/forum/topic/c-kwavediffusion#post-7191</link>
			<pubDate>Tue, 21 Jan 2020 09:44:40 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">7191@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Vich,&#60;/p&#62;
&#60;p&#62;Yes in principle these codes are closely related (e.g., both use an explicit time stepping scheme and derivatives calculated using FFTs). We have it in the development pipeline to write a C++ code, but haven't started on it yet, so it might be some time away!&#60;/p&#62;
&#60;p&#62;Brad
&#60;/p&#62;</description>
		</item>
		<item>
			<title>vich on "C++ kWaveDiffusion"</title>
			<link>http://www.k-wave.org/forum/topic/c-kwavediffusion#post-7040</link>
			<pubDate>Tue, 10 Sep 2019 03:06:50 +0000</pubDate>
			<dc:creator>vich</dc:creator>
			<guid isPermaLink="false">7040@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I was wondering if the modified Pennes bioheat equation (&#60;code&#62;kWaveDiffusion&#60;/code&#62;) could be optimized in theory with compiled binaries in the same fashion as &#60;code&#62;kspaceFirstOrder3D&#60;/code&#62;? If so, would it be feasible to use the C++ code for &#60;code&#62;kspaceFirstOrder3D&#60;/code&#62; (e.g. &#60;code&#62;KSpaceFirstOrder3DSolver.cpp&#60;/code&#62;) as a starting point for a C++-based &#60;code&#62;kWaveDiffusion&#60;/code&#62;, or is the problem much more complicated than that?&#60;/p&#62;
&#60;p&#62;Thank you!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
