<?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: Problem with attenuation is homogenous media</title>
		<link>http://www.k-wave.org/forum/topic/problem-with-attenuation-is-homogenous-media</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 00:21:01 +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/problem-with-attenuation-is-homogenous-media" rel="self" type="application/rss+xml" />

		<item>
			<title>marioj on "Problem with attenuation is homogenous media"</title>
			<link>http://www.k-wave.org/forum/topic/problem-with-attenuation-is-homogenous-media#post-6329</link>
			<pubDate>Thu, 08 Mar 2018 10:12:28 +0000</pubDate>
			<dc:creator>marioj</dc:creator>
			<guid isPermaLink="false">6329@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad.&#60;/p&#62;
&#60;p&#62;Thank you for your tip concerning the variation of the attenuation due to the broadband of the excitation pulse. In fact I found an error in my code in the definition of the central frequency of the pulse that give rise to a wrong calculation of the attenuation. After correction everything is ok.&#60;/p&#62;
&#60;p&#62;Again, thanks for your time.&#60;/p&#62;
&#60;p&#62;Mário
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Problem with attenuation is homogenous media"</title>
			<link>http://www.k-wave.org/forum/topic/problem-with-attenuation-is-homogenous-media#post-6318</link>
			<pubDate>Wed, 07 Mar 2018 01:46:18 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6318@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi marioj,&#60;/p&#62;
&#60;p&#62;The absorption in k-Wave follows a frequency power law, meaning that different frequencies are absorbed different amounts. The units of &#60;code&#62;medium.alpha_coeff&#60;/code&#62; are actually dB/(MHz^y cm). In your example, the short tone-burst has a relatively broad frequency range. Thus, while the 1 MHz component will be absorbed by 3 dB/cm, the higher frequencies will be absorbed more, and the lower frequencies will be absorbed less. The wave will also change shape as it propagates due to dispersion linked with absorption (in this case physical, not numerical). This means just taking the maximum or peak-to-peak will not yield the desired absorption values.&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>marioj on "Problem with attenuation is homogenous media"</title>
			<link>http://www.k-wave.org/forum/topic/problem-with-attenuation-is-homogenous-media#post-6298</link>
			<pubDate>Tue, 20 Feb 2018 18:06:28 +0000</pubDate>
			<dc:creator>marioj</dc:creator>
			<guid isPermaLink="false">6298@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello,&#60;br /&#62;
I am trying to evaluate attenuation in homogeneous media.&#60;br /&#62;
Using 3D simulation with a round transducer and a square sensor the pressure is computed at the same point in media without attenuation (a0) and in the same media by introducing attenuation (a1).&#60;br /&#62;
Using &#34;medium.alpha_coeff =3 dB/cm&#34; and &#34;medium.alpha_power = 1.01&#34;, at a distance of 20mm from the emitter the difference between a0 an a1 should be 6dB (50% of decreasing).&#60;br /&#62;
The pressure values obtained in simulation (using peak to peak or maximum values) indicate only a decreasing of around 10% after introduction of attenuation.&#60;/p&#62;
&#60;p&#62;I appreciate some help in this matter.&#60;/p&#62;
&#60;p&#62;Best regards.&#60;/p&#62;
&#60;p&#62;Here is the simulation code:&#60;/p&#62;
&#60;p&#62;%%%%%%%%%%%%%%%%%%%%%%%%%%%%&#60;/p&#62;
&#60;p&#62;% grid dimensions&#60;br /&#62;
XX=3.2e-3; YY=3.2e-3;&#60;br /&#62;
ZZ=20e-3;&#60;/p&#62;
&#60;p&#62;% grid point spacing&#60;br /&#62;
scat=200e-6;&#60;br /&#62;
dx=scat;&#60;br /&#62;
dy=scat;&#60;br /&#62;
dz=scat;&#60;/p&#62;
&#60;p&#62;% create the computational grid&#60;br /&#62;
Nx=round(XX/dx);&#60;br /&#62;
Ny=round(YY/dy);&#60;br /&#62;
Nz=round(ZZ/dz);&#60;/p&#62;
&#60;p&#62;kgrid = makeGrid(Nx, dx, Ny, dy, Nz, dz);&#60;/p&#62;
&#60;p&#62;% create the time array explicitly&#60;br /&#62;
kgrid.t_array = 0:20e-9:30e-6;&#60;/p&#62;
&#60;p&#62;% circular transducer&#60;/p&#62;
&#60;p&#62;R=round(1.5e-3/scat); %raio da sonda&#60;br /&#62;
disc = makeDisc(Nx, Ny, Nx/2, Ny/2, R); % size of grid (Nx, Ny), centre (Nx/2,Ny/2) and radius R&#60;br /&#62;
source.p_mask = zeros(Nx, Ny, Nz);&#60;br /&#62;
aa=zeros(Nx, Ny, Nz-1);% matriz de zeros com menos uma slice&#60;br /&#62;
source.p_mask=cat(3,disc,aa); % concatena o disco com a matriz aa&#60;/p&#62;
&#60;p&#62;% define properties of the input signal&#60;br /&#62;
source_strength = 10e6;    	% [Pa]&#60;br /&#62;
tone_burst_freq = 1e6; 	% [Hz]&#60;br /&#62;
tone_burst_cycles = 2;&#60;/p&#62;
&#60;p&#62;% create the input signal using toneBurst &#60;/p&#62;
&#60;p&#62;input_signal = toneBurst(1e8, tone_burst_freq, tone_burst_cycles);&#60;br /&#62;
source.p = input_signal;&#60;/p&#62;
&#60;p&#62;% define the properties of the propagation medium&#60;br /&#62;
medium.sound_speed = 1500*ones(Nx, Ny, Nz);	% [m/s]&#60;br /&#62;
medium.density = 1000*ones(Nx, Ny, Nz);    % [kg/m^3]  &#60;/p&#62;
&#60;p&#62;% receiver&#60;br /&#62;
sensor.mask = zeros(Nx, Ny, Nz);&#60;br /&#62;
sensor.mask(6:10,6:10,100:100)=1&#60;/p&#62;
&#60;p&#62;% attenuation  &#60;/p&#62;
&#60;p&#62;medium.alpha_coeff =3;&#60;br /&#62;
medium.alpha_power = 1.01;  &#60;/p&#62;
&#60;p&#62;% input arguments&#60;br /&#62;
input_args = {'DisplayMask', source.p_mask, 'DataCast', 'single','PMLInside', false,'PMLAlpha',2};%,'PMLSize', 20&#60;/p&#62;
&#60;p&#62;% run the simulation&#60;br /&#62;
sensor_data = kspaceFirstOrder3D(kgrid, medium, source, sensor, input_args{:});&#60;/p&#62;
&#60;p&#62;sensor.record ={'p'}&#60;/p&#62;
&#60;p&#62;%recorded time signal&#60;br /&#62;
pp=sum(sensor_data);
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
