pub struct MassBalance {
pub init: f64,
pub added: f64,
pub demand: f64,
pub reacted: f64,
pub final_mass: f64,
pub reacted_bulk: f64,
pub reacted_wall: f64,
pub reacted_tank: f64,
pub source: f64,
}Expand description
Running constituent mass balance (§6.9).
Fields§
§init: f64Mass present in the network at simulation start (mg).
added: f64Total mass injected by sources over the simulation (mg).
demand: f64Total mass removed by demand withdrawals (mg).
reacted: f64Net mass consumed by reactions (positive = removed from water = decay).
final_mass: f64Mass present in the network at simulation end (mg).
reacted_bulk: f64Mass consumed by bulk pipe reactions (mg).
reacted_wall: f64Mass consumed by pipe wall reactions (mg).
reacted_tank: f64Mass consumed by tank reactions (mg).
source: f64Alias for added; retained for EPANET compatibility.
Implementations§
Trait Implementations§
Source§impl Clone for MassBalance
impl Clone for MassBalance
Source§fn clone(&self) -> MassBalance
fn clone(&self) -> MassBalance
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 moreSource§impl Debug for MassBalance
impl Debug for MassBalance
Source§impl Default for MassBalance
impl Default for MassBalance
Source§fn default() -> MassBalance
fn default() -> MassBalance
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MassBalance
impl RefUnwindSafe for MassBalance
impl Send for MassBalance
impl Sync for MassBalance
impl Unpin for MassBalance
impl UnsafeUnpin for MassBalance
impl UnwindSafe for MassBalance
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