#[non_exhaustive]pub struct McOpfBranch {
pub identity: String,
pub from: Vec<usize>,
pub to: Vec<usize>,
pub r: Vec<Vec<f64>>,
pub x: Vec<Vec<f64>>,
pub g_from: Vec<Vec<f64>>,
pub b_from: Vec<Vec<f64>>,
pub g_to: Vec<Vec<f64>>,
pub b_to: Vec<Vec<f64>>,
pub current_max: Vec<Option<f64>>,
pub apparent_max: Vec<Option<f64>>,
pub open: bool,
}Expand description
A line or ideal switch, with dense local conductor matrices.
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.identity: StringSource kind and name (line:name or switch:name).
from: Vec<usize>From-terminal global indices, in local conductor order.
to: Vec<usize>To-terminal global indices paired with from.
r: Vec<Vec<f64>>Local square series resistance matrix divided by Z_base.
x: Vec<Vec<f64>>Local square series reactance matrix divided by Z_base.
g_from: Vec<Vec<f64>>Local square from-end conductance matrix multiplied by Z_base.
b_from: Vec<Vec<f64>>Local square from-end susceptance matrix multiplied by Z_base.
g_to: Vec<Vec<f64>>Local square to-end conductance matrix multiplied by Z_base.
b_to: Vec<Vec<f64>>Local square to-end susceptance matrix multiplied by Z_base.
current_max: Vec<Option<f64>>Optional current magnitude cap per conductor, per unit.
apparent_max: Vec<Option<f64>>Optional apparent-power cap per conductor, per unit.
open: boolOpen contacts carry no series current.
Trait Implementations§
Source§impl Clone for McOpfBranch
impl Clone for McOpfBranch
Source§impl Debug for McOpfBranch
impl Debug for McOpfBranch
Source§impl<'de> Deserialize<'de> for McOpfBranch
impl<'de> Deserialize<'de> for McOpfBranch
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
Auto Trait Implementations§
impl Freeze for McOpfBranch
impl RefUnwindSafe for McOpfBranch
impl Send for McOpfBranch
impl Sync for McOpfBranch
impl Unpin for McOpfBranch
impl UnsafeUnpin for McOpfBranch
impl UnwindSafe for McOpfBranch
Blanket Implementations§
impl<T> Allocation for T
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