pub struct CapeThermoPropertyRoutine {
pub(crate) interface: *mut CAPEOPEN_1_2_ICapeThermoPropertyRoutine,
}Fields§
§interface: *mut CAPEOPEN_1_2_ICapeThermoPropertyRoutineImplementations§
Source§impl CapeThermoPropertyRoutine
impl CapeThermoPropertyRoutine
pub fn calc_and_get_ln_phi<TypeOfPhaseLabel: CapeStringProviderIn, TypeOfMoleFraction: CapeArrayRealProviderIn, TypeOfLnPhi: CapeArrayRealProviderOut, TypeOfLnPhiDt: CapeArrayRealProviderOut, TypeOfLnPhiDp: CapeArrayRealProviderOut, TypeOfLnPhiDn: CapeArrayRealProviderOut>( &self, phase_label: &TypeOfPhaseLabel, temperature: CapeReal, pressure: CapeReal, mole_fraction: &TypeOfMoleFraction, f_flags: CapeInteger, ln_phi: &mut TypeOfLnPhi, ln_phi_dt: &mut TypeOfLnPhiDt, ln_phi_dp: &mut TypeOfLnPhiDp, ln_phi_dn: &mut TypeOfLnPhiDn, ) -> Result<(), COBIAError>
pub fn calc_single_phase_prop<TypeOfProps: CapeArrayStringProviderIn, TypeOfPhaseLabel: CapeStringProviderIn>( &self, props: &TypeOfProps, phase_label: &TypeOfPhaseLabel, ) -> Result<(), COBIAError>
pub fn calc_two_phase_prop<TypeOfProps: CapeArrayStringProviderIn, TypeOfPhaseLabels: CapeArrayStringProviderIn>( &self, props: &TypeOfProps, phase_labels: &TypeOfPhaseLabels, ) -> Result<(), COBIAError>
pub fn check_single_phase_prop_spec<TypeOfProperty: CapeStringProviderIn, TypeOfPhaseLabel: CapeStringProviderIn>( &self, property: &TypeOfProperty, phase_label: &TypeOfPhaseLabel, ) -> Result<CapeBoolean, COBIAError>
pub fn check_two_phase_prop_spec<TypeOfProperty: CapeStringProviderIn, TypeOfPhaseLabels: CapeArrayStringProviderIn>( &self, property: &TypeOfProperty, phase_labels: &TypeOfPhaseLabels, ) -> Result<CapeBoolean, COBIAError>
pub fn get_single_phase_prop_list<TypeOfProps: CapeArrayStringProviderOut>( &self, props: &mut TypeOfProps, ) -> Result<(), COBIAError>
pub fn get_two_phase_prop_list<TypeOfProps: CapeArrayStringProviderOut>( &self, props: &mut TypeOfProps, ) -> Result<(), COBIAError>
Trait Implementations§
Source§impl CapeSmartPointer for CapeThermoPropertyRoutine
impl CapeSmartPointer for CapeThermoPropertyRoutine
type Interface = _CAPEOPEN_1_2_ICapeThermoPropertyRoutine
Source§fn as_cape_interface_pointer(&self) -> *mut ICapeInterface
fn as_cape_interface_pointer(&self) -> *mut ICapeInterface
Get the ICapeInterface Read more
Source§fn get_interface_id() -> &'static CapeUUID
fn get_interface_id() -> &'static CapeUUID
Get the interface ID Read more
Source§fn from_object<T: CapeSmartPointer>(
smart_pointer: &T,
) -> Result<Self, COBIAError>
fn from_object<T: CapeSmartPointer>( smart_pointer: &T, ) -> Result<Self, COBIAError>
Get an interface wrapper instance from another object Read more
Source§fn from_interface_pointer(interface: *mut Self::Interface) -> Self
fn from_interface_pointer(interface: *mut Self::Interface) -> Self
Get an interface wrapper instance from an interface pointer of the wrapped type Read more
Source§fn attach(interface: *mut Self::Interface) -> Self
fn attach(interface: *mut Self::Interface) -> Self
Get an interface wrapper instance from an interface pointer of the wrapped type, without adding a reference Read more
Source§fn detach(self) -> *mut Self::Interface
fn detach(self) -> *mut Self::Interface
Return an interface pointer and release ownership, without decreasing a reference Read more
Source§fn from_cape_interface_pointer(
interface: *mut ICapeInterface,
) -> Result<Self, COBIAError>
fn from_cape_interface_pointer( interface: *mut ICapeInterface, ) -> Result<Self, COBIAError>
Get an interface wrapper instance from any interface pointer Read more
Source§impl Clone for CapeThermoPropertyRoutine
impl Clone for CapeThermoPropertyRoutine
Auto Trait Implementations§
impl Freeze for CapeThermoPropertyRoutine
impl RefUnwindSafe for CapeThermoPropertyRoutine
impl !Send for CapeThermoPropertyRoutine
impl !Sync for CapeThermoPropertyRoutine
impl Unpin for CapeThermoPropertyRoutine
impl UnwindSafe for CapeThermoPropertyRoutine
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