pub struct AbsorptionCoefficient {
pub alpha: f64,
}Expand description
Beer-Lambert absorption model: I(z) = I₀ exp(-α z).
Fields§
§alpha: f64Absorption coefficient α (m⁻¹).
Implementations§
Source§impl AbsorptionCoefficient
impl AbsorptionCoefficient
Sourcepub fn from_extinction(k: f64, lambda_m: f64) -> Self
pub fn from_extinction(k: f64, lambda_m: f64) -> Self
Construct from extinction coefficient k and wavelength λ (m).
α = 4π k / λ
Sourcepub fn intensity(&self, i0: f64, z: f64) -> f64
pub fn intensity(&self, i0: f64, z: f64) -> f64
Transmitted intensity after propagating distance z (m).
Sourcepub fn penetration_depth(&self) -> f64
pub fn penetration_depth(&self) -> f64
Penetration depth δ = 1/α (m).
Sourcepub fn absorbance(&self, z: f64) -> f64
pub fn absorbance(&self, z: f64) -> f64
Absorbance A = α z (dimensionless, also known as optical density).
Trait Implementations§
Source§impl Clone for AbsorptionCoefficient
impl Clone for AbsorptionCoefficient
Source§fn clone(&self) -> AbsorptionCoefficient
fn clone(&self) -> AbsorptionCoefficient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AbsorptionCoefficient
impl Debug for AbsorptionCoefficient
impl Copy for AbsorptionCoefficient
Auto Trait Implementations§
impl Freeze for AbsorptionCoefficient
impl RefUnwindSafe for AbsorptionCoefficient
impl Send for AbsorptionCoefficient
impl Sync for AbsorptionCoefficient
impl Unpin for AbsorptionCoefficient
impl UnsafeUnpin for AbsorptionCoefficient
impl UnwindSafe for AbsorptionCoefficient
Blanket Implementations§
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
Mutably borrows from an owned value. Read more