<?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: Comparison of Modelling Functions Example</title>
		<link>http://www.k-wave.org/forum/topic/comparison-of-modelling-functions-example</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 02 Jun 2026 11:23:08 +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/comparison-of-modelling-functions-example" rel="self" type="application/rss+xml" />

		<item>
			<title>bencox on "Comparison of Modelling Functions Example"</title>
			<link>http://www.k-wave.org/forum/topic/comparison-of-modelling-functions-example#post-5148</link>
			<pubDate>Thu, 16 Jul 2015 12:45:37 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">5148@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Suryakant,&#60;/p&#62;
&#60;p&#62;Check your sensor.mask, which seems to be defined twice. I suspect you need to remove the line &#60;code&#62;sensor.mask = cart2grid(kgrid, sensor.mask);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Suryakant on "Comparison of Modelling Functions Example"</title>
			<link>http://www.k-wave.org/forum/topic/comparison-of-modelling-functions-example#post-5146</link>
			<pubDate>Thu, 16 Jul 2015 11:58:47 +0000</pubDate>
			<dc:creator>Suryakant</dc:creator>
			<guid isPermaLink="false">5146@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Can anybody please help us?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Suryakant on "Comparison of Modelling Functions Example"</title>
			<link>http://www.k-wave.org/forum/topic/comparison-of-modelling-functions-example#post-5141</link>
			<pubDate>Sat, 11 Jul 2015 13:26:22 +0000</pubDate>
			<dc:creator>Suryakant</dc:creator>
			<guid isPermaLink="false">5141@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;We are trying to use this code to produce a graph between pressure vs. time using kspaceSecondOrder function and  kspaceFirstOrder2D function but we are not getting the result. Can anyone please help us. Following is the code :&#60;/p&#62;
&#60;p&#62;Nx = 128;&#60;br /&#62;
Ny = 128;&#60;br /&#62;
Nz = 128;&#60;br /&#62;
dx = .1*10^-3;&#60;br /&#62;
dy = .1*10^-3;&#60;br /&#62;
t_end = 6*10^-6;&#60;br /&#62;
medium.sound_speed = 1500;&#60;br /&#62;
medium.alpha_coeff = .75;&#60;br /&#62;
medium.alpha_power = 1.5;&#60;br /&#62;
disc_magnitude = 5;&#60;br /&#62;
disc_x_pos = 50;&#60;br /&#62;
disc_y_pos = 50;&#60;br /&#62;
disc_radius = 8;&#60;br /&#62;
disc_1 = disc_magnitude*makeDisc(Nx, Ny, disc_x_pos, disc_y_pos, disc_radius);&#60;br /&#62;
disc_magnitude = 3;&#60;br /&#62;
disc_x_pos = 80;&#60;br /&#62;
disc_y_pos = 60;&#60;br /&#62;
disc_radius = 5;&#60;br /&#62;
disc_2 = disc_magnitude*makeDisc(Nx, Ny, disc_x_pos, disc_y_pos, disc_radius);&#60;br /&#62;
source.p0 = disc_1 + disc_2;&#60;br /&#62;
sensor_x_pos = Nx/2;&#60;br /&#62;
sensor_y_pos = Ny/2;&#60;br /&#62;
sensor_radius = Nx/2-22;&#60;br /&#62;
sensor_arc_angle = 3*pi/2;&#60;br /&#62;
sensor.mask =makeCircle(Nx,Ny,sensor_x_pos,sensor_y_pos,sensor_radius,sensor_arc_angle);&#60;br /&#62;
kgrid = makeGrid(Nx, dx, Ny,dy);&#60;br /&#62;
kgrid.t_array = makeTime(kgrid,medium.sound_speed,[],t_end);&#60;br /&#62;
sensor.mask = cart2grid(kgrid, sensor.mask);&#60;br /&#62;
sensor_data = kspaceSecondOrder(kgrid, medium, source, sensor, 'ExpandGrid', true);&#60;/p&#62;
&#60;p&#62;sensor_data_reordered =reorderSensorData(kgrid, sensor , sensor_data);&#60;/p&#62;
&#60;p&#62;figure;&#60;br /&#62;
imagesc(sensor_data_reordered, [-1,1]);&#60;br /&#62;
colormap(getColorMap);&#60;br /&#62;
ylabel('Sensor Position');&#60;br /&#62;
xlabel('Time Step');&#60;br /&#62;
colorbar;&#60;/p&#62;
&#60;p&#62;[~,scale,prefix] = scaleSI(max(kgrid.t_array));&#60;br /&#62;
plot(kgrid.t_array*scale,sensor_data.p);
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
