<?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: sensor aperture</title>
		<link>http://www.k-wave.org/forum/topic/sensor-aperture</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 00:43:47 +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/sensor-aperture" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "sensor aperture"</title>
			<link>http://www.k-wave.org/forum/topic/sensor-aperture#post-6682</link>
			<pubDate>Sun, 09 Dec 2018 21:34:28 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6682@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;It doesn't work because the two masks don't have the same 'on' value (the ball is 5 and 0, the sensor mask is 1 and 0). Instead, try the following:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;voxelPlot(single(sensor.mask &#124; p0));&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Brad
&#60;/p&#62;</description>
		</item>
		<item>
			<title>peiliu on "sensor aperture"</title>
			<link>http://www.k-wave.org/forum/topic/sensor-aperture#post-6660</link>
			<pubDate>Sat, 24 Nov 2018 15:52:24 +0000</pubDate>
			<dc:creator>peiliu</dc:creator>
			<guid isPermaLink="false">6660@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;hi!&#60;br /&#62;
I have used the k-wave for few weeks and have some problems.I want to do a simulation about the aperture of a single element transducer,so I define a transducer and a source use the 'makeBall' in the 3D.The code is shown blow:&#60;br /&#62;
% create the computational grid&#60;br /&#62;
Nx = 64;            % number of grid points in the x direction&#60;br /&#62;
Ny = 64;            % number of grid points in the y direction&#60;br /&#62;
Nz = 64;            % number of grid points in the z direction&#60;br /&#62;
dx = 100e-3/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 z direction [m]&#60;br /&#62;
kgrid = kWaveGrid(Nx, dx, Ny, dy, Nz, dz);&#60;/p&#62;
&#60;p&#62;% define the properties of the propagation medium&#60;br /&#62;
medium.sound_speed = 1500;      % [m/s]&#60;/p&#62;
&#60;p&#62;% create the time array&#60;br /&#62;
kgrid.makeTime(medium.sound_speed);&#60;/p&#62;
&#60;p&#62;% create a concave sensor&#60;br /&#62;
sphere_offset =10;                             % [grid points]&#60;br /&#62;
diameter = Nx/2 + 1;                            % [grid points]&#60;br /&#62;
bowl_pos = [1 + sphere_offset, Ny/2, Nz/2];     % [grid points]&#60;br /&#62;
focus_pos = [Nx/2, Ny/2, Nz/2];                 % [grid points]&#60;br /&#62;
sensor.mask = makeBowl([Nx, Ny, Nz], bowl_pos, inf, diameter, focus_pos);&#60;/p&#62;
&#60;p&#62;% create initial pressure distribution using makeBall&#60;br /&#62;
ball_magnitude = 5;            % [Pa]&#60;br /&#62;
ball_radius = 5;        % [grid points]&#60;br /&#62;
p0 = ball_magnitude * makeBall(Nx, Ny, Nz, 30, Ny/2, Nz/2, ball_radius);&#60;/p&#62;
&#60;p&#62;and I want to show the transducer and the source togather in the codes as follows:&#60;/p&#62;
&#60;p&#62;voxelPlot(sensor.mask+p0);&#60;br /&#62;
view([130, 40]);&#60;/p&#62;
&#60;p&#62;my question is why the result is wrong.I execute the codes about the transducer and show it ,it's right,and I execute the codes about the source and show it,it's right as well.But when I try show them togather the transducer is can't be seen.I'm very confused,I need your help,thank you in advance!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
