<?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: Doubt about Pressure Amplitude recovered</title>
		<link>http://www.k-wave.org/forum/topic/doubt-about-pressure-amplitude-recovered</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 01:48:11 +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/doubt-about-pressure-amplitude-recovered" rel="self" type="application/rss+xml" />

		<item>
			<title>bencox on "Doubt about Pressure Amplitude recovered"</title>
			<link>http://www.k-wave.org/forum/topic/doubt-about-pressure-amplitude-recovered#post-5763</link>
			<pubDate>Tue, 22 Nov 2016 16:54:37 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">5763@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Manuelbcabo, &#60;/p&#62;
&#60;p&#62;The reason may be that you are using a time-varying, additive source. Have a look at this post for the reason why that affects the source amplitude, and get back to us if it doesn't answer your question:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.k-wave.org/forum/topic/pressure-depending-on-number-of-gridpoints&#34;&#62;http://www.k-wave.org/forum/topic/pressure-depending-on-number-of-gridpoints&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;br /&#62;
Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>manuelbcabo on "Doubt about Pressure Amplitude recovered"</title>
			<link>http://www.k-wave.org/forum/topic/doubt-about-pressure-amplitude-recovered#post-5753</link>
			<pubDate>Sat, 19 Nov 2016 11:23:28 +0000</pubDate>
			<dc:creator>manuelbcabo</dc:creator>
			<guid isPermaLink="false">5753@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Thanks for the reply, I've checked 1/sqrt(x) decay and fit perfectly the results of the simulation.&#60;br /&#62;
One thing that I noticed, is that when I feed the simulation with pressure P0 ~ 1e6 Pa assuming sinusoidal signal (tipically I'm working with 120kHz) I obtain pressure signal near to the source greater than P0 (I'm interested to study the threshold for parametric difference beam in function of directivity of planar transducer ).&#60;br /&#62;
This depends on CFL value? I'm assuming a CFL = ((c_max*dt)/(dx))and spatial step of lambda/6 over x and y axis.&#60;/p&#62;
&#60;p&#62;Thanks again for the help&#60;/p&#62;
&#60;p&#62;Cheers.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bencox on "Doubt about Pressure Amplitude recovered"</title>
			<link>http://www.k-wave.org/forum/topic/doubt-about-pressure-amplitude-recovered#post-5751</link>
			<pubDate>Fri, 18 Nov 2016 21:25:55 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">5751@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Manuelbcabo,&#60;/p&#62;
&#60;p&#62;You've done a 2D simulation - you used kspaceFirstOrder2D - so you would expect a 1/sqrt(r) type of decay with distance r (cylindrical spreading), which is what you are seeing. In 3D, using kspaceFirstOrder3D, you would see a 1/r decay (spherical spreading).&#60;/p&#62;
&#60;p&#62;Kind regards,&#60;br /&#62;
Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>manuelbcabo on "Doubt about Pressure Amplitude recovered"</title>
			<link>http://www.k-wave.org/forum/topic/doubt-about-pressure-amplitude-recovered#post-5747</link>
			<pubDate>Wed, 16 Nov 2016 14:40:47 +0000</pubDate>
			<dc:creator>manuelbcabo</dc:creator>
			<guid isPermaLink="false">5747@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello all, &#60;/p&#62;
&#60;p&#62;I'm trying to understand how works K-wave toolbox.&#60;br /&#62;
I'm trying to simulate the propagation of acoustic signal in water and I would like understand well the attenuation of acoustic signal in k-Wave simulations, because next step is simulate non linear parametric armonics in water.&#60;br /&#62;
With this aim I simulate a easy simulation avoiding the alfa coeff and alfa power and observing how its applied the radial divergence of the acoustic field (that I expect something related to P0/distance).&#60;br /&#62;
I found a little surprise when I recover the data at sensor points and if I plot pressure over distance for sensor_data.p_max and theoretic P0/distance seems that are not in good agreement (probably because I miss something at simulation code...).&#60;/p&#62;
&#60;p&#62;Any help would be very appreciated.&#60;/p&#62;
&#60;p&#62;Here you can find a link for plots&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://drive.google.com/open?id=0B2P-tB_iDXRidDN3SEJoV3IwOEU&#34; rel=&#34;nofollow&#34;&#62;https://drive.google.com/open?id=0B2P-tB_iDXRidDN3SEJoV3IwOEU&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://drive.google.com/open?id=0B2P-tB_iDXRiNGNDV1BwcEQ3d2c&#34; rel=&#34;nofollow&#34;&#62;https://drive.google.com/open?id=0B2P-tB_iDXRiNGNDV1BwcEQ3d2c&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;And here is the code used:&#60;/p&#62;
&#60;p&#62;________________________________________________________________________________________&#60;/p&#62;
&#60;p&#62;close all&#60;br /&#62;
clear all&#60;br /&#62;
clc &#60;/p&#62;
&#60;p&#62;%Mallado del medio.&#60;br /&#62;
f_max = 50000; % Frecuencia de emision del plano radiante. [Hz]&#60;br /&#62;
c_max = 1500; % Velocidad maxima del medio [m/s]&#60;br /&#62;
long_onda = c_max/f_max; %Longitud de onda de la señal emitida&#60;br /&#62;
step_min = long_onda/6; % Precision minima requerida para simulacion lineal en el mallado&#60;/p&#62;
&#60;p&#62;dx = 2e-03; % Paso espacial para realizar el mallado debe ser menos a step_min&#60;br /&#62;
dy = 2e-03;&#60;/p&#62;
&#60;p&#62;% if dx &#38;gt; step_min&#60;br /&#62;
%     disp('El mallado espacial debe poseer un paso menor.')&#60;br /&#62;
%     break&#60;br /&#62;
% end&#60;br /&#62;
% if dx &#38;lt;= step_min&#60;br /&#62;
%     disp('El mallado espacial es menor a long onda/6')&#60;br /&#62;
% end&#60;/p&#62;
&#60;p&#62;x = 0.5;    % Dimensiones de la malla en la direccion x [m]&#60;br /&#62;
y = 2.2;    % Dimensiones de la malla en la direccion y [m]&#60;/p&#62;
&#60;p&#62;Nx = round(x/dx); % Elementos de la malla direccion X&#60;br /&#62;
Ny = round(y/dy); % Elementos de la malla direccion X&#60;/p&#62;
&#60;p&#62;kgrid = makeGrid(Nx, dx, Ny, dy);% Se define la mallado donde se realizara la simulacion.&#60;br /&#62;
[t_array, dt1] = makeTime(kgrid, c_max);&#60;br /&#62;
CFL = (c_max*dt1)/(dx);&#60;br /&#62;
CFL = 0.6;&#60;br /&#62;
t_end = y/c_max;&#60;br /&#62;
[kgrid.t_array, dt] = makeTime(kgrid, c_max, CFL, (t_end));&#60;/p&#62;
&#60;p&#62;%Propiedades de los medios.&#60;br /&#62;
medium.sound_speed = 1500*ones(Nx, Ny); % [m/s] Velocidad del sonido en agua.&#60;br /&#62;
medium.density = 1000*ones(Nx, Ny); % [kg/m^3] Densidad del agua&#60;/p&#62;
&#60;p&#62;%Parametrizacion de la atenuacion del medio (El valor del aire no esta bien definido)&#60;br /&#62;
%  att1 = 2.17e-3; %Attenuation dB/cm·MHz2&#60;br /&#62;
%  medium.alpha_coeff=att1*ones(Nx, Ny);&#60;br /&#62;
%  medium.alpha_power=2;&#60;/p&#62;
&#60;p&#62;%Propiedades del sistema emisor 2D&#60;/p&#62;
&#60;p&#62;radio_dist = 0.0375;%Radio del disco emisor.&#60;br /&#62;
r = radio_dist/dx;&#60;br /&#62;
em_pos_y = round(0.1/dx); %El emisor se coloca en la posicion 0.5m&#60;br /&#62;
source.p_mask = zeros(Nx, Ny);% Se genera  el espacio 2D  donde colocar la linea 2D&#60;br /&#62;
source.p_mask(round((Nx/2)-r):round((Nx/2)+r),em_pos_y) = 1;&#60;br /&#62;
f_signal = 50000;&#60;br /&#62;
Mag_Pa = 15;&#60;br /&#62;
signal = Mag_Pa.*sin(2*pi*f_signal.*t_array);&#60;br /&#62;
%signal = signal(1:1000);&#60;br /&#62;
source.p = signal;&#60;/p&#62;
&#60;p&#62;%Se genera el array de sensores.&#60;/p&#62;
&#60;p&#62;rec_pos_y = round(0.2/dx):round(0.1/dx):round(2/dx);&#60;br /&#62;
rec_pos_x = round(Nx/2);&#60;br /&#62;
sensor.mask =  zeros(Nx, Ny);&#60;br /&#62;
sensor.mask(rec_pos_x,rec_pos_y) = 1;&#60;br /&#62;
% imagesc(sensor.mask); colorbar %Comprobar la&#60;/p&#62;
&#60;p&#62;sensor.record = {'p', 'p_max'};&#60;br /&#62;
input_args = { 'DisplayMask', source.p_mask&#124;sensor.mask, 'RecordMovie', true, 'MovieType', 'image', 'MovieName', 'Atenuacion_50kHz_Prueba_0.2m_2m_01m_NOCOEFF', 'PMLInside', false};&#60;br /&#62;
sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor,input_args{:});&#60;br /&#62;
D_P = [dx.*rec_pos_y' sensor_data.p_max];&#60;br /&#62;
% Atenuacion comprobacion&#60;/p&#62;
&#60;p&#62;save('Atenuacion_50kHz_Prueba_0.2m_2m_01m_NOCOEFF.txt','D_P','-ascii')
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
