#[non_exhaustive]pub enum DistLoadVoltageModel {
ConstantPower {
v_nom: Vec<f64>,
},
ConstantCurrent {
v_nom: Vec<f64>,
},
ConstantImpedance {
v_nom: Vec<f64>,
},
Zip {
v_nom: Vec<f64>,
alpha_z: Vec<f64>,
alpha_i: Vec<f64>,
alpha_p: Vec<f64>,
beta_z: Vec<f64>,
beta_i: Vec<f64>,
beta_p: Vec<f64>,
},
Exponential {
v_nom: Vec<f64>,
gamma_p: Vec<f64>,
gamma_q: Vec<f64>,
},
}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
Constant power load. v_nom is volts per active phase when the source
states it.
ConstantCurrent
Constant current load. v_nom is volts per active phase.
ConstantImpedance
Constant impedance load. v_nom is volts per active phase.
Zip
ZIP load coefficients by active phase. v_nom is volts per active
phase; alpha terms apply to active power and beta terms to reactive
power.
Fields
Exponential
Exponential voltage model by active phase. v_nom is volts per active
phase.
Implementations§
Trait Implementations§
Source§impl Clone for DistLoadVoltageModel
impl Clone for DistLoadVoltageModel
Source§fn clone(&self) -> DistLoadVoltageModel
fn clone(&self) -> DistLoadVoltageModel
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 DistLoadVoltageModel
impl Debug for DistLoadVoltageModel
Source§impl Default for DistLoadVoltageModel
impl Default for DistLoadVoltageModel
Source§impl<'de> Deserialize<'de> for DistLoadVoltageModel
impl<'de> Deserialize<'de> for DistLoadVoltageModel
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 DistLoadVoltageModel
impl PartialEq for DistLoadVoltageModel
Source§impl Serialize for DistLoadVoltageModel
impl Serialize for DistLoadVoltageModel
impl StructuralPartialEq for DistLoadVoltageModel
Auto Trait Implementations§
impl Freeze for DistLoadVoltageModel
impl RefUnwindSafe for DistLoadVoltageModel
impl Send for DistLoadVoltageModel
impl Sync for DistLoadVoltageModel
impl Unpin for DistLoadVoltageModel
impl UnsafeUnpin for DistLoadVoltageModel
impl UnwindSafe for DistLoadVoltageModel
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