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

		<item>
			<title>cyl on "Transcranial ultrasound attenuation"</title>
			<link>http://www.k-wave.org/forum/topic/transcranial-ultrasound-attenuation#post-9102</link>
			<pubDate>Tue, 04 Jun 2024 13:53:29 +0000</pubDate>
			<dc:creator>cyl</dc:creator>
			<guid isPermaLink="false">9102@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;%%&#60;br /&#62;
% 定义网格&#60;br /&#62;
Nx = 300; % number of grid points in the x direction&#60;br /&#62;
Ny = 300; %number of grid points in the y direction&#60;br /&#62;
Nz = 300; % number of grid points in the z direction&#60;br /&#62;
dx =0.1e-3; % grid point spacing in the x direction [m]&#60;br /&#62;
dy =0.2e-3; % grid point spacing in the y direction [m]&#60;br /&#62;
dz =0.1e-3; % grid point spacing in the z direction [m]&#60;br /&#62;
kgrid = kWaveGrid(Nx, dx, Ny, dy, Nz, dz);&#60;br /&#62;
%%&#60;br /&#62;
% define the properties of the propagation medium&#60;br /&#62;
medium.sound_speed = 1540;      % [m/s]&#60;br /&#62;
medium.density = 1000;          % [kg/m^3]&#60;br /&#62;
medium.sound_speed = medium.sound_speed * ones(Nx, Ny, Nz); % [m/s]&#60;br /&#62;
medium.sound_speed(:,75:80,:) = 3500 ;%填颅骨的宽度和声速&#60;br /&#62;
medium.density = medium.density * ones(Nx, Ny, Nz); % [kg/m^3]&#60;br /&#62;
medium.density(:,75:80,:) = 2000 ;%填颅骨的宽度和密度&#60;br /&#62;
medium.alpha_coeff=0.05*ones(Nx,Ny,Nz); %[dB/(MHz^y cm)]&#60;br /&#62;
medium.alpha_coeff(:,75:80,:) = 2.7; %颅骨衰减系数&#60;br /&#62;
%%&#60;br /&#62;
% tempo e step de simulação&#60;br /&#62;
kgrid.makeTime(medium.sound_speed);&#60;br /&#62;
%%&#60;br /&#62;
% target ping signal&#60;br /&#62;
source_strength = 1e3;                         % [Pa]&#60;br /&#62;
tone_burst_freq = 1e6;                        % [Hz]&#60;br /&#62;
tone_burst_cycles = 1;&#60;br /&#62;
input_signal =  toneBurst(1/kgrid.dt, tone_burst_freq, tone_burst_cycles);&#60;br /&#62;
%%&#60;br /&#62;
%Setting up ultrasonic transducers&#60;br /&#62;
Transducer.number_elements=1; %阵元个数&#60;br /&#62;
Transducer.element_width = 5e-3; %阵元宽度&#60;br /&#62;
Transducer.element_length = 12 ;%阵元高度&#60;br /&#62;
Transducer.element_spaceing = 0 ;%阵元间距&#60;br /&#62;
Transducer.radius = inf;%换能器曲率半径&#60;br /&#62;
%计算换能器总宽度&#60;br /&#62;
transducer_width = Transducer.number_elements*Transducer.element_width;&#60;br /&#62;
transducer_x_pos = Nx/23;%grid points&#60;br /&#62;
transducer_y_pos = 25;%grid points&#60;br /&#62;
transducer_z_pos = 170;%grid points&#60;br /&#62;
Transducer.positoin = round([transducer_x_pos,transducer_y_pos,transducer_z_pos]);&#60;br /&#62;
% 用于波束合成延迟叠加的参数&#60;br /&#62;
Transducer.sound_speed = 1500;                  % 声速 [m/s]&#60;br /&#62;
Transducer.focus_distance = 20e-3;              % 焦距 [m]&#60;br /&#62;
Transducer.elevation_focus_distance = 19e-3;    % elevation plane 仰角平面焦距 [m]&#60;br /&#62;
Transducer.steering_angle = 0;                  % steering angle 偏转角 [degrees]&#60;br /&#62;
% 设置变迹 apodization&#60;br /&#62;
Transducer.transmit_apodization = 'Rectangular';&#60;br /&#62;
Transducer.receive_apodization = 'Rectangular';&#60;br /&#62;
% 设置当前激活的换能器阵元 define the transducer elements that are currently active&#60;br /&#62;
Transducer.active_elements = 1;&#60;br /&#62;
%设置用于驱动换能器的输入信号&#60;br /&#62;
Transducer.input_signal = input_signal;&#60;br /&#62;
%创建换能器&#60;br /&#62;
transducer = Transducer(kgrid, Transducer);&#60;br /&#62;
%%&#60;br /&#62;
%创建具有检测传感器&#60;br /&#62;
sensor.mask = zeros(Nx,Ny,Nz);&#60;br /&#62;
sensor.mask(Nx/2,275,170)=1;&#60;br /&#62;
%run the simulation&#60;br /&#62;
[sensor_data] = kspaceFirstOrder3D(kgrid , medium , Transducer, sensor,input_args{:});&#60;br /&#62;
%计算输入信号和每个传感器位置记录信号的幅度&#60;br /&#62;
[f_input, as_input] = spect([input_signal,zeros(1,2*length(input_signal))],1/kgrid.dt);&#60;br /&#62;
[~,as_1]=spect(sensor_data(1,:),1/kgrid.dt);&#60;br /&#62;
[sensor_data] = kspaceFirstOrder3D(kgrid, medium, transducer, sensor, input_args{:});
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cyl on "Transcranial ultrasound attenuation"</title>
			<link>http://www.k-wave.org/forum/topic/transcranial-ultrasound-attenuation#post-9100</link>
			<pubDate>Tue, 04 Jun 2024 13:50:02 +0000</pubDate>
			<dc:creator>cyl</dc:creator>
			<guid isPermaLink="false">9100@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello, I am currently researching the use of a single element transducer to generate ultrasound penetration through the skull, and then testing the sound field beneath the skull to obtain the attenuation coefficient of the skull. Here is my code. Currently, I have encountered an issue: during simulation, it will display‘transducer=Transducer (kgrid, Transducer)；there is an error Cannot use a value of type kWaveGrid as an index’ , which I have researched a lot of information but still cannot solve. I hope to receive your help. Thank you. Additionally, if there are any issues with my code, I hope you can point them out. Thank you very much again
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
