<?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: Designing sensor input, cluster code, etc..</title>
		<link>http://www.k-wave.org/forum/topic/designing-sensor-input-cluster-code-etc</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 00:26:14 +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/designing-sensor-input-cluster-code-etc" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Designing sensor input, cluster code, etc.."</title>
			<link>http://www.k-wave.org/forum/topic/designing-sensor-input-cluster-code-etc#post-6774</link>
			<pubDate>Sun, 17 Mar 2019 21:48:34 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6774@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Archana, jmfine,&#60;/p&#62;
&#60;p&#62;Looking at the codes, they rely on a few new features in k-Wave. If you can wait another couple of weeks, the release will be out!&#60;/p&#62;
&#60;p&#62;For the focusing gain, try: H. T. O’Neil, “Theory of focusing radiators,” J. Acoust. Soc. Amer., vol. 21, no. 5, pp. 516–526, 1949.&#60;/p&#62;
&#60;p&#62;Regarding steady state, it depends on the medium heterogeneity. I would suggest running at least one simulation for a long time (e.g., 3 round trips of the domain length), and recording the pressure time series somewhere near the region of interest. You can then tell pretty easily when the transient behaviour has died out.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Archana on "Designing sensor input, cluster code, etc.."</title>
			<link>http://www.k-wave.org/forum/topic/designing-sensor-input-cluster-code-etc#post-6761</link>
			<pubDate>Mon, 25 Feb 2019 00:25:57 +0000</pubDate>
			<dc:creator>Archana</dc:creator>
			<guid isPermaLink="false">6761@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Dear Bradley Treeby,&#60;/p&#62;
&#60;p&#62;I am a graduate student working with Dr. Justin Fine for carrying out acoustic simulations involving the human skull as described in the previous posts. Please could you help me with the following:&#60;/p&#62;
&#60;p&#62;1. Please could you email me the code for deriving a source plane from measured 2D plane in water for an acoustic transducer and the references of the formula for focusing gain of a focused bowl transducer to know what pressure to set in the K-wave simulation.&#60;br /&#62;
2. How do I approximate the time required for the simulation to reached steady state?&#60;/p&#62;
&#60;p&#62;My email is: &#60;a href=&#34;mailto:amysore3@asu.edu&#34;&#62;amysore3@asu.edu&#60;/a&#62;. Thank you for your time and help.&#60;/p&#62;
&#60;p&#62;Archana Shashidhar Mysore
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jmfine on "Designing sensor input, cluster code, etc.."</title>
			<link>http://www.k-wave.org/forum/topic/designing-sensor-input-cluster-code-etc#post-6754</link>
			<pubDate>Mon, 11 Feb 2019 21:19:21 +0000</pubDate>
			<dc:creator>jmfine</dc:creator>
			<guid isPermaLink="false">6754@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Easley, thanks for the full response.  &#60;/p&#62;
&#60;p&#62;For 1.) the cluster does have singularity, from what I know.    We have people whom have experience compiling libraries etc.  I’m guessing the gpu cluster variant will be the fastest code for 3D simulations, correct?   If you would send us the code, and any tips on making either the mpi or cuda work would be greatly appreciated.  &#60;/p&#62;
&#60;p&#62;For 2.). We are doing a water tank test right now to characterize the transducer and free water and thru a skull cap.&#60;br /&#62;
The code for the source plane (option a) would be great as well to get.  For option b, yes, can you forward the references for backwards calculating the pressure that is needed.  &#60;/p&#62;
&#60;p&#62;My email is &#60;a href=&#34;mailto:jmfine@asu.esu&#34;&#62;jmfine@asu.esu&#60;/a&#62;.  But a google drive or Dropbox for those works well, too.  Thank you again for all the help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Designing sensor input, cluster code, etc.."</title>
			<link>http://www.k-wave.org/forum/topic/designing-sensor-input-cluster-code-etc#post-6725</link>
			<pubDate>Tue, 29 Jan 2019 21:39:50 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6725@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Justin,&#60;/p&#62;
&#60;p&#62;(1) Yes, we have both an MPI-code (stable now for several years) and a multi-GPU code (still somewhat experimental). We are planning on releasing the MPI code later this year. Does the cluster you work with have singularity installed? Alternatively, do you (or someone you work with) have experience compiling libraries and binaries for linux?&#60;/p&#62;
&#60;p&#62;(2) I think it's difficult to map directly from the electrical signal to an acoustic output. If possible, I'd suggest performing a characterisation measurement. There are at least two ways to go about this:&#60;/p&#62;
&#60;p&#62;(a) Experimentally measure a 2D plane in water, and then derive a source plane which you input to k-Wave. This is explained in &#60;a href=&#34;http://bug.medphys.ucl.ac.uk/papers/2018-Treeby-IEEETUFFC.pdf&#34;&#62;this paper&#60;/a&#62;. The codes to do this will be in the next release of k-Wave, but I'm happy to email them to you in advance.&#60;/p&#62;
&#60;p&#62;(b) Experimentally measure the pressure at the focus in water. You can then use the formula for the focusing gain of a focused bowl transducer, and work backwards to calculate what pressure you need to set in k-Wave. Let me know if you need references for this.&#60;/p&#62;
&#60;p&#62;(3) Yes.&#60;/p&#62;
&#60;p&#62;(4) Use a &#60;code&#62;source.p_mask&#60;/code&#62; (set to the shape of your transducer, e.g., using &#60;code&#62;makeBowl&#60;/code&#62;) and &#60;code&#62;source.p&#60;/code&#62; set to a time varying sinusoid at 0.5 MHz (e.g., using &#60;code&#62;createCWSignals&#60;/code&#62;). To make the calculations easier, I would simply set the simulation time in k-Wave to be long enough to reach steady state (i.e., ignore the actual stimulus duration).&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jmfine on "Designing sensor input, cluster code, etc.."</title>
			<link>http://www.k-wave.org/forum/topic/designing-sensor-input-cluster-code-etc#post-6694</link>
			<pubDate>Wed, 19 Dec 2018 19:21:11 +0000</pubDate>
			<dc:creator>jmfine</dc:creator>
			<guid isPermaLink="false">6694@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Dear K-Wave experts:&#60;/p&#62;
&#60;p&#62;As a quick overview driving the following questions, we stimulated a certain brain area using a 0.5 Mhz single element focused transducer.  The stimulation was pulsed, lasting for 500 ms.  Another group simulated this setup using k-wave in this paper: Numerical evaluation of the skull for human neuromodulation with transcranial focused ultrasound&#60;br /&#62;
Jerel K Mueller, Leo Ai, Priya Bansal and Wynn Legon.  &#60;/p&#62;
&#60;p&#62;The basis of our questions stems from trying to essentially replicate the simulations they did in K-wave. We have thus far written a substantial amount of code trying to do it, but still have several questions from the experts.  So, first, thanks for taking the time to help. &#60;/p&#62;
&#60;p&#62;I am currently trying to simulate the pressure field produced by an ultrasound transducer when the ultrasound signal is passed through a human skull immersed in water. The transducer has the following specifications:&#60;br /&#62;
Focal length = 36 mm     Diameter of aperture of transducer = 30 mm    Radius of curvature of transducer = 30 mm     Center frequency = 0.5 MHz&#60;/p&#62;
&#60;p&#62;The skull is immersed in water and the transducer is placed above the skull with a thin layer of water between the skull and transducer i.e. the transducer isn’t placed directly on the skull. I am trying to record the pressure field at and around the focus which is on the other side of the skull as compared to the transducer. The transducer is driven by an input signal with the following specifications:&#60;br /&#62;
Acoustic frequency = 0.5 MHz      Pulse duration = 360 μs   Pulse repetition frequency = 1.0 kHz&#60;br /&#62;
Stimulus duration = 0.5 s         Number of pulses = 500&#60;/p&#62;
&#60;p&#62;The acoustic properties of the medium are:&#60;br /&#62;
Water sound speed = 1482 m/s      Bone sound speed = 3100 m/s    Water density = 1000 kg/m3        Bone density = 2200 kg/m3             Skull porosity = 1 − CT value (in HU)/1000&#60;br /&#62;
Skull sound speed = water sound speed*skull porosity + bone sound speed*(1 - skull porosity)&#60;br /&#62;
Skull density = water density*skull porosity + bone density*(1 - skull porosity)&#60;/p&#62;
&#60;p&#62;I would be happy to post our code if that helps, or if you have code available (for example, from your paper: &#34;Accurate simulation of transcranial ultrasound propogation for ultrasonic neuromodulation and stimulation). That paper of yours and the Legon one mentioned above described exactly what we are trying to do simulate. &#60;/p&#62;
&#60;p&#62;1. The first problem we encounter is that MATLAB usually crashes while executing the code, which seems to be a memory issue. We have access to a HPC and a gpu-cluster. Do you have code available to run the rather large simulations on a GPU cluster?  I believe the cluster is 8 Tesla V100 gpus. We also have access to more traditional multi-node clusters with 128+ cores. Alternatively, is there a simple way to split up the calculations on a local computer using parallel processing and recombine the sensor data afterwards?&#60;/p&#62;
&#60;p&#62;2. A rather naive question (due to lack of electronics knowledge): Question is about replicating our physical setup.. the transducer was connected to a 40 watt linear amp with a 50dB gain, which was excited with a pulsed 2volt signal. Would this be properly implemented by changing the input signal to the transducer simply as an amplitude gain? Is there a straightforward way to set this up using the input? This is identical to the setup used in this paper: Transcranial focused ultrasound modulates the activity of primary somatosensory cortex in humans: Legon et al., Nature Neuroscience (2014).    &#60;/p&#62;
&#60;p&#62;3. Since we are trying to simulate a single-element spherically focused transducer having a focal length of 30 mm, would the radius of curvature also be 30 mm in the code?&#60;/p&#62;
&#60;p&#62;4. Finally, is it better to set the source using source.p0 or source.p_mask for these types of simulation?  Since what we are doing is a close approximation to the &#34;Simulating Transducer Field Patterns Example&#34;, I assume using source.p_mask and source.p is better.  Then, I believe this relates to my question 2 in how to make sure these values are being properly set. &#60;/p&#62;
&#60;p&#62;Thanks for taking the time to help out.  &#60;/p&#62;
&#60;p&#62;Justin Fine
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
