<?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: 2D photoacoustic simulation about a homogeneous phantom</title>
		<link>http://www.k-wave.org/forum/topic/2d-photoacoustic-simulation-about-a-homogeneous-phantom</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Thu, 14 May 2026 20:16:13 +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/2d-photoacoustic-simulation-about-a-homogeneous-phantom" rel="self" type="application/rss+xml" />

		<item>
			<title>Wenson on "2D photoacoustic simulation about a homogeneous phantom"</title>
			<link>http://www.k-wave.org/forum/topic/2d-photoacoustic-simulation-about-a-homogeneous-phantom#post-8858</link>
			<pubDate>Mon, 10 Jul 2023 02:40:39 +0000</pubDate>
			<dc:creator>Wenson</dc:creator>
			<guid isPermaLink="false">8858@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Dear all,&#60;br /&#62;
I am going to do the 2D photoacoustic simulation about a rectangle homogeneous phantom.&#60;br /&#62;
But I found the channel data of the simulation is weird, like two lines, so as the beamforming image.&#60;br /&#62;
Here is my MATLAB code:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;% Transducer Setting
f0 = 11e6;                                % Center frequency [Hz]
fs = 4*f0;                                % Sampling frequency [Hz]
soundv = 1540;
lambda = soundv/f0;
BW = 60;
% 2D Simulation Setting
Nx = 128;
dx = 0.12e-3; %[m]
F_number = 1;
depth = F_number*Nx*dx;
dz = lambda/3;
Nz = 2*round(depth/dz);
kgrid = kWaveGrid(Nx,dx,Nz,dz);
% Medium
medium.sound_speed = soundv;
% Source
source.p0 = zeros(Nx,Nz);
hypo = zeros(Nx,Nz);
hypo(:, (Nz/2-50 : Nz/2+50)) = 1e6;     % Rectangle phantom
source.p0 = hypo;
% Sensor
sensor.mask = zeros(Nx,Nz);
sensor.mask(:,1) = 1;
senor.frequency_response = [f0,BW];
% 2D Simulation
sensor_data_2D = kspaceFirstOrder2D(kgrid,medium,source,sensor);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Is there any stupid mistake I miss?&#60;br /&#62;
Thanks.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
