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§impl Debug for RoomGeometry
impl Debug for RoomGeometry
§impl PartialEq for RoomGeometry
impl PartialEq for RoomGeometry
impl StructuralPartialEq for RoomGeometry
Auto Trait Implementations§
impl Freeze for RoomGeometry
impl RefUnwindSafe for RoomGeometry
impl Send for RoomGeometry
impl Sync for RoomGeometry
impl Unpin for RoomGeometry
impl UnsafeUnpin for RoomGeometry
impl UnwindSafe for RoomGeometry
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more