#[non_exhaustive]pub struct AcPfPreparation {Show 16 fields
pub name: String,
pub n_buses: usize,
pub n_source_generators: usize,
pub n_source_branches: usize,
pub base_mva: f64,
pub units: Units,
pub skip_zero_impedance: bool,
pub correct_angle_difference_bounds: bool,
pub bus_ids: Vec<BusId>,
pub bus_analysis_rows: Vec<usize>,
pub bus_source_rows: Vec<Option<usize>>,
pub specifications: Vec<PreparedAcBusSpecification>,
pub reference_buses: ReferenceBuses,
pub buses: AcPfBusData,
pub generators: AcPfGeneratorData,
pub branches: AcBranchData,
}Expand description
Matrix free AC power flow input on the branch pi model.
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.name: String§n_buses: usize§n_source_generators: usize§n_source_branches: usize§base_mva: f64§units: Units§skip_zero_impedance: bool§correct_angle_difference_bounds: boolWhether PowerModels’ angle difference correction was applied.
bus_ids: Vec<BusId>Dense bus index to external bus ID.
bus_analysis_rows: Vec<usize>Dense bus index to row in the star-lowered analysis network.
bus_source_rows: Vec<Option<usize>>Dense bus index to source bus row. A synthetic transformer star bus has no source row; a source bus specified as isolated has no dense row.
specifications: Vec<PreparedAcBusSpecification>Bus specifications in dense bus order. A synthetic transformer star
bus is a zero injection PQ junction. Source rows specified as isolated
are absent from the numerical rows but remain on the AcPfInstance.
reference_buses: ReferenceBuses§buses: AcPfBusData§generators: AcPfGeneratorData§branches: AcBranchDataImplementations§
Source§impl AcPfPreparation
impl AcPfPreparation
pub fn n_generators(&self) -> usize
pub fn n_branches(&self) -> usize
Trait Implementations§
Source§impl Clone for AcPfPreparation
impl Clone for AcPfPreparation
Source§fn clone(&self) -> AcPfPreparation
fn clone(&self) -> AcPfPreparation
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 AcPfPreparation
impl Debug for AcPfPreparation
Source§impl<'de> Deserialize<'de> for AcPfPreparation
impl<'de> Deserialize<'de> for AcPfPreparation
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 AcPfPreparation
impl PartialEq for AcPfPreparation
Source§fn eq(&self, other: &AcPfPreparation) -> bool
fn eq(&self, other: &AcPfPreparation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AcPfPreparation
impl Serialize for AcPfPreparation
impl StructuralPartialEq for AcPfPreparation
Auto Trait Implementations§
impl Freeze for AcPfPreparation
impl RefUnwindSafe for AcPfPreparation
impl Send for AcPfPreparation
impl Sync for AcPfPreparation
impl Unpin for AcPfPreparation
impl UnsafeUnpin for AcPfPreparation
impl UnwindSafe for AcPfPreparation
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