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

		<item>
			<title>bencox on "equivalence of wave equations"</title>
			<link>http://www.k-wave.org/forum/topic/equivalence-of-wave-equations#post-4757</link>
			<pubDate>Sun, 05 Oct 2014 10:13:43 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">4757@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;HI Hamid, &#60;/p&#62;
&#60;p&#62;Define your medium properties so that the matrices for sound_speed and density are the same size as the domain:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;% define the medium properties&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;medium.sound_speed = 1500*ones(Nx, Nz);&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;medium.sound_speed(1:50,:) = 1600;&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;medium.density = 1000*ones(Nx, Nz);&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;medium.density(1:50,:) = 1040;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Hamid on "equivalence of wave equations"</title>
			<link>http://www.k-wave.org/forum/topic/equivalence-of-wave-equations#post-4756</link>
			<pubDate>Fri, 03 Oct 2014 21:38:20 +0000</pubDate>
			<dc:creator>Hamid</dc:creator>
			<guid isPermaLink="false">4756@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;Could you please give me some advice on the following paper of yours?&#60;br /&#62;
&#60;a href=&#34;http://www.k-wave.org/papers/2010-Treeby-JBO.pdf&#34; rel=&#34;nofollow&#34;&#62;http://www.k-wave.org/papers/2010-Treeby-JBO.pdf&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I would like to generate some simulation data from lossless medium, as you mentioned in the paper the combination of the linear first order equations would be a single second order wave equation. In such a medium I want to put a source and detect the signals. I tried the code you brought in the paper&#60;/p&#62;
&#60;p&#62;% create the computational grid&#60;br /&#62;
Nx = 256;&#60;br /&#62;
Nz = 128;&#60;br /&#62;
dx = 50e-6;&#60;br /&#62;
dz = 50e-6;&#60;br /&#62;
kgrid = makeGrid(Nx, dx, Nz, dz);&#60;br /&#62;
% define the medium properties&#60;br /&#62;
medium.sound_speed = 1500&#60;br /&#62;
ones(Nz, Nx);&#60;br /&#62;
medium.sound_speed(1:50,:) = 1600;&#60;br /&#62;
medium.density = 1000&#60;br /&#62;
ones(Nz, Nx);&#60;br /&#62;
medium.density(1:50,:) = 1040;&#60;br /&#62;
% define the initial pressure&#60;br /&#62;
disc_x_pos = 120;&#60;br /&#62;
disc_z_pos = 75;&#60;br /&#62;
disc_radius = 8;&#60;br /&#62;
disc_mag = 3;&#60;br /&#62;
source.p0 = disc_mag*makeDisc(Nx, Nz,disc_x_pos, disc_z_pos, disc_radius);&#60;br /&#62;
% define a centered circular sensor&#60;br /&#62;
sensor_radius = 2.5e-3;&#60;br /&#62;
num_sensor_points = 50;&#60;br /&#62;
sensor.mask = makeCartCircle(sensor_radius, num_sensor_points);&#60;br /&#62;
% run the simulation&#60;br /&#62;
sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor);&#60;/p&#62;
&#60;p&#62;But it didn’t work and I got the error message of &#60;/p&#62;
&#60;p&#62;Running k-Wave simulation...&#60;br /&#62;
  start time: 03-Oct-2014 13:26:20&#60;br /&#62;
  reference sound speed: 1600m/s&#60;br /&#62;
  dt: 9.375ns, t_end: 8.9437us, time steps: 955&#60;br /&#62;
  input grid size: 256 by 128 grid points (12.8 by 6.4mm)&#60;br /&#62;
  maximum supported frequency: 16MHz&#60;br /&#62;
  smoothing p0 distribution...&#60;br /&#62;
  calculating Delaunay triangulation...&#60;br /&#62;
  precomputation completed in 0.20481s&#60;br /&#62;
  starting time loop...&#60;br /&#62;
Error using  .*&#60;br /&#62;
Matrix dimensions must agree.&#60;/p&#62;
&#60;p&#62;Error in kspaceFirstOrder2D (line 762)&#60;br /&#62;
    ux_sgx = bsxfun(@times, pml_x_sgx, ...&#60;/p&#62;
&#60;p&#62;Error in Untitled (line 25)&#60;br /&#62;
sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor);&#60;/p&#62;
&#60;p&#62;Thanks,
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bencox on "equivalence of wave equations"</title>
			<link>http://www.k-wave.org/forum/topic/equivalence-of-wave-equations#post-1148</link>
			<pubDate>Mon, 31 Dec 2012 01:08:13 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">1148@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Chao,&#60;/p&#62;
&#60;p&#62;Good question. Putting a source at the boundary is not the same as imposing a time-varying Dirichlet boundary condition. In the former you are adding the pressure to the existing acoustic field, in the latter you replace whatever the value of the existing field is with the new value. Imposing the time reversed pressure as a boundary condition will give an exact reconstruction (if you have a closed measurement surface) but adding it as a source will not. (It will probably give something resembling the correct image but it won't be exact.)&#60;/p&#62;
&#60;p&#62;Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>huangchao on "equivalence of wave equations"</title>
			<link>http://www.k-wave.org/forum/topic/equivalence-of-wave-equations#post-1147</link>
			<pubDate>Sun, 30 Dec 2012 20:50:08 +0000</pubDate>
			<dc:creator>huangchao</dc:creator>
			<guid isPermaLink="false">1147@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Dr. Cox,&#60;/p&#62;
&#60;p&#62;I have another related quick question:&#60;/p&#62;
&#60;p&#62;In time reversal reconstruction, the homogeneous wave equation □p(x,t)=0 subjects to initial and boundary conditions: p(x,t=0)=0, dp/dt = 0, p(x_s,t)=p_m(x_s,T-t), where □ is the wave operator, x_s is the sensor location, and p_m is the measurement.&#60;/p&#62;
&#60;p&#62;I wonder if the above homogeneous wave equation with initial and boundary conditions is equivalent to the inhomogeneous wave equation □p(x,t)=p_m(x_s,T-t) subjecting to only initial conditions: p(x,t=0)=0, dp/dt = 0, where I just move the boundary condition to the source term and leave the initial conditions unchanged.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Chao
&#60;/p&#62;</description>
		</item>
		<item>
			<title>huangchao on "equivalence of wave equations"</title>
			<link>http://www.k-wave.org/forum/topic/equivalence-of-wave-equations#post-1115</link>
			<pubDate>Mon, 17 Dec 2012 00:51:41 +0000</pubDate>
			<dc:creator>huangchao</dc:creator>
			<guid isPermaLink="false">1115@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I see, so the inhomogeneous wave equation + the Sommerfeld radiation condition is equivalent to the initial value problem.&#60;/p&#62;
&#60;p&#62;Thanks for your help.&#60;/p&#62;
&#60;p&#62;Chao
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bencox on "equivalence of wave equations"</title>
			<link>http://www.k-wave.org/forum/topic/equivalence-of-wave-equations#post-1114</link>
			<pubDate>Mon, 17 Dec 2012 00:39:00 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">1114@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Chao,&#60;/p&#62;
&#60;p&#62;In the initial value problem the initial conditions are taken as p(t=0) = G*H, where G is the Grueneisen parameter, and dp/dt = 0, which is satisfied if the particle velocity is initially zero. The boundary conditions could be the same in both cases; we usually assume free space conditions, ie. satisfying the Sommerfeld radiation condition. Does that help?&#60;/p&#62;
&#60;p&#62;Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>huangchao on "equivalence of wave equations"</title>
			<link>http://www.k-wave.org/forum/topic/equivalence-of-wave-equations#post-1113</link>
			<pubDate>Mon, 17 Dec 2012 00:05:59 +0000</pubDate>
			<dc:creator>huangchao</dc:creator>
			<guid isPermaLink="false">1113@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Dr. Cox and Dr. Treeby,&#60;/p&#62;
&#60;p&#62;In your papers, you said that when the source term can be written as H(x,t)=A(x)δ(t), the inhomogeneous wave equation with source terms was equivalent to the initial value problem, where the initial conditions were given.&#60;/p&#62;
&#60;p&#62;But in order to show that the solutions of the two PDEs are the same, additional conditions are also required when solving the inhomogeneous wave equation so that its solution can be specified, so I wonder what are those additional conditions? Are they the boundary conditions that the acoustic pressure and its spatial derivative equal zeros at infinity, or the initial conditions that the acoustic pressure and its temporal derivative equal zeros at t=0.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Chao
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
