DFTProfile

Struct DFTProfile 

Source
pub struct DFTProfile<D: Dimension, F> {
    pub grid: Grid,
    pub convolver: Arc<dyn Convolver<f64, D>>,
    pub temperature: Temperature,
    pub density: Density<Array<f64, D::Larger>>,
    pub specification: Arc<dyn DFTSpecification<D, F>>,
    pub external_potential: Array<f64, D::Larger>,
    pub bulk: State<F>,
    pub solver_log: Option<DFTSolverLog>,
    pub lanczos: Option<i32>,
}
Expand description

A one-, two-, or three-dimensional density profile.

Fields§

§grid: Grid§convolver: Arc<dyn Convolver<f64, D>>§temperature: Temperature§density: Density<Array<f64, D::Larger>>§specification: Arc<dyn DFTSpecification<D, F>>§external_potential: Array<f64, D::Larger>§bulk: State<F>§solver_log: Option<DFTSolverLog>§lanczos: Option<i32>

Implementations§

Source§

impl<D: Dimension, F: HelmholtzEnergyFunctional> DFTProfile<D, F>
where D::Larger: Dimension<Smaller = D>,

Source

pub fn grand_potential_density(&self) -> FeosResult<Pressure<Array<f64, D>>>

Calculate the grand potential density $\omega$.

Source

pub fn grand_potential(&self) -> FeosResult<Energy>

Calculate the grand potential $\Omega$.

Source

pub fn functional_derivative(&self) -> FeosResult<Array<f64, D::Larger>>

Calculate the (residual) intrinsic functional derivative $\frac{\delta\mathcal{F}}{\delta\rho_i(\mathbf{r})}$.

Source§

impl<D: Dimension + RemoveAxis + 'static, F: HelmholtzEnergyFunctional> DFTProfile<D, F>
where D::Larger: Dimension<Smaller = D>, D::Smaller: Dimension<Larger = D>, <D::Larger as Dimension>::Larger: Dimension<Smaller = D::Larger>,

Source

pub fn residual_entropy_density( &self, ) -> FeosResult<EntropyDensity<Array<f64, D>>>

Calculate the residual entropy density $s^\mathrm{res}(\mathbf{r})$.

Untested with heterosegmented functionals.

Source

pub fn entropy_density_contributions( &self, temperature: f64, density: &Array<f64, D::Larger>, convolver: &dyn Convolver<Dual64, D>, ) -> FeosResult<Vec<Array<f64, D>>>

Calculate the individual contributions to the entropy density.

Untested with heterosegmented functionals.

Source§

impl<D: Dimension + RemoveAxis + 'static, F: HelmholtzEnergyFunctional + Total> DFTProfile<D, F>
where D::Larger: Dimension<Smaller = D>, D::Smaller: Dimension<Larger = D>, <D::Larger as Dimension>::Larger: Dimension<Smaller = D::Larger>,

Source

pub fn entropy_density( &self, contributions: Contributions, ) -> FeosResult<EntropyDensity<Array<f64, D>>>

Calculate the entropy density $s(\mathbf{r})$.

Untested with heterosegmented functionals.

Source

pub fn entropy(&self, contributions: Contributions) -> FeosResult<Entropy>

Calculate the entropy $S$.

Untested with heterosegmented functionals.

Source

pub fn internal_energy_density( &self, contributions: Contributions, ) -> FeosResult<Pressure<Array<f64, D>>>
where D: Dimension, D::Larger: Dimension<Smaller = D>,

Calculate the internal energy density $u(\mathbf{r})$.

Untested with heterosegmented functionals.

Source

pub fn internal_energy( &self, contributions: Contributions, ) -> FeosResult<Energy>

Calculate the internal energy $U$.

Untested with heterosegmented functionals.

Source§

impl<D: Dimension + RemoveAxis + 'static, F: HelmholtzEnergyFunctional> DFTProfile<D, F>
where D::Larger: Dimension<Smaller = D>, D::Smaller: Dimension<Larger = D>, <D::Larger as Dimension>::Larger: Dimension<Smaller = D::Larger>,

Source

pub fn drho_dmu( &self, ) -> FeosResult<<Density<Array<f64, <D::Larger as Dimension>::Larger>> as Div<MolarEnergy>>::Output>

Return the partial derivatives of the density profiles w.r.t. the chemical potentials $\left(\frac{\partial\rho_i(\mathbf{r})}{\partial\mu_k}\right)_T$

Source

pub fn dn_dmu( &self, ) -> FeosResult<<Moles<DMatrix<f64>> as Div<MolarEnergy>>::Output>

Return the partial derivatives of the number of moles w.r.t. the chemical potentials $\left(\frac{\partial N_i}{\partial\mu_k}\right)_T$

Source

pub fn drho_dp( &self, ) -> FeosResult<<Density<Array<f64, D::Larger>> as Div<Pressure>>::Output>

Return the partial derivatives of the density profiles w.r.t. the bulk pressure at constant temperature and bulk composition $\left(\frac{\partial\rho_i(\mathbf{r})}{\partial p}\right)_{T,\mathbf{x}}$

Source

pub fn dn_dp( &self, ) -> FeosResult<<Moles<DVector<f64>> as Div<Pressure>>::Output>

Return the partial derivatives of the number of moles w.r.t. the bulk pressure at constant temperature and bulk composition $\left(\frac{\partial N_i}{\partial p}\right)_{T,\mathbf{x}}$

Source

pub fn drho_dt( &self, ) -> FeosResult<<Density<Array<f64, D::Larger>> as Div<Temperature>>::Output>

Return the partial derivatives of the density profiles w.r.t. the temperature at constant bulk pressure and composition $\left(\frac{\partial\rho_i(\mathbf{r})}{\partial T}\right)_{p,\mathbf{x}}$

Source

pub fn dn_dt( &self, ) -> FeosResult<<Moles<DVector<f64>> as Div<Temperature>>::Output>

Return the partial derivatives of the number of moles w.r.t. the temperature at constant bulk pressure and composition $\left(\frac{\partial N_i}{\partial T}\right)_{p,\mathbf{x}}$

Source§

impl<F> DFTProfile<Ix1, F>

Source

pub fn r(&self) -> Length<Array1<f64>>

Source

pub fn z(&self) -> Length<Array1<f64>>

Source§

impl<F> DFTProfile<Ix2, F>

Source

pub fn edges(&self) -> [Length<Array1<f64>>; 2]

Source

pub fn meshgrid(&self) -> [Length<Array2<f64>>; 2]

Source

pub fn r(&self) -> Length<Array1<f64>>

Source

pub fn z(&self) -> Length<Array1<f64>>

Source§

impl<F> DFTProfile<Ix3, F>

Source

pub fn edges(&self) -> [Length<Array1<f64>>; 3]

Source

pub fn meshgrid(&self) -> [Length<Array3<f64>>; 3]

Source

pub fn x(&self) -> Length<Array1<f64>>

Source

pub fn y(&self) -> Length<Array1<f64>>

Source

pub fn z(&self) -> Length<Array1<f64>>

Source§

impl<D: Dimension + RemoveAxis + 'static, F: HelmholtzEnergyFunctional> DFTProfile<D, F>
where D::Larger: Dimension<Smaller = D>, D::Smaller: Dimension<Larger = D>, <D::Larger as Dimension>::Larger: Dimension<Smaller = D::Larger>,

Source

pub fn new( grid: Grid, bulk: &State<F>, external_potential: Option<Array<f64, D::Larger>>, density: Option<&Density<Array<f64, D::Larger>>>, lanczos: Option<i32>, ) -> Self

Create a new density profile.

If no external potential is specified, it is set to 0. The density is initialized based on the bulk state and the external potential. The specification is set to ChemicalPotential and needs to be overriden after this call if something else is required.

Source§

impl<D: Dimension, F: HelmholtzEnergyFunctional> DFTProfile<D, F>
where D::Larger: Dimension<Smaller = D>,

Source

pub fn volume(&self) -> Volume

Return the volume of the profile.

In periodic directions, the length is assumed to be 1 Å.

Source

pub fn integrate<S: Data<Elem = f64>, U>( &self, profile: &Quantity<ArrayBase<S, D>, U>, ) -> Quantity<f64, Sum<_Volume, U>>
where _Volume: Add<U>,

Integrate a given profile over the iteration domain.

Source

pub fn integrate_comp<S: Data<Elem = f64>, U>( &self, profile: &Quantity<ArrayBase<S, D::Larger>, U>, ) -> Quantity<DVector<f64>, Sum<_Volume, U>>
where _Volume: Add<U>,

Integrate each component individually.

Source

pub fn integrate_segments<S: Data<Elem = f64>, U>( &self, profile: &Quantity<ArrayBase<S, D::Larger>, U>, ) -> Quantity<DVector<f64>, Sum<_Volume, U>>
where _Volume: Add<U>,

Integrate each segment individually and aggregate to components.

Source

pub fn moles(&self) -> Moles<DVector<f64>>

Return the number of moles of each component in the system.

Source

pub fn total_moles(&self) -> Moles

Return the total number of moles in the system.

Source§

impl<D: Dimension, F> DFTProfile<D, F>
where D::Larger: Dimension<Smaller = D>, <D::Larger as Dimension>::Larger: Dimension<Smaller = D::Larger>, F: HelmholtzEnergyFunctional,

Source

pub fn weighted_densities(&self) -> FeosResult<Vec<Array<f64, D::Larger>>>

Source

pub fn residual( &self, log: bool, ) -> FeosResult<(Array<f64, D::Larger>, Array1<f64>, f64)>

Source

pub fn solve( &mut self, solver: Option<&DFTSolver>, debug: bool, ) -> FeosResult<()>

Trait Implementations§

Source§

impl<D: Clone + Dimension, F: Clone> Clone for DFTProfile<D, F>
where D::Larger: Clone,

Source§

fn clone(&self) -> DFTProfile<D, F>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<D, F> !Freeze for DFTProfile<D, F>

§

impl<D, F> !RefUnwindSafe for DFTProfile<D, F>

§

impl<D, F> Send for DFTProfile<D, F>
where F: Send,

§

impl<D, F> Sync for DFTProfile<D, F>
where F: Sync,

§

impl<D, F> Unpin for DFTProfile<D, F>
where F: Unpin, <D as Dimension>::Larger: Unpin,

§

impl<D, F> !UnwindSafe for DFTProfile<D, F>

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PropertiesAD for T

Source§

fn vapor_pressure<const P: usize>( &self, temperature: Quantity<f64, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, ATerm>>>>>>>>, ) -> Result<Quantity<DualVec<f64, f64, Const<P>>, <<<TArr<Z0, TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Add<<<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Sub<TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output as Sub<TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output>>::Output as Add<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output as Sub<<<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Add>::Output as Add<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output>>::Output>, FeosError>
where Self: Residual<Const<1>, DualVec<f64, f64, Const<P>>>,

Source§

fn equilibrium_liquid_density<const P: usize>( &self, temperature: Quantity<f64, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, ATerm>>>>>>>>, ) -> Result<(Quantity<DualVec<f64, f64, Const<P>>, <<<TArr<Z0, TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Add<<<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Sub<TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output as Sub<TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output>>::Output as Add<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output as Sub<<<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Add>::Output as Add<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output>>::Output>, Quantity<DualVec<f64, f64, Const<P>>, <TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, ATerm>>>>>>> as Sub<<<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Add>::Output as Add<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output>>::Output>), FeosError>
where Self: Residual<Const<1>, DualVec<f64, f64, Const<P>>>,

Source§

fn liquid_density<const P: usize>( &self, temperature: Quantity<f64, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, ATerm>>>>>>>>, pressure: Quantity<f64, <<<TArr<Z0, TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Add<<<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Sub<TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output as Sub<TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output>>::Output as Add<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output as Sub<<<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Add>::Output as Add<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output>>::Output>, ) -> Result<Quantity<DualVec<f64, f64, Const<P>>, <TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, ATerm>>>>>>> as Sub<<<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Add>::Output as Add<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output>>::Output>, FeosError>
where Self: Residual<Const<1>, DualVec<f64, f64, Const<P>>>,

Source§

fn bubble_point_pressure<const P: usize>( &self, temperature: Quantity<f64, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, ATerm>>>>>>>>, pressure: Option<Quantity<f64, <<<TArr<Z0, TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Add<<<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Sub<TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output as Sub<TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output>>::Output as Add<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output as Sub<<<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Add>::Output as Add<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output>>::Output>>, liquid_molefracs: Matrix<f64, Const<2>, Const<1>, ArrayStorage<f64, 2, 1>>, ) -> Result<Quantity<DualVec<f64, f64, Const<P>>, <<<TArr<Z0, TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Add<<<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Sub<TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output as Sub<TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output>>::Output as Add<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output as Sub<<<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Add>::Output as Add<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output>>::Output>, FeosError>
where Self: Residual<Const<2>, DualVec<f64, f64, Const<P>>>,

Source§

fn dew_point_pressure<const P: usize>( &self, temperature: Quantity<f64, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, ATerm>>>>>>>>, pressure: Option<Quantity<f64, <<<TArr<Z0, TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Add<<<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Sub<TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output as Sub<TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output>>::Output as Add<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output as Sub<<<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Add>::Output as Add<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output>>::Output>>, vapor_molefracs: Matrix<f64, Const<2>, Const<1>, ArrayStorage<f64, 2, 1>>, ) -> Result<Quantity<DualVec<f64, f64, Const<P>>, <<<TArr<Z0, TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Add<<<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Sub<TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output as Sub<TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output>>::Output as Add<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output as Sub<<<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>> as Add>::Output as Add<TArr<Z0, TArr<PInt<UInt<UTerm, B1>>, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>>::Output>>::Output>, FeosError>
where Self: Residual<Const<2>, DualVec<f64, f64, Const<P>>>,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.