<?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: How to simulate the proton beam and proton-induced acoustic emission?</title>
		<link>http://www.k-wave.org/forum/topic/how-to-simulate-the-proton-beam-and-proton-induced-acoustic-emission</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 01:03:16 +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/how-to-simulate-the-proton-beam-and-proton-induced-acoustic-emission" rel="self" type="application/rss+xml" />

		<item>
			<title>HustYjq on "How to simulate the proton beam and proton-induced acoustic emission?"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-simulate-the-proton-beam-and-proton-induced-acoustic-emission#post-7774</link>
			<pubDate>Wed, 26 Aug 2020 10:27:55 +0000</pubDate>
			<dc:creator>HustYjq</dc:creator>
			<guid isPermaLink="false">7774@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,zhuoxiaoyu&#60;br /&#62;
Have you worked out this question?I have the same problem with you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bencox on "How to simulate the proton beam and proton-induced acoustic emission?"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-simulate-the-proton-beam-and-proton-induced-acoustic-emission#post-6555</link>
			<pubDate>Thu, 16 Aug 2018 20:39:09 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">6555@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Hui,&#60;/p&#62;
&#60;p&#62;Each row of the matrix &#60;code&#62;source.p&#60;/code&#62; should be a time series.&#60;br /&#62;
Each row (each time series) is the source applied at one source point in &#60;code&#62;source.p_mask&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;The source points are ordered columnwise, ie. the first time series (the first row of &#60;code&#62;source.p&#60;/code&#62;) is the source applied at the source point with the smallest index according to Matlab's usual matrix numbering convention:&#60;br /&#62;
&#60;a href=&#34;https://uk.mathworks.com/help/matlab/math/matrix-indexing.html&#34;&#62;https://uk.mathworks.com/help/matlab/math/matrix-indexing.html&#60;/a&#62;, and so on. &#60;/p&#62;
&#60;p&#62;Because each row is associated with one grid point, it can be weighted to give the source at that point a different amplitude. The weighting will be determined beforehand, in your case using Geant4 or similar. &#60;/p&#62;
&#60;p&#62;Hope that's clear!&#60;br /&#62;
Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zhuoxiaoyu on "How to simulate the proton beam and proton-induced acoustic emission?"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-simulate-the-proton-beam-and-proton-induced-acoustic-emission#post-6530</link>
			<pubDate>Thu, 19 Jul 2018 07:19:37 +0000</pubDate>
			<dc:creator>zhuoxiaoyu</dc:creator>
			<guid isPermaLink="false">6530@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I think I've probably figured out what (num_source_points, num_time_points) means.&#60;/p&#62;
&#60;p&#62;I modified my code, but I still had some problems.&#60;/p&#62;
&#60;p&#62;When I use &#60;/p&#62;
&#60;p&#62;x = 0:1e-7:1e-5;&#60;br /&#62;
input_signal = gaussmf(x,[5e-7 8e-6]);&#60;br /&#62;
source.p(1:sum(source.p_mask ~= 0), :) = source.p_mask(source.p_mask ~= 0) * input_signal;&#60;/p&#62;
&#60;p&#62;to define the source, the simulation breaks for &#34;Subscripted assignment dimension mismatch&#34;.&#60;/p&#62;
&#60;p&#62;Could you tell me how to solve this and how to assign &#34;mag_distr(i,j)&#34;(Two dimensional matrix of the same size as the grids) to &#34;source.p&#34;?&#60;/p&#62;
&#60;p&#62;Thanks a lot!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zhuoxiaoyu on "How to simulate the proton beam and proton-induced acoustic emission?"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-simulate-the-proton-beam-and-proton-induced-acoustic-emission#post-6529</link>
			<pubDate>Wed, 18 Jul 2018 08:53:46 +0000</pubDate>
			<dc:creator>zhuoxiaoyu</dc:creator>
			<guid isPermaLink="false">6529@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad.,&#60;/p&#62;
&#60;p&#62;When I use &#60;/p&#62;
&#60;p&#62;for i=1:Nx&#60;br /&#62;
for j=1:Ny&#60;br /&#62;
source.p(i,j)=mag_distr(i,j);&#60;br /&#62;
end&#60;br /&#62;
end&#60;/p&#62;
&#60;p&#62;to define the source, the simulation couldn't start for &#34;Input signal must be a vector&#34;.&#60;br /&#62;
( mag_distr(i,j) represents pressure distribution about proton beam dose deposition&#60;/p&#62;
&#60;p&#62;Could you tell me how to define source.p as a matrix ?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "How to simulate the proton beam and proton-induced acoustic emission?"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-simulate-the-proton-beam-and-proton-induced-acoustic-emission#post-6278</link>
			<pubDate>Sun, 04 Feb 2018 10:36:11 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6278@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Hui,&#60;/p&#62;
&#60;p&#62;The source must always be a two-dimensional matrix with dimensions (num_source_points, num_time_points). The source points are indexed according to MATLAB's standard column-wise linear matrix index ordering.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>HuiLIN on "How to simulate the proton beam and proton-induced acoustic emission?"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-simulate-the-proton-beam-and-proton-induced-acoustic-emission#post-6273</link>
			<pubDate>Mon, 29 Jan 2018 09:50:34 +0000</pubDate>
			<dc:creator>HuiLIN</dc:creator>
			<guid isPermaLink="false">6273@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Dear Brad.,&#60;/p&#62;
&#60;p&#62;    Could you speak more about how to describe a matrix source.p with different amplitude more detail? Is there appropriate example in k-Wave examples for ref?&#60;br /&#62;
    My source is an inhomogeneous spatial distribution with a periodic input_signal. When I use&#60;br /&#62;
       source.p(i,j,k)  = source_strength(i,j,k).* input_signal;&#60;br /&#62;
to define the source, the code always breaks for different dimension or “Index beyond the matrix dimension”.&#60;br /&#62;
    Thank you a lot in advance.&#60;/p&#62;
&#60;p&#62;Hui
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "How to simulate the proton beam and proton-induced acoustic emission?"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-simulate-the-proton-beam-and-proton-induced-acoustic-emission#post-6245</link>
			<pubDate>Mon, 18 Dec 2017 10:22:44 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6245@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi zhuoxiaoyu,&#60;/p&#62;
&#60;p&#62;I would suggest using &#60;code&#62;source.p_mask&#60;/code&#62; to define the spatial distribution of the source, and then use something like a Gaussian shaped &#60;code&#62;source.p&#60;/code&#62; with the appropriate width to model the energy deposition. You will need to define &#60;code&#62;source.p&#60;/code&#62; as a matrix, with the amplitude scaled to the deposited dose at each spatial position. See &#60;a href=&#34;http://onlinelibrary.wiley.com/doi/10.1118/1.4905047/abstract&#34;&#62;this paper&#60;/a&#62; for more details.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zhuoxiaoyu on "How to simulate the proton beam and proton-induced acoustic emission?"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-simulate-the-proton-beam-and-proton-induced-acoustic-emission#post-6244</link>
			<pubDate>Sat, 16 Dec 2017 03:41:05 +0000</pubDate>
			<dc:creator>zhuoxiaoyu</dc:creator>
			<guid isPermaLink="false">6244@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I'm new in K-Wave, now I need to do a simulation about proton beam and proton-induced acoustic emission.&#60;/p&#62;
&#60;p&#62;In the simulation, The position of the Bragg peak will change with the energy of the proton beam. Now I already have a function about the dose distribution of the proton beam and Bragg, different dose values will produce different levels of acoustic emission. &#60;/p&#62;
&#60;p&#62;but I don't know how to simulate the acoustic emission images of the proton beam (including the Bragg peak) by using the function &#34;kspaceFirstOrder3D&#34;.I've finished defining grids, medium, and sensors. however, I don't know how to use &#34;source.p0&#34;(or source.p_mask and source.p?) to express the proton beam and its acoustic emission. &#60;/p&#62;
&#60;p&#62;I want to get some help, thank you!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
