Skip to main content

PvtEos

Struct PvtEos 

Source
pub struct PvtEos {
    pub cold_eos: BirchMurnaghan3Eos,
    pub gruneisen: GruneisenParameter,
    pub cv: f64,
    pub t0: f64,
}
Expand description

Simple P-V-T EOS combining Murnaghan cold compression with Grüneisen thermal.

p(V,T) = p_cold(V) + Γ(V)/V * cv * (T - T₀)

Fields§

§cold_eos: BirchMurnaghan3Eos

Cold compression EOS (Birch-Murnaghan 3rd order).

§gruneisen: GruneisenParameter

Grüneisen parameter model.

§cv: f64

Specific heat at constant volume cv (J/(kg·K)).

§t0: f64

Reference temperature T₀ (K).

Implementations§

Source§

impl PvtEos

Source

pub fn new( cold_eos: BirchMurnaghan3Eos, gruneisen: GruneisenParameter, cv: f64, t0: f64, ) -> Self

Create a P-V-T EOS.

Source

pub fn iron() -> Self

Iron P-V-T EOS (simplified).

Source

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

Pressure at specific volume V and temperature T.

Source

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

Density from pressure and temperature (numerical bisection).

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.