<?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: Steering angle plane wave</title>
		<link>http://www.k-wave.org/forum/topic/steering-angle-plane-wave</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:42:01 +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/steering-angle-plane-wave" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Steering angle plane wave"</title>
			<link>http://www.k-wave.org/forum/topic/steering-angle-plane-wave#post-7044</link>
			<pubDate>Thu, 12 Sep 2019 10:04:42 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">7044@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Farnaz,&#60;/p&#62;
&#60;p&#62;I'm not familiar with the ricker function, but essentially, you need to add the appropriate time offset to the signal for each element (group of four grid points).&#60;/p&#62;
&#60;p&#62;One simple way would be to create the time signal with a lot of trailing zeros, then replicate this to match the total number of grid points in your source with &#60;code&#62;repmat&#60;/code&#62;. Finally, for each time signal, use &#60;code&#62;circshift&#60;/code&#62; to add the appropriate amount of zeros to the beginning to give the desired time offset (in discrete steps of &#60;code&#62;kgrid.dt&#60;/code&#62;).&#60;/p&#62;
&#60;p&#62;If using discrete time delays is a problem, you could also use the equation of the ricker wavelet and sample it with the appropriate offsets.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Farnaz on "Steering angle plane wave"</title>
			<link>http://www.k-wave.org/forum/topic/steering-angle-plane-wave#post-7023</link>
			<pubDate>Tue, 27 Aug 2019 08:58:21 +0000</pubDate>
			<dc:creator>Farnaz</dc:creator>
			<guid isPermaLink="false">7023@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi, &#60;/p&#62;
&#60;p&#62;In the Steering linear angle example the delay is applied through the toneBurst function as offset but my problem is slightly different and I am wondering whether there are other functions to apply delays. (I have 2D simulation so I can't use transducer class)&#60;br /&#62;
I am using source.u with a ricker wavelet. I have a 2D linear transducer with 4 grid points for each element and 4 grid point for kerf. How do I apply delays for different angles in this scenario? &#60;/p&#62;
&#60;p&#62;% =========================================================================&#60;br /&#62;
% Define Source&#60;br /&#62;
% =========================================================================&#60;br /&#62;
kerf = 4;&#60;br /&#62;
groupspacing = 4;&#60;br /&#62;
element_num = 128;&#60;br /&#62;
source_shape = reshape((1:kerf)' + (0:element_num-1)*(kerf+groupspacing), 1, []);&#60;/p&#62;
&#60;p&#62;% % define source mask for a linear transducer with an odd number of elements&#60;br /&#62;
num_elements = element_num*groupspacing ;&#60;br /&#62;
x_offset = 1;          % [grid points]&#60;br /&#62;
source.u_mask = zeros(Nx, Ny);&#60;br /&#62;
source.u_mask(x_offset , source_shape ) = 1  ; &#60;/p&#62;
&#60;p&#62;%activate middle elements&#60;br /&#62;
active_elements = element_num/2  ;&#60;br /&#62;
sensor_offset_mask = groupspacing*element_num/4+kerf*(element_num/4)-1 ;&#60;br /&#62;
source.u_mask(x_offset , 1:sensor_offset_mask) = 0 ;&#60;br /&#62;
source.u_mask(x_offset , Ny-sensor_offset_mask:Ny)=0 ; &#60;/p&#62;
&#60;p&#62;% define the properties of the tone burst used to drive the transducer&#60;br /&#62;
sampling_freq = 1/kgrid.dt;     % [Hz]&#60;br /&#62;
steering_angle = 0;            % [deg]&#60;br /&#62;
element_spacing = dx;           % [m]&#60;br /&#62;
tone_burst_freq = 5e6;          % [Hz]&#60;/p&#62;
&#60;p&#62;source.ux = ricker(tone_burst_freq,120, kgrid.dt) ; &#60;/p&#62;
&#60;p&#62;Thanks in advance,
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
