hydr-structures 0.2.0

Hydraulic structures for the hydr simulation crates
Documentation
//! Explicit identity-bound passive, pump, and gate operation packets.

/// Original operation held during a constitutive proposal.
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum StructureOperatingPoint {
    /// No active device operation applies to a passive law.
    Passive,
    /// Explicitly isolated against forward siphoning and reverse flow.
    PumpStoppedIsolated,
    /// Running at an explicit positive supported speed ratio.
    PumpRunning {
        /// Original ratio to the supplied reference speed.
        speed_ratio: f64,
    },
    /// Original aperture height held during the instantaneous gate proposal.
    GateOpening {
        /// Finite relative opening within the gate's declared closed range, in metres.
        opening_m: f64,
    },
}
/// Complete ordered identity-bound operation, without implicit stopped/running defaults.
#[derive(Clone, Debug, PartialEq)]
pub struct StructureOperation {
    /// Exact immutable structure identity.
    pub structure_id: String,
    /// Original passive or explicit device operation.
    pub operating_point: StructureOperatingPoint,
}