Skip to main content

OperatingPoint

Struct OperatingPoint 

Source
pub struct OperatingPoint<N> { /* private fields */ }
Expand description

One possibly partial alternate electrical assignment: a small owning handle over the shared network and the series’ shared columns. Cloning it or retaining it after the parent series drops copies no table and no column.

Implementations§

Source§

impl OperatingPoint<BalancedNetwork>

Source

pub fn values( &self, quantity: BalancedOperatingPointQuantity, ) -> Option<OperatingPointValues<'_>>

Iterate one numeric quantity in stable component identity order.

Source

pub fn flags( &self, quantity: BalancedOperatingPointFlag, ) -> Option<OperatingPointFlags<'_>>

Iterate one boolean quantity in stable component identity order.

Source

pub fn bus_voltage_magnitude(&self, bus: BusId) -> Option<f64>

Bus voltage magnitude in per unit, None when the point contains no voltages or the bus is unknown.

Source

pub fn bus_voltage_angle(&self, bus: BusId) -> Option<f64>

Bus voltage angle in radians.

Source

pub fn bus_active_injection(&self, bus: BusId) -> Option<f64>

Net active injection at the bus in MW.

Source

pub fn bus_reactive_injection(&self, bus: BusId) -> Option<f64>

Net reactive injection at the bus in MVAr.

Source

pub fn generator_active_power(&self, identity: &str) -> Option<f64>

Generator active power output in MW, by payload identity.

Source

pub fn generator_reactive_power(&self, identity: &str) -> Option<f64>

Generator reactive power output in MVAr, by payload identity.

Source

pub fn generator_voltage_setpoint(&self, identity: &str) -> Option<f64>

Generator voltage setpoint in per unit, by payload identity.

Source

pub fn generator_in_service(&self, identity: &str) -> Option<bool>

Whether the generator is in service at this point.

Source

pub fn load_active_power(&self, identity: &str) -> Option<f64>

Load active power in MW, by payload identity.

Source

pub fn load_reactive_power(&self, identity: &str) -> Option<f64>

Load reactive power in MVAr, by payload identity.

Source

pub fn branch_in_service(&self, identity: &str) -> Option<bool>

Whether the branch is in service at this point.

Source

pub fn branch_tap_ratio(&self, identity: &str) -> Option<f64>

Branch off-nominal tap ratio at this point.

Source

pub fn branch_phase_shift(&self, identity: &str) -> Option<f64>

Branch phase shift in degrees at this point.

Source

pub fn switch_closed(&self, identity: &str) -> Option<bool>

Whether the switch is closed at this point.

Source§

impl OperatingPoint<MulticonductorNetwork>

Source

pub fn values( &self, quantity: MulticonductorOperatingPointQuantity, ) -> Option<OperatingPointValues<'_>>

Iterate one numeric quantity in stable component identity order.

Source

pub fn flags( &self, quantity: MulticonductorOperatingPointFlag, ) -> Option<OperatingPointFlags<'_>>

Iterate one boolean quantity in stable component identity order.

Source

pub fn terminal_voltage_magnitude( &self, bus: &str, terminal: &str, ) -> Option<f64>

Voltage magnitude at one bus terminal in volts, keyed bus_id/terminal.

Source

pub fn terminal_voltage_angle(&self, bus: &str, terminal: &str) -> Option<f64>

Voltage angle at one bus terminal in radians.

Source

pub fn load_active_power(&self, load: &str, terminal: &str) -> Option<f64>

Load active power on one conductor in watts, keyed load_name/terminal.

Source

pub fn load_reactive_power(&self, load: &str, terminal: &str) -> Option<f64>

Load reactive power on one conductor in vars.

Source

pub fn generator_active_power( &self, generator: &str, terminal: &str, ) -> Option<f64>

Generator active power on one conductor in watts.

Source

pub fn generator_reactive_power( &self, generator: &str, terminal: &str, ) -> Option<f64>

Generator reactive power on one conductor in vars.

Source

pub fn switch_closed(&self, switch: &str) -> Option<bool>

Whether the named switch is closed at this point.

Source

pub fn transformer_tap(&self, transformer: &str) -> Option<f64>

The named transformer’s regulator tap position at this point.

Source

pub fn capacitor_steps(&self, capacitor: &str) -> Option<f64>

The named capacitor’s engaged step count at this point.

Source§

impl<N> OperatingPoint<N>

Source

pub fn network(&self) -> &N

The network whose equipment identities and defaults this point uses.

Trait Implementations§

Source§

impl<N: Clone> Clone for OperatingPoint<N>

Source§

fn clone(&self) -> OperatingPoint<N>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<N: Debug> Debug for OperatingPoint<N>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<N> Freeze for OperatingPoint<N>
where N: Freeze,

§

impl<N> RefUnwindSafe for OperatingPoint<N>
where N: RefUnwindSafe,

§

impl<N> Send for OperatingPoint<N>
where N: Send,

§

impl<N> Sync for OperatingPoint<N>
where N: Sync,

§

impl<N> Unpin for OperatingPoint<N>
where N: Unpin,

§

impl<N> UnsafeUnpin for OperatingPoint<N>
where N: UnsafeUnpin,

§

impl<N> UnwindSafe for OperatingPoint<N>
where N: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.