pub enum SegmentTorqueSource {
Electrical,
GovernorStage(usize),
Fraction(f64),
None,
}Expand description
Source of mechanical torque for a shaft segment.
Variants§
Electrical
This segment receives electrical torque Te from the network solution. Exactly one segment per shaft must be Electrical (the GEN segment).
GovernorStage(usize)
This segment receives mechanical torque from a specific governor stage output. For IEEEG1: stage 0 = K2·x_gate, 1 = (K1+K4)·x1, 2 = (K3+K6)·x2, 3 = (K5+K7+K8)·x3.
Fraction(f64)
This segment receives a fixed fraction of the governor’s total Pm output. Used for single-stage governors (TGOV1, GAST, HYGOV) that don’t model per-stage turbine dynamics internally.
None
No torque input (e.g., exciter segment).
Trait Implementations§
Source§impl Clone for SegmentTorqueSource
impl Clone for SegmentTorqueSource
Source§fn clone(&self) -> SegmentTorqueSource
fn clone(&self) -> SegmentTorqueSource
Returns a duplicate of the value. Read more
1.0.0 · 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 SegmentTorqueSource
impl Debug for SegmentTorqueSource
Source§impl<'de> Deserialize<'de> for SegmentTorqueSource
impl<'de> Deserialize<'de> for SegmentTorqueSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SegmentTorqueSource
impl RefUnwindSafe for SegmentTorqueSource
impl Send for SegmentTorqueSource
impl Sync for SegmentTorqueSource
impl Unpin for SegmentTorqueSource
impl UnsafeUnpin for SegmentTorqueSource
impl UnwindSafe for SegmentTorqueSource
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