#[non_exhaustive]pub struct HvdcInjections {
pub terminals: Vec<HvdcTerminalInjection>,
pub out_of_service: Vec<usize>,
pub inactive_terminal: Vec<usize>,
pub per_unit: bool,
}Expand description
Every fixed HVDC injection a network states, with the lines that make
none. Build it with BalancedNetwork::calc_hvdc_injections.
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.terminals: Vec<HvdcTerminalInjection>Two entries per injecting line, its from end then its to end, in
BalancedNetwork::hvdc row order.
out_of_service: Vec<usize>Rows of the lines whose in service flag is false. They inject nothing.
inactive_terminal: Vec<usize>Rows of in service lines left out because a terminal bus is isolated or not declared by the network. A converter with no energized AC terminal cannot exchange power, so neither end injects.
per_unit: boolWhether the powers are per unit (the network is normalized) rather than MW and MVAr.
Implementations§
Source§impl HvdcInjections
impl HvdcInjections
Sourcepub fn n_injecting(&self) -> usize
pub fn n_injecting(&self) -> usize
How many lines inject.
Sourcepub fn calc_sent_power(&self) -> f64
pub fn calc_sent_power(&self) -> f64
Active power the injecting lines take from their from buses, summed.
Sourcepub fn calc_delivered_power(&self) -> f64
pub fn calc_delivered_power(&self) -> f64
Active power the injecting lines deliver to their to buses, summed.
Sourcepub fn calc_reactive_injection(&self) -> f64
pub fn calc_reactive_injection(&self) -> f64
Reactive power the injecting lines put into their terminal buses, summed over both ends.
Sourcepub fn to_diagnostics(&self, treatment: HvdcTreatment) -> Vec<Diagnostic>
pub fn to_diagnostics(&self, treatment: HvdcTreatment) -> Vec<Diagnostic>
The diagnostics a calculation reports for these lines under
treatment: a remark stating what was injected, or a warning stating
what was left out, plus one warning per in service line whose terminal
bus is inactive. A network with no HVDC line reports nothing.
Trait Implementations§
Source§impl Clone for HvdcInjections
impl Clone for HvdcInjections
Source§fn clone(&self) -> HvdcInjections
fn clone(&self) -> HvdcInjections
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more