<?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: 3D modeling of the room, (Reverberation Time)</title>
		<link>http://www.k-wave.org/forum/topic/3d-modeling-of-the-room-reverberation-time</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 05:21:30 +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/3d-modeling-of-the-room-reverberation-time" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "3D modeling of the room, (Reverberation Time)"</title>
			<link>http://www.k-wave.org/forum/topic/3d-modeling-of-the-room-reverberation-time#post-4603</link>
			<pubDate>Fri, 27 Jun 2014 10:10:40 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4603@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Yoojaeheon,&#60;/p&#62;
&#60;p&#62;If you are doing simulations at audible frequencies in air (particularly in the Hz to low-KHz range), the absorption coefficient is fairly small, so you could leave this undefined (you might also find &#60;a href=&#34;http://www.k-wave.org/forum/topic/absorbtion-coefficents&#34;&#62;this post&#60;/a&#62; helpful). Similarly, the reflection from the concrete wall will be very high, so the absorption in the concrete is unlikely to have a large effect on your results.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Yoojaeheon on "3D modeling of the room, (Reverberation Time)"</title>
			<link>http://www.k-wave.org/forum/topic/3d-modeling-of-the-room-reverberation-time#post-4601</link>
			<pubDate>Fri, 27 Jun 2014 05:16:47 +0000</pubDate>
			<dc:creator>Yoojaeheon</dc:creator>
			<guid isPermaLink="false">4601@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;K-wave tool to try to obtain the reverberation time. &#60;/p&#62;
&#60;p&#62; 6 of the concrete wall.&#60;/p&#62;
&#60;p&#62; Parameters in (medium.alpha_coeff) should I use?&#60;/p&#62;
&#60;p&#62; m code is&#60;/p&#62;
&#60;p&#62; clear all;&#60;/p&#62;
&#60;p&#62;% set the PML size&#60;br /&#62;
PML_size = 10;&#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)/2;  % number of grid points in the y (column) direction&#60;br /&#62;
Nz = (128- 2*PML_size)/4;&#60;br /&#62;
dx = 10/Nx;              % grid point spacing in the x direction [m]&#60;br /&#62;
dy = 5/Ny;                 % grid point spacing in the y direction [m]&#60;br /&#62;
dz = 2.5/Nz;&#60;br /&#62;
kgrid = makeGrid(Nx, dx, Ny, dy, Nz, dz);&#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 = 3500;      % [m/s]&#60;/p&#62;
&#60;p&#62;thickness = 5;     % [grid points]&#60;/p&#62;
&#60;p&#62;% define the position of the wall&#60;br /&#62;
wall = zeros(Nx, Ny, Nz);&#60;/p&#62;
&#60;p&#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;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,Nz);&#60;br /&#62;
medium.sound_speed(wall == 1) = c_wall;&#60;br /&#62;
medium.density = rho_air*ones(Nx, Ny,Nz);&#60;br /&#62;
medium.alpha_coeff = 4.6462e-06*ones(Nx,Ny,Nz);&#60;br /&#62;
medium.alpha_coeff(wall==1)= 1.3049;&#60;br /&#62;
medium.alpha_power = 0 ;&#60;br /&#62;
medium.sound_speed_ref = c_air;&#60;/p&#62;
&#60;p&#62;% create the time array&#60;br /&#62;
cfl = 0.2;&#60;br /&#62;
t_end=2;      % [s]&#60;br /&#62;
[kgrid.t_array, dt] = makeTime(kgrid, medium.sound_speed, cfl, t_end);&#60;/p&#62;
&#60;p&#62;source_freq = 1000;  % [Hz]&#60;br /&#62;
source_mag = 20;    % [Pa]&#60;br /&#62;
source.p = source_mag*toneBurst(1/kgrid.dt, source_freq, 1);&#60;/p&#62;
&#60;p&#62;source.p_mask = zeros(Nx, Ny,Nz);&#60;br /&#62;
source.p_mask(22, 27, 14) = 1;&#60;/p&#62;
&#60;p&#62;% define sensors everywhere&#60;br /&#62;
%sensor.mask = ones(Nx,Ny,Nz );&#60;br /&#62;
sensor.mask = zeros(Nx,Ny,Nz);&#60;br /&#62;
%sensor.mask(45,54,54)=1;&#60;br /&#62;
sensor.mask(52,27, 14)=1;&#60;br /&#62;
sensor.mask(62,27, 14)=1;&#60;br /&#62;
sensor.mask(72,27, 14)=1;&#60;br /&#62;
%sensor.mask(89,54,54)=1;&#60;/p&#62;
&#60;p&#62;% define the acoustic parameters to record&#60;br /&#62;
sensor.record = {'p'};&#60;/p&#62;
&#60;p&#62;input_args = {'PMLInside', false, 'PlotPML', false, 'PMLSize', PML_size, 'DataCast', 'single'};&#60;/p&#62;
&#60;p&#62;% run simulation&#60;br /&#62;
sensor_data = kspaceFirstOrder3D(kgrid, medium, source, sensor, input_args{:}); &#60;/p&#62;
&#60;p&#62;-If you set the density of the concrete wall is not simulated.&#60;br /&#62;
- medium.alpha_coeff = 4.6462e-06*ones(Nx,Ny,Nz); -&#38;gt; air attenuation&#60;br /&#62;
- medium.alpha_coeff(wall==1)= 1.3049;            -&#38;gt; concrete attenuation
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
