pub enum QualityMode {
None,
Chemical,
Age,
Trace,
}Expand description
Water quality simulation mode (§2.1).
Variants§
None
No quality simulation — quality engine is skipped entirely.
Chemical
Dissolved-constituent transport: concentration (mg/L) is advected,
mixed, and subject to bulk and wall reactions (§6.5). Sources inject
via CONCENTRATION, MASS, SETPOINT, or FLOWPACED types.
Age
Water-age tracking: the “concentration” is residence time (hours). Incremented by δt/3600 at every quality sub-step; reservoirs hold age = 0. No reactions. Sources are implicit everywhere.
Trace
Source-trace analysis: fraction of flow (%) originating from the
designated trace_node. That node is a 100 % source; all other
fixed-grade inflows inject 0 %. No reactions.
Trait Implementations§
Source§impl Clone for QualityMode
impl Clone for QualityMode
Source§fn clone(&self) -> QualityMode
fn clone(&self) -> QualityMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for QualityMode
Source§impl Debug for QualityMode
impl Debug for QualityMode
impl Eq for QualityMode
Source§impl PartialEq for QualityMode
impl PartialEq for QualityMode
Source§fn eq(&self, other: &QualityMode) -> bool
fn eq(&self, other: &QualityMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QualityMode
Auto Trait Implementations§
impl Freeze for QualityMode
impl RefUnwindSafe for QualityMode
impl Send for QualityMode
impl Sync for QualityMode
impl Unpin for QualityMode
impl UnsafeUnpin for QualityMode
impl UnwindSafe for QualityMode
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