Enum ImpedanceRatioForm
#[non_exhaustive]pub enum ImpedanceRatioForm {
ResistanceOverReactance,
OpenDssReactanceOverResistance,
}Expand description
Which ratio calc_impedance_from_ratio reads and how it forms the
split. The forms can differ in the last place.
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.
ResistanceOverReactance
An R / X ratio: X = |Z| / hypot(R/X, 1), R = |Z| (R/X) / hypot(R/X, 1)
(the SINCAL transformer, source and rated shunt readers).
OpenDssReactanceOverResistance
An X / R ratio as OpenDSS VSource splits a short circuit
impedance: X = |Z| / √(1 + 1 / (X/R)²), R = X / (X/R).
Trait Implementations§
§impl Clone for ImpedanceRatioForm
impl Clone for ImpedanceRatioForm
§fn clone(&self) -> ImpedanceRatioForm
fn clone(&self) -> ImpedanceRatioForm
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 moreimpl Copy for ImpedanceRatioForm
§impl Debug for ImpedanceRatioForm
impl Debug for ImpedanceRatioForm
impl Eq for ImpedanceRatioForm
§impl PartialEq for ImpedanceRatioForm
impl PartialEq for ImpedanceRatioForm
impl StructuralPartialEq for ImpedanceRatioForm
Auto Trait Implementations§
impl Freeze for ImpedanceRatioForm
impl RefUnwindSafe for ImpedanceRatioForm
impl Send for ImpedanceRatioForm
impl Sync for ImpedanceRatioForm
impl Unpin for ImpedanceRatioForm
impl UnsafeUnpin for ImpedanceRatioForm
impl UnwindSafe for ImpedanceRatioForm
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