#[non_exhaustive]pub struct DcNetworkData {
pub from_indices: Vec<usize>,
pub to_indices: Vec<usize>,
pub susceptance: Vec<f64>,
pub shift: Vec<f64>,
pub shift_injection: Vec<f64>,
pub row_ids: Vec<String>,
pub bus_ids: Vec<String>,
pub omitted: Vec<(String, String)>,
pub formula: &'static str,
}Expand description
The DC branch data of one balanced network under one susceptance formula, with the stable element mappings that interpret every row: the one assembly Rust, C, Python, and Julia all read, so names, element order, and omission reasons agree across languages by construction.
Rows follow A[e, from] = +1, A[e, to] = -1 (PowerModels orientation);
susceptance carries the PowerModels sign for the selected formula; the
phase shift injection is p_shift = A' * (b .* shift) per bus (with the
negative b, the same fixed term MATPOWER’s makeBdc builds), and the
complete affine branch flow is
p_branch = -b .* (va_from - va_to) + b .* shift, so
A' * p_branch equals the angle terms plus shift_injection. Rows and
columns describe the analysis network after three winding transformer
expansion.
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.from_indices: Vec<usize>From bus column per included row.
to_indices: Vec<usize>To bus column per included row.
susceptance: Vec<f64>Branch susceptance per included row.
shift: Vec<f64>Phase shift angle per included row, radians; 0 for an unshifted
branch or a formula that excludes shifts.
shift_injection: Vec<f64>Phase shift bus injection, one entry per bus.
row_ids: Vec<String>Stable module element ID per included row.
bus_ids: Vec<String>Stable bus element ID per incidence column.
omitted: Vec<(String, String)>Branches the selected formula cannot represent: stable element ID and the diagnostic reason. Zero impedance branches land here by default; nothing removes them silently.
formula: &'static strThe selected formula’s stable cross language name.
Trait Implementations§
Source§impl Clone for DcNetworkData
impl Clone for DcNetworkData
Source§fn clone(&self) -> DcNetworkData
fn clone(&self) -> DcNetworkData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more