pub struct NodeState {
pub head: f64,
pub demand_flow: f64,
pub emitter_flow: f64,
pub leakage_flow: f64,
pub net_flow: f64,
pub level: f64,
pub volume: f64,
pub quality: f64,
}Expand description
Per-step hydraulic and quality state for a single node (§2.4, per-step fields).
Not all fields are meaningful for every node type:
head,quality: all node types.demand_flow,emitter_flow,leakage_flow: junctions only.net_flow: reservoirs and tanks.level,volume: tanks only.
Fields§
§head: f64Hydraulic head (m).
demand_flow: f64Actual delivered demand flow (m³/s).
emitter_flow: f64Emitter outflow (m³/s).
leakage_flow: f64Leakage outflow from FAVAD model (m³/s).
net_flow: f64Net inflow to reservoir or tank (m³/s; positive = filling).
level: f64Current water level above tank bottom (m); tanks only.
volume: f64Current tank volume (m³); tanks only.
quality: f64Water quality concentration (mg/L, h, or % depending on mode).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeState
impl RefUnwindSafe for NodeState
impl Send for NodeState
impl Sync for NodeState
impl Unpin for NodeState
impl UnsafeUnpin for NodeState
impl UnwindSafe for NodeState
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