<?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: Result Verification against Green Function</title>
		<link>http://www.k-wave.org/forum/topic/result-verification-against-green-function</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 00:56:07 +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/result-verification-against-green-function" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Result Verification against Green Function"</title>
			<link>http://www.k-wave.org/forum/topic/result-verification-against-green-function#post-7952</link>
			<pubDate>Thu, 26 Nov 2020 13:57:53 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">7952@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Are you referring to Eqs. (17) and (18) in &#60;a href=&#34;http://bug.medphys.ucl.ac.uk/papers/2010-Treeby-JASA.pdf&#34;&#62;this paper&#60;/a&#62;? This can be derived by splitting the wavenumber into real and imaginary parts similar to the derivation that follows in the same section of the paper. See also &#60;a href=&#34;https://doi.org/10.1121/1.2977669&#34;&#62;this paper&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Brad
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anujkaushik on "Result Verification against Green Function"</title>
			<link>http://www.k-wave.org/forum/topic/result-verification-against-green-function#post-7932</link>
			<pubDate>Tue, 24 Nov 2020 07:10:36 +0000</pubDate>
			<dc:creator>Anujkaushik</dc:creator>
			<guid isPermaLink="false">7932@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Dear Professor,&#60;br /&#62;
My question is how you converted the Eq.&#60;/p&#62;
&#60;p&#62;K(w)  = w/c_0 - (alpha_0)x(-i)^(y+1)x(w)^y / cos(yxpi/2)&#60;/p&#62;
&#60;p&#62;to &#60;/p&#62;
&#60;p&#62;K(w)  = w/c_0 + (alpha_0)xtan(yxpi/2)x(w)^y.&#60;/p&#62;
&#60;p&#62;Please clarify the mathematics between these two.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>aelbekkali on "Result Verification against Green Function"</title>
			<link>http://www.k-wave.org/forum/topic/result-verification-against-green-function#post-7929</link>
			<pubDate>Sat, 21 Nov 2020 23:16:12 +0000</pubDate>
			<dc:creator>aelbekkali</dc:creator>
			<guid isPermaLink="false">7929@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi all&#60;/p&#62;
&#60;p&#62;I am looking for a formula for green function adapted to 3D model.&#60;br /&#62;
I am with this k-wave 3D example&#60;br /&#62;
&#60;a href=&#34;http://www.k-wave.org/documentation/example_us_bmode_linear_transducer.php&#34; rel=&#34;nofollow&#34;&#62;http://www.k-wave.org/documentation/example_us_bmode_linear_transducer.php&#60;/a&#62;&#60;br /&#62;
I need to compute the background green function of the medium&#60;br /&#62;
any help? thanks you
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cleskiw on "Result Verification against Green Function"</title>
			<link>http://www.k-wave.org/forum/topic/result-verification-against-green-function#post-4563</link>
			<pubDate>Sun, 08 Jun 2014 05:48:53 +0000</pubDate>
			<dc:creator>cleskiw</dc:creator>
			<guid isPermaLink="false">4563@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;by gain I mean the amplitude and phase difference in a sinusoid, when comparing the source sinusoid, and the sinusoid measured at some distance x away from the source.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cleskiw on "Result Verification against Green Function"</title>
			<link>http://www.k-wave.org/forum/topic/result-verification-against-green-function#post-4562</link>
			<pubDate>Sun, 08 Jun 2014 05:46:51 +0000</pubDate>
			<dc:creator>cleskiw</dc:creator>
			<guid isPermaLink="false">4562@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Sorry I just saw this.  For some reason I have to divide the K-Wave result by 2.6 to match the Greens function result.&#60;/p&#62;
&#60;p&#62;I plot the complex gain as a function of distance away from the source for both the K-Wave results and the Green Function result.  The profiles look the same (ie a graph of gain vs distance x away from source), but are not identical unless I divide the K-Wave result by 2.6.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bencox on "Result Verification against Green Function"</title>
			<link>http://www.k-wave.org/forum/topic/result-verification-against-green-function#post-4557</link>
			<pubDate>Fri, 30 May 2014 11:22:27 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">4557@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Chris,&#60;/p&#62;
&#60;p&#62;When you say the gain is somewhat different, what do you mean?&#60;/p&#62;
&#60;p&#62;Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cleskiw on "Result Verification against Green Function"</title>
			<link>http://www.k-wave.org/forum/topic/result-verification-against-green-function#post-4556</link>
			<pubDate>Thu, 29 May 2014 20:50:14 +0000</pubDate>
			<dc:creator>cleskiw</dc:creator>
			<guid isPermaLink="false">4556@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Yes that helped.  Now the desired source waveform is what I measure with a sensor at the source location.  The results also seem consistent with the Green Function result.  The gain is somewhat different but is consistent across different values of x away from the source so that the envelope matches the Green Function envelope - just at a seemingly constant offset.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bencox on "Result Verification against Green Function"</title>
			<link>http://www.k-wave.org/forum/topic/result-verification-against-green-function#post-4555</link>
			<pubDate>Thu, 29 May 2014 00:49:04 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">4555@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Chris, &#60;/p&#62;
&#60;p&#62;Have you tried setting &#60;code&#62;source.p_mode = &#38;#39;dirichlet&#38;#39;;&#60;/code&#62;? The default setting (&#60;code&#62;&#38;#39;additive&#38;#39;&#60;/code&#62;) adds each successive sample from &#60;code&#62;source.p&#60;/code&#62; to whatever amplitude is already at the source position, so the resulting wave amplitude differs from the amplitude defined in &#60;code&#62;source.p&#60;/code&#62; and depends on the CFL number. However, using the setting &#60;code&#62;&#38;#39;dirichlet&#38;#39;&#60;/code&#62; replaces the amplitude at the source position with the value in &#60;code&#62;source.p&#60;/code&#62;, ie. forces it to be the value in &#60;code&#62;source.p&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;Does that help?&#60;/p&#62;
&#60;p&#62;Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cleskiw on "Result Verification against Green Function"</title>
			<link>http://www.k-wave.org/forum/topic/result-verification-against-green-function#post-4552</link>
			<pubDate>Tue, 27 May 2014 23:09:51 +0000</pubDate>
			<dc:creator>cleskiw</dc:creator>
			<guid isPermaLink="false">4552@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;In a single source, single sensor, 2D homogeneous scenario should I not expect to be able to verify the k-Wave simulation result against the homogeneous acoustic 2D solution?  I am specifically referring to the solution typically given by the 2D Green Function: G(x,x')=i/4*H_{0}^{1}(2*pi*f/c*&#124;x-x'&#124;), where H_{0}^{1} is the Hankel function.&#60;/p&#62;
&#60;p&#62;I've been trying to use a simple sinusoidal point source, with two sensor locations, one at the source and one at some x distance away.  The sine wave I measure should be able to be predicted by applying the gain and phase shift given by the above equation, but I notice that even if I adjust the grid spacing, I do not get consistent results.&#60;/p&#62;
&#60;p&#62;I notice:&#60;br /&#62;
1) the source and sensor at the source give different values, and altering the grid resolution (making it finer) reduces the amplitude recorded by the sensor at the source by orders of magnitude while trying to converge on a consistent record (i.e. when verifying grid is fine enough)&#60;br /&#62;
2) If I tweak what I can to get the same result as the Green Function, they do not match if I change the distance of the target sensor.&#60;/p&#62;
&#60;p&#62;Nx = 128*8;           % number of grid points in the x (row) direction&#60;br /&#62;
Ny = 64;           % number of grid points in the y (column) direction&#60;br /&#62;
dx = 50e-3/Nx;    	% grid point spacing in the x direction [m]&#60;br /&#62;
dy = dx;            % grid point spacing in the y direction [m]&#60;br /&#62;
kgrid = makeGrid(Nx, dx, Ny, dy);&#60;br /&#62;
medium.sound_speed = 1500;  % [m/s]&#60;br /&#62;
[kgrid.t_array, dt] = makeTime(kgrid, medium.sound_speed);&#60;br /&#62;
source.p_mask = zeros(Nx, Ny);&#60;br /&#62;
source.p_mask(end - Nx/4, Ny/2) = 1;&#60;br /&#62;
source_freq = 0.25e6;   % [Hz]&#60;br /&#62;
source_mag = 1;         % [Pa]&#60;br /&#62;
source.p = source_mag*cos(2*pi*source_freq*kgrid.t_array);&#60;br /&#62;
source.p = filterTimeSeries(kgrid, medium, source.p);&#60;br /&#62;
sensor.mask = zeros(Nx, Ny);&#60;br /&#62;
sensor.mask(Nx/2, Ny/2) = 1;&#60;br /&#62;
sensor.mask(end-Nx/4, Ny/2) = 1;&#60;br /&#62;
sensor.record = {'p', 'p_final'};&#60;br /&#62;
sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor, 'PlotLayout', true);&#60;/p&#62;
&#60;p&#62;Do you have any issues with my approach, or notice any obvious errors?&#60;/p&#62;
&#60;p&#62;thanks,&#60;br /&#62;
-Chris
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
