parallel_waveguide_mesh
parallel_waveguide_mesh
DAFX-1
Proceedings of the COST G-6 Conference on Digital Audio Effects (DAFX-00), Verona, Italy, December 7-9, 2000
0
y 0 xsize-1
Figure 3.
| | s
DAFX-2
Proceedings of the COST G-6 Conference on Digital Audio Effects (DAFX-00), Verona, Italy, December 7-9, 2000
A (i, j, k) s(i, j, k)+(0, 0, 0); mesh, because of the eight different node positions in a unit cell.
B (i, j, k) s(i, j, k)+ (s/2, s/2, s/2); Table 2 identifies the neighbours corresponding to each position.
C (i, j, k) s(i, j, k)+(0, s, s);
Nodes in cell (i, j, k)
D (i, j, k) s(i, j, k)+ (s, 0, s);
A B C D E F G H
E (i, j, k) s(i, j, k)+ (s, s, 0);
i, j, k B A/E/D/C F/B G/B H/B C D E
F (i, j, k) s(i, j, k)+ (s/2, 3s/2, 3s/2); i, j, k-1 F/G
G (i, j, k) s(i, j, k)+ (3s/2, s/2, 3s/2); i, j, k+1 E E
H (i, j, k) s(i, j, k)+ (3s/2, 3s/2, s/2); i, j-1, k F/H
i, j+1, k D D
where 0 i xsize-1, 0 j ysize-1, 0 k zsize-1 and 2s = u is G/H
i-1, j, k
the edge of the unit cell. C C
i+1, j, k
i, j-1, k-1 F
4. THE TETRAHEDRAL MODEL ALGORITHM i-1, j, k-1 G
i-1, j-1, k H
i, j+1,k+1 A
Each tetrahedral mesh node is represented by 10 fields, as i+1, j, k+1 A
detailed in table 1. Eight of them implement bi-directional i+1, j+1, k A
communication ports with the 4 neighbouring nodes.
Table 2. Map of node interconnections.
Field Symbol Data type
There are links not only to the 6 unit cells with faces adjacent
Node pressure (air nodes) / to it (as was the case in the rectilinear model) but also to 6 other
p / 4-byte float
/ Reflection factor (boundary nodes)
Output port p1+ 4-byte float
Propagation axis 1
Input port p1 4-byte float
+ 4-byte float
Output port p2
Propagation axis 2 i+1, j, k+1
Input port p2 4-byte float
(right/up)
Output port p3+ 4-byte float i, j+1,k+1
Propagation axis 3 i-1, j-1, k (front/up)
Input port p3 4-byte float
(left/back)
Output port p 4+ 4-byte float
Propagation axis 4 i, j, k
Input port p4 4-byte float
i+1, j+1, k
Configuration node_config char (right/front)
Table 1. Node structure
i-1, j, k-1
As in the 3D rectilinear model [10], nodes can be configured (left/down) i, j-1, k-1
(node_config) as air nodes or boundary nodes. The field that (back/down)
holds the wave variable p in the former case, is used to store the
reflection factor of the corresponding surface in the latter. Air Relative position of the six neighbouring unit
nodes can be assigned special functions, namely mesh excitation cells exchanging data with a generic unit cell (i, j, k),
(modelling sound sources) and output (modeling sound through a common edge
receivers). This allows the acoustic characteristics of any room
with various surface coverings and different source and receiver
locations to be modelled. 5. PARALLEL IMPLEMENTATION
The modelling algorithm is the iterative two-pass
computation for lossless propagation [3] applied before [10] to
the 3D rectilinear topology.
The scattering pass calculations for boundary nodes remain
exactly the same, but for air nodes equations 1 and 2 yield:
1 +
p= ( p1 + p 2+ + p 3+ + p 4+ ) (4)
2 model blocks
pi = p pi+ i {1 ,2 , 3, 4} (5)
DAFX-3
Proceedings of the COST G-6 Conference on Digital Audio Effects (DAFX-00), Verona, Italy, December 7-9, 2000
3
44100
TM = .V . RT 60 . f Sn4 .t n
2c
V m3 RT60
s tn=44100t
6. COMPUTATION TIME s
fn
1/ 3 fS
fn =
d 44100 Hz
DAFX-4
Proceedings of the COST G-6 Conference on Digital Audio Effects (DAFX-00), Verona, Italy, December 7-9, 2000
The only difference between the two computation time 0.2 tn (s)
formulae is the numerical factor, 65% smaller in the tetrahedral Test 2
mesh as a direct result of its lower density. 15.3% 12.3% 10.1% 8.3%
0.15
In addition, tn should be lower:
43.1%
1) The scattering pass (equations 4 and 5) involves only 7 0.1
27.3% 26.9% 22.6%
algebraic additions and one division by 2, as opposed to 11 Test 1
additions and a division by 3 with the rectilinear model 6-port
0.05
junctions. The division by 2 cannot be implemented here through
bit-shifting as calculations are all floating-point. Block’s edge (m/fn)
0
2) As there are only 2 delay units per node (3 in the 0.25 0.5 0.75 1 1.25
rectilinear mesh), the number of delay pass operations also
decreases by 1/3.
Figure 6. Comparative communication overhead tests.
Thus, with tn reduced by approximately 1/3 (see figure 5), TM The percentage values indicate performance deterioration
would be 57.1% lower than in the rectilinear mesh. in test 2 (worst-case inter-block communication) relative
In parallelised operation, the computation time is affected by to the tn values from test 1 (no inter-block communication)
inter-block data transfer. The ratio S/V between the number of
surface delay units (connecting to exterior nodes) and the total As predicted, after a steep decrease in the initial part of the
number of nodes gives a clear indication of communication graph, the communication overhead ratio between equivalent
overhead. This ratio, a decreasing function of block size, is tetrahedral and rectilinear blocks stabilises at a value only slightly
minimised for cubic shapes in both the rectilinear and tetrahedral greater than that given by equation 13. The higher percentages
topologies. For equivalent cubic blocks, it can be shown that: seen for the tetrahedral mesh are due mainly to communication
overhead being compared to much lower values of tn.
( S / V )tetrahedral 2 1 2
= 1 (13) Normal parallel model operation was tested on a much faster
( S / V )rectilinear 3 3n 3 SGI Origin 2000
40
In order to assess the efficiency of the model and the effect of
35
communication overhead, the same technique as used in [10] for
30
the rectilinear model was adopted. Two simple tests were carried 1 processor
25
out on identical SGI O2 workstations connected by a network
(100 Mbit/s Ethernet). In the first test, only one cubic block (no 20
2 processors
neighbours) was tested under PVM on one of the machines, with 15
DAFX-5
Proceedings of the COST G-6 Conference on Digital Audio Effects (DAFX-00), Verona, Italy, December 7-9, 2000
8. MODEL VALIDATION
9 4 .9 12 0 .3 12 7.5
oblique , Espoo,
tangential
6 5.2 8 1.1 8 4 .7 9 8 .6 10 7.3 10 9 .8 12 0 .2 13 0 .4 13 7.3
Finland, 24-27 Sept., pp 455-458).
axial
4 2 .7 4 9 .2 6 8 .9 8 5.5 9 8 .4 12 8 .2 13 7.8
[5]
f (Hz)
ICMC Proceedings,
20.0 40.0 60.0 80.0 100.0 120.0 140.0
DAFX-6