<?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; User Favorites: mstefano</title>
		<link><a href='http://www.k-wave.org/forum/profile/mstefano'>mstefano</a></link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 12:04:57 +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/profile/" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Questions about Transcranial Ultrasound Simulation"</title>
			<link>http://www.k-wave.org/forum/topic/questions-about-transcranial-ultrasound-simulation#post-7091</link>
			<pubDate>Fri, 18 Oct 2019 20:15:20 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">7091@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Robert,&#60;/p&#62;
&#60;p&#62;Yes, &#60;code&#62;kspaceFirstOrder2D&#60;/code&#62; accounts for effects like refraction and reflection.&#60;/p&#62;
&#60;p&#62;If your simulation is at very high pressure, then nonlinear effects can become important near the focus. However, in many cases the interaction at the skull surface can be assumed to be linear. See &#60;a href=&#34;https://doi.org/10.1121/1.5126685&#34;&#62;this paper&#60;/a&#62; for example.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Robert W on "Questions about Transcranial Ultrasound Simulation"</title>
			<link>http://www.k-wave.org/forum/topic/questions-about-transcranial-ultrasound-simulation#post-7065</link>
			<pubDate>Wed, 02 Oct 2019 07:11:47 +0000</pubDate>
			<dc:creator>Robert W</dc:creator>
			<guid isPermaLink="false">7065@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,I want to simulate transcranial transmission of ultrasound.Here the brain consist of two different types of tissues, which are general tissue(speed=1500,desity=1040,absorption coefficient=0.6) and bone(speed=3200,desity=1990,absorption coefficient=3.5).Can the following code simulate the ultrasound transmission in heterogeneous medium? Does the simulation conclude the refraction and reflection in the&#60;br /&#62;
interface between bone and general tissue? Do I need to consider other factors for HIFU,like nonlinear effects? Thank you very much! &#60;/p&#62;
&#60;p&#62;%model is the 2D map of brain.The model with value larger than 150 is bone and the other tissue is general&#60;br /&#62;
%tissue&#60;br /&#62;
[Nx, Ny] = size(model); %Nx=128 and Ny=128&#60;br /&#62;
dx = 1e-3;        % grid point spacing in the x direction  [m]&#60;br /&#62;
dy = 1e-3;        % grid point spacing in the y direction  [m]&#60;br /&#62;
kgrid = kWaveGrid(Nx, dx, Ny, dy);&#60;br /&#62;
medium.sound_speed = 1500 * ones(Nx, Ny);             %general tissue&#60;br /&#62;
medium.sound_speed(model&#38;gt;=150)=3200;                  % bone&#60;/p&#62;
&#60;p&#62;medium.density = 1000 * ones(Nx, Ny);                 % general tissue&#60;br /&#62;
medium.density(model&#38;gt;=150)=1990;                      % bone&#60;/p&#62;
&#60;p&#62;medium.alpha_power = 1.5;                               % default&#60;br /&#62;
medium.alpha_coeff = 0.6 * ones(Nx, Ny);                % general tissue&#60;br /&#62;
medium.alpha_coeff(model&#38;gt;=150)=3.5;                     % bone&#60;/p&#62;
&#60;p&#62;% create initial pressure distribution using makeDisc&#60;br /&#62;
disc_magnitude = 5; % [Pa]&#60;br /&#62;
disc_x_pos = 50;    % [grid points]&#60;br /&#62;
disc_y_pos = 50;    % [grid points]&#60;br /&#62;
disc_radius = 8;    % [grid points]&#60;br /&#62;
disc_1 = disc_magnitude * makeDisc(Nx, Ny, disc_x_pos, disc_y_pos, disc_radius);&#60;br /&#62;
source.p0 = disc_1;&#60;/p&#62;
&#60;p&#62;% define a centered circular sensor&#60;br /&#62;
sensor_radius = 5e-2;   % [m]&#60;br /&#62;
num_sensor_points = 50;&#60;br /&#62;
sensor.mask = makeCartCircle(sensor_radius, num_sensor_points);&#60;/p&#62;
&#60;p&#62;%simulation&#60;br /&#62;
sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor);
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Hammerben1 on "Getting Started with MRI/CT scans: intracranial pressure maps /skull aberration"</title>
			<link>http://www.k-wave.org/forum/topic/getting-started-with-mrict-scans-intracranial-pressure-maps-skull-aberration#post-6368</link>
			<pubDate>Thu, 22 Mar 2018 19:38:45 +0000</pubDate>
			<dc:creator>Hammerben1</dc:creator>
			<guid isPermaLink="false">6368@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Thank you!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Getting Started with MRI/CT scans: intracranial pressure maps /skull aberration"</title>
			<link>http://www.k-wave.org/forum/topic/getting-started-with-mrict-scans-intracranial-pressure-maps-skull-aberration#post-6361</link>
			<pubDate>Wed, 21 Mar 2018 21:36:36 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6361@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Ben,&#60;/p&#62;
&#60;p&#62;It should be straightforward. First load the CT data into MATLAB using an appropriate dicom or nifty reader. Assemble the data into a 3D matrix, then pass to the function. You will need to check that the Hounsfield Units in your dataset are scaled in the same way as expected by &#60;code&#62;hounsfield2density&#60;/code&#62; (see &#60;a href=&#34;http://www.k-wave.org/forum/topic/replace-the-phantom-with-a-3d-ct-volume#post-6268&#34;&#62;this thread&#60;/a&#62;).&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Hammerben1 on "Getting Started with MRI/CT scans: intracranial pressure maps /skull aberration"</title>
			<link>http://www.k-wave.org/forum/topic/getting-started-with-mrict-scans-intracranial-pressure-maps-skull-aberration#post-6352</link>
			<pubDate>Tue, 20 Mar 2018 00:01:47 +0000</pubDate>
			<dc:creator>Hammerben1</dc:creator>
			<guid isPermaLink="false">6352@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad:&#60;br /&#62;
This is exactly what we are trying to do as well.&#60;br /&#62;
So basically we could use hounsfield2density to transfer a CT scan to a spatial profile of densities. Can you dig deeper into this topic? Exactly how would you do that?&#60;br /&#62;
Is there an example for conversion CT scan to a spatial profile of skull density?&#60;br /&#62;
Thank you so much in advance!&#60;/p&#62;
&#60;p&#62;Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Getting Started with MRI/CT scans: intracranial pressure maps /skull aberration"</title>
			<link>http://www.k-wave.org/forum/topic/getting-started-with-mrict-scans-intracranial-pressure-maps-skull-aberration#post-6323</link>
			<pubDate>Wed, 07 Mar 2018 22:33:00 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6323@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Justin,&#60;/p&#62;
&#60;p&#62;You could import the skull geometry from a CT scan, and then either use &#60;code&#62;hounsfield2density&#60;/code&#62;, or one of the conversion algorithms based on porosity reported in the literature, e.g., &#60;a href=&#34;https://doi.org/10.1121/1.1529663&#34;&#62;this paper&#60;/a&#62;. If you use the &#60;code&#62;makeBowl&#60;/code&#62; function to define your transducer, it should be straightforward to orient it in the desired direction. Regarding the wave amplitude, for neuromodulation, the wave propagation is linear, so the amplitude of the output will be proportional to the amplitude of the input. If you're trying to simulate an experimental setup, you calibrate the input amplitude using a hydrophone measurement.&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jmfine on "Getting Started with MRI/CT scans: intracranial pressure maps /skull aberration"</title>
			<link>http://www.k-wave.org/forum/topic/getting-started-with-mrict-scans-intracranial-pressure-maps-skull-aberration#post-6308</link>
			<pubDate>Fri, 02 Mar 2018 17:47:06 +0000</pubDate>
			<dc:creator>jmfine</dc:creator>
			<guid isPermaLink="false">6308@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I have a few questions to try and get started on a (potentially lofty) goal. At the moment, we are using single element transducers to do low frequency neuromodulation. Clearly the skull causes both attenuation and distortion of ultrasound (assumption is that gray/white matter soft tissue has neglect-able impact). I am (first) trying to both estimate the intracranial pressure map and extent of skull distortion of the beam for this single transducer setup.  Then, I would like to be able to do the same for a 4 element phased array that will allow beam steering etc...&#60;br /&#62;
In this paper (&#60;a href=&#34;http://iopscience.iop.org/article/10.1088/1741-2552/aa843e/pdf&#34; rel=&#34;nofollow&#34;&#62;http://iopscience.iop.org/article/10.1088/1741-2552/aa843e/pdf&#60;/a&#62;) they did something similar for the single transducer setup.  &#60;/p&#62;
&#60;p&#62;How would I best get started to replicate that?  Is this under the&#60;br /&#62;
Heterogeneous Propagation Medium Example&#34;?  I have gone thru the example code already and ran it successfully and altered the transducer freq, etc..   Nonetheless, I am not sure how to program in the parameters (speed of sound, density, attenuation) for all of the layers (bone, etc). Furthermore, I am unsure what the appropriate initial pressure setting should be.&#60;/p&#62;
&#60;p&#62;Furthermore, how would I go about defining the grid such that the transducer source/face would be parallel to the skull at a desired point?&#60;/p&#62;
&#60;p&#62;Thank for taking the time to field these questions.&#60;br /&#62;
An aside, this is all for neuroresearch at Arizona State. If you have the time to discuss more on phone/Gchat, we would be happy to collaborate on this (jmfine@asu.edu).  &#60;/p&#62;
&#60;p&#62;The end game is to actually use the 4channel system, calculate the distortion, then correct for it with the phased array.  &#60;/p&#62;
&#60;p&#62;Justin Fine, PhD.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>buagciar on "Best way to simulate more than two layered materials in 2D"</title>
			<link>http://www.k-wave.org/forum/topic/best-way-to-simulate-more-than-two-layered-materials-in-2d#post-5381</link>
			<pubDate>Thu, 11 Feb 2016 18:38:33 +0000</pubDate>
			<dc:creator>buagciar</dc:creator>
			<guid isPermaLink="false">5381@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;thank you!!!&#60;/p&#62;
&#60;p&#62;i can not figure this out, wokr for me!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mavheart on "Transition from sound in liquids to solids"</title>
			<link>http://www.k-wave.org/forum/topic/transition-from-sound-in-liquids-to-solids#post-5350</link>
			<pubDate>Fri, 18 Dec 2015 01:02:20 +0000</pubDate>
			<dc:creator>mavheart</dc:creator>
			<guid isPermaLink="false">5350@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad,&#60;/p&#62;
&#60;p&#62;thank you for your help :)&#60;/p&#62;
&#60;p&#62;Marvin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Transition from sound in liquids to solids"</title>
			<link>http://www.k-wave.org/forum/topic/transition-from-sound-in-liquids-to-solids#post-5339</link>
			<pubDate>Tue, 01 Dec 2015 11:31:52 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5339@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Marvin,&#60;/p&#62;
&#60;p&#62;It seems to be a plot scale issue. With auto plot scaling, the limits are constantly adjusted, so it looks like there are waves remnant in your grid after the pulse reaches the PML, even though these are very small.&#60;/p&#62;
&#60;p&#62;If you change your code to &#60;code&#62;&#38;#39;PlotScale, [-1, 1]&#60;/code&#62; it should work as expected. Also, I would advise using a slightly fatter PML (perhaps 20 grid points).&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mavheart on "Transition from sound in liquids to solids"</title>
			<link>http://www.k-wave.org/forum/topic/transition-from-sound-in-liquids-to-solids#post-5326</link>
			<pubDate>Tue, 24 Nov 2015 22:19:57 +0000</pubDate>
			<dc:creator>mavheart</dc:creator>
			<guid isPermaLink="false">5326@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad,&#60;/p&#62;
&#60;p&#62;the new version does not seem to solve the issue. I would be glad if you took a look at my code :)&#60;/p&#62;
&#60;p&#62;Best regards,&#60;br /&#62;
Marvin&#60;/p&#62;
&#60;p&#62;clear all;&#60;/p&#62;
&#60;p&#62;DATA_CAST = 'double';&#60;br /&#62;
MASK_PLANE = 'xy';&#60;br /&#62;
USE_STATISTICS = true;&#60;/p&#62;
&#60;p&#62;PML_X_SIZE = 10;&#60;br /&#62;
PML_Y_SIZE = 10;&#60;/p&#62;
&#60;p&#62;Nx = 100;&#60;br /&#62;
Ny = 100;&#60;/p&#62;
&#60;p&#62;c_water		= 1500;	% [m/s]&#60;br /&#62;
c_plastic	= 2230;	% [m/s]&#60;br /&#62;
c_poly		= 1560;	% [m/s]&#60;br /&#62;
c_air		= 343;	% [m/s] @ 20°C&#60;/p&#62;
&#60;p&#62;rho_water	= 998; 	% [kg/m^3]&#60;br /&#62;
rho_plastic	= 1330;	% [kg/m^3]&#60;br /&#62;
rho_poly	= 1100;	% [kg/m^3]&#60;br /&#62;
rho_air		= 1.22;	% [kg/m^3]&#60;/p&#62;
&#60;p&#62;freq = 15e3;	% [Hz]&#60;/p&#62;
&#60;p&#62;lambda = c_water/freq;&#60;/p&#62;
&#60;p&#62;x = 1;&#60;/p&#62;
&#60;p&#62;dx = x/Nx;                  % [m]&#60;br /&#62;
dy = dx;                    % [m]&#60;/p&#62;
&#60;p&#62;kgrid = makeGrid(Nx, dx, Ny, dy);&#60;/p&#62;
&#60;p&#62;tr_pos = [round(0.5*Nx), round(0.5*Ny)];&#60;br /&#62;
tr_rad = 10.8e-2/(2);&#60;/p&#62;
&#60;p&#62;tr_pos_abs = [tr_pos(1)*dx, tr_pos(2)*dy]&#60;/p&#62;
&#60;p&#62;ITC = makeDisc(Nx, Ny, tr_pos(1), tr_pos(2), round(tr_rad/dx));&#60;/p&#62;
&#60;p&#62;medium.sound_speed_compression	= c_water*ones(Nx, Ny);&#60;br /&#62;
medium.sound_speed_shear	= zeros(Nx, Ny);&#60;br /&#62;
medium.density 			= rho_water*ones(Nx, Ny);&#60;/p&#62;
&#60;p&#62;t_end = 10e-4;                  % [s]&#60;/p&#62;
&#60;p&#62;kgrid.t_array = makeTime(kgrid, c_water*1.5);&#60;/p&#62;
&#60;p&#62;delta_t = kgrid.t_array(2) - kgrid.t_array(1);&#60;/p&#62;
&#60;p&#62;ncycles = 2;&#60;/p&#62;
&#60;p&#62;input_signal = toneBurst(1/delta_t, freq, ncycles);&#60;/p&#62;
&#60;p&#62;source.sxx = input_signal;&#60;br /&#62;
source.syy = input_signal;&#60;/p&#62;
&#60;p&#62;source.s_mask = ITC;&#60;/p&#62;
&#60;p&#62;sensor.mask = zeros(Nx, Ny);&#60;br /&#62;
sensor.mask(50, 100) = 1;&#60;/p&#62;
&#60;p&#62;input_args = {'PlotScale', 'auto','PMLSize', [PML_X_SIZE, PML_Y_SIZE],...&#60;br /&#62;
     'DataCast', DATA_CAST, 'DataRecast', true,'PlotPML', true};&#60;/p&#62;
&#60;p&#62;sensor_data = pstdElastic2D(kgrid, medium, source, sensor, input_args{:});
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Transition from sound in liquids to solids"</title>
			<link>http://www.k-wave.org/forum/topic/transition-from-sound-in-liquids-to-solids#post-5321</link>
			<pubDate>Tue, 24 Nov 2015 15:20:50 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5321@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Marvin,&#60;/p&#62;
&#60;p&#62;That certainly sounds suspicious. If you post your code, I can take a look.&#60;/p&#62;
&#60;p&#62;Also, have you updated to k-Wave version 1.1.1? This corrected a bug in the &#60;code&#62;pstdElastic&#60;/code&#62;codes that might affect stability. &#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mavheart on "Transition from sound in liquids to solids"</title>
			<link>http://www.k-wave.org/forum/topic/transition-from-sound-in-liquids-to-solids#post-5314</link>
			<pubDate>Tue, 17 Nov 2015 23:26:33 +0000</pubDate>
			<dc:creator>mavheart</dc:creator>
			<guid isPermaLink="false">5314@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad!&#60;/p&#62;
&#60;p&#62;Thank you for your reply. I used a test simulation in 2D to have a look at the behaviour of pstdElastic for liquids before applying it to more complex volumes and I encountered a problem:&#60;/p&#62;
&#60;p&#62;I put a stress source (disc) into a grid of water. Then I created a burst signal and applied it to the source like this:&#60;/p&#62;
&#60;p&#62;source.sxx = input_signal;&#60;br /&#62;
source.syy = input_signal;&#60;/p&#62;
&#60;p&#62;It looked like it would work fine - I was trying to achieve homogenous radiation - but as the pressure waves reached the corners of my grid, everything inside the medium but the PML seemed to explode, reaching high pressure values. Is there a way to mess up your PML so that this happens? I tried turning it off and it was a completely different result.&#60;/p&#62;
&#60;p&#62;Thanks for your help!&#60;/p&#62;
&#60;p&#62;Marvin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Transition from sound in liquids to solids"</title>
			<link>http://www.k-wave.org/forum/topic/transition-from-sound-in-liquids-to-solids#post-5289</link>
			<pubDate>Fri, 23 Oct 2015 10:04:11 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5289@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Marvin,&#60;/p&#62;
&#60;p&#62;To do this, you can use the &#60;code&#62;pstdElastic&#60;/code&#62; functions and set the shear properties in the fluid part of the domain to zero. There is an example of this included in the toolbox (see &#60;a href=&#34;http://www.k-wave.org/documentation/example_ewp_layered_medium.php&#34;&#62;here&#60;/a&#62;).&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mavheart on "Transition from sound in liquids to solids"</title>
			<link>http://www.k-wave.org/forum/topic/transition-from-sound-in-liquids-to-solids#post-5283</link>
			<pubDate>Thu, 22 Oct 2015 20:43:55 +0000</pubDate>
			<dc:creator>mavheart</dc:creator>
			<guid isPermaLink="false">5283@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello!&#60;/p&#62;
&#60;p&#62;I'm interested in sound propagation from liquid to solid and vice versa.&#60;br /&#62;
I understand the new functions pstdElastic are meant for solids while kSpaceFirstOrder is meant for liquids. Is there a way built in to have those simulations interact in a way that allows for pressure or stress waves to travel from one to the other?&#60;/p&#62;
&#60;p&#62;Thank you very much for this powerful toolbox!&#60;/p&#62;
&#60;p&#62;Marvin Willam
&#60;/p&#62;</description>
		</item>
		<item>
			<title>MUMiles on "Best way to simulate more than two layered materials in 2D"</title>
			<link>http://www.k-wave.org/forum/topic/best-way-to-simulate-more-than-two-layered-materials-in-2d#post-5195</link>
			<pubDate>Wed, 05 Aug 2015 18:18:26 +0000</pubDate>
			<dc:creator>MUMiles</dc:creator>
			<guid isPermaLink="false">5195@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Solved!&#60;/p&#62;
&#60;p&#62;I was going about this wrong. The correct way is to define your grid and then use:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;medium.sound_speed_compression = medium.sound_speed_compression + 5000*makeDisc(Nx, Ny, Nx/2 ... etc&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>MUMiles on "Best way to simulate more than two layered materials in 2D"</title>
			<link>http://www.k-wave.org/forum/topic/best-way-to-simulate-more-than-two-layered-materials-in-2d#post-5194</link>
			<pubDate>Wed, 05 Aug 2015 17:37:12 +0000</pubDate>
			<dc:creator>MUMiles</dc:creator>
			<guid isPermaLink="false">5194@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Thanks Anthony, that did the trick! As far as using makeDisc I am still a little confused. I can populate my grid points for a material but when I try to define a disc in the center the plot just becomes &#34;grayed out&#34;. Here is how I am trying to define different material parameters for a disc in the center:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;medium.sound_speed_compression = 5000*makeDisc(Nx, Ny, Nx/2, Ny/2, 2, &#38;#39;true&#38;#39;);
medium.sound_speed_shear = 2000*makeDisc(Nx, Ny, Nx/2, Ny/2, 2);
medium.density = 6000*makeDisc(Nx, Ny, Nx/2, Ny/2, 2);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Anthony on "Best way to simulate more than two layered materials in 2D"</title>
			<link>http://www.k-wave.org/forum/topic/best-way-to-simulate-more-than-two-layered-materials-in-2d#post-5185</link>
			<pubDate>Fri, 31 Jul 2015 08:36:30 +0000</pubDate>
			<dc:creator>Anthony</dc:creator>
			<guid isPermaLink="false">5185@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi MUMiles,&#60;/p&#62;
&#60;p&#62;First of all, you have a &#60;code&#62;3/Nx&#60;/code&#62; instead of &#60;code&#62;Nx/3&#60;/code&#62;. Then, if you look at the order of your material definition, the third one comprises (and though erases) the second one. Try &#60;code&#62;2*Nx/3&#60;/code&#62;, and it will work ;-)&#60;/p&#62;
&#60;p&#62;&#60;code&#62;makeDisc&#60;/code&#62; will help you for the circles.&#60;/p&#62;
&#60;p&#62;Anthony
&#60;/p&#62;</description>
		</item>
		<item>
			<title>MUMiles on "Best way to simulate more than two layered materials in 2D"</title>
			<link>http://www.k-wave.org/forum/topic/best-way-to-simulate-more-than-two-layered-materials-in-2d#post-5183</link>
			<pubDate>Fri, 31 Jul 2015 00:28:51 +0000</pubDate>
			<dc:creator>MUMiles</dc:creator>
			<guid isPermaLink="false">5183@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello, &#60;/p&#62;
&#60;p&#62;First off thank you so much for offering this package free of charge. I am trying to simulate more than two layers of elastic/viscoelastic materials and am running into a problem when coding more than two layers. Here is the general process I am using:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
% Define properties of the first layer (FOAM)&#60;br /&#62;
medium.sound_speed_compression = 2278*ones(Nx, Ny); % [m/s]&#60;br /&#62;
medium.sound_speed_shear       = 30*zeros(Nx, Ny);     % [m/s]&#60;br /&#62;
medium.density                 = 1265*ones(Nx, Ny);   % [kg/m^3] &#60;/p&#62;
&#60;p&#62;% Define properties of the second layer (Steel)&#60;br /&#62;
medium.sound_speed_compression(Nx/2:end, :) = 5164; % [m/s]&#60;br /&#62;
medium.sound_speed_shear(Nx/2:end, :)       = 2164;     % [m/s]&#60;br /&#62;
medium.density(Nx/2:end, :)                 = 7500; % [kg/m^3]&#60;/p&#62;
&#60;p&#62;% Define properties of the third layer (PMMA)&#60;br /&#62;
medium.sound_speed_compression(3/Nx:end, :) = 11663; % [m/s]&#60;br /&#62;
medium.sound_speed_shear(Nx/3:end, :)  = 1663;     % [m/s]&#60;br /&#62;
medium.density(Nx/3:end, :)                     = 11185; % [kg/m^3]&#60;/p&#62;
&#60;p&#62;etc...&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;But it seems as though I always end up with just two materials. Any insight into what I'm doing wrong is greatly appreciated. Also, it there a way to make the layers circular? Like if I wanted to take a cross section of a sphere in the center. My problem involves coated spheres. Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>qiangbo on "acoustic intensity"</title>
			<link>http://www.k-wave.org/forum/topic/acoustic-intensity#post-4450</link>
			<pubDate>Wed, 09 Apr 2014 20:53:01 +0000</pubDate>
			<dc:creator>qiangbo</dc:creator>
			<guid isPermaLink="false">4450@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Thanks. It is a great explanation!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
