<?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: about time step warning</title>
		<link>http://www.k-wave.org/forum/topic/about-time-step-warning</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:36:53 +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/about-time-step-warning" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "about time step warning"</title>
			<link>http://www.k-wave.org/forum/topic/about-time-step-warning#post-372</link>
			<pubDate>Thu, 08 Mar 2012 22:28:54 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">372@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Chao,&#60;/p&#62;
&#60;p&#62;The check is really just to make sure that if people have manually defined &#60;code&#62;kgrid.t_array&#60;/code&#62; (rather than using &#60;code&#62;makeTime&#60;/code&#62;), that the time step is within a sensible range. You are right that if the grid spacing happens to be anisotropic, taking the minimum will give a more stringent warning. However, simply replacing &#60;code&#62;max&#60;/code&#62; with &#60;code&#62;min&#60;/code&#62; won't work in this case because &#60;code&#62;kgrid.dz&#60;/code&#62; is zero in 2D and &#60;code&#62;kgrid.dy&#60;/code&#62; and &#60;code&#62;kgrid.dz&#60;/code&#62; are zero in 1D.&#60;/p&#62;
&#60;p&#62;A good discussion on the CFL condition required for stability (at least in the case of a heterogeneous sound speed) is given in the paper by Mast et al. (2001) &#34;A k-space method for large-scale models of wave propagation in tissue&#34;. It depends on both the maximum sound speed in the medium, and the scalar sound speed used inside the k-space operator.&#60;/p&#62;
&#60;p&#62;I hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>huangchao on "about time step warning"</title>
			<link>http://www.k-wave.org/forum/topic/about-time-step-warning#post-356</link>
			<pubDate>Tue, 06 Mar 2012 01:23:10 +0000</pubDate>
			<dc:creator>huangchao</dc:creator>
			<guid isPermaLink="false">356@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi, Dr. Cox and Dr. Treeby,&#60;/p&#62;
&#60;p&#62;I found that the condition for prompting the warning &#34;time step may be too large for a stable simulation&#34; is:&#60;/p&#62;
&#60;p&#62;dt &#38;gt; DT_WARNING_CFL*max([kgrid.dz, kgrid.dx, kgrid.dy])/max(medium.sound_speed(:))&#60;/p&#62;
&#60;p&#62;But in my opinion, &#34;min([kgrid.dz, kgrid.dx, kgrid.dy])&#34; should be used instead of &#34;max([kgrid.dz, kgrid.dx, kgrid.dy])&#34;, because for a fixed &#34;DT_WARNING_CFL&#34;, &#34;dt&#34; should be less than &#34;DT_WARNING_CFL*min([kgrid.dz, kgrid.dx, kgrid.dy])/max(medium.sound_speed(:))&#34;. I don't know if this is right?&#60;/p&#62;
&#60;p&#62;Another thing I want to make sure is that if the simulation is stable as long as &#34;DT_WARNING_CFL&#38;lt;1&#34;.&#60;/p&#62;
&#60;p&#62;Thank you very much!&#60;/p&#62;
&#60;p&#62;Best,&#60;br /&#62;
Chao
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
