<?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: impulse response</title>
		<link>http://www.k-wave.org/forum/topic/impulse-response</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 00:47:39 +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/impulse-response" rel="self" type="application/rss+xml" />

		<item>
			<title>rainbowwhale on "impulse response"</title>
			<link>http://www.k-wave.org/forum/topic/impulse-response#post-7873</link>
			<pubDate>Wed, 07 Oct 2020 06:42:58 +0000</pubDate>
			<dc:creator>rainbowwhale</dc:creator>
			<guid isPermaLink="false">7873@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;1. Use source.p_mode = 'dirichlet'.&#60;br /&#62;
   You can find how it works in user guide. When you use 'dirichlet' command, value at source voxel is fixed at exact value as you set though, still not exactly what you want.&#60;br /&#62;
2. Consider a moving piston go forth and back. Forward moving makes compressive pressure wave and backward moving makes negative one. Change source from zeros to one is like moving forward and ones to zeros is like backward.&#60;br /&#62;
3. P^2/(rho*c) ?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>benji on "impulse response"</title>
			<link>http://www.k-wave.org/forum/topic/impulse-response#post-7871</link>
			<pubDate>Mon, 05 Oct 2020 20:38:11 +0000</pubDate>
			<dc:creator>benji</dc:creator>
			<guid isPermaLink="false">7871@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;the code above wasn't the correct one, this is - &#60;/p&#62;
&#60;p&#62;clear all; &#60;/p&#62;
&#60;p&#62;Nx=128;&#60;br /&#62;
Ny=128;&#60;br /&#62;
Nz=128;&#60;/p&#62;
&#60;p&#62;dx =0.0005;        % grid point spacing in the x direction [m]&#60;br /&#62;
dy =0.0005;        % grid point spacing in the y direction [m]&#60;br /&#62;
dz =0.0005;        % grid point spacing in the z direction [m]&#60;/p&#62;
&#60;p&#62;kgrid = makeGrid(Nx, dx, Ny, dy, Nz, dz);&#60;/p&#62;
&#60;p&#62;medium.sound_speed=1500;&#60;br /&#62;
medium.density=1000;&#60;/p&#62;
&#60;p&#62;[t,dt]=makeTime(kgrid,medium.sound_speed,[],2*10^(-5));&#60;br /&#62;
kgrid.t_array=t;&#60;/p&#62;
&#60;p&#62;source.p_mask=zeros(Nx,Ny,Nz);&#60;br /&#62;
source.p_mask(25,64,64)=1;&#60;/p&#62;
&#60;p&#62;source.p=zeros(size(t));&#60;br /&#62;
source.p(10)=1;&#60;br /&#62;
source.p=filterTimeSeries(kgrid,medium,source.p);&#60;br /&#62;
sensor.mask=zeros(Nx,Ny,Nz);&#60;br /&#62;
sensor.mask(25,64,64)=1;&#60;/p&#62;
&#60;p&#62;sensor.record={'p','u'};&#60;/p&#62;
&#60;p&#62;input_args = {};&#60;/p&#62;
&#60;p&#62;filename=['C:\Users\goral\Documents\Thesis\Matlab\benji\thesis book\try3.h5'];
&#60;/p&#62;</description>
		</item>
		<item>
			<title>benji on "impulse response"</title>
			<link>http://www.k-wave.org/forum/topic/impulse-response#post-7870</link>
			<pubDate>Mon, 05 Oct 2020 20:05:59 +0000</pubDate>
			<dc:creator>benji</dc:creator>
			<guid isPermaLink="false">7870@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I am attempting to simulate an impulse response of an acoustic channel. transmitter is omni-directional (practically a 0.5mmX0.5mmX0.5mm voxel, which a pulse pressure waveform is assigned to).&#60;br /&#62;
Two questions arising from a basic simulation I ran (code attached at the bottom of the post) :&#60;br /&#62;
1. I defined a 1 voxel pressure source and located a sensor at the same voxel (source.p_mask==sensor. mask) . I Would expect the pressure recording at the source voxel to be exactly as the source waveform assigned to source.p. In practice, pressure recording is different than source pressure.&#60;br /&#62;
2. When placing sensors on-axis Infront of the transmitter, the pressure waveform seems to be a time derivative of the source waveform (while expected to receive a scaled version of the source waveform). Why is that?&#60;br /&#62;
3. What would be the best way to evaluate the source energy?&#60;br /&#62;
Thanks ahead,&#60;br /&#62;
Benji&#60;/p&#62;
&#60;p&#62;clear all; &#60;/p&#62;
&#60;p&#62;Nx=128;&#60;br /&#62;
Ny=128;&#60;br /&#62;
Nz=128;&#60;/p&#62;
&#60;p&#62;dx =0.0005;        % grid point spacing in the x direction [m]&#60;br /&#62;
dy =0.0005;        % grid point spacing in the y direction [m]&#60;br /&#62;
dz =0.0005;        % grid point spacing in the z direction [m]&#60;/p&#62;
&#60;p&#62;kgrid = makeGrid(Nx, dx, Ny, dy, Nz, dz);&#60;/p&#62;
&#60;p&#62;medium.sound_speed=1500;&#60;br /&#62;
medium.density=1000;&#60;/p&#62;
&#60;p&#62;[t,dt]=makeTime(kgrid,medium.sound_speed,[],2*10^(-5));&#60;br /&#62;
kgrid.t_array=t;&#60;/p&#62;
&#60;p&#62;source.p_mask=zeros(Nx,Ny,Nz);&#60;br /&#62;
source.p_mask(15,64,64)=1;&#60;/p&#62;
&#60;p&#62;source.p=zeros(size(t));&#60;br /&#62;
source.p(10)=1;&#60;br /&#62;
source.p=filterTimeSeries(kgrid,medium,source.p);&#60;br /&#62;
sensor.mask=zeros(Nx,Ny,Nz);&#60;br /&#62;
sensor.mask(25,40,40)=1;&#60;/p&#62;
&#60;p&#62;sensor.record={'p','u'};&#60;/p&#62;
&#60;p&#62;input_args = {};&#60;/p&#62;
&#60;p&#62;filename=['C:\Users\goral\Documents\Thesis\Matlab\benji\thesis book\try3.h5'];&#60;/p&#62;
&#60;p&#62;sensor_data=kspaceFirstOrder3D(kgrid, medium, source, sensor, input_args{:});
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
