<?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: Resize simulation grid (How do correct choice?)</title>
		<link>http://www.k-wave.org/forum/topic/resize-simulation-grid-how-do-correct-choice</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 03:09:00 +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/resize-simulation-grid-how-do-correct-choice" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Resize simulation grid (How do correct choice?)"</title>
			<link>http://www.k-wave.org/forum/topic/resize-simulation-grid-how-do-correct-choice#post-5045</link>
			<pubDate>Wed, 15 Apr 2015 19:25:52 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5045@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Gg,&#60;/p&#62;
&#60;p&#62;In general, your simulations will be fastest if the grid dimensions including the PML have small prime factors. This is because the simulations are based heavily on the FFT. So 2^N will be the best, but there are also lots of other suitable sizes that also have small prime factors. There are some details about this in Sec. 3.2 in the k-Wave manual.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gigi on "Resize simulation grid (How do correct choice?)"</title>
			<link>http://www.k-wave.org/forum/topic/resize-simulation-grid-how-do-correct-choice#post-5041</link>
			<pubDate>Sun, 12 Apr 2015 15:54:00 +0000</pubDate>
			<dc:creator>gigi</dc:creator>
			<guid isPermaLink="false">5041@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Dear All,&#60;br /&#62;
Hi,&#60;br /&#62;
I would like to change the size of the grid to use transducers of different dimension.&#60;/p&#62;
&#60;p&#62;For example, I would like to resize the grid of the example  example_us_bmode_linear_transducer.m to use a 192 elements transducer instead a 32 elements transducer:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;%physical properties of the transducer with 192 elements&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;transducer.number_elements = 192;  	% total number of transducer elements&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;transducer.element_width = 2;       % width of each element [grid points]&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;transducer.element_length = 24;  	% length of each element [grid points]&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;transducer.element_spacing = 0;  	% spacing (kerf  width) between the elements [grid points]&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;transducer.radius = inf;            % radius of curvature of the transducer [m]&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Is it correct to set grid as below?&#60;/p&#62;
&#60;p&#62;&#60;code&#62;% set the size of the perfectly matched layer (PML)&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;pml_x_size = 20;            % [grid points]&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;pml_y_size = 10;            % [grid points]&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;pml_z_size = 10;            % [grid points]&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;&#60;code&#62;% set total number of grid points not including the PML&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;Nx = 156 - 2*pml_x_size;   % [grid points]&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;Ny = 768 - 2*pml_y_size;   % [grid points]&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;Nz = 128 - 2*pml_z_size;   % [grid points]&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Could be better to put Ny equal a power of 2 (es. Ny=2^9)?&#60;/p&#62;
&#60;p&#62;Is there a general rule to manage grid sizing ? &#60;/p&#62;
&#60;p&#62;Thank you a lot&#60;/p&#62;
&#60;p&#62;Gg
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
