pub struct ParControl {
pub branch_index: usize,
pub monitored_branch_index: usize,
pub p_target_mw: f64,
pub p_band_mw: f64,
pub angle_min_deg: f64,
pub angle_max_deg: f64,
pub ang_step_deg: f64,
}Expand description
Phase Angle Regulator control data (0-indexed), consumed by the NR outer loop.
Created from a ParSpec by resolving external bus numbers to 0-based
branch indices.
Fields§
§branch_index: usize0-based index into Network::branches for the PAR transformer.
monitored_branch_index: usize0-based index into Network::branches for the monitored branch.
Equals branch_index when the PAR branch itself is the monitored element.
p_target_mw: f64Target active power flow in MW.
p_band_mw: f64Dead-band full-width in MW.
angle_min_deg: f64Minimum phase-angle shift in degrees.
angle_max_deg: f64Maximum phase-angle shift in degrees.
ang_step_deg: f64Discrete step size in degrees.
Trait Implementations§
Source§impl Clone for ParControl
impl Clone for ParControl
Source§fn clone(&self) -> ParControl
fn clone(&self) -> ParControl
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 ParControl
impl Debug for ParControl
Source§impl<'de> Deserialize<'de> for ParControl
impl<'de> Deserialize<'de> for ParControl
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 ParControl
impl RefUnwindSafe for ParControl
impl Send for ParControl
impl Sync for ParControl
impl Unpin for ParControl
impl UnsafeUnpin for ParControl
impl UnwindSafe for ParControl
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