pub struct PetsFunctional {
pub parameters: Rc<PetsParameters>,
/* private fields */
}Fields§
§parameters: Rc<PetsParameters>Implementations§
Source§impl PetsFunctional
impl PetsFunctional
pub fn new(parameters: Rc<PetsParameters>) -> DFT<Self>
pub fn new_full( parameters: Rc<PetsParameters>, fmt_Version: FMTVersion, ) -> DFT<Self>
pub fn with_options( parameters: Rc<PetsParameters>, fmt_version: FMTVersion, pets_options: PetsOptions, ) -> DFT<Self>
Trait Implementations§
Source§impl FluidParameters for PetsFunctional
impl FluidParameters for PetsFunctional
Source§impl HelmholtzEnergyFunctional for PetsFunctional
impl HelmholtzEnergyFunctional for PetsFunctional
Source§fn subset(&self, component_list: &[usize]) -> DFT<Self>
fn subset(&self, component_list: &[usize]) -> DFT<Self>
Return a functional for the specified subset of components.
Source§fn molecule_shape(&self) -> MoleculeShape<'_>
fn molecule_shape(&self) -> MoleculeShape<'_>
Return the shape of the molecules and the necessary specifications.
Source§fn compute_max_density(&self, moles: &Array1<f64>) -> f64
fn compute_max_density(&self, moles: &Array1<f64>) -> f64
Return the maximum density in Angstrom^-3. Read more
Source§fn contributions(&self) -> &[Box<dyn FunctionalContribution>]
fn contributions(&self) -> &[Box<dyn FunctionalContribution>]
Return a slice of FunctionalContributions.
Source§fn ideal_gas(&self) -> &dyn IdealGasContribution
fn ideal_gas(&self) -> &dyn IdealGasContribution
Return the ideal gas contribution. Read more
Source§fn bond_lengths(&self, _temperature: f64) -> Graph<(), f64, Undirected>
fn bond_lengths(&self, _temperature: f64) -> Graph<(), f64, Undirected>
Overwrite this, if the functional consists of heterosegmented chains.
fn weight_functions(&self, temperature: f64) -> Vec<WeightFunctionInfo<f64>>
fn m(&self) -> Cow<'_, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>
fn component_index( &self, ) -> Cow<'_, ArrayBase<OwnedRepr<usize>, Dim<[usize; 1]>>>
fn ideal_chain_contribution(&self) -> IdealChainContribution
Source§impl MolarWeight<SIUnit> for PetsFunctional
impl MolarWeight<SIUnit> for PetsFunctional
fn molar_weight(&self) -> SIArray1
Source§impl PairPotential for PetsFunctional
impl PairPotential for PetsFunctional
Auto Trait Implementations§
impl Freeze for PetsFunctional
impl !RefUnwindSafe for PetsFunctional
impl !Send for PetsFunctional
impl !Sync for PetsFunctional
impl Unpin for PetsFunctional
impl !UnwindSafe for PetsFunctional
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.