<?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: B.0.5 - Known Issues (Updated 10-Apr-2012)</title>
		<link>http://www.k-wave.org/forum/topic/b05-known-issues</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 21:36:42 +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/b05-known-issues" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "B.0.5 - Known Issues (Updated 10-Apr-2012)"</title>
			<link>http://www.k-wave.org/forum/topic/b05-known-issues#post-332</link>
			<pubDate>Tue, 28 Feb 2012 03:41:18 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">332@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;This list will be periodically updated by the developers (between major releases) as bugs and issues are found.&#60;/p&#62;
&#60;p&#62;-----------------------&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;Report Date:&#60;/strong&#62; 13th March 2012&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;Issue:&#60;/strong&#62;&#60;br /&#62;
Using the optional input &#60;code&#62;&#38;#39;PlotLayout&#38;#39;&#60;/code&#62; set to &#60;code&#62;true&#60;/code&#62; with &#60;code&#62;kspaceFirstOrder2D&#60;/code&#62; when &#60;code&#62;medium.sound_speed&#60;/code&#62; or &#60;code&#62;medium.density&#60;/code&#62; are scalar values (homogeneous) generates a plot scale error.&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;Solution:&#60;/strong&#62;&#60;br /&#62;
In &#60;code&#62;private/kspaceFirstOrder_plotLayout.m&#60;/code&#62;, remove the plot scale used on lines 139 and 151.&#60;/p&#62;
&#60;p&#62;-----------------------&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;Report Date:&#60;/strong&#62; 3rd April 2012&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;Issue:&#60;/strong&#62;&#60;br /&#62;
The wavenumber variables &#60;code&#62;kgrid.kx&#60;/code&#62;, &#60;code&#62;kgrid.k&#60;/code&#62; (etc) are created incorrectly when the grid dimensions &#60;code&#62;Nx&#60;/code&#62;, &#60;code&#62;Ny&#60;/code&#62; (etc) have an odd number of grid points. This results in a small error (&#38;lt; 1%) when the spectral derivatives are calculated.&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;Solution:&#60;/strong&#62;&#60;br /&#62;
In &#60;code&#62;kWaveGrid.m&#60;/code&#62;, the expression for &#60;code&#62;nx&#60;/code&#62; on line 295 should be replaced with:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;nx = ((-(Nx-1)/2:(Nx-1)/2)/Nx).&#38;#39;;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;The same expression should be used to replace line 179 in &#60;code&#62;private/makeGridStruct.m&#60;/code&#62; (used for older versions of MATLAB).&#60;/p&#62;
&#60;p&#62;-----------------------&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;Report Date:&#60;/strong&#62; 10th April 2012&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;Issue:&#60;/strong&#62;&#60;br /&#62;
The variables &#60;code&#62;p_k&#60;/code&#62; and &#60;code&#62;source.p0&#60;/code&#62; are missing from the list of data cast variables.&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;Solution:&#60;/strong&#62;&#60;br /&#62;
In &#60;code&#62;private/kspaceFirstOrder_dataCast.m&#60;/code&#62;, on line 29 replace the list of cast variables with&#60;/p&#62;
&#60;p&#62;&#60;code&#62;cast_variables = {&#38;#39;kappa&#38;#39;, &#38;#39;p&#38;#39;, &#38;#39;p_k&#38;#39;, &#38;#39;c&#38;#39;, &#38;#39;dt&#38;#39;, &#38;#39;rho0&#38;#39;};&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;After line 90, add the lines:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;% additional variables only used if there is an initial pressure source
if isfield(source, &#38;#39;p0&#38;#39;)
    cast_variables = [cast_variables, {&#38;#39;source.p0&#38;#39;}];
end&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;-----------------------
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
