pub struct FvSolution {
pub solvers: Vec<FvSolverEntry>,
pub algorithm: String,
pub n_correctors: usize,
pub n_non_orthogonal_correctors: usize,
pub p_ref_cell: usize,
pub p_ref_value: f64,
}Expand description
Writer for the OpenFOAM system/fvSolution file.
Fields§
§solvers: Vec<FvSolverEntry>Solver settings per field (field_name, solver, preconditioner, tolerance, relTol).
algorithm: StringSIMPLE/PISO/PIMPLE algorithm settings.
n_correctors: usizeNumber of correctors for PISO/PIMPLE.
n_non_orthogonal_correctors: usizeNumber of non-orthogonal correctors.
p_ref_cell: usizePressure reference cell.
p_ref_value: f64Pressure reference value.
Implementations§
Source§impl FvSolution
impl FvSolution
Sourcepub fn default_piso() -> Self
pub fn default_piso() -> Self
Create default PISO solution settings.
Auto Trait Implementations§
impl Freeze for FvSolution
impl RefUnwindSafe for FvSolution
impl Send for FvSolution
impl Sync for FvSolution
impl Unpin for FvSolution
impl UnsafeUnpin for FvSolution
impl UnwindSafe for FvSolution
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<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.