pub struct PetsParameters {Show 13 fields
pub molarweight: Array1<f64>,
pub sigma: Array1<f64>,
pub epsilon_k: Array1<f64>,
pub k_ij: Array2<f64>,
pub sigma_ij: Array2<f64>,
pub epsilon_k_ij: Array2<f64>,
pub e_k_ij: Array2<f64>,
pub viscosity: Option<Array2<f64>>,
pub diffusion: Option<Array2<f64>>,
pub thermal_conductivity: Option<Array2<f64>>,
pub pure_records: Vec<PureRecord<PetsRecord, JobackRecord>>,
pub joback_records: Option<Vec<JobackRecord>>,
pub binary_records: Array2<PetsBinaryRecord>,
}Fields§
§molarweight: Array1<f64>§sigma: Array1<f64>§epsilon_k: Array1<f64>§k_ij: Array2<f64>§sigma_ij: Array2<f64>§epsilon_k_ij: Array2<f64>§e_k_ij: Array2<f64>§viscosity: Option<Array2<f64>>§diffusion: Option<Array2<f64>>§thermal_conductivity: Option<Array2<f64>>§pure_records: Vec<PureRecord<PetsRecord, JobackRecord>>§joback_records: Option<Vec<JobackRecord>>§binary_records: Array2<PetsBinaryRecord>Implementations§
Source§impl PetsParameters
impl PetsParameters
pub fn hs_diameter<D: DualNum<f64>>(&self, temperature: D) -> Array1<D>
Source§impl PetsParameters
impl PetsParameters
pub fn to_markdown(&self) -> String
Trait Implementations§
Source§impl Clone for PetsParameters
impl Clone for PetsParameters
Source§fn clone(&self) -> PetsParameters
fn clone(&self) -> PetsParameters
Returns a duplicate of the value. Read more
1.0.0 · 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 PetsParameters
impl Debug for PetsParameters
Source§impl Default for PetsParameters
impl Default for PetsParameters
Source§fn default() -> PetsParameters
fn default() -> PetsParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PetsParameters
impl<'de> Deserialize<'de> for PetsParameters
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PetsParameters
impl Display for PetsParameters
Source§impl FMTProperties for PetsParameters
impl FMTProperties for PetsParameters
Source§impl Parameter for PetsParameters
impl Parameter for PetsParameters
type Pure = PetsRecord
type IdealGas = JobackRecord
type Binary = PetsBinaryRecord
Source§fn from_records(
pure_records: Vec<PureRecord<Self::Pure, Self::IdealGas>>,
binary_records: Array2<PetsBinaryRecord>,
) -> Self
fn from_records( pure_records: Vec<PureRecord<Self::Pure, Self::IdealGas>>, binary_records: Array2<PetsBinaryRecord>, ) -> Self
Creates parameters from records for pure substances and possibly binary parameters.
Source§fn records(
&self,
) -> (&[PureRecord<PetsRecord, JobackRecord>], &Array2<PetsBinaryRecord>)
fn records( &self, ) -> (&[PureRecord<PetsRecord, JobackRecord>], &Array2<PetsBinaryRecord>)
Return the original pure and binary records that were used to construct the parameters.
Source§fn new_pure(pure_record: PureRecord<Self::Pure, Self::IdealGas>) -> Self
fn new_pure(pure_record: PureRecord<Self::Pure, Self::IdealGas>) -> Self
Creates parameters for a pure component from a pure record.
Source§fn new_binary(
pure_records: Vec<PureRecord<Self::Pure, Self::IdealGas>>,
binary_record: Option<Self::Binary>,
) -> Self
fn new_binary( pure_records: Vec<PureRecord<Self::Pure, Self::IdealGas>>, binary_record: Option<Self::Binary>, ) -> Self
Creates parameters for a binary system from pure records and an optional
binary interaction parameter.
Source§fn from_json<P>(
substances: Vec<&str>,
file_pure: P,
file_binary: Option<P>,
search_option: IdentifierOption,
) -> Result<Self, ParameterError>
fn from_json<P>( substances: Vec<&str>, file_pure: P, file_binary: Option<P>, search_option: IdentifierOption, ) -> Result<Self, ParameterError>
Creates parameters from substance information stored in json files.
Source§fn from_multiple_json<P>(
input: &[(Vec<&str>, P)],
file_binary: Option<P>,
search_option: IdentifierOption,
) -> Result<Self, ParameterError>
fn from_multiple_json<P>( input: &[(Vec<&str>, P)], file_binary: Option<P>, search_option: IdentifierOption, ) -> Result<Self, ParameterError>
Creates parameters from substance information stored in multiple json files.
fn subset(&self, component_list: &[usize]) -> Self
Auto Trait Implementations§
impl Freeze for PetsParameters
impl RefUnwindSafe for PetsParameters
impl Send for PetsParameters
impl Sync for PetsParameters
impl Unpin for PetsParameters
impl UnwindSafe for PetsParameters
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.