<?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: I want to eliminate the signal reflected from the boundary.</title>
		<link>http://www.k-wave.org/forum/topic/i-want-to-eliminate-the-signal-reflected-from-the-boundary</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 12:06:38 +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/i-want-to-eliminate-the-signal-reflected-from-the-boundary" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "I want to eliminate the signal reflected from the boundary."</title>
			<link>http://www.k-wave.org/forum/topic/i-want-to-eliminate-the-signal-reflected-from-the-boundary#post-7092</link>
			<pubDate>Fri, 18 Oct 2019 20:21:31 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">7092@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi dnrdyd0379,&#60;/p&#62;
&#60;p&#62;Your source is inside the PML and the plot scale is saturated.&#60;/p&#62;
&#60;p&#62;Try:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;% run the simulation
sensor_data = pstdElastic2D(kgrid, medium, source, sensor, ...
    &#38;#39;PMLInside&#38;#39;, false, ...
    &#38;#39;PMLSize&#38;#39;, 12, ...
    &#38;#39;PlotScale&#38;#39;, [-1, 1] * 1e3);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Brad
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dnrdyd0379 on "I want to eliminate the signal reflected from the boundary."</title>
			<link>http://www.k-wave.org/forum/topic/i-want-to-eliminate-the-signal-reflected-from-the-boundary#post-7069</link>
			<pubDate>Tue, 08 Oct 2019 04:34:51 +0000</pubDate>
			<dc:creator>dnrdyd0379</dc:creator>
			<guid isPermaLink="false">7069@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;A general note about the code is to have 5 MHz as the tone_burst.&#60;br /&#62;
Mix different materials in the grid.&#60;br /&#62;
I wrote the code for the above general points and the code looks like this:&#60;br /&#62;
When you run it, you will see the source move from bottom to top in addition to moving from top to bottom.&#60;br /&#62;
How do you solve this?&#60;/p&#62;
&#60;p&#62;% three Ultrafinedust in u_mask code&#60;br /&#62;
clear all&#60;br /&#62;
clc&#60;/p&#62;
&#60;p&#62;% create the computational grid&#60;br /&#62;
Nx = 300; % [grid points]&#60;br /&#62;
Ny = 300; % [grid points]&#60;br /&#62;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&#60;br /&#62;
dx = 6.86e-6; % [m]    %% See changes.&#60;br /&#62;
dy = 6.86e-6; % [m]    %% See changes.&#60;br /&#62;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&#60;br /&#62;
kgrid = makeGrid(Nx, dx, Ny, dy);&#60;/p&#62;
&#60;p&#62;% define the compressional sound speed [m/s]&#60;br /&#62;
medium.sound_speed_compression = 343*ones(Nx, Ny);&#60;/p&#62;
&#60;p&#62;% define the shear sound speed [m/s]&#60;br /&#62;
medium.sound_speed_shear = 0*ones(Nx, Ny);&#60;/p&#62;
&#60;p&#62;% define the mass density [kg/m?3]&#60;br /&#62;
medium.density = 1.2754*ones(Nx, Ny);&#60;br /&#62;
medium.density(150,50) = 2650;&#60;br /&#62;
medium.density(150,100) = 2650;&#60;br /&#62;
medium.density(150,150) = 2650;&#60;br /&#62;
medium.density(150,200) = 2650;&#60;br /&#62;
medium.density(150,250) = 2650;&#60;/p&#62;
&#60;p&#62;% define the absorption coefficients [dB/(MHz?2 cm)]&#60;br /&#62;
medium.alpha_coeff_compression = 0;&#60;br /&#62;
medium.alpha_coeff_shear = 0;&#60;/p&#62;
&#60;p&#62;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&#60;br /&#62;
%%% Create the time array (Refer to Manual Page 31)&#60;br /&#62;
kgrid.t_array = makeTime(kgrid, medium.sound_speed_compression, 0.05, 9e-6);&#60;br /&#62;
%kgrid.t_array = makeTime(kgrid, medium.sound_speed_compression, CFL, t_end);&#60;br /&#62;
% See this addition.&#60;br /&#62;
% 0.1 is the CFL number, and 10e-6 is the t_end (total time duration).&#60;br /&#62;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&#60;/p&#62;
&#60;p&#62;% define a tone burst and assign it to the x-direction particle velocity&#60;br /&#62;
source.u_mask = zeros(Nx,Ny);&#60;br /&#62;
source.u_mask(5,:) = 1;&#60;br /&#62;
source.u_mode = 'additive';&#60;/p&#62;
&#60;p&#62;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&#60;br /&#62;
dt = kgrid.t_array(2)-kgrid.t_array(1) ; %[Hz]   %%%%&#60;br /&#62;
% See changes.&#60;br /&#62;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&#60;br /&#62;
sampling_freq = 1/dt; % [Hz]&#60;br /&#62;
tone_burst_freq = 5e6; % [Hz]&#60;br /&#62;
tone_burst_cycles = 3;&#60;br /&#62;
source.ux = toneBurst(sampling_freq, tone_burst_freq, tone_burst_cycles);&#60;br /&#62;
source.uy = toneBurst(sampling_freq, tone_burst_freq, tone_burst_cycles);&#60;br /&#62;
toneBurst(sampling_freq, tone_burst_freq, tone_burst_cycles, 'Plot', true);&#60;/p&#62;
&#60;p&#62;% define a 2D binary sensor mask in the shape of a line&#60;br /&#62;
x_offset = 25; % [grid points]&#60;br /&#62;
width = 50;    % [grid points]&#60;br /&#62;
sensor.mask = zeros(Nx, Ny);&#60;br /&#62;
sensor.mask(Nx-1, 1:Ny) = 1;&#60;/p&#62;
&#60;p&#62;% run the simulation&#60;br /&#62;
sensor_data = pstdElastic2D(kgrid, medium, source, sensor);
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
