<?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: Easiest (fastest) way to obtain spatial derivatives of pressure</title>
		<link>http://www.k-wave.org/forum/topic/easiest-fastest-way-to-obtain-spatial-derivatives-of-pressure</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:07:56 +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/easiest-fastest-way-to-obtain-spatial-derivatives-of-pressure" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Easiest (fastest) way to obtain spatial derivatives of pressure"</title>
			<link>http://www.k-wave.org/forum/topic/easiest-fastest-way-to-obtain-spatial-derivatives-of-pressure#post-6623</link>
			<pubDate>Tue, 30 Oct 2018 16:35:51 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6623@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Not out of the box. They are calculated in the code as part of the particle velocity update equation, although this calculation also includes a grid shift. I'd suggest two options:&#60;/p&#62;
&#60;p&#62;(1) If you don't want to hack k-Wave and it's feasible to save all the data, record the pressure over the whole grid, then calculate the spatial gradient at each time step after the simulation using &#60;code&#62;gradientSpect&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;(2) If you're happy to hack k-Wave, just add a new option inside &#60;code&#62;/private/kspaceFirstOrder_extractSensorData.m&#60;/code&#62;. First add a spectral gradient calculation of the pressure (without the grid shift), and then sample at the sensor points using sensor_mask_index.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>NikiKeyz on "Easiest (fastest) way to obtain spatial derivatives of pressure"</title>
			<link>http://www.k-wave.org/forum/topic/easiest-fastest-way-to-obtain-spatial-derivatives-of-pressure#post-6604</link>
			<pubDate>Wed, 24 Oct 2018 18:44:58 +0000</pubDate>
			<dc:creator>NikiKeyz</dc:creator>
			<guid isPermaLink="false">6604@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Is there a way to record dp/dx and dp/dy? As I understand they are calculated each step anyway.&#60;br /&#62;
For now I use 2 additional sensors to calculate spatial derivatives.&#60;br /&#62;
Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
