pub struct FlowBalance {
pub total_inflow: f64,
pub total_outflow: f64,
pub demand_deficit: f64,
pub initial_tank_volume: f64,
}Expand description
Volumetric flow balance accumulated over the full simulation (§7.2).
Fields§
§total_inflow: f64Integrated supply into the network (m³).
total_outflow: f64Integrated withdrawal from the network (m³).
demand_deficit: f64Integrated unmet demand in PDA mode (m³); not in the ratio.
initial_tank_volume: f64Total tank volume at simulation start (m³).
Implementations§
Source§impl FlowBalance
impl FlowBalance
Sourcepub fn balance_ratio(&self, current_tank_volume: f64) -> f64
pub fn balance_ratio(&self, current_tank_volume: f64) -> f64
Volume balance ratio ρ_v (§7.2).
current_tank_volume is the current total volume across all tanks.
Sourcepub fn summarize(&self, final_tank_volume: f64) -> FlowBalanceSummary
pub fn summarize(&self, final_tank_volume: f64) -> FlowBalanceSummary
Compute the complete flow balance summary given the final tank volume.
Trait Implementations§
Source§impl Clone for FlowBalance
impl Clone for FlowBalance
Source§fn clone(&self) -> FlowBalance
fn clone(&self) -> FlowBalance
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 moreAuto Trait Implementations§
impl Freeze for FlowBalance
impl RefUnwindSafe for FlowBalance
impl Send for FlowBalance
impl Sync for FlowBalance
impl Unpin for FlowBalance
impl UnsafeUnpin for FlowBalance
impl UnwindSafe for FlowBalance
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