#[non_exhaustive]pub enum LoadVoltageModel {
ConstantPower,
Zip {
p_constant_power: f64,
q_constant_power: f64,
p_constant_current: f64,
q_constant_current: f64,
p_constant_impedance: f64,
q_constant_impedance: f64,
v_nom: Option<f64>,
load_type: Option<i32>,
scaling: Option<f64>,
},
Exponential {
p: f64,
q: f64,
v_nom: Option<f64>,
gamma_p: f64,
gamma_q: f64,
},
}Expand description
Voltage dependence for a transmission load.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ConstantPower
Explicit constant power marker.
Zip
ZIP load split in source units. The three active parts sum to
Load::p, and the three reactive parts sum to Load::q.
Fields
Exponential
Exponential voltage model: P = p * (V / v_nom)^gamma_p,
Q = q * (V / v_nom)^gamma_q.
Implementations§
Source§impl LoadVoltageModel
impl LoadVoltageModel
pub fn has_non_matpower_fields(&self) -> bool
Trait Implementations§
Source§impl Clone for LoadVoltageModel
impl Clone for LoadVoltageModel
Source§fn clone(&self) -> LoadVoltageModel
fn clone(&self) -> LoadVoltageModel
Returns a duplicate of the value. Read more
1.0.0 · 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 LoadVoltageModel
impl Debug for LoadVoltageModel
Source§impl<'de> Deserialize<'de> for LoadVoltageModel
impl<'de> Deserialize<'de> for LoadVoltageModel
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 LoadVoltageModel
impl PartialEq for LoadVoltageModel
Source§impl Serialize for LoadVoltageModel
impl Serialize for LoadVoltageModel
impl StructuralPartialEq for LoadVoltageModel
Auto Trait Implementations§
impl Freeze for LoadVoltageModel
impl RefUnwindSafe for LoadVoltageModel
impl Send for LoadVoltageModel
impl Sync for LoadVoltageModel
impl Unpin for LoadVoltageModel
impl UnsafeUnpin for LoadVoltageModel
impl UnwindSafe for LoadVoltageModel
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