pub struct PumpEnergy {
pub kwh: f64,
pub kwh_per_flow: f64,
pub time_online: f64,
pub max_kw: f64,
pub total_cost: f64,
pub efficiency_sum: f64,
}Expand description
Accumulated energy statistics for a single pump (§7.1).
Indexed parallel to network.links; entries for non-pump links are
uninitialised and should not be read.
Fields§
§kwh: f64Accumulated electrical energy (kWh).
kwh_per_flow: f64Accumulated time-weighted energy intensity (kWh / (flow unit)).
time_online: f64Total time (s) the pump carried positive flow.
max_kw: f64Peak electrical power observed (kW).
total_cost: f64Accumulated energy cost (currency, matching energy_price units).
efficiency_sum: f64Accumulated η * Δt while pump was running, used to derive avg_efficiency.
Implementations§
Source§impl PumpEnergy
impl PumpEnergy
Sourcepub fn avg_efficiency(&self) -> f64
pub fn avg_efficiency(&self) -> f64
Time-weighted average efficiency fraction while pump was running (§7.1).
Trait Implementations§
Source§impl Clone for PumpEnergy
impl Clone for PumpEnergy
Source§fn clone(&self) -> PumpEnergy
fn clone(&self) -> PumpEnergy
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 PumpEnergy
impl Debug for PumpEnergy
Source§impl Default for PumpEnergy
impl Default for PumpEnergy
Source§fn default() -> PumpEnergy
fn default() -> PumpEnergy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PumpEnergy
impl RefUnwindSafe for PumpEnergy
impl Send for PumpEnergy
impl Sync for PumpEnergy
impl Unpin for PumpEnergy
impl UnsafeUnpin for PumpEnergy
impl UnwindSafe for PumpEnergy
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