<?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: Frequency attenuation in Heterogeneous Media</title>
		<link>http://www.k-wave.org/forum/topic/frequency-attenuation-in-heterogeneous-media</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 14:18:45 +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/frequency-attenuation-in-heterogeneous-media" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Frequency attenuation in Heterogeneous Media"</title>
			<link>http://www.k-wave.org/forum/topic/frequency-attenuation-in-heterogeneous-media#post-6837</link>
			<pubDate>Wed, 10 Apr 2019 13:04:14 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6837@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Sumo,&#60;/p&#62;
&#60;p&#62;The second frequency (5 MHz) is above the maximum supported frequency of the grid (1.67 MHz).&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Sumo on "Frequency attenuation in Heterogeneous Media"</title>
			<link>http://www.k-wave.org/forum/topic/frequency-attenuation-in-heterogeneous-media#post-6804</link>
			<pubDate>Thu, 28 Mar 2019 10:32:32 +0000</pubDate>
			<dc:creator>Sumo</dc:creator>
			<guid isPermaLink="false">6804@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi, &#60;/p&#62;
&#60;p&#62;For simplicity I tried to measure the frequency response in free field and the same type of output is coming i.e low frequency are getting attenuated more compared to high frequency. Below is the code for that. Could you please let me know if there is something wrong with code or is there any reasoning behind this? &#60;/p&#62;
&#60;p&#62;% create the computational grid&#60;br /&#62;
Nx = 256;           % number of grid points in the x (row) direction&#60;br /&#62;
Ny = 256;           % 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 = kWaveGrid(Nx, dx, Ny, dy);&#60;/p&#62;
&#60;p&#62;% define the properties of the propagation medium&#60;br /&#62;
medium.sound_speed_compression = 334 * ones(Nx, Ny);   % [m/s]&#60;br /&#62;
medium.sound_speed_shear       = zeros(Nx, Ny);         % [m/s]&#60;br /&#62;
medium.density                 = 1.225 * ones(Nx, Ny);   % [kg/m^3]&#60;/p&#62;
&#60;p&#62;% create the time array&#60;br /&#62;
cfl   = 0.1;    % Courant-Friedrichs-Lewy number&#60;br /&#62;
t_end = 1e-4;   % [s]&#60;br /&#62;
kgrid.makeTime(max(medium.sound_speed_compression(:)), cfl, t_end);&#60;/p&#62;
&#60;p&#62;%Define source&#60;br /&#62;
source.s_mask=zeros(Nx,Ny);&#60;br /&#62;
source.s_mask(Nx/2,Ny/2)=1;&#60;/p&#62;
&#60;p&#62;f1=1e5; %Hz&#60;br /&#62;
f2=5e5;&#60;/p&#62;
&#60;p&#62;source.sxx=sin(2*pi*f1*kgrid.t_array)+sin(2*pi*f2*kgrid.t_array);&#60;br /&#62;
source.syy=sin(2*pi*f1*kgrid.t_array)+sin(2*pi*f2*kgrid.t_array);&#60;/p&#62;
&#60;p&#62;% define sensor&#60;br /&#62;
sensor.mask = zeros(Nx,Ny);&#60;br /&#62;
 sensor.mask(Nx/4,Ny/2)=1;&#60;/p&#62;
&#60;p&#62;sensor.record={'p','p_rms','I_avg'};&#60;/p&#62;
&#60;p&#62;% define a custom display mask showing the position of the interface from&#60;br /&#62;
% the fluid side&#60;br /&#62;
display_mask = false(Nx, Ny);&#60;br /&#62;
% display_mask(Nx/2 - 1, :) = 1;&#60;/p&#62;
&#60;p&#62;% define input arguments&#60;br /&#62;
input_args = {'PlotScale',[-1.5 1.5], 'PlotPML', false,...&#60;br /&#62;
    'DisplayMask', display_mask, 'DataCast', 'single','Shear',false};&#60;/p&#62;
&#60;p&#62;% run the simulation&#60;br /&#62;
sensor_data = pstdElastic2D(kgrid, medium, source, sensor, input_args{:});&#60;br /&#62;
sensor_data_reordered = reorderSensorData(kgrid, sensor, sensor_data);&#60;/p&#62;
&#60;p&#62;% =========================================================================&#60;br /&#62;
% VISUALISATION&#60;br /&#62;
% =========================================================================&#60;/p&#62;
&#60;p&#62;% plot source and sensor data: Time and Frequency&#60;/p&#62;
&#60;p&#62;figure;&#60;br /&#62;
[t_sc, scale, prefix] = scaleSI(max(kgrid.t_array(:)));&#60;/p&#62;
&#60;p&#62;subplot(2, 2, 1);&#60;br /&#62;
plot(kgrid.t_array * scale, source.sxx, 'k-');&#60;br /&#62;
xlabel(['Time [' prefix 's]']);&#60;br /&#62;
ylabel('Signal Amplitude');&#60;br /&#62;
axis tight;&#60;br /&#62;
title('Input Pressure Signal');&#60;/p&#62;
&#60;p&#62;L=length(source.sxx);&#60;br /&#62;
fs=1/kgrid.dt;&#60;br /&#62;
t=kgrid.t_array; dt=kgrid.dt;&#60;br /&#62;
sc=fs/L;&#60;br /&#62;
source_freq=fft(source.sxx,L)*dt;&#60;/p&#62;
&#60;p&#62;f=(fs/2)*linspace(0,1,L/2+1); %Frequency Range&#60;/p&#62;
&#60;p&#62;amp=2*sc*abs(source_freq(1:L/2+1)); %Single sided spectrum&#60;/p&#62;
&#60;p&#62;subplot(2,2,3);&#60;br /&#62;
plot(f,amp);&#60;/p&#62;
&#60;p&#62;subplot(2, 2, 2);&#60;br /&#62;
plot(kgrid.t_array * scale, sensor_data_reordered.p, 'r-');&#60;br /&#62;
xlabel(['Time [' prefix 's]']);&#60;br /&#62;
ylabel('Signal Amplitude');&#60;br /&#62;
axis tight;&#60;br /&#62;
title('Sensor Pressure Signal');&#60;/p&#62;
&#60;p&#62;L=length(sensor_data.p);&#60;br /&#62;
sc=fs/L;&#60;/p&#62;
&#60;p&#62;sensor_freq=fft(sensor_data.p,L)*dt; %% fourier transform of data&#60;/p&#62;
&#60;p&#62;f=(fs/2)*linspace(0,1,L/2+1); % frequency range&#60;/p&#62;
&#60;p&#62;amp=2*sc*abs(sensor_freq(1:L/2+1)); % Single sided spectrum&#60;/p&#62;
&#60;p&#62;subplot(2,2,4);&#60;br /&#62;
plot(f,amp);&#60;/p&#62;
&#60;p&#62;xlabel('Frequecny [Hz]');&#60;br /&#62;
ylabel('Signal Amplitude');&#60;br /&#62;
axis tight;&#60;br /&#62;
title('Sensor frequency');&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Sumo on "Frequency attenuation in Heterogeneous Media"</title>
			<link>http://www.k-wave.org/forum/topic/frequency-attenuation-in-heterogeneous-media#post-6798</link>
			<pubDate>Fri, 22 Mar 2019 15:53:21 +0000</pubDate>
			<dc:creator>Sumo</dc:creator>
			<guid isPermaLink="false">6798@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad,&#60;/p&#62;
&#60;p&#62;Thanks for your response. It helped me. &#60;/p&#62;
&#60;p&#62;Thanks&#60;br /&#62;
Sumo
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Frequency attenuation in Heterogeneous Media"</title>
			<link>http://www.k-wave.org/forum/topic/frequency-attenuation-in-heterogeneous-media#post-6796</link>
			<pubDate>Thu, 21 Mar 2019 00:08:46 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6796@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Sumo,&#60;/p&#62;
&#60;p&#62;The transmission through a layered medium depends on the frequency in a cyclical manner. The maximum transmission is when the layer thickness is a quarter of the acoustic wavelength (or higher round-trip multiple). See &#60;a href=&#34;http://cleveland.focused-ultrasound.org/PMB%202006%20V51%20P2293.pdf&#34;&#62;this paper&#60;/a&#62; for example. Thus, it's not as simple as high frequencies are more attenuated than low frequencies. &#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Sumo on "Frequency attenuation in Heterogeneous Media"</title>
			<link>http://www.k-wave.org/forum/topic/frequency-attenuation-in-heterogeneous-media#post-6795</link>
			<pubDate>Wed, 20 Mar 2019 20:43:01 +0000</pubDate>
			<dc:creator>Sumo</dc:creator>
			<guid isPermaLink="false">6795@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I have a heterogeneous medium consisting of two different densities and sound velocity. For simplicity I am neglecting the compression waves. The schematic of my domain is something like this:&#60;/p&#62;
&#60;p&#62;000000000000000000000&#60;br /&#62;
00000000SEN0000000000&#60;br /&#62;
000000000000000000000&#60;br /&#62;
111111111111111111111&#60;br /&#62;
111111111111111111111&#60;br /&#62;
000000000000000000000&#60;br /&#62;
000000000SRC000000000&#60;br /&#62;
000000000000000000000&#60;/p&#62;
&#60;p&#62;0 and 1 represents two different mediums, SRC and SEN are point source and sensor respectively. My source consists of multiple frequencies and I am trying to see which frequencies are getting attenuated due to barrier. When I am plotting the sensor data, the results are completely opposite. Low frequencies are getting attenuated more as compared to high frequencies which is not true in the real case. Could you please let me know if I am doing something wrong or is there any thing which can explain this result?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
