<?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: hi</title>
		<link>http://www.k-wave.org/forum/topic/hi-1</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 01:33:14 +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/hi-1" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "hi"</title>
			<link>http://www.k-wave.org/forum/topic/hi-1#post-4977</link>
			<pubDate>Wed, 04 Feb 2015 23:56:41 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4977@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Mohsen,&#60;/p&#62;
&#60;p&#62;The code is not normalised in any way. If your source is defined in units of pressure [Pa], then your output will also be in units of pressure.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mohsen on "hi"</title>
			<link>http://www.k-wave.org/forum/topic/hi-1#post-4965</link>
			<pubDate>Wed, 28 Jan 2015 21:15:53 +0000</pubDate>
			<dc:creator>mohsen</dc:creator>
			<guid isPermaLink="false">4965@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;hello dr brad&#60;/p&#62;
&#60;p&#62;so far i was successful with your guidance in understanding of this problem.&#60;/p&#62;
&#60;p&#62;so one point for me is missing&#60;/p&#62;
&#60;p&#62;is that this code so for normilized problem?&#60;/p&#62;
&#60;p&#62;because when i try to run with normal values ,outputs are completely deferent &#60;/p&#62;
&#60;p&#62;best&#60;/p&#62;
&#60;p&#62;mohsen
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "hi"</title>
			<link>http://www.k-wave.org/forum/topic/hi-1#post-4951</link>
			<pubDate>Thu, 22 Jan 2015 22:16:41 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4951@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Mohsen,&#60;/p&#62;
&#60;p&#62;You can define the time step by setting &#60;code&#62;kgrid.t_array&#60;/code&#62;. This is introduced in the &#60;a href=&#34;http://www.k-wave.org/documentation/example_ivp_recording_particle_velocity.php&#34;&#62;Recording The Particle Velocity Example&#60;/a&#62;, and is also discussed in more detail in Section 3.2 of the k-Wave manual (page 30).&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mohsen on "hi"</title>
			<link>http://www.k-wave.org/forum/topic/hi-1#post-4941</link>
			<pubDate>Mon, 19 Jan 2015 12:28:13 +0000</pubDate>
			<dc:creator>mohsen</dc:creator>
			<guid isPermaLink="false">4941@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;hello dr brad&#60;/p&#62;
&#60;p&#62;how could i change in step time value?&#60;/p&#62;
&#60;p&#62;our how much is step time value in above code?&#60;/p&#62;
&#60;p&#62;thanx
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bencox on "hi"</title>
			<link>http://www.k-wave.org/forum/topic/hi-1#post-4928</link>
			<pubDate>Mon, 05 Jan 2015 11:35:40 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">4928@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi mohsen, &#60;/p&#62;
&#60;p&#62;As the error message says, your &#60;code&#62;sensor.mask&#60;/code&#62; is all zeros and k-Wave requires it to have at least one 1. If, for some reason, you don't want to use a sensor then just leave it out and run: &#60;code&#62;kspaceFirstOrder1D(kgrid, medium, source, []);&#60;/code&#62;. &#60;/p&#62;
&#60;p&#62;Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mohsen on "hi"</title>
			<link>http://www.k-wave.org/forum/topic/hi-1#post-4920</link>
			<pubDate>Tue, 23 Dec 2014 18:53:12 +0000</pubDate>
			<dc:creator>mohsen</dc:creator>
			<guid isPermaLink="false">4920@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;hello brad&#60;/p&#62;
&#60;p&#62;I am trying to run this code&#60;br /&#62;
% based on Heterogeneous Propagation Medium Example&#60;/p&#62;
&#60;p&#62;% 3rd April 2012&#60;/p&#62;
&#60;p&#62;clear all;&#60;/p&#62;
&#60;p&#62;% create the computational grid&#60;br /&#62;
Nx = 512;           % number of grid points in the x (row) direction&#60;br /&#62;
dx = 1e-3;          % grid point spacing in the x direction [m]&#60;br /&#62;
kgrid = makeGrid(Nx, dx);&#60;/p&#62;
&#60;p&#62;% define the properties of the propagation medium&#60;br /&#62;
region1 = (kgrid.x &#38;gt; -Nx/3*dx) .* (kgrid.x &#38;lt; 0);&#60;br /&#62;
region2 = (kgrid.x &#38;gt;= 0) .* (kgrid.x &#38;lt; 0.25*Nx/4*dx);&#60;br /&#62;
medium.sound_speed = 1500*ones(Nx,1);         % [m/s]&#60;br /&#62;
medium.sound_speed(region1==1) = 2000;&#60;br /&#62;
medium.sound_speed(region2==1) = 2200;&#60;br /&#62;
medium.density = 1000*ones(Nx,1);             % [kg/m^3]&#60;br /&#62;
medium.density(region1==1) = 1500;&#60;br /&#62;
medium.density(region2==1) = 1800;&#60;/p&#62;
&#60;p&#62;% define the initial pressure distribution&#60;br /&#62;
mua = 10;&#60;br /&#62;
p0 = exp(-mua*kgrid.x).*region2;&#60;br /&#62;
source.p0 = p0;&#60;/p&#62;
&#60;p&#62;%define a sensor&#60;br /&#62;
sensor.mask = zeros(Nx,1);&#60;/p&#62;
&#60;p&#62;% run the simulation&#60;br /&#62;
sensor_data = kspaceFirstOrder1D(kgrid, medium, source, sensor);&#60;/p&#62;
&#60;p&#62;but i am encountered with this error !!!&#60;/p&#62;
&#60;p&#62;Error using kspaceFirstOrder_inputChecking (line 523)&#60;br /&#62;
sensor.mask must be a binary grid with at least one element set to 1&#60;/p&#62;
&#60;p&#62;Error in kspaceFirstOrder1D (line 433)&#60;br /&#62;
kspaceFirstOrder_inputChecking;&#60;/p&#62;
&#60;p&#62;Error in k_wave_example_for_Mohsen_201412 (line 64)&#60;br /&#62;
sensor_data = kspaceFirstOrder1D(kgrid, medium, source, sensor);&#60;/p&#62;
&#60;p&#62;what is its problem?&#60;/p&#62;
&#60;p&#62;thnx for your kindly guidance and merry chrismass&#60;/p&#62;
&#60;p&#62;best wishes
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "hi"</title>
			<link>http://www.k-wave.org/forum/topic/hi-1#post-4917</link>
			<pubDate>Mon, 22 Dec 2014 14:16:44 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4917@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi mohsen,&#60;/p&#62;
&#60;p&#62;k-Wave uses a perfectly matched layer (PML) at the edges of the domain to simulate free field conditions, so you could consider a Sommerfeld radiation condition.&#60;/p&#62;
&#60;p&#62;&#60;em&#62;&#34;k-wave is divided(p(x,0)==0 --&#38;gt; p(x,0)^1/2=-p(x,0)^-1/2)&#34;&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;That's not quite right. k-Wave solves three first-order equations rather than the wave equation. This means it solves for acoustic pressure, density, and particle velocity. Because a time-staggered grid is used, odd symmetry is applied to the &#60;em&#62;particle velocity&#60;/em&#62; (rather than the pressure) when using &#60;code&#62;source.p0&#60;/code&#62; to ensure the particle velocity is zero at t = 0.&#60;/p&#62;
&#60;p&#62;k-Wave currently only includes models for wave propagation. If you want to model heat diffusion, you will need to solve the diffusion equation.&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mohsen on "hi"</title>
			<link>http://www.k-wave.org/forum/topic/hi-1#post-4906</link>
			<pubDate>Tue, 16 Dec 2014 12:58:14 +0000</pubDate>
			<dc:creator>mohsen</dc:creator>
			<guid isPermaLink="false">4906@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;brad i am solving this equation analytically too. indeed i will vallidated my method by k-wave toolbox. i was meaning about boundaru condition indeed, first and end points. what is considered in k-wave or what do i consider in my model. another thing initial value problem that is considered in k-wave is divided(p(x,0)==0 --&#38;gt; p(x,0)^1/2=-p(x,0)^-1/2).how about my model, should i make it like that?&#60;/p&#62;
&#60;p&#62;really i need help i am confused,so much.&#60;/p&#62;
&#60;p&#62;another thing, could i substitute coeficient cariable with temperature in k wave tool box?&#60;/p&#62;
&#60;p&#62;thank you so much
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mohsen on "hi"</title>
			<link>http://www.k-wave.org/forum/topic/hi-1#post-4905</link>
			<pubDate>Tue, 16 Dec 2014 12:49:34 +0000</pubDate>
			<dc:creator>mohsen</dc:creator>
			<guid isPermaLink="false">4905@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;thnak you brad
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "hi"</title>
			<link>http://www.k-wave.org/forum/topic/hi-1#post-4890</link>
			<pubDate>Fri, 12 Dec 2014 11:52:16 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4890@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Mohsen,&#60;/p&#62;
&#60;p&#62;Do you mean the boundary conditions between the layers? In this case, both the acoustic pressure and the particle velocity normal to the surface must remain continuous across the boundary. You can already use k-Wave for modelling layered media. A good place to start is to work through the examples included in the toolbox, starting with the &#60;a href=&#34;http://www.k-wave.org/documentation/k-wave_initial_value_problems.php&#34;&#62;Initial Value Problems&#60;/a&#62; (you can open these via the help browser in MATLAB). I'd also advise taking a look at the &#60;a href=&#34;http://www.k-wave.org/documentation.php&#34;&#62;k-Wave manual&#60;/a&#62;. This includes a description of the source terms used in k-Wave.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mohsen on "hi"</title>
			<link>http://www.k-wave.org/forum/topic/hi-1#post-4875</link>
			<pubDate>Fri, 05 Dec 2014 19:49:26 +0000</pubDate>
			<dc:creator>mohsen</dc:creator>
			<guid isPermaLink="false">4875@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;tanx a lot for your nice guidances&#60;/p&#62;
&#60;p&#62;i am trying to solve a 1-D propagation of photoacustic wave in multi layers media analytically.&#60;/p&#62;
&#60;p&#62;firs i am too confused about my boundary conditions in first and end points. what B.C s should be used for my model. &#60;/p&#62;
&#60;p&#62;another thing is that how could i extend k-wave model for multi layer medias?&#60;/p&#62;
&#60;p&#62;my ultimate question, for photoacustic model what is considered source term in your model because it was not implied about derivative of heat equation that is source term of photoacustic wave.&#60;/p&#62;
&#60;p&#62;best &#60;/p&#62;
&#60;p&#62;mohsen
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
