Struct RoomGeometry
pub struct RoomGeometry {
pub volume_m3: f64,
pub sound_speed_m_s: f64,
pub air_attenuation_m_inv: f64,
pub surfaces: Vec<SurfacePatch>,
}Expand description
Room geometry and acoustic boundary model for $T_{60}$ calculations.
Fields§
§volume_m3: f64Enclosed air volume $V > 0$ in $\text{m}^3$.
sound_speed_m_s: f64Speed of sound $c > 0$ in $\text{m}\cdot\text{s}^{-1}$ (e.g. $343.0\text{ m/s}$ at $20^\circ\text{C}$).
air_attenuation_m_inv: f64Air intensity attenuation coefficient $m \ge 0$ in $\text{Np}\cdot\text{m}^{-1}$ (enters as $4mV$).
surfaces: Vec<SurfacePatch>Boundary surface patches.
Implementations§
§impl RoomGeometry
impl RoomGeometry
pub fn validate_base(&self) -> Result<f64, NumericalError>
pub fn validate_base(&self) -> Result<f64, NumericalError>
Validate basic geometric parameters ($V > 0, c > 0, m \ge 0$, non-empty surfaces with $S_i > 0$).
pub fn sabine_absorption_area_m2(&self) -> Result<f64, NumericalError>
pub fn sabine_absorption_area_m2(&self) -> Result<f64, NumericalError>
Sabine equivalent absorption area $A_{\text{Sabine}} = \sum_i S_i \alpha_i + 4 m V$ in $\text{m}^2$ (Sabins).
pub fn sabine_rt60_s(&self) -> Result<f64, NumericalError>
pub fn sabine_rt60_s(&self) -> Result<f64, NumericalError>
Sabine reverberation time $T_{60,\text{Sabine}} = \frac{55.25 V}{c (\sum_i S_i \alpha_i + 4mV)}$ in seconds.
pub fn eyring_absorption_area_m2(&self) -> Result<f64, NumericalError>
pub fn eyring_absorption_area_m2(&self) -> Result<f64, NumericalError>
Eyring-Norris equivalent absorption area $A_{\text{Eyring}} = -S \ln(1 - \bar{\alpha}) + 4 m V$ in $\text{m}^2$. Rejects any patch with $\alpha_i \ge 1.0$ or mean $\bar{\alpha} \ge 1.0$.
pub fn eyring_rt60_s(&self) -> Result<f64, NumericalError>
pub fn eyring_rt60_s(&self) -> Result<f64, NumericalError>
Eyring-Norris reverberation time $T_{60,\text{Eyring}} = \frac{55.25 V}{c (-S\ln(1 - \bar{\alpha}) + 4mV)}$ in seconds.
pub fn millington_absorption_area_m2(&self) -> Result<f64, NumericalError>
pub fn millington_absorption_area_m2(&self) -> Result<f64, NumericalError>
Millington-Sette equivalent absorption area $A_{\text{Millington}} = -\sum_i S_i \ln(1 - \alpha_i) + 4 m V$ in $\text{m}^2$. Rejects any patch with $\alpha_i \ge 1.0$.
pub fn millington_rt60_s(&self) -> Result<f64, NumericalError>
pub fn millington_rt60_s(&self) -> Result<f64, NumericalError>
Millington-Sette reverberation time $T_{60,\text{Millington}} = \frac{55.25 V}{c (-\sum_i S_i \ln(1 - \alpha_i) + 4mV)}$ in seconds.
Trait Implementations§
§impl Clone for RoomGeometry
impl Clone for RoomGeometry
§fn clone(&self) -> RoomGeometry
fn clone(&self) -> RoomGeometry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more