<?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: Multiple medium propogation</title>
		<link>http://www.k-wave.org/forum/topic/multiple-medium-propogation</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:07:22 +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/multiple-medium-propogation" rel="self" type="application/rss+xml" />

		<item>
			<title>saxen on "Multiple medium propogation"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-medium-propogation#post-317</link>
			<pubDate>Tue, 21 Feb 2012 18:46:48 +0000</pubDate>
			<dc:creator>saxen</dc:creator>
			<guid isPermaLink="false">317@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I tried with R2011b, same problem. I don't really understand where the negative lobe come from.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>saxen on "Multiple medium propogation"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-medium-propogation#post-310</link>
			<pubDate>Wed, 15 Feb 2012 09:36:57 +0000</pubDate>
			<dc:creator>saxen</dc:creator>
			<guid isPermaLink="false">310@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I'm using Matlab 7.11.0 (R2010b) on Mac Os X 10.7.3 (Lion). How does the time series appear without scattering and bone? Does it present the negative lobe? Is there any way to solve?&#60;br /&#62;
Thanks for your help, and thanks for the reference, I'll take a look!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Multiple medium propogation"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-medium-propogation#post-308</link>
			<pubDate>Wed, 15 Feb 2012 05:39:50 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">308@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Saxen,&#60;/p&#62;
&#60;p&#62;I have tried running your code in various ways (including with much bigger sound speed and density contrasts) but I cannot reproduce the behaviour you are seeing. The time series always appear as expected. What version of MATLAB and operating system are you using?&#60;/p&#62;
&#60;p&#62;To answer your questions, the CFL controls the size of the time step, where dt = CFL*dx/c. A good explanation of the bi-polar signal produced in 3D from a short input pulse is given in the paper by Hoelen &#38;amp; de Mul, &#34;A new theoretical approach to photoacoustic signal generation&#34;, J. Acoust. Soc. Am, 106(2), pp. 695-706, (1999).&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>saxen on "Multiple medium propogation"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-medium-propogation#post-306</link>
			<pubDate>Fri, 10 Feb 2012 14:39:00 +0000</pubDate>
			<dc:creator>saxen</dc:creator>
			<guid isPermaLink="false">306@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Yes I'm plotting just the single time series from sensor data. The PML is outside, and kgrid.t_array should be long enough.&#60;br /&#62;
Now I'm trying with a pulse, filtered to fit with the maximum frequency.&#60;/p&#62;
&#60;p&#62;This is the input signal, before and after filtering:&#60;br /&#62;
&#60;a href=&#34;http://imageshack.us/photo/my-images/46/screenshot20120210at142.png/&#34; rel=&#34;nofollow&#34;&#62;http://imageshack.us/photo/my-images/46/screenshot20120210at142.png/&#60;/a&#62;&#60;br /&#62;
This is the output without scattering and without the &#34;bone&#34; region (4 of the 5 sensors):&#60;br /&#62;
&#60;a href=&#34;http://imageshack.us/photo/my-images/341/screenshot20120210at130.png/&#34; rel=&#34;nofollow&#34;&#62;http://imageshack.us/photo/my-images/341/screenshot20120210at130.png/&#60;/a&#62;&#60;br /&#62;
This is the output with scattering and with the &#34;bone&#34; region, when with c0=1529 and c1=1688 (4 of the 5 sensors):&#60;br /&#62;
&#60;a href=&#34;http://imageshack.us/photo/my-images/832/screenshot20120210at133.png/&#34; rel=&#34;nofollow&#34;&#62;http://imageshack.us/photo/my-images/832/screenshot20120210at133.png/&#60;/a&#62;&#60;br /&#62;
This is the output with scattering and with the &#34;bone&#34; region, when with c0=1529 and c1=1888 (similar behavior for each sensor):&#60;br /&#62;
&#60;a href=&#34;http://imageshack.us/photo/my-images/811/screenshot20120210at135.png/&#34; rel=&#34;nofollow&#34;&#62;http://imageshack.us/photo/my-images/811/screenshot20120210at135.png/&#60;/a&#62;&#60;br /&#62;
This is the output with scattering and with the &#34;bone&#34; region, when with c0=1529 and c1=1888 and cfl=0.1 (instead of the default value 0.3, as you suggested):&#60;br /&#62;
&#60;a href=&#34;http://imageshack.us/photo/my-images/713/screenshot20120210at142.png/&#34; rel=&#34;nofollow&#34;&#62;http://imageshack.us/photo/my-images/713/screenshot20120210at142.png/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I have two questions about:&#60;br /&#62;
1) input signal and the output signal are different (the negative lobe of the pulse in the output). Why?&#60;br /&#62;
2) what happens when c1 is bigger? smaller cfl seems to solve it. is the latest result (cfl=0,1) reliable? what does a smaller cfl imply?&#60;br /&#62;
Thanks for your help!&#60;/p&#62;
&#60;p&#62;Here you can find the code i'm using:&#60;br /&#62;
&#60;a href=&#34;http://justpaste.it/qc0&#34; rel=&#34;nofollow&#34;&#62;http://justpaste.it/qc0&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Multiple medium propogation"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-medium-propogation#post-304</link>
			<pubDate>Thu, 09 Feb 2012 22:34:21 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">304@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Saxen,&#60;/p&#62;
&#60;p&#62;Without seeing your complete code, it's hard for me to assess what the problem might be. Are you plotting just the single time series from your sensor data? Double check that you have the PML set to be outside the computational domain, and that &#60;code&#62;kgrid.t_array&#60;/code&#62; is long enough to capture what you're interested in. If you think it's a stability issue, try using a smaller CFL value when you call &#60;code&#62;makeTime&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>saxen on "Multiple medium propogation"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-medium-propogation#post-297</link>
			<pubDate>Wed, 08 Feb 2012 23:42:42 +0000</pubDate>
			<dc:creator>saxen</dc:creator>
			<guid isPermaLink="false">297@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;First of all thanks for your reply! Your description is right, that's the model I want to simulate. When I set the speed of sound in the &#34;bone&#34; to 1800, the output plot seems to be ok. Otherwise, for higher values, such as 2000, or 2400 (the one I'd like to use), the output plot is, I might say, wrong. The curve reaches very high values (10^25) or very low, and then it stops. (I'll post a screenshot if you need).&#60;br /&#62;
I've found this in another topic:&#60;br /&#62;
&#60;a href=&#34;http://www.k-wave.org/forum/topic/wave-propogation-through-water-in-a-converging-aluminium-chamber&#34; rel=&#34;nofollow&#34;&#62;http://www.k-wave.org/forum/topic/wave-propogation-through-water-in-a-converging-aluminium-chamber&#60;/a&#62;&#60;br /&#62;
Here bencox said something about gibbs-type errors. Could this be the problem?&#60;br /&#62;
Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Multiple medium propogation"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-medium-propogation#post-296</link>
			<pubDate>Wed, 08 Feb 2012 22:49:02 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">296@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Saxen,&#60;/p&#62;
&#60;p&#62;I tried running your simulation and it seemed to look ok. I filled in the gaps in your code by setting &#60;code&#62;Nx_tot&#60;/code&#62; to &#60;code&#62;Nx&#60;/code&#62; (etc) and used &#60;code&#62;&#38;#39;PMLInside&#38;#39;&#60;/code&#62; set to &#60;code&#62;false&#60;/code&#62;. There is a long square 'bone' region running down the middle of the domain, the source is over to the left, and the sensor is in the middle of the bone at the bottom. Is that right? What exactly was weird about your simulation result?&#60;/p&#62;
&#60;p&#62;Note, if you are just using a single source element, you might find it easier to not use the transducer class, and instead just set &#60;code&#62;source.ux&#60;/code&#62; and &#60;code&#62;source.u_mask&#60;/code&#62; directly.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>saxen on "Multiple medium propogation"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-medium-propogation#post-295</link>
			<pubDate>Wed, 08 Feb 2012 16:33:18 +0000</pubDate>
			<dc:creator>saxen</dc:creator>
			<guid isPermaLink="false">295@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello,&#60;br /&#62;
I'm new with k-wave, and let me say it seems to be a great and useful tool! I've a question about propagation in heterogeneous medium (that's why i'm writing here instead of starting a new topic).&#60;br /&#62;
I'm trying to model a 3D environment with scattering, and two different region (different speed and density).  I'm using a single-point transducer and a single point sensor.&#60;br /&#62;
I'm having some problem when the speed of the second medium(the one inside) is much bigger than the first medium.&#60;br /&#62;
If c1=1807, it seems to work. When i try c1=2007 (or 2407), the sensor data gives me weird result... What am i doing wrong?&#60;br /&#62;
I hope someone here could give me some hint. &#60;/p&#62;
&#60;p&#62;Following there are few parts of my code:&#60;/p&#62;
&#60;p&#62;GRID:&#60;br /&#62;
Nx = 128 - 2*PML_X_SIZE;   % [grid points]&#60;br /&#62;
Ny = 64 - 2*PML_Y_SIZE;   % [grid points]&#60;br /&#62;
Nz = 64 - 2*PML_Z_SIZE;   % [grid points]&#60;br /&#62;
x = 40e-3&#60;br /&#62;
dx = x/(4*Nx);                  % [m]&#60;br /&#62;
dy = dx;                    % [m]&#60;br /&#62;
dz = dx;                    % [m]&#60;/p&#62;
&#60;p&#62;SENSOR:&#60;br /&#62;
x = [max(kgrid.x(:,1,1))];&#60;br /&#62;
y = [0];&#60;br /&#62;
z = [0];&#60;br /&#62;
sensor.mask = [x; y; z];&#60;/p&#62;
&#60;p&#62;MEDIUM 1;&#60;br /&#62;
medium.sound_speed = 1629;      % [m/s]&#60;br /&#62;
medium.density = 1056;          % [kg/m^3]&#60;br /&#62;
medium.alpha_coeff = 0.1256;      %a [dB/(MHz^y cm)]&#60;br /&#62;
medium.alpha_power = 1.001; %b&#60;/p&#62;
&#60;p&#62;SIGNAL:&#60;br /&#62;
source_strength = 1e6;          % [MPa]&#60;br /&#62;
tone_burst_freq = 6e6;        % [Hz]&#60;br /&#62;
tone_burst_cycles = 4;&#60;/p&#62;
&#60;p&#62;TRANSDUCER:&#60;br /&#62;
transducer.number_elements = 1;    % total number of transducer elements&#60;br /&#62;
transducer.element_width = 1;       % width of each element [grid points]&#60;br /&#62;
transducer.element_length = 1;     % length of each element [grid points]&#60;br /&#62;
transducer.element_spacing = 0;     % spacing (kerf  width) between the elements [grid points]&#60;br /&#62;
transducer.radius = inf;            % radius of curvature of the transducer [m]&#60;br /&#62;
transducer_width = transducer.number_elements*transducer.element_width + (transducer.number_elements - 1)*transducer.element_spacing;&#60;br /&#62;
transducer.position = round([1, Ny/4 - transducer_width/2, Nz/2 - transducer.element_length/2]);&#60;/p&#62;
&#60;p&#62;INHOMOGENEITIES:&#60;br /&#62;
background_map_mean = 1;&#60;br /&#62;
background_map_std = 0.008;&#60;br /&#62;
background_map = background_map_mean+ background_map_std*randn([Nx_tot, Ny_tot, Nz_tot]);&#60;/p&#62;
&#60;p&#62;MEDIUM 2:&#60;br /&#62;
c1 = 2407;&#60;br /&#62;
rho1 = 1920;&#60;br /&#62;
sound_speed_map = c0*ones(Nx_tot, Ny_tot, Nz_tot).*background_map;&#60;br /&#62;
density_map = rho0*ones(Nx_tot, Ny_tot, Nz_tot).*background_map;&#60;br /&#62;
bone_region = zeros(Nx_tot, Ny_tot, Nz_tot);&#60;br /&#62;
region_rho1 = rho1*ones(Nx_tot, Ny_tot, Nz_tot);&#60;br /&#62;
region_c1 = c1*ones(Nx_tot, Ny_tot, Nz_tot);&#60;br /&#62;
bone_region(:, Ny/2 - 8/2:Ny/2 + 8/2, Nz/2 - 8/2:Nz/2 + 8/2)=1;&#60;br /&#62;
density_map(bone_region == 1) = region_rho1(bone_region == 1);&#60;br /&#62;
sound_speed_map(bone_region == 1) = region_c1(bone_region == 1);
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Multiple medium propogation"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-medium-propogation#post-277</link>
			<pubDate>Sat, 14 Jan 2012 23:33:52 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">277@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Wilbert,&#60;/p&#62;
&#60;p&#62;The simulations are computed using properties defined on an equi-spaced Cartesian grid. For a homogeneous medium, the values for &#60;code&#62;medium.sound_speed&#60;/code&#62; etc., are they same at every grid point, so they can be defined as a single scalar value. If there is any kind of heterogeneity (for example, a layered medium as in your case), you should define the medium parameters as matrices. If you follow the &#60;a href=&#34;http://www.k-wave.org/documentation/example_ivp_heterogeneous_medium.php&#34;&#62;Heterogeneous Propagation Medium Example&#60;/a&#62; you should get the idea.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Wilbert on "Multiple medium propogation"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-medium-propogation#post-276</link>
			<pubDate>Sat, 14 Jan 2012 12:02:43 +0000</pubDate>
			<dc:creator>Wilbert</dc:creator>
			<guid isPermaLink="false">276@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi, &#60;/p&#62;
&#60;p&#62;I'm new to K-Wave. I wanted to simulate a point source that is located in water and is propagating through different mediums. The source is located in the last medium. (I have 4  layers with different properties between the source and receiver). each layer is homogeneous alone. &#60;/p&#62;
&#60;p&#62;What would be the best way to simulate the pressure in last layer? Should I define it as different homogeneous mediums or I can use heterogeneous example?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
