pub struct StateHD<D: DualNum<f64>> {
pub temperature: D,
pub volume: D,
pub moles: Array1<D>,
pub molefracs: Array1<D>,
pub partial_density: Array1<D>,
}
Expand description
Thermodynamic state of the system in reduced variables including their derivatives.
Properties are stored as generalized (hyper) dual numbers which allows for automatic differentiation.
Fields
temperature: D
temperature in Kelvin
volume: D
volume in Angstrom^3
moles: Array1<D>
number of particles
molefracs: Array1<D>
mole fractions
partial_density: Array1<D>
partial number densities in Angstrom^-3
Implementations
Trait Implementations
Auto Trait Implementations
impl<D> RefUnwindSafe for StateHD<D> where
D: RefUnwindSafe,
impl<D> Send for StateHD<D>
impl<D> Sync for StateHD<D>
impl<D> Unpin for StateHD<D> where
D: Unpin,
impl<D> UnwindSafe for StateHD<D> where
D: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more