#[non_exhaustive]pub struct AcBranchData {Show 15 fields
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 source_rows: Vec<usize>,
pub skipped_zero_impedance: Vec<usize>,
}Expand description
Branch data in active branch column order.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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>§source_rows: Vec<usize>Branch column to source branch row.
skipped_zero_impedance: Vec<usize>Source branch rows omitted because r² + x² = 0.
Trait Implementations§
Source§impl Clone for AcBranchData
impl Clone for AcBranchData
Source§fn clone(&self) -> AcBranchData
fn clone(&self) -> AcBranchData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AcBranchData
impl PartialEq for AcBranchData
Source§impl Serialize for AcBranchData
impl Serialize for AcBranchData
impl StructuralPartialEq for AcBranchData
Auto Trait Implementations§
impl Freeze for AcBranchData
impl RefUnwindSafe for AcBranchData
impl Send for AcBranchData
impl Sync for AcBranchData
impl Unpin for AcBranchData
impl UnsafeUnpin for AcBranchData
impl UnwindSafe for AcBranchData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more