<?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: Setting up pressure gradient.</title>
		<link>http://www.k-wave.org/forum/topic/setting-up-pressure-gradient</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 06:49:52 +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/setting-up-pressure-gradient" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Setting up pressure gradient."</title>
			<link>http://www.k-wave.org/forum/topic/setting-up-pressure-gradient#post-4892</link>
			<pubDate>Fri, 12 Dec 2014 12:15:22 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4892@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Yi,&#60;/p&#62;
&#60;p&#62;Using the function &#60;code&#62;kspaceSecondOrder&#60;/code&#62; it is possible to directly set the initial pressure gradient using &#60;code&#62;source.dp0dt&#60;/code&#62;. This is illustrated in the &#60;a href=&#34;http://www.k-wave.org/documentation/example_ivp_setting_initial_gradient.php&#34;&#62;Setting An Initial Pressure Gradient Example&#60;/a&#62; (you can access this via the MATLAB help browser). &#60;/p&#62;
&#60;p&#62;If you want to enforce a particular gradient during the simulation, then I would suggest using &#60;code&#62;kspaceFirstOrder3D&#60;/code&#62; (etc), and using a pressure or velocity source with &#60;code&#62;source.p_mode&#60;/code&#62; or &#60;code&#62;source.u_mode&#60;/code&#62; set to &#60;code&#62;dirichlet&#60;/code&#62;. Again, there are examples of how to use pressure and velocity sources in the toolbox.&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gerneral0 on "Setting up pressure gradient."</title>
			<link>http://www.k-wave.org/forum/topic/setting-up-pressure-gradient#post-4879</link>
			<pubDate>Mon, 08 Dec 2014 20:33:08 +0000</pubDate>
			<dc:creator>gerneral0</dc:creator>
			<guid isPermaLink="false">4879@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I am new to K-Wave tool box here. I was wondering how should I set up the initial pressure gradient. If possible, how would I keep the gradient though the simulation. In the matlab help document, I realized it is possible to do it. But without sample codes, I got confused.&#60;br /&#62;
Thanks,&#60;br /&#62;
Yi
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
