Building Module
The building module contains functions for calculating acoustic properties of building elements, including sound transmission class (STC) and weighted sound reduction index (\(R_w\)) calculations.
| FUNCTION | DESCRIPTION |
|---|---|
rw_curve |
Calculate the reference curve for weighted sound reduction index. |
rw |
Calculate the weighted sound reduction index (\(R_w\)). |
rw_c |
Calculate the weighted sound reduction index with spectrum adaptation term C (\(R_w + C\)). |
rw_ctr |
Calculate the weighted sound reduction index with spectrum adaptation term \(C_{tr}\) (\(R_w + C_{tr}\)). |
stc_curve |
Calculate the Sound Transmission Class (STC) reference curve. |
stc |
Calculate the Sound Transmission Class (STC). |
mass_law |
Calculate transmission loss according to mass law. |
Functions
rw_curve
Calculate the curve of \(Rw\) from a NumPy array tl with third
octave data between 100 Hz and 3.15 kHz.
| PARAMETER | DESCRIPTION |
|---|---|
tl
|
Transmission Loss |
| RETURNS | DESCRIPTION |
|---|---|
NDArray[float64]
|
NDArray[np.float64]: Reference curve values. |
Source code in acoustic_toolbox/building.py
rw
Calculate \(R_W\) from a NumPy array tl with third octave data
between 100 Hz and 3.15 kHz.
| PARAMETER | DESCRIPTION |
|---|---|
tl
|
Transmission Loss. |
| RETURNS | DESCRIPTION |
|---|---|
float
|
The weighted sound reduction index.
TYPE:
|
Source code in acoustic_toolbox/building.py
rw_c
Calculate \(R_W + C\) from a NumPy array tl with third octave data
between 100 Hz and 3.15 kHz.
| PARAMETER | DESCRIPTION |
|---|---|
tl
|
Transmission Loss. |
| RETURNS | DESCRIPTION |
|---|---|
float
|
The weighted sound reduction index with spectrum adaptation term C.
TYPE:
|
Source code in acoustic_toolbox/building.py
rw_ctr
Calculate \(R_W + C_{tr}\) from a NumPy array tl with third octave
data between 100 Hz and 3.15 kHz.
| PARAMETER | DESCRIPTION |
|---|---|
tl
|
Transmission Loss. |
| RETURNS | DESCRIPTION |
|---|---|
float
|
The weighted sound reduction index with spectrum adaptation term \(C_{tr}\).
TYPE:
|
Source code in acoustic_toolbox/building.py
stc_curve
Calculate the Sound Transmission Class (STC) curve from a NumPy array tl
with third octave data between 125 Hz and 4 kHz.
| PARAMETER | DESCRIPTION |
|---|---|
tl
|
Transmission Loss. |
| RETURNS | DESCRIPTION |
|---|---|
NDArray[float64]
|
NDArray[np.float64]: The STC reference curve values. |
Source code in acoustic_toolbox/building.py
stc
Calculate the Sound Transmission Class (STC) from a NumPy array tl with
third octave data between 125 Hz and 4 kHz.
| PARAMETER | DESCRIPTION |
|---|---|
tl
|
Transmission Loss. |
| RETURNS | DESCRIPTION |
|---|---|
float
|
The Sound Transmission Class value.
TYPE:
|
Source code in acoustic_toolbox/building.py
mass_law
mass_law(
freq: float | NDArray[float64],
vol_density: float,
thickness: float,
theta: float = 0,
c: float = 343,
rho0: float = 1.225,
) -> float | NDArray[float64]
Calculate transmission loss according to mass law.
| PARAMETER | DESCRIPTION |
|---|---|
freq
|
Frequency of interest in Hz. |
vol_density
|
Volumetric density of material in \(frac{kg}{m^3}\).
TYPE:
|
thickness
|
Thickness of wall in m.
TYPE:
|
theta
|
Angle of incidence in degrees. Default value is 0 (normal incidence).
TYPE:
|
c
|
Speed of sound in m/s. Defaults to 343.
TYPE:
|
rho0
|
Density of air in \(\frac{kg}{m^3}\). Defaults to 1.225.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
float | NDArray[float64]
|
float | NDArray[np.float64]: Transmission loss value(s) in dB. |
Source code in acoustic_toolbox/building.py
:::