pub trait Total<N: Dim = Dyn, D: DualNum<f64> + Copy = f64>: Residual<N, D>where
DefaultAllocator: Allocator<N>,{
type IdealGas: IdealGas<D>;
// Required methods
fn ideal_gas_model(&self) -> &'static str;
fn ideal_gas(&self) -> impl Iterator<Item = &Self::IdealGas>;
// Provided methods
fn ln_lambda3<D2: DualNum<f64, Inner = D> + Copy>(
&self,
temperature: D2,
) -> OVector<D2, N> { ... }
fn ideal_gas_molar_helmholtz_energy<D2: DualNum<f64, Inner = D> + Copy>(
&self,
temperature: D2,
molar_volume: D2,
molefracs: &OVector<D2, N>,
) -> D2 { ... }
fn ideal_gas_helmholtz_energy<D2: DualNum<f64, Inner = D> + Copy>(
&self,
temperature: Temperature<D2>,
volume: Volume<D2>,
moles: &Moles<OVector<D2, N>>,
) -> Energy<D2> { ... }
}Expand description
Required Associated Types§
Required Methods§
fn ideal_gas_model(&self) -> &'static str
fn ideal_gas(&self) -> impl Iterator<Item = &Self::IdealGas>
Provided Methods§
fn ln_lambda3<D2: DualNum<f64, Inner = D> + Copy>( &self, temperature: D2, ) -> OVector<D2, N>
fn ideal_gas_molar_helmholtz_energy<D2: DualNum<f64, Inner = D> + Copy>( &self, temperature: D2, molar_volume: D2, molefracs: &OVector<D2, N>, ) -> D2
fn ideal_gas_helmholtz_energy<D2: DualNum<f64, Inner = D> + Copy>( &self, temperature: Temperature<D2>, volume: Volume<D2>, moles: &Moles<OVector<D2, N>>, ) -> Energy<D2>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.