#[non_exhaustive]pub struct Impedance {
pub r: f64,
pub x: f64,
pub base_mva: f64,
}Expand description
A series impedance with the MVA base it is expressed on. Used pairwise by
Transformer3W; a self-contained unit so the base travels with the value
instead of being implied by position.
r/x are per unit on the system base (the same CZ = 1 convention as
Branch::r/Branch::x, so the matrix math needs no rebasing); base_mva
records the winding-pair MVA base the source file declared (PSS/E SBASE1-2
and friends), kept so a write-back reproduces it and so a future CZ = 2
reader has somewhere to put the winding base it must rebase from. Room to grow
(winding voltage base, turns-ratio units) as the transformer control work
lands without reshaping the Transformer3W::z array.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.r: f64§x: f64§base_mva: f64Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Impedance
impl<'de> Deserialize<'de> for Impedance
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Impedance, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Impedance, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Impedance
impl Serialize for Impedance
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Impedance
Auto Trait Implementations§
impl Freeze for Impedance
impl RefUnwindSafe for Impedance
impl Send for Impedance
impl Sync for Impedance
impl Unpin for Impedance
impl UnsafeUnpin for Impedance
impl UnwindSafe for Impedance
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