<?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: Plane Wave Propagation In A Layered Medium with different material properties</title>
		<link>http://www.k-wave.org/forum/topic/plane-wave-propagation-in-a-layered-medium-with-different-material-properties</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 03:48:36 +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/plane-wave-propagation-in-a-layered-medium-with-different-material-properties" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Plane Wave Propagation In A Layered Medium with different material properties"</title>
			<link>http://www.k-wave.org/forum/topic/plane-wave-propagation-in-a-layered-medium-with-different-material-properties#post-4303</link>
			<pubDate>Sat, 08 Feb 2014 09:48:27 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4303@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Chiara,&#60;/p&#62;
&#60;p&#62;The best way to get started with k-Wave is to open the documentation in the MATLAB help browser, and work through the &#34;Initial Value Problems&#34; and &#34;Time Varying Source Problems&#34; examples one by one. You might also find Chapter 3 of the &#60;a href=&#34;http://www.k-wave.org/documentation.php&#34;&#62;k-Wave manual&#60;/a&#62; helpful. After that, you should find creating the example you mention fairly straightforward.&#60;/p&#62;
&#60;p&#62;Good luck with your simulations,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>meu06146 on "Plane Wave Propagation In A Layered Medium with different material properties"</title>
			<link>http://www.k-wave.org/forum/topic/plane-wave-propagation-in-a-layered-medium-with-different-material-properties#post-4300</link>
			<pubDate>Thu, 06 Feb 2014 10:43:14 +0000</pubDate>
			<dc:creator>meu06146</dc:creator>
			<guid isPermaLink="false">4300@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I want to run a model allowing me to create a source in one layer with a specific frequency. I want to create sensors allowing me to model the change in peak particle velocity and frequency content of the signal as it propagates through the layers using sensors.&#60;/p&#62;
&#60;p&#62;Can you advise best how to do this using k-wave toolbox?&#60;/p&#62;
&#60;p&#62;Many thanks&#60;/p&#62;
&#60;p&#62;Chiara&#60;/p&#62;
&#60;p&#62;I have had a play around with the following example:&#60;/p&#62;
&#60;p&#62;clear all;&#60;/p&#62;
&#60;p&#62;% =========================================================================&#60;br /&#62;
% SIMULATION&#60;br /&#62;
% =========================================================================&#60;/p&#62;
&#60;p&#62;% create the computational grid&#60;br /&#62;
Nx = 128;           % number of grid points in the x (row) direction&#60;br /&#62;
Ny = 128;           % number of grid points in the y (column) direction&#60;br /&#62;
dx = 0.1e-3;        % grid point spacing in the x direction [m]&#60;br /&#62;
dy = 0.1e-3;        % grid point spacing in the y direction [m]&#60;br /&#62;
kgrid = makeGrid(Nx, dx, Ny, dy);&#60;/p&#62;
&#60;p&#62;% define the properties of the propagation medium&#60;br /&#62;
medium.sound_speed = 1500*ones(Nx, Ny); % [m/s]&#60;br /&#62;
medium.sound_speed(1:Nx/2, :) = 1800;   % [m/s]&#60;br /&#62;
medium.density = 1000*ones(Nx, Ny);     % [kg/m^3]&#60;br /&#62;
medium.density(:, Ny/4:end) = 1200;     % [kg/m^3]&#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;/p&#62;
&#60;p&#62;disc_magnitude = 3; % [Pa]&#60;br /&#62;
disc_x_pos = 80;    % [grid points]&#60;br /&#62;
disc_y_pos = 60;    % [grid points]&#60;br /&#62;
disc_radius = 5;    % [grid points]&#60;br /&#62;
disc_2 = disc_magnitude*makeDisc(Nx, Ny, disc_x_pos, disc_y_pos, disc_radius);&#60;/p&#62;
&#60;p&#62;source.p0 = disc_1 + disc_2;&#60;/p&#62;
&#60;p&#62;% define a centered circular sensor&#60;br /&#62;
sensor_radius = 4e-3;   % [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;% run the simulation&#60;br /&#62;
sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor);&#60;/p&#62;
&#60;p&#62;% =========================================================================&#60;br /&#62;
% VISUALISATION&#60;br /&#62;
% =========================================================================&#60;/p&#62;
&#60;p&#62;% plot the initial pressure and sensor distribution&#60;br /&#62;
figure;&#60;br /&#62;
imagesc(kgrid.y_vec*1e3, kgrid.x_vec*1e3, source.p0 + cart2grid(kgrid, sensor.mask), [-1 1]);&#60;br /&#62;
colormap(getColorMap);&#60;br /&#62;
ylabel('x-position [mm]');&#60;br /&#62;
xlabel('y-position [mm]');&#60;br /&#62;
axis image;&#60;/p&#62;
&#60;p&#62;% plot the simulated sensor data&#60;br /&#62;
figure;&#60;br /&#62;
imagesc(sensor_data, [-1, 1]);&#60;br /&#62;
colormap(getColorMap);&#60;br /&#62;
ylabel('Sensor Position');&#60;br /&#62;
xlabel('Time Step');&#60;br /&#62;
colorbar;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
