<?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: zia.roghani</title>
		<link><a href='http://www.k-wave.org/forum/profile/ziaroghani'>ziaroghani</a></link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 00:28:38 +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>Bradley Treeby on "Modelling a 2D simple room(bounded by 4 walls ) with an audible sound source ."</title>
			<link>http://www.k-wave.org/forum/topic/modelling-a-2d-simple-roombounded-by-4-walls-with-an-audible-sound-source#post-5158</link>
			<pubDate>Sun, 19 Jul 2015 13:02:35 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5158@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Zia,&#60;/p&#62;
&#60;p&#62;There is no way to directly define an impedance boundary condition in k-Wave. However, you could define the material properties of your walls based on the equation for the plane wave pressure reflection coefficient at normal incidence, i.e., R = (Z2 - Z1) / (Z2 + Z1), where Z1 and Z2 are the characteristic acoustic impedance of the two media. &#60;/p&#62;
&#60;p&#62;Assuming the inner medium is air, then Z1 = 343 * 1.225 = 420. For R = 0.5, then Z2 = Z1 * (1 + R) / (1 - R) = 1260. You can then split this into the desired sound speed and density in the second medium. &#60;/p&#62;
&#60;p&#62;We have not derived an expression between reflection coefficient and the PML parameters - the data in Fig. 2.3 was derived by running numerical experiments. Generally speaking, the default values of PML thickness (20 grid points) and PML absorption (2 Nepers per grid point) work well. If you want to test a different range it's reasonably straightforward to do - send a wave into the PML and measure the amplitude of the transmitted and reflected waves.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zia.roghani on "Modelling a 2D simple room(bounded by 4 walls ) with an audible sound source ."</title>
			<link>http://www.k-wave.org/forum/topic/modelling-a-2d-simple-roombounded-by-4-walls-with-an-audible-sound-source#post-5143</link>
			<pubDate>Tue, 14 Jul 2015 17:10:07 +0000</pubDate>
			<dc:creator>zia.roghani</dc:creator>
			<guid isPermaLink="false">5143@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello Bradely Treeby,&#60;br /&#62;
I want to have the reflection co-effiecnt= 0.5, or 0.6 for the walls arround. The medium.sound_speed =330 ;  What should be the values of  medium.alpha_coeff, medium.alpha_power and PML_size. What is the numerical relationship between reflection,PLM(Thickness in grid point) and PML absorption as mention at pag 17,18 and figure 2.3.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zia.roghani on "simulation using acoustic signal to determine material type in underwater"</title>
			<link>http://www.k-wave.org/forum/topic/simulation-using-acoustic-signal-to-determine-material-type-in-underwater#post-4840</link>
			<pubDate>Mon, 17 Nov 2014 18:31:44 +0000</pubDate>
			<dc:creator>zia.roghani</dc:creator>
			<guid isPermaLink="false">4840@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;hay panda16&#60;br /&#62;
ope you will be fine. i am intrested in your work. could we please share it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Linear Sensors Array  and sound source simulation"</title>
			<link>http://www.k-wave.org/forum/topic/linear-sensors-array-and-sound-source-simulation#post-4835</link>
			<pubDate>Tue, 11 Nov 2014 17:28:20 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4835@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Zia,&#60;/p&#62;
&#60;p&#62;If you are using an object of the &#60;code&#62;kWaveTransducer&#60;/code&#62; class, it is only possible to have a single linear array. However, if you define &#60;code&#62;sensor.mask&#60;/code&#62; to be a binary matrix or cuboid corners, you can define an arbitrary number of sensor points in any configuration. &#60;/p&#62;
&#60;p&#62;You can assign any signal as your source (e.g., a recorded voice). You will need to assign this to &#60;code&#62;source.p&#60;/code&#62;. Keep in mind that you need to make sure the sampling rate used in the recording matches the sampling rate (i.e., 1/kgrid.dt) used in the simulation.&#60;/p&#62;
&#60;p&#62;You might find it helpful to work through the examples included in the toolbox from the beginning, as well as reading the k-Wave manual. They contain lots of helpful information relevant to your questions.&#60;/p&#62;
&#60;p&#62;Good luck,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zia.roghani on "Linear Sensors Array  and sound source simulation"</title>
			<link>http://www.k-wave.org/forum/topic/linear-sensors-array-and-sound-source-simulation#post-4832</link>
			<pubDate>Fri, 07 Nov 2014 14:23:02 +0000</pubDate>
			<dc:creator>zia.roghani</dc:creator>
			<guid isPermaLink="false">4832@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Hypermoi,&#60;br /&#62;
you help is helpfull.As you are an expert. i have few question to ask.&#60;/p&#62;
&#60;p&#62;1: can we define more then one Linear sensors array.if yes pleas tell me how..?&#60;br /&#62;
2: is it possible to use some recorded voice as source.&#60;/p&#62;
&#60;p&#62;Your help will be highly appreciated.&#60;br /&#62;
Regards..
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anthony on "Linear Sensors Array  and sound source simulation"</title>
			<link>http://www.k-wave.org/forum/topic/linear-sensors-array-and-sound-source-simulation#post-4719</link>
			<pubDate>Wed, 17 Sep 2014 12:56:15 +0000</pubDate>
			<dc:creator>Anthony</dc:creator>
			<guid isPermaLink="false">4719@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Zia,&#60;/p&#62;
&#60;p&#62;You should have a look at the examples. Specifically, to set the position of your sensors, you can define a binary mask as explained in this example:  &#60;a href=&#34;http://www.k-wave.org/documentation/example_ivp_recording_particle_velocity.php&#34;&#62;example&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Feel free to ask if you need more details after reading the examples.&#60;/p&#62;
&#60;p&#62;Anthony
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zia.roghani on "Linear Sensors Array  and sound source simulation"</title>
			<link>http://www.k-wave.org/forum/topic/linear-sensors-array-and-sound-source-simulation#post-4718</link>
			<pubDate>Tue, 16 Sep 2014 18:08:12 +0000</pubDate>
			<dc:creator>zia.roghani</dc:creator>
			<guid isPermaLink="false">4718@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Dear all..&#60;/p&#62;
&#60;p&#62;I have 5 sensors placed in a linear configuration at known location. There is a sound source at a specific bearing/angle(bearing/angle of the source is variable)and known distance from the sensors array. I want to record the signal received at each sensors. Please help me simulating the scenario in K-wave. i will be really very thankful.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Modelling a 2D simple room(bounded by 4 walls ) with an audible sound source ."</title>
			<link>http://www.k-wave.org/forum/topic/modelling-a-2d-simple-roombounded-by-4-walls-with-an-audible-sound-source#post-4365</link>
			<pubDate>Fri, 14 Mar 2014 12:49:04 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4365@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Gurashish,&#60;/p&#62;
&#60;p&#62;There are a few possibilities. You could try imposing a boundary condition explicitly as discussed &#60;a href=&#34;http://www.k-wave.org/forum/topic/room-enclouse-acoustic-simulation&#34;&#62;here&#60;/a&#62;. However, this would still require the boundary to be several grid points thick. Alternatively, if you're familiar with spectral methods, you could replace the FFTs with discrete cosine and sine transforms to directly enforce Neumann and Dirichlet boundary conditions at the edge of the grid.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Gurashish singh on "Modelling a 2D simple room(bounded by 4 walls ) with an audible sound source ."</title>
			<link>http://www.k-wave.org/forum/topic/modelling-a-2d-simple-roombounded-by-4-walls-with-an-audible-sound-source#post-4359</link>
			<pubDate>Mon, 03 Mar 2014 22:02:13 +0000</pubDate>
			<dc:creator>Gurashish singh</dc:creator>
			<guid isPermaLink="false">4359@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;thank you ! that certainly clears my concepts . Incase if i just want to keep the boundaries completely reflective , without having to assign a number of grid points to the wall ! could i do that ?  what change do i make to the code . ?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Modelling a 2D simple room(bounded by 4 walls ) with an audible sound source ."</title>
			<link>http://www.k-wave.org/forum/topic/modelling-a-2d-simple-roombounded-by-4-walls-with-an-audible-sound-source#post-4351</link>
			<pubDate>Fri, 28 Feb 2014 10:45:48 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4351@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Gurashish,&#60;/p&#62;
&#60;p&#62;Consider a plane wave that is normally incident on a boundary. Let the characteristic acoustic impedance of the first medium be Z1 = rho1*c1 and the impedance of the second medium be Z2 = rho2*c2. When Z2 &#38;gt;&#38;gt; Z1 (as in the case of air and concrete), the pressure reflection coefficient will approach 1, and the pressure transmission coefficient will approach 2. As k-Wave plots pressure, this is the reason the colour scale looks darker in the concrete.&#60;/p&#62;
&#60;p&#62;However, in this case, the transmission of &#60;em&#62;energy&#60;/em&#62; into the second medium will approach zero (where T_e = 1 - R_p^2). This is clear if you consider the particle velocity of the plane wave in the second medium, which is given by u = p / Z2. As the particle velocity approaches 0, the transmitted intensity (given by I = p*u) will also approach 0.&#60;/p&#62;
&#60;p&#62;You can find more details in any introductory book on acoustics, for example, Kinsler &#38;amp; Frey.&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Gurashish singh on "Modelling a 2D simple room(bounded by 4 walls ) with an audible sound source ."</title>
			<link>http://www.k-wave.org/forum/topic/modelling-a-2d-simple-roombounded-by-4-walls-with-an-audible-sound-source#post-4347</link>
			<pubDate>Thu, 27 Feb 2014 02:15:20 +0000</pubDate>
			<dc:creator>Gurashish singh</dc:creator>
			<guid isPermaLink="false">4347@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi brad,&#60;br /&#62;
              Thanks so much for the help firstly .  Using your above described code i m afraid of the colour of the pressure field that propagates through the walls while the simulation shows the pressure field being generated(it becomes RED as sound waves start to reflect from them, while the tone burst source has YELLOW waves propagating that makes me feel that most of the waves are entering entering the walls . I m afraid if much of waves are passing through the walls into the PML described outside the grid and hence leading to attenuation of energy. Incase you feel the same . Is there a solution to this .?  &#60;/p&#62;
&#60;p&#62;clear all;&#60;/p&#62;
&#60;p&#62;% set the PML size&#60;br /&#62;
PML_size = 20;&#60;/p&#62;
&#60;p&#62;% create the computational grid [ 3m by 3m domain ]&#60;br /&#62;
Nx = 128 - 2*PML_size;  % number of grid points in the x (row) direction&#60;br /&#62;
Ny = 128 - 2*PML_size;  % number of grid points in the y (column) direction&#60;br /&#62;
dx = 3/Nx;              % grid point spacing in the x direction [m]&#60;br /&#62;
dy = 3/Ny;              % grid point spacing in the y direction [m]&#60;br /&#62;
kgrid = makeGrid(Nx, dx, Ny, dy);&#60;/p&#62;
&#60;p&#62;% define the properties of the propagation medium&#60;br /&#62;
c_air = 330;        % [m/s]&#60;br /&#62;
rho_air = 1.225;    % [kg/m^3]&#60;/p&#62;
&#60;p&#62;% define the properties of the wall&#60;br /&#62;
c_wall = 3200;      % [m/s]   concrete walls&#60;br /&#62;
rho_wall = 2300;    % [kg/m^3]&#60;br /&#62;
thickness = 5;     % [grid points]&#60;/p&#62;
&#60;p&#62;% define the position of the wall&#60;br /&#62;
wall = zeros(Nx, Ny);&#60;br /&#62;
wall(1:thickness, :) = 1;&#60;br /&#62;
wall(end - thickness + 1:end, :) = 1;&#60;br /&#62;
wall(:, 1:thickness) = 1;&#60;br /&#62;
wall(:, end - thickness + 1:end) = 1;&#60;/p&#62;
&#60;p&#62;% assign the medium properties&#60;br /&#62;
medium.sound_speed = c_air*ones(Nx, Ny);&#60;br /&#62;
medium.sound_speed(wall == 1) = c_wall;&#60;br /&#62;
medium.density = rho_air*ones(Nx, Ny);&#60;br /&#62;
medium.density(wall == 1) = rho_wall;&#60;/p&#62;
&#60;p&#62;% set the reference sound speed used in the k-space operator&#60;br /&#62;
medium.sound_speed_ref = c_air;&#60;/p&#62;
&#60;p&#62;% create the time array&#60;br /&#62;
cfl = 0.1;&#60;br /&#62;
t_end = 20e-3;      % [s]&#60;br /&#62;
[kgrid.t_array, dt] = makeTime(kgrid, medium.sound_speed, cfl, t_end);&#60;/p&#62;
&#60;p&#62;% define a time varying sinusoidal source&#60;br /&#62;
source_freq = 1.5e3;  % [Hz]&#60;br /&#62;
source_mag = 50;    % [Pa]&#60;br /&#62;
source.p = source_mag*toneBurst(1/kgrid.dt, source_freq, 3);&#60;/p&#62;
&#60;p&#62;% define a single source point&#60;br /&#62;
source.p_mask = zeros(Nx, Ny);&#60;br /&#62;
source.p_mask(60, 40) = 1;&#60;/p&#62;
&#60;p&#62;% define sensors everywhere&#60;br /&#62;
sensor.mask = ones(Nx, Ny);&#60;/p&#62;
&#60;p&#62;% define the acoustic parameters to record&#60;br /&#62;
sensor.record = {'p'};&#60;/p&#62;
&#60;p&#62;% run simulation&#60;br /&#62;
sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor, ...&#60;br /&#62;
    'PMLInside', false, 'PlotPML', false, 'PMLSize', PML_size, ...&#60;br /&#62;
    'DisplayMask', 'off', 'PlotScale', [-0.25, 0.25]*source_mag,...&#60;br /&#62;
    'DataCast', 'single');&#60;/p&#62;
&#60;p&#62;% plot the recorded data&#60;br /&#62;
figure;&#60;br /&#62;
subplot(2, 1, 1)&#60;br /&#62;
plot(kgrid.t_array(1:length(source.p)), source.p);&#60;br /&#62;
set(gca, 'XLim', [0, t_end]);&#60;br /&#62;
title('input');&#60;/p&#62;
&#60;p&#62;subplot(2, 1, 2);&#60;br /&#62;
plot(kgrid.t_array, sensor_data.p(end/2, :));&#60;br /&#62;
set(gca, 'XLim', [0, t_end]);&#60;br /&#62;
title('output in centre');
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Modelling a 2D simple room(bounded by 4 walls ) with an audible sound source ."</title>
			<link>http://www.k-wave.org/forum/topic/modelling-a-2d-simple-roombounded-by-4-walls-with-an-audible-sound-source#post-4321</link>
			<pubDate>Mon, 17 Feb 2014 22:31:56 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4321@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Gurashish,&#60;/p&#62;
&#60;p&#62;There are many ways you could do this. For example, you could replace the time varying source with an impulsive source by defining &#60;code&#62;source.p0&#60;/code&#62; instead of &#60;code&#62;source.p&#60;/code&#62;, and then compare the time of arrival between two sensor points spaced some distance apart. If you're having trouble with defining the sensor mask or interpreting the sensor data, I'd suggest taking a looking at the &#60;a href=&#34;http://www.k-wave.org/documentation.php&#34;&#62;k-Wave Manual&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Good luck with your simulations,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Gurashish singh on "Modelling a 2D simple room(bounded by 4 walls ) with an audible sound source ."</title>
			<link>http://www.k-wave.org/forum/topic/modelling-a-2d-simple-roombounded-by-4-walls-with-an-audible-sound-source#post-4311</link>
			<pubDate>Sun, 16 Feb 2014 04:50:23 +0000</pubDate>
			<dc:creator>Gurashish singh</dc:creator>
			<guid isPermaLink="false">4311@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;to validate this model . I m trying to see if the time delay between the signals recieved at two nodes corresponds to the speed of sound in air . ie distance between nodes / time delay . I am not getting the required speed . Is there a way to validate that this model is completely equivalent to a source present in a room , Since i dont want my experimental results to differ extremely from the numerical modelling ? I tried using the Xcorr function to find lag between two signals , but its confusing .   &#60;/p&#62;
&#60;p&#62;P.S : I am Researching on Application of Time Reversal in Localising a Source in Room . So if you have any suggestions regarding some experimentation/modelling  it would be interesting to know !
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Modelling a 2D simple room(bounded by 4 walls ) with an audible sound source ."</title>
			<link>http://www.k-wave.org/forum/topic/modelling-a-2d-simple-roombounded-by-4-walls-with-an-audible-sound-source#post-4308</link>
			<pubDate>Fri, 14 Feb 2014 17:42:16 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4308@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;It seems your source frequency is too high to be supported by the spatial grid. The grid needs to have a least two points per wavelength at the highest frequency of interest, where f_max = c0 / (2 * dx). There's more information about this in the k-Wave manual if you're stuck.&#60;/p&#62;
&#60;p&#62;Brad.&#60;/p&#62;
&#60;p&#62;---&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;clear all;

% set the PML size
PML_size = 20;

% create the computational grid [ 3m by 3m domain ]
Nx = 128 - 2*PML_size;  % number of grid points in the x (row) direction
Ny = 128 - 2*PML_size;  % number of grid points in the y (column) direction
dx = 3/Nx;              % grid point spacing in the x direction [m]
dy = 3/Ny;              % grid point spacing in the y direction [m]
kgrid = makeGrid(Nx, dx, Ny, dy);

% define the properties of the propagation medium
c_air = 330;        % [m/s]
rho_air = 1.225;    % [kg/m^3]

% define the properties of the wall
c_wall = 1000;      % [m/s]
rho_wall = 1000;    % [kg/m^3]
thickness = 5;     % [grid points]

% define the position of the wall
wall = zeros(Nx, Ny);
wall(1:thickness, :) = 1;
wall(end - thickness + 1:end, :) = 1;
wall(:, 1:thickness) = 1;
wall(:, end - thickness + 1:end) = 1;

% assign the medium properties
medium.sound_speed = c_air*ones(Nx, Ny);
medium.sound_speed(wall == 1) = c_wall;
medium.density = rho_air*ones(Nx, Ny);
medium.density(wall == 1) = rho_wall;

% set the reference sound speed used in the k-space operator
medium.sound_speed_ref = c_air;

% create the time array
cfl = 0.1;
t_end = 20e-3;      % [s]
[kgrid.t_array, dt] = makeTime(kgrid, medium.sound_speed, cfl, t_end);

% define a time varying sinusoidal source
source_freq = 1.5e3;  % [Hz]
source_mag = 50;    % [Pa]
source.p = source_mag*toneBurst(1/kgrid.dt, source_freq, 3);

% define a single source point
source.p_mask = zeros(Nx, Ny);
source.p_mask(60, 40) = 1;

% define sensors everywhere
sensor.mask = ones(Nx, Ny);

% define the acoustic parameters to record
sensor.record = {&#38;#39;p&#38;#39;};

% run simulation
sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor, ...
    &#38;#39;PMLInside&#38;#39;, false, &#38;#39;PlotPML&#38;#39;, false, &#38;#39;PMLSize&#38;#39;, PML_size, ...
    &#38;#39;DisplayMask&#38;#39;, &#38;#39;off&#38;#39;, &#38;#39;PlotScale&#38;#39;, [-0.25, 0.25]*source_mag,...
    &#38;#39;DataCast&#38;#39;, &#38;#39;single&#38;#39;);

% plot the recorded data
figure;
subplot(2, 1, 1)
plot(kgrid.t_array(1:length(source.p)), source.p);
set(gca, &#38;#39;XLim&#38;#39;, [0, t_end]);
title(&#38;#39;input&#38;#39;);

subplot(2, 1, 2);
plot(kgrid.t_array, sensor_data.p(end/2, :));
set(gca, &#38;#39;XLim&#38;#39;, [0, t_end]);
title(&#38;#39;output in centre&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Gurashish singh on "Modelling a 2D simple room(bounded by 4 walls ) with an audible sound source ."</title>
			<link>http://www.k-wave.org/forum/topic/modelling-a-2d-simple-roombounded-by-4-walls-with-an-audible-sound-source#post-4307</link>
			<pubDate>Fri, 14 Feb 2014 16:41:17 +0000</pubDate>
			<dc:creator>Gurashish singh</dc:creator>
			<guid isPermaLink="false">4307@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Yes !  i have disabled the PML as well as made the walls realistically thicker , but the recorded signals are not matching the source signal at all . Though what i expect is that the sound signals would hit the concrete walls and reverberate in the room. Recorded signals would atleast have similarity with source . &#60;/p&#62;
&#60;p&#62;This is exactly what i use . &#60;/p&#62;
&#60;p&#62;% create the computational grid  [ 3m by 3m domain ]&#60;br /&#62;
Nx = 20;           % number of grid points in the x (row) direction&#60;br /&#62;
Ny = 20;           % number of grid points in the y (column) direction&#60;br /&#62;
dx = 0.15;        % grid point spacing in the x direction [m]&#60;br /&#62;
dy = 0.15;        % grid point spacing in the y direction [m]&#60;br /&#62;
kgrid = makeGrid(Nx, dx, Ny, dy);&#60;/p&#62;
&#60;p&#62;% define the properties of the propagation medium [ bounded by concrete walls 0.9m thick]&#60;br /&#62;
medium.sound_speed = 330*ones(Nx, Ny);         % [m/s]&#60;br /&#62;
medium.sound_speed(1:7,:) = 3200;  % [m/s]&#60;br /&#62;
medium.sound_speed(:,1:7) = 3200;&#60;br /&#62;
medium.sound_speed(:,14:Nx) = 3200;&#60;br /&#62;
medium.sound_speed(14:Nx,:) = 3200;&#60;br /&#62;
medium.density = 1.225*ones(Nx, Ny); % [kg/m^3]&#60;br /&#62;
medium.density(1:7,:) = 2300;       % [kg/m^3]&#60;br /&#62;
medium.density(:,1:7) = 2300;&#60;br /&#62;
medium.density(14:Nx,:) = 2300;&#60;br /&#62;
medium.density(:,14:Nx) = 2300;&#60;/p&#62;
&#60;p&#62;% create the time array&#60;br /&#62;
%  [kgrid.t_array, dt] = makeTime(kgrid, medium.sound_speed); &#60;/p&#62;
&#60;p&#62;% % define a time varying sinusoidal source&#60;br /&#62;
% source_freq = 7000;   % [Hz]&#60;br /&#62;
% source_mag = 50;         % [Pa]&#60;br /&#62;
% source.p = source_mag*sin(2*pi*source_freq*kgrid.t_array);&#60;/p&#62;
&#60;p&#62;% define a single source point&#60;br /&#62;
source.p_mask = zeros(Nx, Ny);&#60;br /&#62;
source.p_mask(10,10) = 1;&#60;/p&#62;
&#60;p&#62;% [ define sensors everywhere ]&#60;br /&#62;
sensor.mask = ones(Nx, Ny);&#60;/p&#62;
&#60;p&#62;% define the acoustic parameters to record&#60;br /&#62;
sensor.record = {'p'}; &#60;/p&#62;
&#60;p&#62;% layout in addition to removing the PML from the display&#60;br /&#62;
sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor,'PMLInside', false);
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Modelling a 2D simple room(bounded by 4 walls ) with an audible sound source ."</title>
			<link>http://www.k-wave.org/forum/topic/modelling-a-2d-simple-roombounded-by-4-walls-with-an-audible-sound-source#post-4306</link>
			<pubDate>Fri, 14 Feb 2014 11:05:56 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4306@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Gurashish,&#60;/p&#62;
&#60;p&#62;Have you taken into account the perfectly matched layer (PML)? This is a thin layer surrounding the computational grid that absorbs the waves as they reach the edges. In 2D, the default size of the PML is 20 grid points positioned &#60;em&#62;inside&#60;/em&#62; the computational grid defined by the user. You can set the PML to be outside the computational grid by setting &#60;code&#62;&#38;#39;PMLInside&#38;#39;&#60;/code&#62; to &#60;code&#62;false&#60;/code&#62;, i.e., &#60;/p&#62;
&#60;p&#62;&#60;code&#62;sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor, &#38;#39;PMLInside&#38;#39;, false);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Alternatively, you could make your walls fat enough that they extend through the PML and into the interior of the domain, i.e., make them thicker than 20 grid points. Keep in mind your simulation will be fastest when the total grid size &#60;em&#62;including&#60;/em&#62; the PML is a number with small prime factors. You can use the function &#60;code&#62;checkFactors&#60;/code&#62; to identify suitable values.&#60;/p&#62;
&#60;p&#62;If you're happy modifying the simulation functions, another way to model the room is suggested in &#60;a href=&#34;http://www.k-wave.org/forum/topic/room-enclouse-acoustic-simulation&#34;&#62;this post&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Gurashish singh on "Modelling a 2D simple room(bounded by 4 walls ) with an audible sound source ."</title>
			<link>http://www.k-wave.org/forum/topic/modelling-a-2d-simple-roombounded-by-4-walls-with-an-audible-sound-source#post-4305</link>
			<pubDate>Fri, 14 Feb 2014 02:12:31 +0000</pubDate>
			<dc:creator>Gurashish singh</dc:creator>
			<guid isPermaLink="false">4305@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi , I have to model a &#34;room (2 by 2 m) &#34; in 2-D with a single acoustic source and detect pressure fields at all grid points defined . For now i am using the heterogeneous medium example , inputting density and speed of sound 330m/s,1.225kg/m3 everywhere in the grid except bounding the four edges of grid with density and speed of sound in CONCRETE .  I am not able to get any reverberations recorded at sensor points infact recorded signals are decayed . Is this the correct way of constructing the &#34;room&#34; ?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>panda16 on "simulation using acoustic signal to determine material type in underwater"</title>
			<link>http://www.k-wave.org/forum/topic/simulation-using-acoustic-signal-to-determine-material-type-in-underwater#post-3376</link>
			<pubDate>Fri, 03 May 2013 09:08:07 +0000</pubDate>
			<dc:creator>panda16</dc:creator>
			<guid isPermaLink="false">3376@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Thanks for the reply
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bencox on "simulation using acoustic signal to determine material type in underwater"</title>
			<link>http://www.k-wave.org/forum/topic/simulation-using-acoustic-signal-to-determine-material-type-in-underwater#post-3372</link>
			<pubDate>Fri, 03 May 2013 07:34:09 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">3372@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi panda16,&#60;/p&#62;
&#60;p&#62;k-Wave currently only models wave propagation in fluids, so it will not model the shear waves in solids, and so the reflection coefficients it models - which is presumably what you are trying to measure - will not be the same as if shear waves were included. An elastic wave code will be released in due course.&#60;/p&#62;
&#60;p&#62;Kind regards,&#60;/p&#62;
&#60;p&#62;Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>panda16 on "simulation using acoustic signal to determine material type in underwater"</title>
			<link>http://www.k-wave.org/forum/topic/simulation-using-acoustic-signal-to-determine-material-type-in-underwater#post-3371</link>
			<pubDate>Fri, 03 May 2013 04:28:17 +0000</pubDate>
			<dc:creator>panda16</dc:creator>
			<guid isPermaLink="false">3371@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello, I'm new to the k-wave. Have gone through some example in this forum.&#60;br /&#62;
Is it possible to perform simulation using acoustic signal to determine the material type in underwater?&#60;br /&#62;
I will be having an acoustic sensor in underwater located perpendicular to the test object. I would like to use acoustic signal to determine the structural type to see the is the object a plastic, a concrete or something else.&#60;br /&#62;
Anyone have any idea?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
