<?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; User Favorites: nv.vyjayanthi</title>
		<link><a href='http://www.k-wave.org/forum/profile/nvvyjayanthi'>nvvyjayanthi</a></link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 03:10:38 +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/profile/" rel="self" type="application/rss+xml" />

		<item>
			<title>nv.vyjayanthi on "Superposition of multiple waveforms"</title>
			<link>http://www.k-wave.org/forum/topic/superposition-of-multiple-waveforms#post-6856</link>
			<pubDate>Tue, 21 May 2019 19:37:40 +0000</pubDate>
			<dc:creator>nv.vyjayanthi</dc:creator>
			<guid isPermaLink="false">6856@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad,&#60;/p&#62;
&#60;p&#62;Thanks a lot! This definitely cleared things when I tried it. &#60;/p&#62;
&#60;p&#62;Thanks!&#60;br /&#62;
NV
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Superposition of multiple waveforms"</title>
			<link>http://www.k-wave.org/forum/topic/superposition-of-multiple-waveforms#post-6836</link>
			<pubDate>Wed, 10 Apr 2019 13:01:19 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6836@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi NV,&#60;/p&#62;
&#60;p&#62;This is due to the source smoothing applied to initial value sources in k-Wave. You can check this by setting the optional input &#60;code&#62;&#38;#39;Smooth&#38;#39;, false&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;To allow a fair comparison with smoothing on, turn off the automatic smoothing, and smooth yourself using the &#60;code&#62;smooth&#60;/code&#62; function in k-Wave (see the &#60;a href=&#34;http://www.k-wave.org/documentation/example_pr_2D_fft_line_sensor.php&#34;&#62;2D FFT Reconstruction For A Line Sensor Example&#60;/a&#62; if needed).&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nv.vyjayanthi on "Superposition of multiple waveforms"</title>
			<link>http://www.k-wave.org/forum/topic/superposition-of-multiple-waveforms#post-6803</link>
			<pubDate>Wed, 27 Mar 2019 16:31:56 +0000</pubDate>
			<dc:creator>nv.vyjayanthi</dc:creator>
			<guid isPermaLink="false">6803@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hey Ben, &#60;/p&#62;
&#60;p&#62;Yes, they should be the sum but they do not end up being the sum when I simulate them separately and add. &#60;/p&#62;
&#60;p&#62;Best,&#60;br /&#62;
NV
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bencox on "Superposition of multiple waveforms"</title>
			<link>http://www.k-wave.org/forum/topic/superposition-of-multiple-waveforms#post-6797</link>
			<pubDate>Thu, 21 Mar 2019 00:48:56 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">6797@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi nv.vyjayanthi, &#60;/p&#62;
&#60;p&#62;Is it just that where your dots share a grid point, the amplitude there should be the sum of the contributions from both dots?&#60;/p&#62;
&#60;p&#62;Best wishes,&#60;br /&#62;
Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nv.vyjayanthi on "Superposition of multiple waveforms"</title>
			<link>http://www.k-wave.org/forum/topic/superposition-of-multiple-waveforms#post-6773</link>
			<pubDate>Fri, 15 Mar 2019 17:27:51 +0000</pubDate>
			<dc:creator>nv.vyjayanthi</dc:creator>
			<guid isPermaLink="false">6773@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello, &#60;/p&#62;
&#60;p&#62;I have a question regarding how k-wave computes the photoacoustic response for individual dots compared to when the object is a sum of such individual dots.&#60;/p&#62;
&#60;p&#62;My simulation setup includes a single element in my sensor.mask placed in the middle of the space defined. I then define 2 objects p01 and p02 both of which are single dots separated in x,y but in the same z-plane. I then generate the PA response of each of these dots and save them. The next object defined is p03 = p01+p02 and once again I generate a PA response for this combined object. &#60;/p&#62;
&#60;p&#62;Now my issue is this. When the dots do not share a common edge or corner, the sensor_data_p03 = sensor_data_p01 + sensor_data_p02. But when the two point objects do share a common edge or corner, the waveforms are in the same place in time and have the same shape but the principle of superposition doesn't hold anymore. &#60;/p&#62;
&#60;p&#62;When they share a corner, sensor_data_p03 = (sensor_data_p01 + sensor_data_p02)/1.4&#60;br /&#62;
When they share an edge, sensor_data_p03 = (sensor_data_p01 + sensor_data_p02)/1.65&#60;/p&#62;
&#60;p&#62;I came by these scaling factors purely by trial and error. &#60;/p&#62;
&#60;p&#62;Would anyone happen to know why this is the case? Or is the way I'm looking at the PA generation wrong perhaps?&#60;/p&#62;
&#60;p&#62;My code is as follows:&#60;/p&#62;
&#60;p&#62;%% create computational grid&#60;br /&#62;
clear;&#60;br /&#62;
Nx = 32;&#60;br /&#62;
dx = 1e-3;&#60;br /&#62;
Ny = Nx; dy = dx;&#60;br /&#62;
Nz = 64; dz = dx;&#60;/p&#62;
&#60;p&#62;kgrid = kWaveGrid(Nx,dx,Ny,dy,Nz,dz);&#60;/p&#62;
&#60;p&#62;% define the properties of the propagation medium&#60;br /&#62;
medium.sound_speed = 1500;	% [m/s]&#60;/p&#62;
&#60;p&#62;% create the time array&#60;br /&#62;
kgrid.makeTime(medium.sound_speed);&#60;/p&#62;
&#60;p&#62;% define grid sensor&#60;br /&#62;
sensor.mask = zeros([Nx,Ny,Nz]);&#60;br /&#62;
sensor.mask(Nx/2+1,Ny/2+1,10) = 1;&#60;/p&#62;
&#60;p&#62;% input arguments&#60;br /&#62;
input_args = {'DataCast', 'single', 'CartInterp', 'nearest', 'DisplayMask', 'off', ...&#60;br /&#62;
    'PlotSim', boolean(0)};&#60;/p&#62;
&#60;p&#62;% create pressure distributions and get data&#60;/p&#62;
&#60;p&#62;p01 = zeros([Nx Ny Nz]);&#60;br /&#62;
p01(17,17,50) = 1;  % changing this in r,c&#60;br /&#62;
source.p0 = p01;&#60;br /&#62;
sensor_data_1 = kspaceFirstOrder3D(kgrid, medium, source, sensor, input_args{:});&#60;/p&#62;
&#60;p&#62;p02 = zeros([Nx Ny Nz]);&#60;br /&#62;
p02(17,18,50) = 1;  % changing this in r,c&#60;br /&#62;
source.p0 = p02;&#60;br /&#62;
sensor_data_2 = kspaceFirstOrder3D(kgrid, medium, source, sensor, input_args{:});&#60;/p&#62;
&#60;p&#62;p03 = p01+p02;&#60;br /&#62;
source.p0 = p03;&#60;br /&#62;
sensor_data_3 = kspaceFirstOrder3D(kgrid, medium, source, sensor, input_args{:});&#60;/p&#62;
&#60;p&#62;figure;&#60;br /&#62;
plot(sensor_data_3)&#60;br /&#62;
hold on&#60;br /&#62;
plot(sensor_data_1 + sensor_data_2)&#60;br /&#62;
legend('Total obj','Superposition')&#60;/p&#62;
&#60;p&#62;Any help would greatly be appreciated!&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
