<?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: Issue with the function &#34;kspaceFirstOrder2D&#34;</title>
		<link>http://www.k-wave.org/forum/topic/issue-with-the-function-kspacefirstorder2d</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 01:32:18 +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/issue-with-the-function-kspacefirstorder2d" rel="self" type="application/rss+xml" />

		<item>
			<title>bencox on "Issue with the function &#34;kspaceFirstOrder2D&#34;"</title>
			<link>http://www.k-wave.org/forum/topic/issue-with-the-function-kspacefirstorder2d#post-5034</link>
			<pubDate>Wed, 08 Apr 2015 16:05:42 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">5034@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Greg, &#60;/p&#62;
&#60;p&#62;Can you post your code, or put in somewhere I can download it, so I can take a closer look?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>GreG on "Issue with the function &#34;kspaceFirstOrder2D&#34;"</title>
			<link>http://www.k-wave.org/forum/topic/issue-with-the-function-kspacefirstorder2d#post-5021</link>
			<pubDate>Thu, 26 Mar 2015 22:00:53 +0000</pubDate>
			<dc:creator>GreG</dc:creator>
			<guid isPermaLink="false">5021@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Ben,&#60;/p&#62;
&#60;p&#62;I tried with very low absorption values (see here below)  and it crashes also...&#60;/p&#62;
&#60;p&#62;medium.alpha_coeff = 1e-6; for air and for concrete&#60;br /&#62;
medium.alpha_power = 1.1&#60;/p&#62;
&#60;p&#62;The problem seems to come from the concrete's density value.&#60;/p&#62;
&#60;p&#62;Typically i set the density value to 2000 (kg/m3) and the simulation failed, when i decreased the value by 10, the simulation worked.&#60;/p&#62;
&#60;p&#62;Do you have any explanation ?&#60;/p&#62;
&#60;p&#62;Thanks.&#60;/p&#62;
&#60;p&#62;Greg.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bencox on "Issue with the function &#34;kspaceFirstOrder2D&#34;"</title>
			<link>http://www.k-wave.org/forum/topic/issue-with-the-function-kspacefirstorder2d#post-5014</link>
			<pubDate>Sun, 22 Mar 2015 18:39:39 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">5014@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi GreG, &#60;/p&#62;
&#60;p&#62;What are your absorption values? Does it still fail if you make the absorption values very low?&#60;/p&#62;
&#60;p&#62;Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>GreG on "Issue with the function &#34;kspaceFirstOrder2D&#34;"</title>
			<link>http://www.k-wave.org/forum/topic/issue-with-the-function-kspacefirstorder2d#post-5013</link>
			<pubDate>Sun, 22 Mar 2015 18:30:25 +0000</pubDate>
			<dc:creator>GreG</dc:creator>
			<guid isPermaLink="false">5013@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Ben,&#60;/p&#62;
&#60;p&#62;Thank you for your help.&#60;/p&#62;
&#60;p&#62;No, the simulation does not want to start. The process stops just before starting the time loop...&#60;br /&#62;
It seems to be a display issue... I see briefly (less than 1 sec ) the wall displayed in greyscale, afterwards the error is generated.&#60;/p&#62;
&#60;p&#62;GreG.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bencox on "Issue with the function &#34;kspaceFirstOrder2D&#34;"</title>
			<link>http://www.k-wave.org/forum/topic/issue-with-the-function-kspacefirstorder2d#post-5009</link>
			<pubDate>Tue, 17 Mar 2015 23:41:56 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">5009@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi GreG, &#60;/p&#62;
&#60;p&#62;When you watch the simulation does it look ok? I wonder if the simulation is blowing up and generating NaNs, perhaps because the absorption is too high. The simulations can become unstable for large values of absorption.&#60;/p&#62;
&#60;p&#62;Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>GreG on "Issue with the function &#34;kspaceFirstOrder2D&#34;"</title>
			<link>http://www.k-wave.org/forum/topic/issue-with-the-function-kspacefirstorder2d#post-5006</link>
			<pubDate>Sun, 15 Mar 2015 18:44:01 +0000</pubDate>
			<dc:creator>GreG</dc:creator>
			<guid isPermaLink="false">5006@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I tried to perform a 2 dimensions simulation (non homogeneous medium) and I got the following error message when i define the alpha_coeff, alpha_power and the medium density, (typically i was trying to simulate a part of a wall at audible frequencies) : &#60;/p&#62;
&#60;p&#62;Error using im2frame&#60;br /&#62;
double-precision indexed CData values must be legal colormap indices: 1.0 &#38;lt;= value &#38;lt;=&#60;br /&#62;
length(colormap)&#60;/p&#62;
&#60;p&#62;Error in kspaceFirstOrder2D (line 899)&#60;br /&#62;
                movie_frames(frame_index) = im2frame(p_plot, COLOR_MAP); %#ok&#38;lt;AGROW&#38;gt;&#60;/p&#62;
&#60;p&#62;Error in Grid_w_obstacles (line 157)&#60;br /&#62;
sensor_data = kspaceFirstOrder2D(kgrid,medium,source,sensor,input_args{:}); &#60;/p&#62;
&#60;p&#62;When i don't define alpha and (or) medium density the simulation works perfectly.&#60;/p&#62;
&#60;p&#62;Does anyone have an idea how to fix this issue ?&#60;/p&#62;
&#60;p&#62;Thanks a lot ,&#60;/p&#62;
&#60;p&#62;GreG.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
