<?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: K-wave and time varying acoustic source</title>
		<link>http://www.k-wave.org/forum/topic/k-wave-and-time-varying-acoustic-source</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 21:34:03 +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/k-wave-and-time-varying-acoustic-source" rel="self" type="application/rss+xml" />

		<item>
			<title>lbruju on "K-wave and time varying acoustic source"</title>
			<link>http://www.k-wave.org/forum/topic/k-wave-and-time-varying-acoustic-source#post-6502</link>
			<pubDate>Mon, 25 Jun 2018 08:54:39 +0000</pubDate>
			<dc:creator>lbruju</dc:creator>
			<guid isPermaLink="false">6502@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Bradley, &#60;/p&#62;
&#60;p&#62;I have tested the simulation reducing the dt (from 4.2e-8s to 3e-8s) and I obtain the same results. &#60;/p&#62;
&#60;p&#62;The layer of fat is inside the beam path. My computational grid is 220x250x250, and the layer of fat is defined by : &#60;code&#62;soundspeed[50:120,:,:]=1478.0&#60;/code&#62; (same definition for density, alpha_coeff, specific heat capacity and thermal conductivity). So, I expect that this layer has an effect from a heating perspective. But a loss of 10 degrees at focal point (only with this layer of fat) seems wrong... &#60;/p&#62;
&#60;p&#62;(The transducer used as a radius of curvature of 35mm and a diameter of aperture of 48mm. It is composed of 16 ring elements. The time varying pressure source is a continuous sinusoidal wave with a frequency of 1.1MHz, and I have chosen an initial amplitude of  0.1MPa that seems to be acceptable.&#60;/p&#62;
&#60;p&#62;Thanks for help,&#60;br /&#62;
lbruju
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "K-wave and time varying acoustic source"</title>
			<link>http://www.k-wave.org/forum/topic/k-wave-and-time-varying-acoustic-source#post-6500</link>
			<pubDate>Sun, 24 Jun 2018 19:43:36 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6500@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi lbruju,&#60;/p&#62;
&#60;p&#62;The function &#60;code&#62;kWaveDiffusion&#60;/code&#62; is valid for heterogeneous media. As with any simulation, you should always run a s convergence test to make sure the simulation result is accurate (e.g., keep reducing &#60;code&#62;dt&#60;/code&#62; to see if you get the same answer). &#60;/p&#62;
&#60;p&#62;Is the fat layer outside of the beam path, i.e., would you expect it not to have any effect from a heating perspective? If so, and a convergence test doesn't solve the problem, then it sounds suspicious.&#60;/p&#62;
&#60;p&#62;The surface pressure to start with will depend on the exact properties of your transducer, in particular, the frequency and the focusing gain, and the properties of the medium, in particular, the absorption coefficient. I'd start with a focal pressure of a few MPa, and then adjust accordingly. &#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lbruju on "K-wave and time varying acoustic source"</title>
			<link>http://www.k-wave.org/forum/topic/k-wave-and-time-varying-acoustic-source#post-6491</link>
			<pubDate>Mon, 18 Jun 2018 16:40:24 +0000</pubDate>
			<dc:creator>lbruju</dc:creator>
			<guid isPermaLink="false">6491@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;There is another confused point (in the case of the kWaveDiffusion function is valid for heterogeneous media).&#60;br /&#62;
My simulation grid is : Nx=220, Ny=250, Nz=250 and dx=dy=dz=0.0002.&#60;br /&#62;
When I compare temperature field after 10 seconds of heating with soft tissues in all the grid (homogeneous media) and temperature field after 10 seconds of heating with exactly the same parameters except a layer of fat (heterogeneous media), a difference around 10 degrees is observed. Indeed, the temperature reached at focal point in homogeneous media is around 10 degrees higher than the temperature reached in heterogeneous media. This difference between the two simulations seems to be very high.&#60;br /&#62;
Do you think that an error could explain this big gap? Or do you think that it is possible?&#60;br /&#62;
Maybe do you know if there is an article or a document which explains the impact of adding heterogeneity in k-Wave simulation? &#60;/p&#62;
&#60;p&#62;Thanks for help,&#60;br /&#62;
lbruju
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lbruju on "K-wave and time varying acoustic source"</title>
			<link>http://www.k-wave.org/forum/topic/k-wave-and-time-varying-acoustic-source#post-6490</link>
			<pubDate>Fri, 15 Jun 2018 08:15:59 +0000</pubDate>
			<dc:creator>lbruju</dc:creator>
			<guid isPermaLink="false">6490@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
Thanks for your answer. At the beginning, I have chosen an amplitude for the continuous sinusoidal wave of 0.5MPa because this is the value used in your example &#34;Heating By A Focused Ultrasound Transducer&#34;. But my simulation is computed using a bowl-shaped transducer (in 3D) whereas in the example, the source is an arc (2D). I have finally found your sentence in the manual &#34;the surface pressure is relatively high (0.5MPa) to achieve the required focal pressure to ablate the tissue. This is because the simulation is in 2D, and thus the focusing gain is much less than an equivalent simulation in 3D using a focused bowl transducer of the same radius and diameter&#34; that makes me explain why my values for pressure and volume rate of heat deposition are very high.&#60;br /&#62;
Do you think that it can be the real explanation of my high values? Could you give me a range of usable initial amplitude to reach correct temperature after 10s of heating using a bowl-shaped transducer and to achieve the required focal pressure to ablate the tissue? &#60;/p&#62;
&#60;p&#62;I don't use the function &#60;code&#62;bioheatExact&#60;/code&#62; but the &#60;code&#62;kWaveDiffusion&#60;/code&#62; one. Can you confirm that they give almost the same result?&#60;br /&#62;
Is the kWaveDiffusion function only valid for homogeneous media too? &#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
lbruju
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "K-wave and time varying acoustic source"</title>
			<link>http://www.k-wave.org/forum/topic/k-wave-and-time-varying-acoustic-source#post-6482</link>
			<pubDate>Thu, 14 Jun 2018 22:18:54 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6482@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi lbruju,&#60;/p&#62;
&#60;p&#62;The values for pressure and volume rate of heat deposition are very high, especially the latter, so I'm not that surprised. To double check, you could try checking your implementation of the heat code against the closed form solution given in &#60;code&#62;bioheatExact.m&#60;/code&#62; (note, this is only valid for homogeneous media).&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lbruju on "K-wave and time varying acoustic source"</title>
			<link>http://www.k-wave.org/forum/topic/k-wave-and-time-varying-acoustic-source#post-6466</link>
			<pubDate>Thu, 17 May 2018 09:00:23 +0000</pubDate>
			<dc:creator>lbruju</dc:creator>
			<guid isPermaLink="false">6466@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Dr Bradley Treeby, &#60;/p&#62;
&#60;p&#62;Thanks for your answer.&#60;/p&#62;
&#60;p&#62;My results are now really closed to yours in the paper. But I am confused regarding the amplitude of the final values I obtain.&#60;br /&#62;
The source is a continuous sinusoidal wave at 1.1 MHz and with an amplitude of 0.5 MPa. The computational time is: Nt*dt=0.1ms. At the end of the computation, I obtain a pressure peak at the focal zone around 1.5e7 Pa, corresponding to a volume rate of heat deposition of 2e9 W/m^3. I have implemented the temperature calculation based on the paper &#34;non standard Fourier pseudospectral time Domain (PSTD) schemes for partial differential equations&#34;, and I obtain a final temperature at the focal zone around 61 degrees.&#60;br /&#62;
I am confused because I thought that these range of values should be obtained with an exposition time of some seconds and not, like in my simulation, with an exposition time of 0.1ms.  &#60;/p&#62;
&#60;p&#62;Do you have an idea of where the error could be? &#60;/p&#62;
&#60;p&#62;Thanks a lot, &#60;/p&#62;
&#60;p&#62;lbruju
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "K-wave and time varying acoustic source"</title>
			<link>http://www.k-wave.org/forum/topic/k-wave-and-time-varying-acoustic-source#post-6454</link>
			<pubDate>Sun, 13 May 2018 19:54:36 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6454@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi lbruju,&#60;/p&#62;
&#60;p&#62;There is a more extensive follow up to that paper &#60;a href=&#34;http://bug.medphys.ucl.ac.uk/papers/2016-Martin-IEEETUFFC.pdf&#34;&#62;here&#60;/a&#62; that might contain more details. You can find the exact process for forming the bowl in the &#60;code&#62;makeBowl&#60;/code&#62; function. For time varying signals, I normally use &#60;code&#62;createCWSignals&#60;/code&#62; in k-Wave. This generates a sine wave with a ramp at the beginning to avoid high-frequency transients at the beginning of the signal. Even if you can't use them directly, you should be able to follow the same steps in Python.&#60;/p&#62;
&#60;p&#62;For the grid discretisation, yes, that's correct. &#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lbruju on "K-wave and time varying acoustic source"</title>
			<link>http://www.k-wave.org/forum/topic/k-wave-and-time-varying-acoustic-source#post-6435</link>
			<pubDate>Wed, 25 Apr 2018 10:44:36 +0000</pubDate>
			<dc:creator>lbruju</dc:creator>
			<guid isPermaLink="false">6435@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi, &#60;/p&#62;
&#60;p&#62;Sorry for asking a lot of questions on this forum, but I definitely need help to success my simulations. So thanks again for answer.&#60;br /&#62;
I am trying to mimic the example described in the paper &#34;A Discrete Source Model for Simulating Bowl-Shaped Focused Ultrasound Transducers on Regular Grids: Design and Experimental Validation&#34;. At the end of the simulation, I don't get the expected result. I obtain something, more or less, similar, so I guess that everything is not wrong, but I don't know where could be the error. I am confused regarding some points: &#60;/p&#62;
&#60;p&#62;1) When you say &#34;Simulations were repeated using grid discretisations from 2.2 points per wavelength&#34;, does it mean that &#60;code&#62;dx=dy=dz=lambda/2.2&#60;/code&#62; where &#60;code&#62;lambda=c/f&#60;/code&#62; with &#60;code&#62;c=1492m/s and f=1.1e6Hz&#60;/code&#62;?&#60;/p&#62;
&#60;p&#62;2) For the description of the shaped-bowl. I don't understand the sentence &#34;The grid points for which θp is greater than the half arc angle θa are then removed&#34;. When I look the drawing on the top of the first page, I don't understand the accordance with &#34;the HALF arc angle&#34;. I would say &#34;The grid points for which θp is greater than the arc angle θa are then removed&#34;.&#60;/p&#62;
&#60;p&#62;3) In the paper, I don't see the information regarding the time. For the creation of the hdf5 file, I need to define &#60;code&#62;dt&#60;/code&#62; and &#60;code&#62;Nt&#60;/code&#62;. I have seen in the k-wave user manual:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;dt=(cfl*dx)/1492
  t_end=math.sqrt((Nx*dx)**2+(Ny*dy)**2+(Nz*dz)**2)/1492
  Nt=round(t_end/dt)&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Does it correct to define time constant like that?&#60;/p&#62;
&#60;p&#62;4) For the time varying input signal, it's written &#34;the source was driven by a continuous wave sinusoid at 1.1 MHz&#34;.&#60;br /&#62;
For that, I created a time vector: &#60;code&#62;t_array=np.linspace(0,Nt*dt,Nt)&#60;/code&#62; and I define:&#60;br /&#62;
&#60;code&#62;p_source_input=np.sin(1.1e6*2.0*np.pi*t_array)&#60;/code&#62; . Is it a good way for creating the wanted input signal? &#60;/p&#62;
&#60;p&#62;Thanks a lot, &#60;/p&#62;
&#60;p&#62;lbruju
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "K-wave and time varying acoustic source"</title>
			<link>http://www.k-wave.org/forum/topic/k-wave-and-time-varying-acoustic-source#post-6043</link>
			<pubDate>Thu, 06 Jul 2017 23:18:41 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6043@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Babak,&#60;/p&#62;
&#60;p&#62;Have you looked at the &#34;Photoacoustic Waveforms in 1D, 2D and 3D Example&#34;? This might answer your question.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>babakkh on "K-wave and time varying acoustic source"</title>
			<link>http://www.k-wave.org/forum/topic/k-wave-and-time-varying-acoustic-source#post-6037</link>
			<pubDate>Sun, 02 Jul 2017 22:17:05 +0000</pubDate>
			<dc:creator>babakkh</dc:creator>
			<guid isPermaLink="false">6037@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I am using k-wave 2D and I have a time varying pressure as a source. However k-wave changes the shape of my pressure source for linear acoustic which doesn't make sense at all. I have PML boundaries all around the domain. &#60;/p&#62;
&#60;p&#62;Is there anything special with k-wave and source modelling?&#60;/p&#62;
&#60;p&#62;Best regards,&#60;/p&#62;
&#60;p&#62;Babak
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
