<?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: Set the initial pressure distribution in 2D</title>
		<link>http://www.k-wave.org/forum/topic/set-the-initial-pressure-distribution-in-2d</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 01:00:19 +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/set-the-initial-pressure-distribution-in-2d" rel="self" type="application/rss+xml" />

		<item>
			<title>HustYjq on "Set the initial pressure distribution in 2D"</title>
			<link>http://www.k-wave.org/forum/topic/set-the-initial-pressure-distribution-in-2d#post-7799</link>
			<pubDate>Fri, 11 Sep 2020 02:53:51 +0000</pubDate>
			<dc:creator>HustYjq</dc:creator>
			<guid isPermaLink="false">7799@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi，prabodhphyee&#60;/p&#62;
&#60;p&#62;Thanks for your reply.Can i make a 3DDisk source in k-wave?In the example,it used makeball.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>prabodhphyee on "Set the initial pressure distribution in 2D"</title>
			<link>http://www.k-wave.org/forum/topic/set-the-initial-pressure-distribution-in-2d#post-7776</link>
			<pubDate>Wed, 26 Aug 2020 21:00:51 +0000</pubDate>
			<dc:creator>prabodhphyee</dc:creator>
			<guid isPermaLink="false">7776@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I would suggest running the example: 'example_pr_2D_TR_circular_sensor' [it loads the initial pressure distribution from an image and scales it to the grid. Afterwrds, it generates 2D PA measurements and then uses time reversal to reconstruct the initial pressure source].&#60;/p&#62;
&#60;p&#62;Indeed source.p0 is the initial pressure distribution. You can load it from an image (as demonstrated in the previous example), use the functions such as makedisc to make your pressure source. You can also write your own script to create (various shapes) the pressure source. &#60;/p&#62;
&#60;p&#62;For the makedisc function : look into the function file.&#60;br /&#62;
disc = makeDisc(Nx, Ny, cx, cy, radius, plot_disc)&#60;br /&#62;
You will find:-&#60;br /&#62;
% INPUTS:&#60;br /&#62;
%     Nx, Ny          - size of the 2D grid [grid points]&#60;br /&#62;
%     cx, cy          - centre of the disc [grid points]&#60;br /&#62;
%     radius          - disc radius [grid points]&#60;/p&#62;
&#60;p&#62;Therefore the command &#34;source.p0 = makeDisc(Nx, Nx, Nx/2, Nx/2, source_radius);&#34; simply means that your pressure source is a disc centered at (Nx/2, Nx/2) [center of the grid] and radius = source_radius.&#60;/p&#62;
&#60;p&#62;Hope this helps.&#60;/p&#62;
&#60;p&#62;Regards&#60;br /&#62;
Prabodh
&#60;/p&#62;</description>
		</item>
		<item>
			<title>HustYjq on "Set the initial pressure distribution in 2D"</title>
			<link>http://www.k-wave.org/forum/topic/set-the-initial-pressure-distribution-in-2d#post-7765</link>
			<pubDate>Sun, 23 Aug 2020 08:34:50 +0000</pubDate>
			<dc:creator>HustYjq</dc:creator>
			<guid isPermaLink="false">7765@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi，Liu&#60;br /&#62;
I don't know how to set the initial pressure distribution in 2D  (not a time varying pressure source distribution).On the same 2d disc, the pressures at different positions are different.Maybe i should use source.p0?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RuiLiu on "Set the initial pressure distribution in 2D"</title>
			<link>http://www.k-wave.org/forum/topic/set-the-initial-pressure-distribution-in-2d#post-7763</link>
			<pubDate>Fri, 21 Aug 2020 19:38:14 +0000</pubDate>
			<dc:creator>RuiLiu</dc:creator>
			<guid isPermaLink="false">7763@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi, I am also new in K wave, I am not really understand your question, but if we want we could discuss in wechat: liurui194114
&#60;/p&#62;</description>
		</item>
		<item>
			<title>HustYjq on "Set the initial pressure distribution in 2D"</title>
			<link>http://www.k-wave.org/forum/topic/set-the-initial-pressure-distribution-in-2d#post-7760</link>
			<pubDate>Fri, 21 Aug 2020 05:05:24 +0000</pubDate>
			<dc:creator>HustYjq</dc:creator>
			<guid isPermaLink="false">7760@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi!&#60;br /&#62;
I am doing a simulation about proton-induced acoustic emission.I don't know how to set the initial pressure distribution in 2D grid.I am confused about the Example:Photoacoustic Waveforms In 2D.It shows:&#60;br /&#62;
% create initial pressure distribution&#60;br /&#62;
source.p0 = makeDisc(Nx, Nx, Nx/2, Nx/2, source_radius);&#60;br /&#62;
But in makeDisc, it shows Discdisc = makeDisc(Nx, Ny, cx, cy, radius, plot_disc),i don't know what Nx/2 means.&#60;br /&#62;
And i am also confused about Loading the image map,can i import initial pressure data by this way?I am new in k-wave.&#60;/p&#62;
&#60;p&#62;Any help will be appreciated!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
