pub struct PFRDescription {
pub(super) n_compartment: usize,
pub(super) length: f64,
pub(super) diameter: f64,
pub(super) liquid_flow: f64,
pub(super) gas_flow: f64,
pub(super) gas_fraction: f64,
pub(super) axial_dispersion: f64,
}Fields§
§n_compartment: usize§length: f64§diameter: f64§liquid_flow: f64§gas_flow: f64§gas_fraction: f64§axial_dispersion: f64Implementations§
Source§impl PFRDescription
impl PFRDescription
pub fn new( n_compartment: usize, length: impl Into<f64>, diameter: impl Into<f64>, liquid_flow: impl Into<f64>, gas_flow: impl Into<f64>, gas_fraction: impl Into<f64>, axial_dispersion: impl Into<f64>, ) -> Result<PFRDescription, CMError>
pub fn get_liquid_flow(&self) -> f64
pub fn get_gas_flow(&self) -> f64
pub fn get_gas_fraction(&self) -> f64
pub fn get_liquid_fraction(&self) -> f64
pub fn geometrical_volume(&self) -> f64
pub fn extract_volume_flow(&self, phase: PhaseCM) -> (f64, f64)
pub fn is_valid(&self) -> Result<(), CMError>
Auto Trait Implementations§
impl Freeze for PFRDescription
impl RefUnwindSafe for PFRDescription
impl Send for PFRDescription
impl Sync for PFRDescription
impl Unpin for PFRDescription
impl UnsafeUnpin for PFRDescription
impl UnwindSafe for PFRDescription
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
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.