<?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: smooth is required for strong heterogeneity</title>
		<link>http://www.k-wave.org/forum/topic/smooth-is-required-for-strong-heterogeneity</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:33:31 +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/smooth-is-required-for-strong-heterogeneity" rel="self" type="application/rss+xml" />

		<item>
			<title>bencox on "smooth is required for strong heterogeneity"</title>
			<link>http://www.k-wave.org/forum/topic/smooth-is-required-for-strong-heterogeneity#post-685</link>
			<pubDate>Tue, 14 Aug 2012 22:34:56 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">685@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Huangchao, &#60;/p&#62;
&#60;p&#62;k-Wave uses a spectral method for calculating the gradients of the field, so is based on a representation of the field as a finite sum of Fourier components, which works well when everything is nice and smooth (and the Fourier coefficients decay rapidly) but is less good when there are sharp gradients as Gibbs-type errors are introduced. Essentially, the finite number of Fourier components is unable to describe the sharp step accurately. See Section VB in our latest paper &#34;Modeling nonlinear ultrasound propagation in heterogeneous media with power law absorption using a k-space pseudospectral method&#34; for more explanation. (See the &#60;a href=&#34;http://www.k-wave.org/publications.php&#34;&#62;publications&#60;/a&#62; page).&#60;/p&#62;
&#60;p&#62;Kind regards,&#60;/p&#62;
&#60;p&#62;Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>huangchao on "smooth is required for strong heterogeneity"</title>
			<link>http://www.k-wave.org/forum/topic/smooth-is-required-for-strong-heterogeneity#post-681</link>
			<pubDate>Sun, 12 Aug 2012 05:03:08 +0000</pubDate>
			<dc:creator>huangchao</dc:creator>
			<guid isPermaLink="false">681@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I did the following simulation:&#60;/p&#62;
&#60;p&#62;Nx=64;&#60;br /&#62;
Ny=64;&#60;br /&#62;
Nz=64;&#60;br /&#62;
dx=1e-3;&#60;br /&#62;
dy=1e-3;&#60;br /&#62;
dz=1e-3;&#60;br /&#62;
kgrid=makeGrid(Nx,dx,Ny,dy,Nx,dz);&#60;/p&#62;
&#60;p&#62;medium.sound_speed=1500*ones(Nx,Ny,Nz);   % sound speed in water&#60;br /&#62;
medium.density=1000*ones(Nx,Ny,Nz);       % water density&#60;br /&#62;
medium.sound_speed(:,:,50:64)=343;        % sound speed in air&#60;br /&#62;
medium.density(:,:,50:64)=1.2;            % air density&#60;/p&#62;
&#60;p&#62;source.p0=makeBall(Nx,Ny,Nz,32,32,32,10);&#60;/p&#62;
&#60;p&#62;sensor.mask=[makeCartCircle(15e-3, 100);zeros(1,100)];&#60;/p&#62;
&#60;p&#62;input_args = {'Smooth', false,'CartInterp', 'nearest', 'DisplayMask','off', 'PMLInside', true, 'PMLSize', 10, 'PlotPML', false, 'PlotSim', false, 'DataCast', 'gsingle'};&#60;/p&#62;
&#60;p&#62;p=kspaceFirstOrder3D(kgrid,medium,source,sensor,input_args{:});&#60;/p&#62;
&#60;p&#62;Without smoothing the medium, the simulated pressure 'p' is blowing up, and if I smoothed the medium by setting the 'input_args' as&#60;/p&#62;
&#60;p&#62;input_args = {'Smooth', [false,true,true],'CartInterp', 'nearest', 'DisplayMask','off', 'PMLInside', true, 'PMLSize', 10, 'PlotPML', false, 'PlotSim', false, 'DataCast', 'gsingle'};&#60;/p&#62;
&#60;p&#62;Then 'p' looks reasonable. So I am wondering if this means that the medium needs to be smoothed if the variation of sound speed/density is very large.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
