<?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: The optional input &#039;SaveToDisk&#039; is currently only compatible with forward simula</title>
		<link>http://www.k-wave.org/forum/topic/the-optional-input-savetodisk-is-currently-only-compatible-with-forward-simula</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 22:29:12 +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/the-optional-input-savetodisk-is-currently-only-compatible-with-forward-simula" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "The optional input &#039;SaveToDisk&#039; is currently only compatible with forward simula"</title>
			<link>http://www.k-wave.org/forum/topic/the-optional-input-savetodisk-is-currently-only-compatible-with-forward-simula#post-8955</link>
			<pubDate>Fri, 24 Nov 2023 17:31:02 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">8955@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;As the error message suggests, you can't run the C++ code with a Cartesian sensor mask. You have to use a binary sensor mask. You could also use a sensor mask created using &#60;code&#62;kWaveArray&#60;/code&#62; if you don't want to discretise your sensor points to the grid.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>AoTsing on "The optional input &#039;SaveToDisk&#039; is currently only compatible with forward simula"</title>
			<link>http://www.k-wave.org/forum/topic/the-optional-input-savetodisk-is-currently-only-compatible-with-forward-simula#post-8937</link>
			<pubDate>Mon, 06 Nov 2023 06:48:59 +0000</pubDate>
			<dc:creator>AoTsing</dc:creator>
			<guid isPermaLink="false">8937@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;hello，I have difine a 512*512*512 kgird and my initial pressure distribution(get from MCmatlab,also 512*512*512 grids) ,then I define a CartBowl senser by makeCartBowl,but when I run the program finally with kspaceFirstOrder3DG,I get a error:&#34;The optional input 'SaveToDisk' is currently only compatible with forward simulations using a non-zero binary sensor mask.&#34;&#60;/p&#62;
&#60;p&#62;my total code following:&#60;br /&#62;
clc; clear all; close;&#60;br /&#62;
Nx = 512; % number of grid points in the x (row) direction&#60;br /&#62;
Ny = 512; % number of grid points in the y (column) direction&#60;br /&#62;
Nz = 512; % number of grid points in the x (row) direction&#60;/p&#62;
&#60;p&#62;x = 4e-2;  % [m]&#60;br /&#62;
dx = x/Nx; % grid point spacing in the x direction [m]&#60;br /&#62;
dy = dx;   % grid point spacing in the y direction [m]&#60;br /&#62;
dz = dx;   % grid point spacing in the y direction [m]&#60;/p&#62;
&#60;p&#62;kgrid = makeGrid(Nx, dx, Ny, dy, Nz, dz);&#60;br /&#62;
load(&#34;P0.mat&#34;);&#60;br /&#62;
source.p0 = p0;&#60;/p&#62;
&#60;p&#62;medium.sound_speed = 1500*ones(Nx, Ny,Nz); % [m/s]&#60;br /&#62;
medium.density = 1040; % [kg/m^3]&#60;/p&#62;
&#60;p&#62;% define sensor&#60;br /&#62;
bowl_pos  = [-1.5e-2, 0e-2, 0e-2];&#60;br /&#62;
radius    = Inf;&#60;br /&#62;
diameter  = 4e-2;&#60;br /&#62;
focus_pos = [0e-2,0e-2,0e-2];&#60;br /&#62;
num_points= 256;&#60;br /&#62;
sensor.mask = makeCartBowl(bowl_pos, radius, diameter, focus_pos, num_points);&#60;/p&#62;
&#60;p&#62;sensor_data = kspaceFirstOrder3DG(kgrid, medium, source, sensor);
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
