#[non_exhaustive]pub struct StatedStateMismatch {
pub buses: Vec<StatedBusMismatch>,
pub islands: Vec<StatedIslandMismatch>,
pub top: Vec<usize>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
The AC bus balance at the stored voltages, from
calc_stated_state_mismatch.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.buses: Vec<StatedBusMismatch>One row per bus of the analysis network: the source buses in table order, then one star bus per in service three winding transformer.
islands: Vec<StatedIslandMismatch>The islands of the in service topology, largest first. Isolated buses belong to none.
top: Vec<usize>Indices into buses of the largest |ΔS|, largest
first, at most StatedStateOptions::top_k of them.
diagnostics: Vec<Diagnostic>What the evaluation could not do as asked: one
BUILD.STATED_STATE.LCC_MODEL_UNAVAILABLE warning per line with an LCC
converter record whose stated reactive powers stood in for the
converter model.
Implementations§
Source§impl StatedStateMismatch
impl StatedStateMismatch
Sourcepub fn calc_total_abs_p_mw(&self) -> f64
pub fn calc_total_abs_p_mw(&self) -> f64
Σ|ΔP| over every bus in an island, MW.
Sourcepub fn calc_total_abs_q_mvar(&self) -> f64
pub fn calc_total_abs_q_mvar(&self) -> f64
Σ|ΔQ| over every bus in an island, MVAr.
Sourcepub fn calc_max_magnitude_mva(&self) -> f64
pub fn calc_max_magnitude_mva(&self) -> f64
The largest |ΔS| of any bus in an island, MVA.
Sourcepub fn closure_injections(&self, mask: StatedBusFlags) -> Vec<ClosureInjection>
pub fn closure_injections(&self, mask: StatedBusFlags) -> Vec<ClosureInjection>
The fixed injections that close the mismatch at every bus in an island
that carries any flag in mask: each is the bus’s own ΔP and ΔQ,
so adding it to the bus’s stated injection makes that bus balance at
the stored voltages exactly. A calculation that cannot model a device
(an HVDC converter’s reactive demand, a FACTS controller) can hold it
at this injection and start from the stored solution.