<?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: Recording Accoustic Intesity</title>
		<link>http://www.k-wave.org/forum/topic/recording-accoustic-intesity</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 04:36:32 +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/recording-accoustic-intesity" rel="self" type="application/rss+xml" />

		<item>
			<title>g.schober@skz.de on "Recording Accoustic Intesity"</title>
			<link>http://www.k-wave.org/forum/topic/recording-accoustic-intesity#post-5896</link>
			<pubDate>Fri, 21 Apr 2017 10:44:37 +0000</pubDate>
			<dc:creator>g.schober@skz.de</dc:creator>
			<guid isPermaLink="false">5896@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad,&#60;br /&#62;
sorry for my delayed answer it took me some time to get a working Example but now I have one, it still doesn't give the real signal back.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;%% define important constants for the simulation

SmoothWindow=&#38;#39;Gaussian&#38;#39;;
Input={&#38;#39;DataCast&#38;#39;,&#38;#39;gpuArray-single&#38;#39;,&#38;#39;PlotSim&#38;#39;,false,&#38;#39;Smooth&#38;#39;,true,&#38;#39;SmoothWindow&#38;#39;,SmoothWindow,...
    &#38;#39;DataRecast&#38;#39;,true};

cc=[343 2330 2600 2600];
cs=[0 1060 1300 1300];
c_max=max([cc,cs]);
rho=[1.2 1380 960 960];
Ampli=2;
CFL=0.1;
hoehe=0.0076/2; %[m]
alphac=[0.0136,3,3,3];
alphas=[0,3,3,3];

frequence=218e3; %[Hz]

t_end=8e-4;  %[s]

%% define grid variables and make the grid

Nx=2^8;
Ny=Nx;
Nz=Nx;

dx=0.09/Nx;
dy=0.09/Ny;
dz=0.09/Nz;

kgrid=makeGrid(Nx,dx,Ny,dy,Nz,dz);
kgrid.t_array=makeTime(kgrid,c_max,CFL,t_end);

%% define additional matrizes and values

radius=ceil(0.005*sqrt(2)/sqrt((dy)^2+(dz)^2))+1;
pathname=[&#38;#39;D:\Laurent\Luftultraschall_Simulation\PSTDRichtigeAnregung&#38;#39;,num2str(Ampli)];
foldername=[num2str(round(Nx)),&#38;#39;x&#38;#39;,num2str(round(Ny)),&#38;#39;x&#38;#39;,num2str(round(Nz)),...
    &#38;#39;_Absorbtion_&#38;#39;,num2str(t_end*1e6),&#38;#39;_us_&#38;#39;,zeit];

%% define the model and the sensor and source position

model=false(Nx,Ny,Nz);
model((floor(-hoehe/dx)-1:ceil(hoehe/dx)+1)+round(Nx/2),:,:)=true;

sensor.mask=false(Nx,Ny,Nz);
sensor.mask(Nx/2+round((0.024+hoehe)/dx),:,:)=makeDisc(Ny,Nz,floor(Ny/2+1),floor(Nz/2+1),radius);

source.u_mask=false(Nx,Ny,Nz);
source.u_mask(Nx/2-round((0.03+hoehe)/dx),:,:)=makeDisc(Ny,Nz,floor(Ny/2+1),floor(Nz/2+1),radius);

Absorbtion=false(Nx,Ny,Nz);
Absorbtion(10:(Nx/2-round((0.03+hoehe)/dx)),:,:)= ~source.u_mask(10:(Nx/2-round((0.03+hoehe)/dx)),:,:);
Absorbtion((Nx/2+round((0.024+hoehe)/dx)):(end-10),:,:)= ~sensor.mask((Nx/2+round((0.024+hoehe)/dx)):(end-10),:,:);

%% create the input signal using toneBurst

x=toneBurst(1/kgrid.dt,218e3,0.5,&#38;#39;Envelope&#38;#39;,&#38;#39;Rectangular&#38;#39;);
x=[getWin(length(x),&#38;#39;HalfBand&#38;#39;).&#38;#39;,zeros(size(x))];

input_signal=repmat(x,1,Ampli);
input_signal = applyFilter(input_signal, 1/kgrid.dt, 2*frequence/3.5, &#38;#39;LowPass&#38;#39;);

% disp(&#38;#39;Adding noise to the input signal&#38;#39;);
% [input_signal,snr]=addNoise(input_signal,35);
% disp([&#38;#39;We have a Signal to Noise Ratio of: &#38;#39;,num2str(snr)]);
input_signal=[zeros(1,round(1e-6/kgrid.dt)),input_signal];

%% define the medium and the time array

medium.sound_speed_compression=cc(1)*ones(Nx,Ny,Nz);
medium.sound_speed_compression(model)=cc(2);
medium.sound_speed_compression(sensor.mask)=cc(3);
medium.sound_speed_compression(source.u_mask)=cc(4);

medium.sound_speed_shear=cs(1)*ones(Nx,Ny,Nz);
medium.sound_speed_shear(model)=cs(2);
medium.sound_speed_shear(sensor.mask)=cs(3);
medium.sound_speed_shear(source.u_mask)=cs(4);

medium.density=rho(1)*ones(Nx,Ny,Nz);
medium.density(model)=rho(2);
medium.density(sensor.mask)=rho(3);
medium.density(source.u_mask)=rho(4);

medium.alpha_coeff_compression=alphac(1)*ones(Nx,Ny,Nz);
medium.alpha_coeff_compression(model)=alphac(2);
medium.alpha_coeff_compression(sensor.mask)=alphac(3);
medium.alpha_coeff_compression(source.u_mask)=alphac(4);
medium.alpha_coeff_compression(Absorbtion)=200;

medium.alpha_coeff_shear=alphas(1)*ones(Nx,Ny,Nz);
medium.alpha_coeff_shear(model)=alphas(2);
medium.alpha_coeff_shear(sensor.mask)=alphas(3);
medium.alpha_coeff_shear(source.u_mask)=alphas(4);
medium.alpha_coeff_shear(Absorbtion)=200;

%% define the remaining source values

focus_point=[kgrid.x_vec(source.u_mask(:,ceil(Ny/2),ceil(Nz/2)))+0.025,0,0];

source.ux=focus(kgrid,input_signal,source.u_mask,focus_point,cc(1));
% source.u_mode=&#38;#39;dirichlet&#38;#39;;

%% define the remaining sensor values

sensor.record={&#38;#39;p&#38;#39;,&#38;#39;p_final&#38;#39;};
sensor.frequency_response=[ frequence , 13 ];
% [~,sensor.record_start_index]=findClosest(kgrid.t_array,50e-6);

%% Simulation

sensor_data=pstdElastic3D(kgrid,medium,source,sensor,Input{:});&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I want to simulate a ultrasonic NDT tester with the model is in between the source and the sensor. Also it is a sort of plastic as the medium from the model. The rest is air.&#60;br /&#62;
Best Regards
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Recording Accoustic Intesity"</title>
			<link>http://www.k-wave.org/forum/topic/recording-accoustic-intesity#post-5881</link>
			<pubDate>Tue, 04 Apr 2017 12:45:05 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5881@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;It's certainly possible to define a disk in an absorbing medium, but it's difficult to say more without knowing exactly your parameters. Do you have a working code example that you could post?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>g.schober@skz.de on "Recording Accoustic Intesity"</title>
			<link>http://www.k-wave.org/forum/topic/recording-accoustic-intesity#post-5880</link>
			<pubDate>Tue, 04 Apr 2017 10:30:15 +0000</pubDate>
			<dc:creator>g.schober@skz.de</dc:creator>
			<guid isPermaLink="false">5880@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad,&#60;/p&#62;
&#60;p&#62;thank you for answering my questions and thank you for offering this toolbox for free. It is usefull for NDT.&#60;br /&#62;
Now I have another question, would it be possible to define a disc or any other form on a transducer where the sound can leave and absorb it outside this area? Because when I tried that the simulation got unstable and reached infitiy pretty fast.&#60;br /&#62;
Should I 'simply' make my grid thinner (I had 512 grid points on a length of 100mm and my frequenz is 218kHz) or my timesteps shorter to achieve stabability? &#60;/p&#62;
&#60;p&#62;Best regards
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Recording Accoustic Intesity"</title>
			<link>http://www.k-wave.org/forum/topic/recording-accoustic-intesity#post-5878</link>
			<pubDate>Tue, 04 Apr 2017 09:54:26 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5878@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi g.schober,&#60;/p&#62;
&#60;p&#62;To answer your questions:&#60;/p&#62;
&#60;p&#62;(1) It's not currently possible to use the transducer class to record intensity.&#60;/p&#62;
&#60;p&#62;(2) Currently, only rectangular elements are supported, and the transducer must be aligned with the grid. In future versions of k-Wave, we intend to allow labelled source matrices to allow multi-element arrays of other types to be defined using the normal pressure and velocity sources.&#60;/p&#62;
&#60;p&#62;(3) &#60;code&#62;kspaceFirstOrder3D&#60;/code&#62; is a fluid model, so doesn't account for transverse waves. If you want to model shear, you should use &#60;code&#62;pstdElastic3D&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>g.schober@skz.de on "Recording Accoustic Intesity"</title>
			<link>http://www.k-wave.org/forum/topic/recording-accoustic-intesity#post-5862</link>
			<pubDate>Tue, 21 Mar 2017 14:31:21 +0000</pubDate>
			<dc:creator>g.schober@skz.de</dc:creator>
			<guid isPermaLink="false">5862@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi all,&#60;br /&#62;
is it possible to record the time varying accoustic intensity with a transducer class and will there be a possibility to do other shapes than a rectangle with the kWaveTransducer? If not what could I change in the program to do so? And I have one more question, would it be possible to add the calculation of the longitudinal and transversal aspects of the wave in the 3D version of kspaceFirstOrder?&#60;br /&#62;
Best Regards
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
