Skip to main content

GlassTransition

Struct GlassTransition 

Source
pub struct GlassTransition {
    pub t_ref: f64,
    pub c1: f64,
    pub c2: f64,
    pub t_g: f64,
}
Expand description

Glass transition temperature model using the WLF equation.

log₁₀(a_T) = -C₁*(T - T_ref) / (C₂ + (T - T_ref))

Fields§

§t_ref: f64

Reference temperature T_ref [K]

§c1: f64

WLF constant C₁ (dimensionless)

§c2: f64

WLF constant C₂ [K]

§t_g: f64

Glass transition temperature T_g [K]

Implementations§

Source§

impl GlassTransition

Source

pub fn new(t_g: f64, t_ref: f64, c1: f64, c2: f64) -> Self

Create glass transition model with WLF parameters.

Universal constants at T_g: C₁ = 17.44, C₂ = 51.6 K.

§Arguments
  • t_g - Glass transition temperature [K]
  • t_ref - Reference temperature [K] (often = T_g)
  • c1 - WLF C₁ constant (default 17.44)
  • c2 - WLF C₂ constant [K] (default 51.6)
Source

pub fn log_shift_factor(&self, temperature: f64) -> f64

WLF shift factor log₁₀(a_T) = -C₁*(T-T_ref)/(C₂+(T-T_ref)).

Source

pub fn shift_factor(&self, temperature: f64) -> f64

Shift factor a_T = 10^(log₁₀(a_T)).

Source

pub fn is_rubbery(&self, temperature: f64) -> bool

Check if temperature is above glass transition.

Source

pub fn relaxation_time(&self, t_ref_tau: f64, temperature: f64) -> f64

Relaxation time at temperature T relative to reference.

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> 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, 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.