<?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: incorrect time domain propagation in heterogeneous medium</title>
		<link>http://www.k-wave.org/forum/topic/incorrect-time-domain-propagation-in-heterogeneous-medium</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 17:24:46 +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/incorrect-time-domain-propagation-in-heterogeneous-medium" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "incorrect time domain propagation in heterogeneous medium"</title>
			<link>http://www.k-wave.org/forum/topic/incorrect-time-domain-propagation-in-heterogeneous-medium#post-6487</link>
			<pubDate>Thu, 14 Jun 2018 22:47:26 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6487@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Maryam,&#60;/p&#62;
&#60;p&#62;The doubling of the time sounds suspicious. Could you post your whole code?&#60;/p&#62;
&#60;p&#62;Note, when using a heterogeneous medium, it's sometimes useful to specify the reference sound speed (this is used in the k-space correction) to the sound speed in the background medium by defining &#60;code&#62;medium.sound_speed_ref&#60;/code&#62;. This reduces the accumulation of numerical dispersion in the background medium. &#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>siamak on "incorrect time domain propagation in heterogeneous medium"</title>
			<link>http://www.k-wave.org/forum/topic/incorrect-time-domain-propagation-in-heterogeneous-medium#post-6480</link>
			<pubDate>Sat, 09 Jun 2018 03:47:12 +0000</pubDate>
			<dc:creator>siamak</dc:creator>
			<guid isPermaLink="false">6480@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;My setup includes a set of source points consisting 16 planes, each of 10x10 voxels placed on top of an imaginary sphere. I have also a set of sensors from Z = 0 to Z = top of the Sphere passing through its center. The sensor recordings are used to compute the propagation delay and from there the speed.&#60;br /&#62;
When there is only Water as the medium, the propagation is matching to 1500 m/s which I set for water.&#60;br /&#62;
In the next experiment I add another layer of medium using below lines:&#60;/p&#62;
&#60;p&#62;medium.sound_speed = 1500*ones(kgrid.Nx, kgrid.Ny, kgrid.Nz);&#60;br /&#62;
medium.sound_speed(Volume==1) = 2900;&#60;/p&#62;
&#60;p&#62;medium.density = 1000*ones(kgrid.Nx, kgrid.Ny, kgrid.Nz);&#60;br /&#62;
medium.density(Volume==1) = 2150;&#60;/p&#62;
&#60;p&#62;medium.alpha_power = 1.5;&#60;br /&#62;
medium.alpha_coeff = 0.75*ones(kgrid.Nx, kgrid.Ny, kgrid.Nz);&#60;br /&#62;
medium.alpha_coeff(Volume==1) = 20.4307;                      &#60;/p&#62;
&#60;p&#62;medium.BonA = 6*ones(kgrid.Nx, kgrid.Ny, kgrid.Nz);&#60;br /&#62;
medium.BonA(Volume==1) = 10;&#60;/p&#62;
&#60;p&#62;in which Volume is a logical variable of size (Nx,Ny,Nz) and indicates an object which is designated using 1s and all other entries are 0.&#60;/p&#62;
&#60;p&#62;The problem is after adding this layer of new material, the propagation speed slows down even before wave reach the new layer. The time signal peaks reach to the sensors, even for those in the first medium is exactly doubled and even though the sound speed for the second medium is set much higher than the first medium.&#60;/p&#62;
&#60;p&#62;I have investigated this issue and if I comment this line:&#60;br /&#62;
medium.sound_speed(Volume==1) = 2900;&#60;/p&#62;
&#60;p&#62;and leave all other lines there, the issue does not appear. Though this means I have neglected the second layer.&#60;/p&#62;
&#60;p&#62;I appreciate if K-wave team can have a look at this issue, and I wonder if anybody else has measured propagation delays in heterogeneous mediums to see if it matches to what it should be.&#60;/p&#62;
&#60;p&#62;Thanks for your times,&#60;br /&#62;
Maryam
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
