<?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: To define different phase and amplitude for each source in multi-source medium</title>
		<link>http://www.k-wave.org/forum/topic/to-define-different-phase-and-amplitude-for-each-source-in-multi-source-medium</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 22:28:57 +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/to-define-different-phase-and-amplitude-for-each-source-in-multi-source-medium" rel="self" type="application/rss+xml" />

		<item>
			<title>bencox on "To define different phase and amplitude for each source in multi-source medium"</title>
			<link>http://www.k-wave.org/forum/topic/to-define-different-phase-and-amplitude-for-each-source-in-multi-source-medium#post-8719</link>
			<pubDate>Wed, 08 Mar 2023 14:42:56 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">8719@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi hamids,&#60;/p&#62;
&#60;p&#62;Have a search on the forum for 'multiple sources'. There are a few posts about having different time series inputs for different source points. In short, yes you can do it, but you have to make sure you stack the source time series in the right order so they match with the right points.&#60;/p&#62;
&#60;p&#62;Best wishes&#60;br /&#62;
Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hamids on "To define different phase and amplitude for each source in multi-source medium"</title>
			<link>http://www.k-wave.org/forum/topic/to-define-different-phase-and-amplitude-for-each-source-in-multi-source-medium#post-8697</link>
			<pubDate>Thu, 26 Jan 2023 04:57:42 +0000</pubDate>
			<dc:creator>hamids</dc:creator>
			<guid isPermaLink="false">8697@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I defined a medium with several elastic wave sources according to the following codes. In this simulation, all sources have the same phase and amplitude. Now, I need to define different phases and amplitudes for each source. For instance, source #1 has a phase equal to 0 and an amplitude equal to 1, source #2 has a phase equal to 90 and an amplitude equal to 2, and so on. Is there any way to do so?&#60;/p&#62;
&#60;p&#62;source_y_pos=[ceil(Ny/8), ceil(Ny/4), ceil(3*Ny/8), ceil(Nz/2), ceil(5*Ny/8), ceil(3*Ny/4), ceil(7*Ny/8)];&#60;br /&#62;
source.u_mask (source_y_pos, source_y_pos, 1)= 1;&#60;br /&#62;
source.u_mask (source_y_pos, 1, source_y_pos)= 1;&#60;br /&#62;
source.u_mask (1, source_y_pos, source_y_pos)= 1;&#60;br /&#62;
source.u_mask (source_y_pos, source_y_pos, end)= 1;&#60;br /&#62;
source.u_mask (source_y_pos, end, source_y_pos)= 1;&#60;br /&#62;
source.u_mask (end, source_y_pos, source_y_pos)= 1;&#60;br /&#62;
source_freq = 500;&#60;br /&#62;
source_mag = 50;&#60;/p&#62;
&#60;p&#62;source.uz = source_mag*sin(2*pi*source_freq*kgrid.t_array);
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
