<?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: setNUgrid, setting non uniform grid for 1D PA simualtion</title>
		<link>http://www.k-wave.org/forum/topic/setnugrid-setting-non-uniform-grid-for-1d-pa-simualtion</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 14:19:33 +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/setnugrid-setting-non-uniform-grid-for-1d-pa-simualtion" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "setNUgrid, setting non uniform grid for 1D PA simualtion"</title>
			<link>http://www.k-wave.org/forum/topic/setnugrid-setting-non-uniform-grid-for-1d-pa-simualtion#post-5957</link>
			<pubDate>Thu, 25 May 2017 21:29:44 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5957@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Adrien,&#60;/p&#62;
&#60;p&#62;You could try the solution discussed in the &#60;a href=&#34;http://www.k-wave.org/forum/topic/using-transducer-as-both-source-and-receiver-with-reflector-as-well&#34;&#62;this post&#60;/a&#62;. There are also some results in &#60;a href=&#34;http://bug.medphys.ucl.ac.uk/papers/2014-Robertson-IEEEIUS.pdf&#34;&#62;this paper&#60;/a&#62; that might be relevant. Other than that, I can only suggest performing a convergence test so that you can have confidence in the results.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>langloa2 on "setNUgrid, setting non uniform grid for 1D PA simualtion"</title>
			<link>http://www.k-wave.org/forum/topic/setnugrid-setting-non-uniform-grid-for-1d-pa-simualtion#post-5945</link>
			<pubDate>Tue, 23 May 2017 11:45:42 +0000</pubDate>
			<dc:creator>langloa2</dc:creator>
			<guid isPermaLink="false">5945@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Bradley, thank you for your answer, I'll try to work with uniform grids.&#60;br /&#62;
Do you know where I can find some tips with solid/gaseous (or any problem with high density difference at interface) photoacoustic simulation ?&#60;br /&#62;
Best,&#60;br /&#62;
Adrien.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "setNUgrid, setting non uniform grid for 1D PA simualtion"</title>
			<link>http://www.k-wave.org/forum/topic/setnugrid-setting-non-uniform-grid-for-1d-pa-simualtion#post-5916</link>
			<pubDate>Mon, 08 May 2017 17:20:14 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5916@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Adrien,&#60;/p&#62;
&#60;p&#62;Unfortunately, while some remnants of the non-uniform grid code exist in k-Wave, this isn't a properly supported feature. We are actively working on this (e.g., &#60;a href=&#34;https://arxiv.org/abs/1612.04156&#34;&#62;see here&#60;/a&#62;), but it may be a little while before we have production code that makes it into the main release.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>langloa2 on "setNUgrid, setting non uniform grid for 1D PA simualtion"</title>
			<link>http://www.k-wave.org/forum/topic/setnugrid-setting-non-uniform-grid-for-1d-pa-simualtion#post-5906</link>
			<pubDate>Thu, 27 Apr 2017 12:38:27 +0000</pubDate>
			<dc:creator>langloa2</dc:creator>
			<guid isPermaLink="false">5906@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi all,&#60;br /&#62;
I'm currently working on 1D photoacoustic simulation in an heterogeneous medium. The high difference in the medium properties (from solid to air) at the boundary makes the simulation go wrong.&#60;br /&#62;
I think that setting the kgrid to non uniform (a large step away from the boundaries, and a narrow step close to them) would help me but I don't quite understand how to use the setNUgrid function.&#60;br /&#62;
What are the different arguments of this function ? here is the beginning of my code &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Nx = 1024;                   % number of grid points in the x (row) direction
dx = 0.05e-3;                % grid point spacing in the x direction [m]
kgrid = makeGrid(Nx, dx);
X = 0:dx:abs(Nx*dx);
in = (0:pi/(width/2):2*pi).&#38;#39;;
gradient=                    %some gradient function ?

kgrid_test = setNUGrid(kgrid,1,X,gradient,1,1);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;kgrid_test is set to non uniform but with some gradient vectors tested, the parameter kgrid_test.x is still uniformly spaced.&#60;/p&#62;
&#60;p&#62;Best,&#60;br /&#62;
Adrien
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
