<?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: Changing spatial resolution gives strange results</title>
		<link>http://www.k-wave.org/forum/topic/changing-spatial-resolution-gives-strange-results</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 00:21:25 +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/changing-spatial-resolution-gives-strange-results" rel="self" type="application/rss+xml" />

		<item>
			<title>DNF on "Changing spatial resolution gives strange results"</title>
			<link>http://www.k-wave.org/forum/topic/changing-spatial-resolution-gives-strange-results#post-7955</link>
			<pubDate>Thu, 26 Nov 2020 14:21:11 +0000</pubDate>
			<dc:creator>DNF</dc:creator>
			<guid isPermaLink="false">7955@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;There's a time-of-arrival difference for the second pulse that bounces off the interface, though it may be related to the same thing.&#60;/p&#62;
&#60;p&#62;Thanks for the explanation. I'm used to only considering band-limited sources, and should probably not be messing around with initial value problems at this point, since I'm missing some intuition, apparently.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Changing spatial resolution gives strange results"</title>
			<link>http://www.k-wave.org/forum/topic/changing-spatial-resolution-gives-strange-results#post-7954</link>
			<pubDate>Thu, 26 Nov 2020 14:07:13 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">7954@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;In the limit of infinite bandwidth, the response should be an n-wave. This is described in the series of seminal papers about photoacoustic waves by Diebold (e.g., &#60;a href=&#34;https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.67.3384&#34;&#62;this one&#60;/a&#62;). The waves in the lower resolution simulation look &#34;smoother&#34; because of the band-limiting.&#60;/p&#62;
&#60;p&#62;Not sure what you mean by the timing being off?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>DNF on "Changing spatial resolution gives strange results"</title>
			<link>http://www.k-wave.org/forum/topic/changing-spatial-resolution-gives-strange-results#post-7948</link>
			<pubDate>Thu, 26 Nov 2020 12:22:19 +0000</pubDate>
			<dc:creator>DNF</dc:creator>
			<guid isPermaLink="false">7948@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I'm coming back to k-wave after a pause of several years, and ran into a problem that may be trivial (hopefully). I used the example_ivp_axisymmetric_simulation.m script, and wanted to just double the spatial resolution in each direction:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;Nup = 2;  % upsampling factor

Nx = 128 * Nup;           % number of grid points in the axial (x) direction
Ny = 64 * Nup;            % number of grid points in the radial (y) direction
dx = 0.1e-3/Nup;        % grid point spacing in the axial (x) direction [m]
dy = 0.1e-3/Nup;        % grid point spacing in the radial (y) direction [m]
kgrid = kWaveGrid(Nx, dx, Ny, dy);

% define the properties of the propagation medium
medium.sound_speed = 1500 * ones(Nx, Ny);       % [m/s]
medium.sound_speed(Nx/2:end, :) = 1800;         % [m/s]
medium.density = 1000 * ones(Nx, Ny);           % [kg/m^3]
medium.density(Nx/2:end, :) = 1200;             % [kg/m^3]

% create initial pressure distribution in the shape of a disc - this is
% generated on a 2D grid that is doubled in size in the radial (y)
% direction, and then trimmed so that only half the disc is retained
source.p0 = 10 * makeDisc(Nx, 2 * Ny, Nx/4 + 8, Ny + 1, 5*Nup);
source.p0 = source.p0(:, Ny + 1:end);

% define a Cartesian sensor mask with points in the shape of a circle
sensor.mask = makeCartCircle(40 * dx * Nup, 50);

% remove points from sensor mask where y &#38;lt; 0
sensor.mask(:, sensor.mask(2, :) &#38;lt; 0) = [];

% run the simulation using the axisymmetric code
sensor_data = kspaceFirstOrderAS(kgrid, medium, source, sensor);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The output waveform is changed quite significantly, into something closer to a 'sawtooth' wave, and the timing of the arrivals also seem to be 'off'. Perhaps I need to tweak the time-step or something, but should this not happen automatically?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
