<?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: Surface wave between two media</title>
		<link>http://www.k-wave.org/forum/topic/surface-wave-between-two-media</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 09:02:44 +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/surface-wave-between-two-media" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Surface wave between two media"</title>
			<link>http://www.k-wave.org/forum/topic/surface-wave-between-two-media#post-7462</link>
			<pubDate>Fri, 01 May 2020 09:14:50 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">7462@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi jinyoung,&#60;/p&#62;
&#60;p&#62;A few problems:&#60;/p&#62;
&#60;p&#62;- Your PML absorption is too high. Higher isn't always better as this can create a sharp absorption profile which causes reflections. I'd stick to the defaults.&#60;br /&#62;
- Your plot scale is off. Try setting to the approximate value of the pressure by setting &#60;code&#62;&#38;#39;PlotScale&#38;#39;, [-1, 1] * Z&#60;/code&#62;, where Z is the impedance in the medium where your source is located.&#60;br /&#62;
- To increase speed, try and make your grid size have small prime factors. If you set &#60;code&#62;&#38;#39;PMLSize&#38;#39;, &#38;#39;auto&#38;#39;&#60;/code&#62;, k-Wave will do this for you.&#60;br /&#62;
- k-Wave can struggle with sharp impedance discontinuities between concrete and air. A work around is discussed in &#60;a href=&#34;http://www.k-wave.org/forum/topic/simulation-of-ultrasonic-testing-borehole-in-solid#post-6473&#34;&#62;this post&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Brad
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jinyoung on "Surface wave between two media"</title>
			<link>http://www.k-wave.org/forum/topic/surface-wave-between-two-media#post-7434</link>
			<pubDate>Fri, 24 Apr 2020 11:13:00 +0000</pubDate>
			<dc:creator>jinyoung</dc:creator>
			<guid isPermaLink="false">7434@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello,&#60;br /&#62;
I'm trying to model a simulation to measure surface waves in two different media. At this time, a wave with strange straight line shape is generated in the unset position. what is this problem?&#60;br /&#62;
Thank you.&#60;/p&#62;
&#60;p&#62;code:&#60;br /&#62;
clear all;&#60;br /&#62;
close 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 = 400; % [grid points]&#60;br /&#62;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&#60;br /&#62;
dx = 0.001; % [m]    %% See changes.&#60;br /&#62;
dy = 0.001; % [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); % P-wave velocity of air&#60;br /&#62;
medium.sound_speed_compression(200:300, :) = 4000; % P-wave velocity of concrete&#60;/p&#62;
&#60;p&#62;%% define the shear sound speed [m/s]&#60;br /&#62;
medium.sound_speed_shear = 0*ones(Nx, Ny); % S-wave velocity of air&#60;br /&#62;
medium.sound_speed_shear(200:300, :) = 2500; % S-wave velocity of concrete&#60;/p&#62;
&#60;p&#62;%% define the mass density [kg/m^3]&#60;br /&#62;
medium.density = 1.2754*ones(Nx, Ny); % air density&#60;br /&#62;
medium.density(200:300,:) = 2350; % concrete density&#60;/p&#62;
&#60;p&#62;%% define the absorption coefficients [dB/(MHz?2 cm)]&#60;br /&#62;
% medium.alpha_coeff_compression = 0.9;&#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.1,10e-4); &#60;/p&#62;
&#60;p&#62;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&#60;/p&#62;
&#60;p&#62;% define u_mask&#60;br /&#62;
source.u_mask = zeros(Nx,Ny);&#60;br /&#62;
source.u_mask(160,70:100) = 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) ; %[s]   %%%%&#60;br /&#62;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&#60;br /&#62;
sampling_freq = 1/dt; % [Hz]&#60;br /&#62;
tone_burst_freq = 5e4; % [Hz]&#60;br /&#62;
tone_burst_cycles = 10;&#60;br /&#62;
source.ux = 1*toneBurst(sampling_freq, tone_burst_freq, tone_burst_cycles);&#60;br /&#62;
source.uy = 1*toneBurst(sampling_freq, tone_burst_freq, tone_burst_cycles);&#60;/p&#62;
&#60;p&#62;% define sensor&#60;br /&#62;
sensor.mask = zeros(Nx, Ny);&#60;br /&#62;
sensor.mask(160, 300:400) = 1;&#60;/p&#62;
&#60;p&#62;input_args = {'PlotPML', true, 'PMLInside', false, 'PMLSize', [40, 40], 'PMLAlpha',100, 'DataCast', 'single'};&#60;/p&#62;
&#60;p&#62;% run the simulation&#60;br /&#62;
sensor_data = pstdElastic2D(kgrid, medium, source, sensor, input_args{:});
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
