<?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: Multiple Sources in 3-Dimensional Space</title>
		<link>http://www.k-wave.org/forum/topic/multiple-sources-in-3-dimensional-space</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 20:27:06 +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/multiple-sources-in-3-dimensional-space" rel="self" type="application/rss+xml" />

		<item>
			<title>lbruju on "Multiple Sources in 3-Dimensional Space"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-sources-in-3-dimensional-space#post-6431</link>
			<pubDate>Fri, 20 Apr 2018 14:01:09 +0000</pubDate>
			<dc:creator>lbruju</dc:creator>
			<guid isPermaLink="false">6431@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I am not sure of my simulation yet, but thanks for the information. &#60;/p&#62;
&#60;p&#62;lbruju
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Multiple Sources in 3-Dimensional Space"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-sources-in-3-dimensional-space#post-6428</link>
			<pubDate>Thu, 19 Apr 2018 08:48:11 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6428@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi lbruju,&#60;/p&#62;
&#60;p&#62;I'm not sure of your input conditions, but getting a focal pressure of 60 MPa with an input pressure of 10 Pa implies a focal gain of 6 million, which seems much too high. The value after scaling seems more plausible, at least to me.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lbruju on "Multiple Sources in 3-Dimensional Space"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-sources-in-3-dimensional-space#post-6427</link>
			<pubDate>Thu, 19 Apr 2018 08:35:32 +0000</pubDate>
			<dc:creator>lbruju</dc:creator>
			<guid isPermaLink="false">6427@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Bradley, &#60;/p&#62;
&#60;p&#62;Thanks a lot, I haven't noticed that.&#60;br /&#62;
But I am confused regarding the final pressure values obtained when using this source scaling term.&#60;br /&#62;
I add: &#60;code&#62;source_scaling_term=(2*dt)/(3*1500*dx)&#60;/code&#62; which is around 7.4E-8.&#60;br /&#62;
The &#60;code&#62;p_source_input&#60;/code&#62; is a sinus with an amplitude of 10Pa, so the simulation should give the pressure field in Pa too. Without the source scaling term, I obtained a pressure of 6.33E7 at the focal point, which seems to be correct. But with the source scaling term, I have only 4.8 (which corresponds to &#60;code&#62;6.33E7*source_scaling_term&#60;/code&#62; ).&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
lbruju
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Multiple Sources in 3-Dimensional Space"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-sources-in-3-dimensional-space#post-6426</link>
			<pubDate>Wed, 18 Apr 2018 14:05:36 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6426@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Great! One other point, if you're manually creating the input file, you will need to apply to source scaling term. See Line 208 in the &#60;code&#62;example_cpp_io_in_parts.m&#60;/code&#62; (you don't need MATLAB to see the code).&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lbruju on "Multiple Sources in 3-Dimensional Space"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-sources-in-3-dimensional-space#post-6425</link>
			<pubDate>Wed, 18 Apr 2018 12:24:55 +0000</pubDate>
			<dc:creator>lbruju</dc:creator>
			<guid isPermaLink="false">6425@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi, &#60;/p&#62;
&#60;p&#62;I have finally found the error! The matrix &#60;code&#62;p_source_input&#60;/code&#62; should be transposed. The correct shape is &#60;code&#62;Nt x np.size(p_source_index)&#60;/code&#62; and not the opposite as I generated before.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
lbruju
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lbruju on "Multiple Sources in 3-Dimensional Space"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-sources-in-3-dimensional-space#post-6424</link>
			<pubDate>Wed, 18 Apr 2018 10:46:37 +0000</pubDate>
			<dc:creator>lbruju</dc:creator>
			<guid isPermaLink="false">6424@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Bradley, &#60;/p&#62;
&#60;p&#62;Thanks for your answer.&#60;br /&#62;
I have checked the values, and they seem to be the same. &#60;/p&#62;
&#60;p&#62;In the first case I have: &#60;/p&#62;
&#60;p&#62;P_SOURCE_INDEX:&#60;br /&#62;
&#60;code&#62;p_source_index0=np.array[[3363674]]    #only one point for the top of the spherical cap&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;p_source_index1=np.array[[3273700,3274150,3274749,...]]    #index of points on the 1st ring&#60;/code&#62;&#60;br /&#62;
ETC... until&#60;br /&#62;
&#60;code&#62;p_source_index7=np.array[[2891235,2891684,2892284,...]]    #index of points on the 7th ring&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;P_SOURCE_INPUT:&#60;br /&#62;
&#60;code&#62;p_source_input0=sig0    #where sig0 is a list of size (1,Nt)&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;p_source_input1=sig1    #where sig1 is a list of size (1,Nt)&#60;/code&#62;&#60;br /&#62;
ETC... until&#60;br /&#62;
&#60;code&#62;p_source_input7=sig7    #where sig7 is a list of size (1,Nt)&#60;/code&#62;  &#60;/p&#62;
&#60;p&#62;And in the second case I have: &#60;/p&#62;
&#60;p&#62;P_SOURCE_INDEX:&#60;br /&#62;
&#60;code&#62;p_source_index=np.array[[3363674,3273700,3274150,3274749,...,2891235,2891684,2892284,...]]    #index of all the points&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;P_SOURCE_INPUT:&#60;br /&#62;
&#60;code&#62;p_source_input&#60;/code&#62; is a matrix of size &#60;code&#62;np.size(p_source_index) x Nt&#60;/code&#62; where:&#60;br /&#62;
&#60;code&#62;p_source_input[0,:]=sig0&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;p_source_input[1:np.size(p_source_index1),:]=sig1&#60;/code&#62;&#60;br /&#62;
ETC... until the last one. &#60;/p&#62;
&#60;p&#62;Did I well understand that the the first line in &#60;code&#62;p_source_input&#60;/code&#62; will be the signal attributed to the first index in &#60;code&#62;p_source_index&#60;/code&#62; and so on? &#60;/p&#62;
&#60;p&#62;Thanks a lot for your help and for taking time to answer.&#60;br /&#62;
lbruju
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Multiple Sources in 3-Dimensional Space"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-sources-in-3-dimensional-space#post-6423</link>
			<pubDate>Wed, 18 Apr 2018 09:25:53 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6423@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi lbruju,&#60;/p&#62;
&#60;p&#62;Nope, provided your simulation is linear, they should give the same results. Perhaps it's an error in the indexing in the second case?&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lbruju on "Multiple Sources in 3-Dimensional Space"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-sources-in-3-dimensional-space#post-6416</link>
			<pubDate>Tue, 17 Apr 2018 08:35:51 +0000</pubDate>
			<dc:creator>lbruju</dc:creator>
			<guid isPermaLink="false">6416@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi, &#60;/p&#62;
&#60;p&#62;I am trying to simulate the pressure field generated by 8 rings defined on a spherical cap. All the points on a same ring have the same &#60;code&#62;p_source_input&#60;/code&#62; signal, but each ring has a different signal.&#60;br /&#62;
I made the simulation by two different ways.&#60;br /&#62;
1) I simulate the pressure field generated by one ring after the other. I put &#60;code&#62;p_source_many=0&#60;/code&#62;. kspaceFirstOrder3DGC-OMP.exe is executed for each ring and I sum the results (with a sensor_mask which contains all the points of the FOV).&#60;br /&#62;
2) I simulate the pressure field generated by all the rings at the same time. I put &#60;code&#62;p_source_many=1&#60;/code&#62;. kspaceFirstOrder3DGC-OMP.exe is executed only once.&#60;/p&#62;
&#60;p&#62;I don't understand why I don't obtain the same result with both simulations.&#60;br /&#62;
The only difference is that all the inputs (index values and input signals) are separated in 16 different matrices (8 matrices for &#60;code&#62;p_source_index&#60;/code&#62; and 8 for &#60;code&#62;p_source_input&#60;/code&#62; ) in the first case. Whereas the inputs are separated in only 2 matrices (1 for &#60;code&#62;p_source_index&#60;/code&#62; and one for &#60;code&#62;p_source_input&#60;/code&#62; ) in the second case.&#60;/p&#62;
&#60;p&#62;Do you have an idea of where the error could come from? &#60;/p&#62;
&#60;p&#62;Thanks a lot,&#60;br /&#62;
lbruju
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Multiple Sources in 3-Dimensional Space"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-sources-in-3-dimensional-space#post-6397</link>
			<pubDate>Sun, 08 Apr 2018 18:52:11 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6397@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi char7114,&#60;/p&#62;
&#60;p&#62;It's not possible to define a different source mask for the different components of the velocity. A work around is to use a single &#60;code&#62;source.u_mask&#60;/code&#62; that covers all of the sources. Then, for each component of the velocity, for the grid points that are not transmitting, set the source term to zero.&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>char7114 on "Multiple Sources in 3-Dimensional Space"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-sources-in-3-dimensional-space#post-6375</link>
			<pubDate>Sun, 01 Apr 2018 00:27:21 +0000</pubDate>
			<dc:creator>char7114</dc:creator>
			<guid isPermaLink="false">6375@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Brad,&#60;/p&#62;
&#60;p&#62;I have worked through your user manual as well as the available examples and have managed to combine pressure and velocity sources in the same space whilst utilising the column wise indexing. Thank you for your help in this regard. I am however currently unable to combine velocity sources of different direction (.ux, .uy and .uz) into this space. Is this something which should be possible? I can only get the individual sources to all propagate in the same direction through specification of the source.u matrix which I am using to reference the sources to the desired mask location. Could this possibly be achieved by creating a second mask and incorporating it into the same space? Perhaps I am just defining my source matrix incorrectly.&#60;/p&#62;
&#60;p&#62;Again, thank you for your aid.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Multiple Sources in 3-Dimensional Space"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-sources-in-3-dimensional-space#post-6365</link>
			<pubDate>Wed, 21 Mar 2018 21:51:45 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6365@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi char7114,&#60;/p&#62;
&#60;p&#62;There are some details on the ordering of the inputs in the &#60;a href=&#34;http://www.k-wave.org/documentation/example_tvsp_homogeneous_medium_monopole.php&#34;&#62;Monopole Point Source In A Homogeneous Propagation Medium Example&#60;/a&#62; (this is accessible from the MATLAB help browser), and also in the k-Wave manual.&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>char7114 on "Multiple Sources in 3-Dimensional Space"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-sources-in-3-dimensional-space#post-6353</link>
			<pubDate>Tue, 20 Mar 2018 03:11:21 +0000</pubDate>
			<dc:creator>char7114</dc:creator>
			<guid isPermaLink="false">6353@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;First and foremost, I would like to express my appreciation for the release of this package and its continued efforts. Most impressive.&#60;/p&#62;
&#60;p&#62;I am still wrapping my head around its functionality however I had a question in regards to creating a 3-Dimensional space with multiple di-pole and mono-pole sources. I have managed to incorporate multiple di-poles into the same space however I cannot seperate them into different locations in the grid and I cannot find a way to effectively combine mono-poles in the same space. Is there a simple way to add sources of different characteristics into different locations in the grid?&#60;/p&#62;
&#60;p&#62;My goal is to model the acoustics generated by a helicopter, which I believe will require velocity sources to represent the rotors and monopoles for the power plant and transmission. Each of these will be of different frequency and magnitude. I understand that the sources can be located by defining the location in the grid as a 1 in the matrix but am unsure how to specify an individual source to its own location.&#60;/p&#62;
&#60;p&#62;Many thanks.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
