<?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: The different values of the &#34;cycle&#34; in function &#34; toneBurst&#34; in HIFU simulation</title>
		<link>http://www.k-wave.org/forum/topic/the-different-values-of-the-cycle-in-function-toneburst-in-hifu-simulation</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 21:40:34 +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/the-different-values-of-the-cycle-in-function-toneburst-in-hifu-simulation" rel="self" type="application/rss+xml" />

		<item>
			<title>guojia on "The different values of the &#34;cycle&#34; in function &#34; toneBurst&#34; in HIFU simulation"</title>
			<link>http://www.k-wave.org/forum/topic/the-different-values-of-the-cycle-in-function-toneburst-in-hifu-simulation#post-9245</link>
			<pubDate>Thu, 29 Jan 2026 09:16:11 +0000</pubDate>
			<dc:creator>guojia</dc:creator>
			<guid isPermaLink="false">9245@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi everyone, recently, I have been using kWaveArray to simulate the phased array ultrasound focusing sound field. However, when using the function &#34; toneBurst&#34; , I found that the value of &#34;cycle&#34; must be large enough (≥500) to obtain reasonable results; otherwise, the gain of the focused sound field would be too high, which is not reasonable. Could you please tell me what the reason is? The code is as follows:&#60;/p&#62;
&#60;p&#62;input_args={'DisplayMask',source.p_mask + sensor.mask,...&#60;br /&#62;
            'DataCast','double',...&#60;br /&#62;
            'CartInterp','linear',...% 'CartInterp','nearest',...&#60;br /&#62;
            'PMLSize',[20 20 20],...&#60;br /&#62;
            'PMLAlpha',5,...&#60;br /&#62;
            'PMLInside',false};&#60;br /&#62;
sensor_data=kspaceFirstOrder3DG(kgrid,medium,source,sensor,input_args{:});&#60;/p&#62;
&#60;p&#62;% 求取各阵元延时&#60;br /&#62;
% [max_val,max_pos]=max(sensor_data,[],2);&#60;br /&#62;
% travel_time=max_pos;&#60;br /&#62;
% time_delays=max(travel_time)-travel_time;&#60;/p&#62;
&#60;p&#62;sig_rev=fliplr(sensor_data);&#60;br /&#62;
[max_val,max_pos]=max(sig_rev,[],2);&#60;br /&#62;
time_delays=max_pos-min(max_pos);&#60;/p&#62;
&#60;p&#62;focus_mask=source.p_mask;&#60;br /&#62;
source.p_mask=sensor.mask;&#60;br /&#62;
p0=0.1e6;&#60;br /&#62;
% source_cycle2=490;       % 能够聚焦，但是结果会发散，声压增益500倍&#60;br /&#62;
source_cycle2=500;&#60;br /&#62;
source.p=1e6*toneBurst(1/kgrid.dt,f0,source_cycle2,'SignalOffset',time_delays,'Envelope','Rectangular');&#60;/p&#62;
&#60;p&#62;sensor.mask=zeros(nx,ny,nz);&#60;br /&#62;
sensor.mask(Index_x-30:Index_x+30,Index_y-30:Index_y+30,:)=1;&#60;br /&#62;
sensor.record={'p','p_max_all'};&#60;br /&#62;
nT=100;&#60;br /&#62;
sensor.record_start_index=kgrid.Nt-T0/kgrid.dt*nT+1;&#60;/p&#62;
&#60;p&#62;It is currently unclear what specific reason caused this. I would greatly appreciate it if friends could help figure out exactly what the cause is. Thank you very much.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
