<?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: issues with using addLineElement</title>
		<link>http://www.k-wave.org/forum/topic/issues-with-using-addlineelement</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 21:35:35 +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/issues-with-using-addlineelement" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "issues with using addLineElement"</title>
			<link>http://www.k-wave.org/forum/topic/issues-with-using-addlineelement#post-9055</link>
			<pubDate>Wed, 20 Mar 2024 20:13:44 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">9055@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Zhu, I recommend taking a look at the &#60;a href=&#34;http://www.k-wave.org/documentation/example_at_array_as_source.php&#34;&#62;examples&#60;/a&#62;. These explain why the source mask is non local.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zhu1 on "issues with using addLineElement"</title>
			<link>http://www.k-wave.org/forum/topic/issues-with-using-addlineelement#post-9054</link>
			<pubDate>Wed, 20 Mar 2024 09:17:58 +0000</pubDate>
			<dc:creator>zhu1</dc:creator>
			<guid isPermaLink="false">9054@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I am trying to use addLineElement to add a transducer with a diameter of 3mm, but after generating it, the mask obtained using getArrayBinaryMask is much larger than 3mm. Can you tell me what to do? Thank you.&#60;br /&#62;
Below is part of the code:&#60;br /&#62;
（&#60;br /&#62;
clc;&#60;br /&#62;
clear all;&#60;br /&#62;
%%%%%%%%%%%%%%&#60;br /&#62;
pml_size = 40;              % [grid points]&#60;br /&#62;
Nx = 256;    % [grid points]&#60;br /&#62;
Ny = 256;    % [grid points]&#60;br /&#62;
dx = 0.25e-3;               % [m]&#60;br /&#62;
dy = 0.25e-3;               % [m]&#60;br /&#62;
kgrid = kWaveGrid(Nx, dx, Ny, dy);&#60;/p&#62;
&#60;p&#62;medium.sound_speed = 1510;  % [m/s]&#60;br /&#62;
medium.density     = 1020;  % [kg/m^3]&#60;br /&#62;
medium.alpha_coeff = 0.75;  % [dB/(MHz^y cm)]&#60;br /&#62;
medium.alpha_power = 1.5;&#60;br /&#62;
%频率疑问 频率高了（差不多超过4.5mhz图上就显示很差）&#60;br /&#62;
freq1 = 2.22e6; % 4.5 MHz&#60;br /&#62;
freq2 = 2.22e6;&#60;br /&#62;
% freq1 = 5.22e6; % 4.5 MHz&#60;br /&#62;
% freq2 = 5.58e6;&#60;/p&#62;
&#60;p&#62;%振幅疑问%%%%%%%%%%%%%%%%%%%&#60;br /&#62;
amp = 0.53e6; % 0.53[MPa]&#60;br /&#62;
% vrad_bk=1*0.7; %with backing side vibration velocity amplitude 0.68*0.6&#60;br /&#62;
%&#60;br /&#62;
% vrad_nobk=0*0.27; %without backing side vibration velocity amplitude&#60;/p&#62;
&#60;p&#62;% 换能器设置&#60;br /&#62;
karray = kWaveArray('BLITolerance', 0.05, 'UpsamplingRate', 10);&#60;br /&#62;
line_diameter = 0.003; % [m]&#60;br /&#62;
x_start = int32 (Nx/2 - (line_diameter / dx)/2);&#60;br /&#62;
x_end =int32 (Nx/2 + (line_diameter / dx)/2);&#60;br /&#62;
y_start =int32 (Ny/2 - (line_diameter / dy)/2);&#60;br /&#62;
y_end = int32 (Ny/2 + (line_diameter / dy)/2);&#60;/p&#62;
&#60;p&#62;% 添加线性元素到换能器阵列&#60;br /&#62;
karray.addLineElement([ 0,-0.0015],[ 0,0.0015]);&#60;br /&#62;
zhu = karray.getArrayBinaryMask(kgrid);&#60;br /&#62;
 ）
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
