pub struct Pipe {
pub length: f64,
pub diameter: f64,
pub roughness: f64,
pub minor_loss: f64,
pub check_valve: bool,
pub bulk_coeff: Option<f64>,
pub wall_coeff: Option<f64>,
pub leak_coeff_1: f64,
pub leak_coeff_2: f64,
}Expand description
A pipe in the network (§2.6.2).
Fields§
§length: f64Pipe length (internal length units, m).
diameter: f64Internal diameter (internal length units, m).
roughness: f64Roughness coefficient (Hazen-Williams C or Darcy-Weisbach ε).
minor_loss: f64Minor loss coefficient (dimensionless); 0 = no minor loss.
check_valve: boolWhether a check valve is installed (prevents reverse flow).
bulk_coeff: Option<f64>None → use global bulk_coeff.
wall_coeff: Option<f64>None → use global wall_coeff.
leak_coeff_1: f64FAVAD fixed-area leakage coefficient (m³/s per m^0.5) per end node.
leak_coeff_2: f64FAVAD variable-area leakage coefficient (m³/s per m^1.5) per end node.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pipe
impl RefUnwindSafe for Pipe
impl Send for Pipe
impl Sync for Pipe
impl Unpin for Pipe
impl UnsafeUnpin for Pipe
impl UnwindSafe for Pipe
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