<?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: Running photoacoustic simulation</title>
		<link>http://www.k-wave.org/forum/topic/running-photoacoustic-simulation</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 18:31:42 +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/running-photoacoustic-simulation" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Running photoacoustic simulation"</title>
			<link>http://www.k-wave.org/forum/topic/running-photoacoustic-simulation#post-6422</link>
			<pubDate>Wed, 18 Apr 2018 09:23:59 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6422@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Pankaj,&#60;/p&#62;
&#60;p&#62;I don't understand your question. What is it you're stuck on?&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>pankaj warbal on "Running photoacoustic simulation"</title>
			<link>http://www.k-wave.org/forum/topic/running-photoacoustic-simulation#post-6409</link>
			<pubDate>Thu, 12 Apr 2018 10:14:02 +0000</pubDate>
			<dc:creator>pankaj warbal</dc:creator>
			<guid isPermaLink="false">6409@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;My leave algorithm is complimenting the image I have created on MS paint and taking it as input image for my reconstruction program though the image reconstruction is Ok. Please tell me how to correct this?&#60;br /&#62;
Algorithm goes like this..&#60;br /&#62;
clear all&#60;br /&#62;
p0_magnitude = 1;&#60;br /&#62;
p0 = p0_magnitude * loadImage('C:\Users\IIIT-A\Desktop\bin\k.png');&#60;br /&#62;
% Grid&#60;br /&#62;
Nx = 300;&#60;br /&#62;
Ny = 300;&#60;br /&#62;
dx = 500e-6;&#60;br /&#62;
dy = 500e-6;&#60;br /&#62;
kgrid = kWaveGrid(Nx, dx, Ny, dy);&#60;br /&#62;
%PML&#60;br /&#62;
PML_size = [20,20];&#60;br /&#62;
PML_Alpha = [10,10];&#60;br /&#62;
PML_inside = false;&#60;br /&#62;
plot_PML = true;&#60;br /&#62;
%Source&#60;br /&#62;
source.p0 = resize(p0,[Nx, Ny]);%to resize the image&#60;br /&#62;
medium.sound_speed = 1500*ones(Nx, Ny); % [m/s]&#60;br /&#62;
medium.density = 1040; % [kg/m^3]&#60;br /&#62;
%Sensor&#60;br /&#62;
sensor_radius = 60e-3; % [m]&#60;br /&#62;
num_sensor_points = 100;&#60;br /&#62;
sensor.mask = makeCartCircle(sensor_radius, num_sensor_points);&#60;br /&#62;
%input arguments&#60;br /&#62;
input_args = {'PMLSize',PML_size,'PMLAlpha',PML_Alpha,'PMLInside',false,'PlotPML', true}&#60;br /&#62;
%simulation&#60;br /&#62;
sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor, input_args{:});
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
