<?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 mapped simultaneously</title>
		<link>http://www.k-wave.org/forum/topic/multiple-sources-mapped-simultaneously</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:38:58 +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-mapped-simultaneously" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Multiple sources mapped simultaneously"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-sources-mapped-simultaneously#post-837</link>
			<pubDate>Tue, 23 Oct 2012 00:37:34 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">837@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Steve,&#60;/p&#62;
&#60;p&#62;If your &#60;code&#62;source.p_mask&#60;/code&#62; has two source points, you could define the input signals as:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;source.p(1, :) = sin(2*pi*source_freq1*kgrid.t_array);
source.p(2, :) = sin(2*pi*source_freq2*kgrid.t_array);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Similarly for more source points or more complicated driving signals.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>s_roessner on "Multiple sources mapped simultaneously"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-sources-mapped-simultaneously#post-836</link>
			<pubDate>Mon, 22 Oct 2012 18:53:09 +0000</pubDate>
			<dc:creator>s_roessner</dc:creator>
			<guid isPermaLink="false">836@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Thank you! I got the multiple points to work, however, I may have phrased my question wrong about the varying frequencies.&#60;/p&#62;
&#60;p&#62;How can I define one source to hold one freq., say 500Hz, and another separate point on the other side of the plate to be driven at 2Khz?&#60;/p&#62;
&#60;p&#62;Thanks again,&#60;br /&#62;
Steve
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Multiple sources mapped simultaneously"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-sources-mapped-simultaneously#post-835</link>
			<pubDate>Mon, 22 Oct 2012 18:16:42 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">835@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Steve,&#60;/p&#62;
&#60;p&#62;The way to do it is to define a single binary source mask the same size as the computational grid, where the 1's indicate all the grid points that will act as source points. Assuming you are defining a pressure source, you can then assign different time series inputs for each source point to &#60;code&#62;source.p&#60;/code&#62; (in your case, these could be sinusoids at different frequencies). The source matrix is indexed as &#60;code&#62;source.p(source_point_index, time_index)&#60;/code&#62;, where the ordering of the source points within the grid follows MATLAB's column-wise linear indexing. &#60;/p&#62;
&#60;p&#62;If you want to define different frequency sources at the same grid point, just add the source signals together.&#60;/p&#62;
&#60;p&#62;I hope that helps, let us know if you can't get it working!&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>s_roessner on "Multiple sources mapped simultaneously"</title>
			<link>http://www.k-wave.org/forum/topic/multiple-sources-mapped-simultaneously#post-834</link>
			<pubDate>Mon, 22 Oct 2012 17:31:34 +0000</pubDate>
			<dc:creator>s_roessner</dc:creator>
			<guid isPermaLink="false">834@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I am curious if there is a way to allow for multiple monopole sources with varying frequencies to be mapped to the grid simultaneously.&#60;/p&#62;
&#60;p&#62;Right now, I am attempting to define separate source masks for each source, however it still only provides the first source.&#60;/p&#62;
&#60;p&#62;Any suggestions would be welcome!&#60;/p&#62;
&#60;p&#62;And by the way, thanks for the toolbox!&#60;/p&#62;
&#60;p&#62;Best,&#60;br /&#62;
Steve
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
