#[non_exhaustive]pub struct AcBranchData {Show 19 fields
pub identities: Vec<String>,
pub from_bus: Vec<usize>,
pub to_bus: Vec<usize>,
pub g: Vec<f64>,
pub b: Vec<f64>,
pub g_fr: Vec<f64>,
pub b_fr: Vec<f64>,
pub g_to: Vec<f64>,
pub b_to: Vec<f64>,
pub tap: Vec<f64>,
pub shift: Vec<f64>,
pub s_max: Vec<f64>,
pub angle_min: Vec<f64>,
pub angle_max: Vec<f64>,
pub analysis_rows: Vec<usize>,
pub analysis_sources: Vec<AnalysisBranchSource>,
pub skipped_zero_impedance: Vec<usize>,
pub thermal_limit_active: Vec<bool>,
pub angle_bound_active: Vec<bool>,
}Expand description
Branch data in active branch column order.
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.identities: Vec<String>Stable branch identity aligned with every following column.
from_bus: Vec<usize>§to_bus: Vec<usize>§g: Vec<f64>Series conductance r / (r² + x²) in the selected admittance unit.
b: Vec<f64>Series susceptance −x / (r² + x²) in the selected admittance unit.
g_fr: Vec<f64>Charging conductance at the from terminal.
b_fr: Vec<f64>Charging susceptance at the from terminal.
g_to: Vec<f64>Charging conductance at the to terminal.
b_to: Vec<f64>Charging susceptance at the to terminal.
tap: Vec<f64>Tap ratio magnitude; one for a line. Kept separate from shift so a
consumer stamps the complex tap itself.
shift: Vec<f64>Phase shift in radians.
s_max: Vec<f64>Apparent power limit in the selected power unit. Zero means unlimited.
angle_min: Vec<f64>Branch angle bounds in radians, as the source states them.
angle_max: Vec<f64>§analysis_rows: Vec<usize>Branch column to row in the star-lowered analysis network.
analysis_sources: Vec<AnalysisBranchSource>Source component for each analysis branch column. Lowered transformer windings remain mapped to their typed transformer row and winding.
skipped_zero_impedance: Vec<usize>Analysis branch rows omitted because r² + x² = 0.
thermal_limit_active: Vec<bool>Whether the instance activates each apparent power limit.
angle_bound_active: Vec<bool>Whether the instance activates each angle difference bound.
Trait Implementations§
Source§impl Clone for AcBranchData
impl Clone for AcBranchData
Source§fn clone(&self) -> AcBranchData
fn clone(&self) -> AcBranchData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AcBranchData
impl Debug for AcBranchData
Source§impl<'de> Deserialize<'de> for AcBranchData
impl<'de> Deserialize<'de> for AcBranchData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for AcBranchData
impl PartialEq for AcBranchData
Source§fn eq(&self, other: &AcBranchData) -> bool
fn eq(&self, other: &AcBranchData) -> bool
self and other values to be equal, and is used by ==.