pub struct SemiImplicitSource { /* private fields */ }Expand description
A constant source term with an explicit and an implicit part.
Upstream’s semiImplicitSource, the simplest fvModel there is, and the
one that exercises the mechanism end to end without any physics of its own.
§Units
Both parts are per unit volume, in the units of the equation’s residual;
see SourceContribution. The cell volume is applied when the contribution
is placed into the matrix.
Implementations§
Source§impl SemiImplicitSource
impl SemiImplicitSource
Sourcepub fn new(
name: impl Into<String>,
field: impl Into<String>,
selection: CellSelection,
explicit: f64,
implicit: f64,
) -> Self
pub fn new( name: impl Into<String>, field: impl Into<String>, selection: CellSelection, explicit: f64, implicit: f64, ) -> Self
A source named name on the equation for field, over selection.
explicit is added to the right-hand side; implicit is the
coefficient of the solved variable, where a negative value is a sink
and stabilises the matrix.
Sourcepub fn field_name(&self) -> &str
pub fn field_name(&self) -> &str
The field whose equation this contributes to.
Sourcepub fn selection(&self) -> &CellSelection
pub fn selection(&self) -> &CellSelection
The cells acted on.
Sourcepub fn contribution(&self) -> SourceContribution
pub fn contribution(&self) -> SourceContribution
The per-unit-volume contribution.
Trait Implementations§
Source§impl Clone for SemiImplicitSource
impl Clone for SemiImplicitSource
Source§impl Debug for SemiImplicitSource
impl Debug for SemiImplicitSource
Source§impl PartialEq for SemiImplicitSource
impl PartialEq for SemiImplicitSource
impl StructuralPartialEq for SemiImplicitSource
Auto Trait Implementations§
impl Freeze for SemiImplicitSource
impl RefUnwindSafe for SemiImplicitSource
impl Send for SemiImplicitSource
impl Sync for SemiImplicitSource
impl Unpin for SemiImplicitSource
impl UnsafeUnpin for SemiImplicitSource
impl UnwindSafe for SemiImplicitSource
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