pub struct PolynomialEos {
pub rho0: f64,
pub a: [f64; 3],
pub b: [f64; 3],
pub t: [f64; 2],
}Expand description
Polynomial EOS commonly used in hydrocode simulations.
p = a₁μ + a₂μ² + a₃μ³ + (b₀ + b₁μ + b₂μ²)ρe (compressed) p = t₁μ + t₂μ² (expanded, e<0) where μ = ρ/ρ₀ - 1.
Fields§
§rho0: f64Reference density ρ₀ (kg/m³).
a: [f64; 3]Compression coefficients a₁, a₂, a₃ (Pa).
b: [f64; 3]Energy coupling b₀, b₁, b₂.
t: [f64; 2]Tension coefficients t₁, t₂ (Pa).
Implementations§
Trait Implementations§
Source§impl Clone for PolynomialEos
impl Clone for PolynomialEos
Source§fn clone(&self) -> PolynomialEos
fn clone(&self) -> PolynomialEos
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PolynomialEos
impl Debug for PolynomialEos
Source§impl EquationOfState for PolynomialEos
impl EquationOfState for PolynomialEos
impl Copy for PolynomialEos
Auto Trait Implementations§
impl Freeze for PolynomialEos
impl RefUnwindSafe for PolynomialEos
impl Send for PolynomialEos
impl Sync for PolynomialEos
impl Unpin for PolynomialEos
impl UnsafeUnpin for PolynomialEos
impl UnwindSafe for PolynomialEos
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