pub struct ParResult {
pub from_bus: u32,
pub to_bus: u32,
pub circuit: String,
pub target_mw: f64,
pub implied_shift_deg: f64,
pub within_limits: bool,
}Expand description
Post-solve PAR result: actual implied shift angle for a flow-setpoint PAR.
Fields§
§from_bus: u32From-bus number (external).
to_bus: u32To-bus number (external).
circuit: StringCircuit identifier.
target_mw: f64Target MW flow requested.
implied_shift_deg: f64Implied shift angle in degrees: φ = (θ_from − θ_to − target/(base × b_dc)) × (180/π)
This is the PST angle that would produce the requested flow given the post-optimization network angles. Positive = from_bus leads to_bus.
within_limits: boolWhether the implied shift is within the branch control’s radian bounds.
false when the required angle exceeds the PAR’s mechanical limits.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ParResult
impl<'de> Deserialize<'de> for ParResult
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 ParResult
impl RefUnwindSafe for ParResult
impl Send for ParResult
impl Sync for ParResult
impl Unpin for ParResult
impl UnsafeUnpin for ParResult
impl UnwindSafe for ParResult
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