<?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; User Favorites: Sangwoon Jeong</title>
		<link><a href='http://www.k-wave.org/forum/profile/sangwoon-jeong'>sangwoon-jeong</a></link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Fri, 15 May 2026 01:27:22 +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/profile/" rel="self" type="application/rss+xml" />

		<item>
			<title>Sangwoon Jeong on "Influence of material composition on arrival time"</title>
			<link>http://www.k-wave.org/forum/topic/influence-of-material-composition-on-arrival-time#post-8641</link>
			<pubDate>Mon, 07 Nov 2022 05:48:42 +0000</pubDate>
			<dc:creator>Sangwoon Jeong</dc:creator>
			<guid isPermaLink="false">8641@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello, I'm sangwoon Jeong&#60;br /&#62;
I'm studying on an acoustic wave generated by a proton beam.&#60;/p&#62;
&#60;p&#62;The influence of material deviation is evaluated.&#60;br /&#62;
If the average speed of sound and the average density of a material are the same, we are confirming that the arrival time of sound waves is different between a homogeneous material and a heterogeneous material.&#60;/p&#62;
&#60;p&#62;Is there anything else I should consider?&#60;/p&#62;
&#60;p&#62;Sometimes for example,&#60;br /&#62;
Extract the mean value and standard deviation of Hounsfiled units (HU) in the bone area and lung area from the CT image.&#60;br /&#62;
A homogeneous material with an average value and,&#60;br /&#62;
Produces an inhomogeneous material with the same mean but with a standard deviation.&#60;br /&#62;
At this time, the average speed of sound and density are the same.&#60;br /&#62;
Set the acoustic and detector at the same location of the two materials and use kspaceFirstOrder2D to check and compare the arrival times.&#60;/p&#62;
&#60;p&#62;As a result, it appears differently in the lung area, and it differs from the homogeneous material in the heterogeneous material that combines lung and bone or lung and tissue.&#60;/p&#62;
&#60;p&#62;this is my code.&#60;/p&#62;
&#60;p&#62;clc;&#60;br /&#62;
clear ;&#60;br /&#62;
close all ;&#60;/p&#62;
&#60;p&#62;%% PML&#60;/p&#62;
&#60;p&#62;  input_args = {'DataCast','gpuArray-single'};&#60;/p&#62;
&#60;p&#62;%% K-grid  input phantom image&#60;br /&#62;
% creat the compuational grid&#60;br /&#62;
kgrid.Nx = 300;&#60;br /&#62;
kgrid.Ny = 300;&#60;br /&#62;
dx = 1e-3;   % 1 mm&#60;br /&#62;
dy = 1e-3;  % 1 mm&#60;br /&#62;
kgrid = makeGrid(kgrid.Nx,dx,kgrid.Ny,dy);&#60;/p&#62;
&#60;p&#62;%% only one &#60;/p&#62;
&#60;p&#62;bone_matrix = randi([1800 1900],300, 300);&#60;br /&#62;
bone_true = ones(300,300)*mean2(bone_matrix);&#60;br /&#62;
lung_matrix = randi([162 305],300, 300);&#60;br /&#62;
lung_true = ones(300,300)*mean2(lung_matrix);&#60;br /&#62;
normal_matrix = randi([980 1105],300, 300);&#60;br /&#62;
normal_true = ones(300,300)*mean2(normal_matrix);&#60;/p&#62;
&#60;p&#62;%% select bone, lung, normal tissue&#60;br /&#62;
using_image = bone_true;&#60;/p&#62;
&#60;p&#62;%%&#60;/p&#62;
&#60;p&#62;figure, imshow(using_image,[]);&#60;br /&#62;
[density, sound_speed] = hounsfield2density(double(using_image));&#60;br /&#62;
medium.sound_speed = sound_speed;&#60;br /&#62;
medium.density = density;&#60;/p&#62;
&#60;p&#62;mean2(sound_speed)&#60;/p&#62;
&#60;p&#62;%% Create the time array&#60;/p&#62;
&#60;p&#62;dt = 10e-9;  % 10ns               % [s]  e-3 = ms / e-6 = 1us /  e-9 = 1ns&#60;br /&#62;
% Nt = 20000;&#60;br /&#62;
t_end = 200e-6;    % 0.2ms&#60;br /&#62;
% kgrid.setTime(Nt, dt);&#60;br /&#62;
kgrid.t_array = 0:dt:t_end;&#60;/p&#62;
&#60;p&#62;%% Source&#60;/p&#62;
&#60;p&#62;source.p_mask = zeros(kgrid.Nx,kgrid.Ny);&#60;br /&#62;
source.p_mask(kgrid.Nx/2, 99) = 1;&#60;br /&#62;
source_mag = 50e-3;       % [Pa] @@@&#60;br /&#62;
%%&#60;/p&#62;
&#60;p&#62;xx = [-3.5:1/300 :3.5];&#60;br /&#62;
yy = normpdf(xx,0,1);&#60;br /&#62;
yy =  yy(1,1:size(xx,2)-1);&#60;br /&#62;
source.p = source_mag * yy ;&#60;/p&#62;
&#60;p&#62;%% Sensor&#60;br /&#62;
sensor.mask = zeros(kgrid.Nx, kgrid.Ny);&#60;br /&#62;
sensor.mask(kgrid.Nx/2, 201) = 1; % sensor posz ition &#60;/p&#62;
&#60;p&#62;%% Run the simulation&#60;br /&#62;
sensor_data_2D = kspaceFirstOrder2D(kgrid, medium, source, sensor,input_args{:});&#60;/p&#62;
&#60;p&#62;%% result&#60;/p&#62;
&#60;p&#62;[t_sc, t_scale, t_prefix] = scaleSI(t_end);&#60;br /&#62;
result_time_array = kgrid.t_array*t_scale;&#60;/p&#62;
&#60;p&#62;Thanks for pointing out the problem.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Sangwoon Jeong.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
