Skip to main content

LogNormalRetardation

Struct LogNormalRetardation 

Source
pub struct LogNormalRetardation {
    pub j0: f64,
    pub j_lm: f64,
    pub tau_c: f64,
    pub sigma: f64,
}
Expand description

Continuous retardation spectrum L(τ) modelled as a log-normal distribution.

Creep compliance: J(t) = J₀ + ∫ L(τ)/τ · (1 - exp(-t/τ)) d ln τ

For the log-normal spectrum:

L(τ) = J_lm / (σ √(2π)) · exp(-(ln(τ/τ_c))² / (2σ²))

The integral is evaluated numerically over a wide range of τ.

Fields§

§j0: f64

Instantaneous compliance J₀ (1/Pa).

§j_lm: f64

Total creep compliance amplitude J_lm (1/Pa).

§tau_c: f64

Central retardation time τ_c (s).

§sigma: f64

Log-width σ (dimensionless, > 0).

Implementations§

Source§

impl LogNormalRetardation

Source

pub fn new(j0: f64, j_lm: f64, tau_c: f64, sigma: f64) -> Self

Create a new log-normal retardation model.

Source

pub fn spectrum(&self, tau: f64) -> f64

L(τ): log-normal retardation spectrum evaluated at τ.

Source

pub fn creep_compliance(&self, t: f64) -> f64

Creep compliance J(t) evaluated by Gauss-Legendre quadrature (20 pts) over ln τ ∈ [ln τ_c - 5σ, ln τ_c + 5σ].

Source

pub fn storage_compliance(&self, omega: f64) -> f64

Storage compliance J’(ω) = J₀ + ∫ L(τ)/(1 + (ωτ)²) d ln τ.

Source

pub fn loss_compliance(&self, omega: f64) -> f64

Loss compliance J’’(ω) = ∫ L(τ) ωτ/(1 + (ωτ)²) d ln τ.

Trait Implementations§

Source§

impl Clone for LogNormalRetardation

Source§

fn clone(&self) -> LogNormalRetardation

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LogNormalRetardation

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.