Skip to main content

Transformer3W

Struct Transformer3W 

Source
#[non_exhaustive]
pub struct Transformer3W { pub windings: [Winding; 3], pub z: [Impedance; 3], pub star_vm: f64, pub star_va: f64, pub mag_g: f64, pub mag_b: f64, pub in_service: bool, pub name: Option<String>, pub uid: Option<String>, pub extras: BTreeMap<String, Value>, }
Expand description

A three-winding transformer: three terminal buses joined at a common star point, with the series impedance given pairwise (winding 1-2, 2-3, 3-1).

Kept as a typed record (not three Branches) so the star-point voltage and the per-winding control data survive a same-format round trip. Both the PSS/E 3-winding record and the PSLF tertiary-winding record map onto it. star_expansion turns it into the synthetic star bus plus three branches for a consumer that works in the bus-branch model; IndexedNetwork applies it before building any matrix, so a 3-winding transformer contributes to Y_bus and connectivity.

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.
§windings: [Winding; 3]

The three windings, in order (primary, secondary, tertiary).

§z: [Impedance; 3]

Pairwise series impedance [z12, z23, z31] (primary-secondary, secondary-tertiary, tertiary-primary), each per unit on the system base with its declared MVA base.

§star_vm: f64

Star-point voltage magnitude (p.u.) and angle (degrees), as solved.

§star_va: f64§mag_g: f64

Magnetizing shunt referred to the star point (p.u. on the system base).

§mag_b: f64§in_service: bool§name: Option<String>§uid: Option<String>

Stable row identity; see Bus::uid.

§extras: BTreeMap<String, Value>

Implementations§

Source§

impl Transformer3W

Source

pub fn new(windings: [Winding; 3], z: [Impedance; 3]) -> Transformer3W

Source

pub fn star_impedances(&self) -> [(f64, f64); 3]

The per-winding star impedances (r, x) — winding k to the star point — from the pairwise values, per unit on the system base.

Standard pairwise→star conversion: z1 = (z12 + z31 - z23) / 2, and so on. Because the impedances are already on a common base, the split is linear in r and x separately.

Source

pub fn star_expansion(&self, star_id: BusId) -> (Bus, [Branch; 3])

Expand into a synthetic star Bus (id star_id) plus three Branches, one per winding, for a consumer that works in the bus-branch model. IndexedNetwork calls this via Network::expand_transformers_3w when assembling matrix inputs. The star bus carries the stored star voltage and the magnetizing shunt is left to the caller; each branch takes its winding’s tap, phase shift, and ratings.

Trait Implementations§

Source§

impl Clone for Transformer3W

Source§

fn clone(&self) -> Transformer3W

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Transformer3W

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Transformer3W

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<Transformer3W, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Transformer3W

Source§

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,