Skip to main content

MulticonductorOperatingPointBuilder

Struct MulticonductorOperatingPointBuilder 

Source
pub struct MulticonductorOperatingPointBuilder { /* private fields */ }
Expand description

Bulk constructor for a multiconductor operating point series. Identities resolve once against the network’s stable order: bus terminals in bus table order with each bus’s terminal order, load conductors in load table order with each terminal map’s order, and named elements in their table order.

Implementations§

Source§

impl MulticonductorOperatingPointBuilder

Source

pub fn new(network: MulticonductorNetwork, time_points: Vec<TimePoint>) -> Self

Source

pub fn for_point(network: MulticonductorNetwork) -> Self

Start a builder for one operating point.

Source

pub fn terminal_voltage_magnitudes(self, values: Vec<f64>) -> Self

Dense terminal voltage magnitudes: one value per bus terminal in bus table order (each bus’s terminals in its stated order), point major.

Source

pub fn terminal_voltage_angles(self, values: Vec<f64>) -> Self

Source

pub fn load_active_powers(self, values: Vec<f64>) -> Self

Dense per conductor load active powers: one value per load terminal in load table order (each load’s terminal map order), point major.

Source

pub fn load_reactive_powers(self, values: Vec<f64>) -> Self

Source

pub fn generator_active_powers(self, values: Vec<f64>) -> Self

Source

pub fn generator_reactive_powers(self, values: Vec<f64>) -> Self

Source

pub fn switch_closed(self, values: Vec<bool>) -> Self

Source

pub fn transformer_taps(self, values: Vec<f64>) -> Self

Source

pub fn capacitor_steps(self, values: Vec<f64>) -> Self

Source

pub fn sparse_terminal_voltage_magnitudes( self, base: Vec<f64>, changes: Vec<Vec<(String, f64)>>, ) -> Self

Sparse terminal voltage magnitudes: one base row plus per point overrides keyed bus_id/terminal.

Source

pub fn sparse_terminal_voltage_angles( self, base: Vec<f64>, changes: Vec<Vec<(String, f64)>>, ) -> Self

Source

pub fn sparse_load_active_powers( self, base: Vec<f64>, changes: Vec<Vec<(String, f64)>>, ) -> Self

Sparse per conductor load active powers: one base row plus per point overrides keyed load_name/terminal.

Source

pub fn sparse_load_reactive_powers( self, base: Vec<f64>, changes: Vec<Vec<(String, f64)>>, ) -> Self

Source

pub fn sparse_generator_active_powers( self, base: Vec<f64>, changes: Vec<Vec<(String, f64)>>, ) -> Self

Source

pub fn sparse_generator_reactive_powers( self, base: Vec<f64>, changes: Vec<Vec<(String, f64)>>, ) -> Self

Source

pub fn sparse_switch_closed( self, base: Vec<bool>, changes: Vec<Vec<(String, bool)>>, ) -> Self

Source

pub fn sparse_transformer_taps( self, base: Vec<f64>, changes: Vec<Vec<(String, f64)>>, ) -> Self

Source

pub fn sparse_capacitor_steps( self, base: Vec<f64>, changes: Vec<Vec<(String, f64)>>, ) -> Self

Source

pub fn build( self, ) -> Result<TimeSeries<OperatingPoint<MulticonductorNetwork>>, Error>

Resolve every identity once, validate every column, and build the series. The points share the network handle and the columns; QSTS result import goes through here without cloning the network per sample.

§Errors

A shape mismatch, a duplicate or unknown identity, or an empty time axis.

Source

pub fn build_point(self) -> Result<OperatingPoint<MulticonductorNetwork>, Error>

Build one operating point.

§Errors

The builder does not contain exactly one point, or a quantity is invalid.

Trait Implementations§

Source§

impl Debug for MulticonductorOperatingPointBuilder

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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> 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, 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.