pub struct Valve {
pub valve_type: ValveType,
pub diameter: f64,
pub minor_loss: f64,
pub curve: Option<String>,
}Expand description
A valve link (§2.6.4).
For GPV, curve holds the head-loss curve ID (kind = GpvHeadloss).
For PCV, curve holds the loss-ratio curve ID (kind = PcvLossRatio).
For all other valve types it is None and the setpoint is encoded in
LinkBase::init_setting.
Fields§
§valve_type: ValveTypeThe type of this valve.
diameter: f64Nominal diameter (internal length units, m).
minor_loss: f64Minor loss coefficient (dimensionless); 0 = no minor loss.
curve: Option<String>Curve ID; required for Gpv (kind = GpvHeadloss) and Pcv
(kind = PcvLossRatio); None for all other valve types.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Valve
impl RefUnwindSafe for Valve
impl Send for Valve
impl Sync for Valve
impl Unpin for Valve
impl UnsafeUnpin for Valve
impl UnwindSafe for Valve
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