<?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: Problem with making kgrid</title>
		<link>http://www.k-wave.org/forum/topic/problem-with-making-kgrid</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 01:13:39 +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/problem-with-making-kgrid" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Problem with making kgrid"</title>
			<link>http://www.k-wave.org/forum/topic/problem-with-making-kgrid#post-4976</link>
			<pubDate>Wed, 04 Feb 2015 23:54:42 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4976@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Zia,&#60;/p&#62;
&#60;p&#62;It's easy enough to check why this isn't feasible using k-Wave if you check the numbers:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;% simulation parameters
f = 50e3; % [Hz]
c = 1500; % [m/s]
d = 3e3;  % [m]

% compute dx and Nx
ppw = 2;
dx = c/(ppw*f);
Nx = round(d/dx);

% compute memory used for each matrix
mem = Nx^2 * 8 / 1024^3;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The memory required to store one 2D matrix of this size in double-precision is 300 GB!&#60;/p&#62;
&#60;p&#62;Depending on your source and boundary conditions, you could look at using the boundary element method, or solving the Rayleigh integral.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zia.roghani on "Problem with making kgrid"</title>
			<link>http://www.k-wave.org/forum/topic/problem-with-making-kgrid#post-4964</link>
			<pubDate>Wed, 28 Jan 2015 17:59:01 +0000</pubDate>
			<dc:creator>zia.roghani</dc:creator>
			<guid isPermaLink="false">4964@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Bradely Treeby.&#60;br /&#62;
I need to simulate a sound source 3Km away from an array of 3-sensors 10m apart from each other. the medium is sea-water.The grid spacing  used can be dx=dy. i have the latest core i7 machine for simulation. could you please suggest how i can do it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Problem with making kgrid"</title>
			<link>http://www.k-wave.org/forum/topic/problem-with-making-kgrid#post-4842</link>
			<pubDate>Thu, 20 Nov 2014 11:01:15 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4842@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Zia,&#60;/p&#62;
&#60;p&#62;The problem is that your grid size is extremely large (each matrix is 343 GB), so you are likely seeing out of memory errors. Simulating 50 kHz waves in water over 3 km is a very large domain, even in 2D.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zia.roghani on "Problem with making kgrid"</title>
			<link>http://www.k-wave.org/forum/topic/problem-with-making-kgrid#post-4841</link>
			<pubDate>Wed, 19 Nov 2014 17:33:36 +0000</pubDate>
			<dc:creator>zia.roghani</dc:creator>
			<guid isPermaLink="false">4841@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello everybody,&#60;br /&#62;
whats is wrong with the code.it return the errors&#60;br /&#62;
&#34;Error in makeGrid (line 83)&#60;br /&#62;
 kgrid = makeGridStruct(varargin{:});&#60;/p&#62;
&#60;p&#62;&#34;Error in k_GRid (line 11)&#60;br /&#62;
kgrid=makeGrid(Nx, dx, Ny, dy);&#34;&#60;/p&#62;
&#60;p&#62;clear all;&#60;br /&#62;
clc;&#60;br /&#62;
x_size=3000;&#60;br /&#62;
y_size=3000;&#60;br /&#62;
f_max= 50000;&#60;br /&#62;
c0_min=1400;&#60;br /&#62;
dx=c0_min/(2*f_max);&#60;br /&#62;
dy=dx;&#60;br /&#62;
Nx=round(x_size/dx);&#60;br /&#62;
Ny=round(y_size/dy);&#60;br /&#62;
kgrid=makeGrid(Nx, dx, Ny, dy);
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
