Enum ReactiveRatioForm
#[non_exhaustive]pub enum ReactiveRatioForm {
Sine,
OpenDss,
}Expand description
How calc_reactive_ratio forms tan(acos |pf|). The forms are the
same ratio and 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.
Sine
calc_power_factor_sine / pf, free of the cancellation of
1 − pf² near unity: every reader and model that follows no
engine’s rounding.
OpenDss
√(1 / pf² − 1), negated for pf < 0: OpenDSS’s Load,
Generator, Storage and PVSystem
(kvarBase := kWBase * Sqrt(1.0 / Sqr(PFNominal) - 1.0), DSS C-API
0.14.5).
Trait Implementations§
§impl Clone for ReactiveRatioForm
impl Clone for ReactiveRatioForm
§fn clone(&self) -> ReactiveRatioForm
fn clone(&self) -> ReactiveRatioForm
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 ReactiveRatioForm
§impl Debug for ReactiveRatioForm
impl Debug for ReactiveRatioForm
impl Eq for ReactiveRatioForm
§impl PartialEq for ReactiveRatioForm
impl PartialEq for ReactiveRatioForm
impl StructuralPartialEq for ReactiveRatioForm
Auto Trait Implementations§
impl Freeze for ReactiveRatioForm
impl RefUnwindSafe for ReactiveRatioForm
impl Send for ReactiveRatioForm
impl Sync for ReactiveRatioForm
impl Unpin for ReactiveRatioForm
impl UnsafeUnpin for ReactiveRatioForm
impl UnwindSafe for ReactiveRatioForm
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