<?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: reflected echoes not absorbed by the PML</title>
		<link>http://www.k-wave.org/forum/topic/reflected-echoes-not-absorbed-by-the-pml</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 01:50:28 +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/reflected-echoes-not-absorbed-by-the-pml" rel="self" type="application/rss+xml" />

		<item>
			<title>ssg47 on "reflected echoes not absorbed by the PML"</title>
			<link>http://www.k-wave.org/forum/topic/reflected-echoes-not-absorbed-by-the-pml#post-5516</link>
			<pubDate>Thu, 26 May 2016 18:43:30 +0000</pubDate>
			<dc:creator>ssg47</dc:creator>
			<guid isPermaLink="false">5516@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;That worked! Thank you so much!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "reflected echoes not absorbed by the PML"</title>
			<link>http://www.k-wave.org/forum/topic/reflected-echoes-not-absorbed-by-the-pml#post-5515</link>
			<pubDate>Thu, 26 May 2016 16:24:48 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5515@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Susan,&#60;/p&#62;
&#60;p&#62;Is this a plot scale issue? The PML with the default parameters will reduce the amplitude of the incoming waves by 3 to 4 orders of magnitude. However, with &#60;code&#62;&#38;#39;PlotScale&#38;#39;, &#38;#39;auto&#38;#39;&#60;/code&#62;, as soon as the wave has left the domain, you will see the remaining waves, even though they are very small. What about if you try to set a fixed plot scale?&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ssg47 on "reflected echoes not absorbed by the PML"</title>
			<link>http://www.k-wave.org/forum/topic/reflected-echoes-not-absorbed-by-the-pml#post-5513</link>
			<pubDate>Tue, 24 May 2016 19:11:49 +0000</pubDate>
			<dc:creator>ssg47</dc:creator>
			<guid isPermaLink="false">5513@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Dr.Treeby,&#60;br /&#62;
I have running a simple code shown below. I have set ample simulation time, and made sure the all the other parameters are met for stable simulations. But there seems to be an issue towards the end of my simulation. The reflected waves are not absorbed by the PML layer close to the sensor mask. I have tried increasing the PMLAlpha value but didn't see any difference. I'm afraid it might be affecting the results I am supposed to be getting. Any help would be appreciated!&#60;br /&#62;
Thanks, Susan&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;% create the computational grid
clear all;
pml_x_size = 20;
pml_y_size = 20;
Nx = 256 - 2*pml_x_size;
Ny = 96 - 2*pml_y_size;
dx = 0.2e-3;        % grid point spacing in the x direction [m]
dy = 0.2e-3;        % grid point spacing in the y direction [m]
kgrid = makeGrid(Nx, dx, Ny, dy);
gridx_pts =11;
c0 = 1540;                  % [m/s]
rho0 = 1000;                % [kg/m^3]
medium.sound_speed_ref = c0;
medium.alpha_coeff = 0.75; 	% [dB/(MHz^y cm)]
medium.alpha_power = 1.5;
%medium.alpha_mode = &#38;#39;no_absorption&#38;#39;;

t_end = (Nx*dx)*2.4/c0;     % [s]
kgrid.t_array = 0:15e-9:t_end;
source_strength = 1e6;    	% [Pa]
tone_burst_freq = 1.875e6; 	% [Hz]
tone_burst_cycles = 5;
input_signal = source_strength*toneBurst(1/kgrid.dt, tone_burst_freq, tone_burst_cycles);

source.p_mask = zeros(Nx,Ny);
num_elements = 32;      % [grid points]
x_offset = 1 ;         % [grid points]
start_index = Ny/2 - round(num_elements/2) + 1;
source.p_mask(x_offset, start_index:start_index + num_elements - 1) = 1;
source.p = input_signal;

sensor.mask = zeros(Nx,Ny);
sensor.mask(x_offset, start_index) = 1;
sensor.mask(x_offset,18) = 1;
%%
Ny_tot = Ny+(41);
Nx_tot = Nx;
sound_speed_map = c0*ones(Nx_tot, Ny_tot);
density_map = rho0*ones(Nx_tot, Ny_tot);
cwire = 3000;
scattering_rho0 = cwire/1.5;
% define the fishing wire point
radius = 0.4e-3;      % [m]
xc = Nx_tot - 5;
yc = floor(Ny_tot/2);
%scattering_region = makeCircle(Nx_tot, Ny_tot, xc, yc,radius,&#38;#39;true&#38;#39;);
scattering_region = makeDisc(Nx_tot, Ny_tot, xc, yc,1,&#38;#39;true&#38;#39;); % results
%are not clean if you use makeDisc
% assign scatterer the properties
sound_speed_map(scattering_region == 1) = cwire;
density_map(scattering_region == 1) = scattering_rho0;
%%
input_args = {&#38;#39;PMLInside&#38;#39;, false, &#38;#39;PMLSize&#38;#39;, [pml_x_size, pml_y_size],&#38;#39;PlotSim&#38;#39;,false,&#38;#39;PlotScale&#38;#39;,&#38;#39;auto&#38;#39;};
psny = 1;
medium.sound_speed = sound_speed_map(:,psny:psny+Ny-1);
medium.density = density_map(:,psny:psny+Ny-1);
sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor,input_args{:});&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
