pub struct PhaseControl { /* private fields */ }Expand description
A phase-shifting transformer holding the active power on a monitored branch.
The sensitivity is Variable::PhaseShift against the branch’s own active
flow. That pairing matters: a shifter usually regulates its own flow, and
AcSensitivity carries a direct \(\partial f/\partial p\) term for
exactly that case which, if dropped, flips the sign of the answer on the
regulated branch while leaving every other branch correct.
Implementations§
Source§impl PhaseControl
impl PhaseControl
pub fn new() -> Self
pub fn max_tap_shift(self, steps: i32) -> Self
pub fn report( &self, regulation: &[TapRegulation], tap_changers: &[Option<TapChanger>], ) -> TapControlReport
Trait Implementations§
Source§impl Default for PhaseControl
impl Default for PhaseControl
Source§impl OuterLoop for PhaseControl
impl OuterLoop for PhaseControl
fn name(&self) -> &'static str
Source§fn invalidates(&self) -> Invalidates
fn invalidates(&self) -> Invalidates
What this loop invalidates when it reports
OuterLoopStatus::Unstable. Read by the driver, which then resets
or restamps as required. See the module docs.Source§fn initialize(&mut self, ctx: &mut OuterLoopContext<'_, '_>)
fn initialize(&mut self, ctx: &mut OuterLoopContext<'_, '_>)
Called once, before the first solve, with the network in its initial
state. The place to record starting tap positions or bus types.
Source§fn check(&mut self, ctx: &mut OuterLoopContext<'_, '_>) -> OuterLoopStatus
fn check(&mut self, ctx: &mut OuterLoopContext<'_, '_>) -> OuterLoopStatus
Look at the converged state and either accept it or change something.
Auto Trait Implementations§
impl Freeze for PhaseControl
impl RefUnwindSafe for PhaseControl
impl Send for PhaseControl
impl Sync for PhaseControl
impl Unpin for PhaseControl
impl UnsafeUnpin for PhaseControl
impl UnwindSafe for PhaseControl
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more