#[non_exhaustive]pub enum ZeroImpedanceRule {
Exact,
PsseThreshold(f64),
ImpedanceMagnitude(f64),
}Expand description
Which branches a BusMergeRule treats as zero impedance connections.
Every rule considers in-service branches only: an out-of-service branch does not join its buses.
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.
Exact
r == 0 and x == 0 exactly. A transformer qualifies only at
nominal ratio with no phase shift, since an ideal off-nominal
transformer is a voltage ratio rather than a connection.
PsseThreshold(f64)
PSS/E zero impedance line semantics: a non-transformer branch with
r == 0 and |x| <= threshold (per unit). A threshold of zero
disables the treatment, as THRSHZ = 0 does in PSS/E.
ImpedanceMagnitude(f64)
A non-transformer branch whose series impedance magnitude
hypot(r, x) is at or below the threshold (per unit). Wider than the
PSS/E rule: it also merges small resistive jumpers.
Trait Implementations§
Source§impl Clone for ZeroImpedanceRule
impl Clone for ZeroImpedanceRule
Source§fn clone(&self) -> ZeroImpedanceRule
fn clone(&self) -> ZeroImpedanceRule
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 ZeroImpedanceRule
Source§impl Debug for ZeroImpedanceRule
impl Debug for ZeroImpedanceRule
Source§impl Display for ZeroImpedanceRule
impl Display for ZeroImpedanceRule
Source§impl PartialEq for ZeroImpedanceRule
impl PartialEq for ZeroImpedanceRule
impl StructuralPartialEq for ZeroImpedanceRule
Auto Trait Implementations§
impl Freeze for ZeroImpedanceRule
impl RefUnwindSafe for ZeroImpedanceRule
impl Send for ZeroImpedanceRule
impl Sync for ZeroImpedanceRule
impl Unpin for ZeroImpedanceRule
impl UnsafeUnpin for ZeroImpedanceRule
impl UnwindSafe for ZeroImpedanceRule
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