<?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: problems with kspaceFirstOrder3DC for heterogeneous alpha_power</title>
		<link>http://www.k-wave.org/forum/topic/problems-with-kspacefirstorder3dc-for-heterogeneous-alpha_power</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:28:32 +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/problems-with-kspacefirstorder3dc-for-heterogeneous-alpha_power" rel="self" type="application/rss+xml" />

		<item>
			<title>nellens1 on "problems with kspaceFirstOrder3DC for heterogeneous alpha_power"</title>
			<link>http://www.k-wave.org/forum/topic/problems-with-kspacefirstorder3dc-for-heterogeneous-alpha_power#post-5773</link>
			<pubDate>Wed, 30 Nov 2016 17:26:50 +0000</pubDate>
			<dc:creator>nellens1</dc:creator>
			<guid isPermaLink="false">5773@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Thanks very much! That explains the difference.&#60;/p&#62;
&#60;p&#62;Best,&#60;br /&#62;
Nick
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "problems with kspaceFirstOrder3DC for heterogeneous alpha_power"</title>
			<link>http://www.k-wave.org/forum/topic/problems-with-kspacefirstorder3dc-for-heterogeneous-alpha_power#post-5772</link>
			<pubDate>Wed, 30 Nov 2016 16:56:47 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5772@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Nick,&#60;/p&#62;
&#60;p&#62;The reason is that the optional input &#60;code&#62;medium.alpha_mode = &#38;#39;no_dispersion&#38;#39;&#60;/code&#62; is not supported by the C++ code. If you remove this, the MATLAB simulation will also be unstable. This is because the absorption values are very high, so the sound speed dispersion is also significant. You can alleviate this by using a smaller time step (CFL number).&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nellens1 on "problems with kspaceFirstOrder3DC for heterogeneous alpha_power"</title>
			<link>http://www.k-wave.org/forum/topic/problems-with-kspacefirstorder3dc-for-heterogeneous-alpha_power#post-5771</link>
			<pubDate>Wed, 30 Nov 2016 15:49:02 +0000</pubDate>
			<dc:creator>nellens1</dc:creator>
			<guid isPermaLink="false">5771@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad,&#60;/p&#62;
&#60;p&#62;Thanks for the quick reply. I made a mistake in my previous post. My problem arises for a matrix medium.alpha_coeff. Admittedly, some of my medium.alpha_coeff get quite high, but the matlab code seems to handle it without difficulty while the C code produces some sort of numerical instability which spreads away from the voxels with high alpha.&#60;/p&#62;
&#60;p&#62;I uploaded an example to my dropbox:&#60;br /&#62;
&#60;a href=&#34;https://dl.dropboxusercontent.com/u/12851069/kwaveExample.zip&#34; rel=&#34;nofollow&#34;&#62;https://dl.dropboxusercontent.com/u/12851069/kwaveExample.zip&#60;/a&#62; has code and an example of my array inputs (6.5 MB)&#60;br /&#62;
&#60;a href=&#34;https://dl.dropboxusercontent.com/u/12851069/exampleoutput.mat&#34; rel=&#34;nofollow&#34;&#62;https://dl.dropboxusercontent.com/u/12851069/exampleoutput.mat&#60;/a&#62; has my output from the script in the previous (126 MB)&#60;/p&#62;
&#60;p&#62;Please let me know if you see the same problem!&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Nick
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "problems with kspaceFirstOrder3DC for heterogeneous alpha_power"</title>
			<link>http://www.k-wave.org/forum/topic/problems-with-kspacefirstorder3dc-for-heterogeneous-alpha_power#post-5770</link>
			<pubDate>Wed, 30 Nov 2016 11:28:42 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5770@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Nick,&#60;/p&#62;
&#60;p&#62;The input for &#60;code&#62;medium.alpha_coeff&#60;/code&#62; can be a matrix, but the input for &#60;code&#62;medium.alpha_power&#60;/code&#62; must be a single value (for both the matlab and C++ codes). &#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nellens1 on "problems with kspaceFirstOrder3DC for heterogeneous alpha_power"</title>
			<link>http://www.k-wave.org/forum/topic/problems-with-kspacefirstorder3dc-for-heterogeneous-alpha_power#post-5769</link>
			<pubDate>Tue, 29 Nov 2016 23:24:22 +0000</pubDate>
			<dc:creator>nellens1</dc:creator>
			<guid isPermaLink="false">5769@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi-&#60;/p&#62;
&#60;p&#62;I would like to do a fairly large 3D simulation with a heterogeneous medium with 3D arrays representing c, rho, and alpha_power. This works fine with the kspaceFirstOrder3D function, but gives me garbage output for kspaceFirstOrder3DC. If I change medium.alpha_power to, say, 0.75 (per the example), it works just fine. medium.sound_speed and medium.density are heterogeneous for both. Is there something obvious that I'm doing wrong? I can share an example, if that's helpful.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Nick
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
