Skip to main content

GeneratorModel

Enum GeneratorModel 

Source
pub enum GeneratorModel {
Show 34 variants Gencls(GenclsParams), Genrou(GenrouParams), Gensal(GensalParams), Regca(RegcaParams), Gentpj(GentpjParams), Genqec(GenqecParams), Regcb(RegcbParams), Wt3g2u(Wt3g2uParams), Wt4g1(Wt4g1Params), RegfmA1(RegfmA1Params), RegfmB1(RegfmB1Params), Dera(DeraParams), Gentra(GentraParams), Gentpf(GentpjParams), Regcc(RegccParams), Wt4g2(Wt4g2Params), Derc(DercParams), Genroa(GenrouParams), Gensaa(GensalParams), RegfmC1(RegfmC1Params), Pvgu1(Pvgu1Params), Pvdg(PvdgParams), Wt3g3(Wt3g2uParams), Regco1(Regco1Params), Genwtg(GenrouParams), Genroe(GenrouParams), Gensal3(Gensal3Params), Derp(DerpParams), RegfmD1(Regfmd1Params), Gensae(GensalParams), Wt1g1(Wt1g1Params), Wt2g1(Wt1g1Params), Pvd1(PvdgParams), Pvdu1(Pvgu1Params),
}
Expand description

Discriminated union of supported generator dynamic models.

Variants§

§

Gencls(GenclsParams)

§

Genrou(GenrouParams)

§

Gensal(GensalParams)

§

Regca(RegcaParams)

REGC_A — IBR inner converter (voltage-source Norton equivalent, no swing equation).

§

Gentpj(GentpjParams)

§

Genqec(GenqecParams)

§

Regcb(RegcbParams)

REGCB — enhanced IBR inner converter.

§

Wt3g2u(Wt3g2uParams)

WT3G2U — Type 3 (DFIG) wind generator.

§

Wt4g1(Wt4g1Params)

WT4G1 — Type 4 (full-converter) wind generator.

§

RegfmA1(RegfmA1Params)

REGFM_A1 — Grid-forming inverter (droop).

§

RegfmB1(RegfmB1Params)

REGFM_B1 — Grid-forming inverter (VSM).

§

Dera(DeraParams)

DER_A — Distributed energy resource aggregate.

§

Gentra(GentraParams)

GENTRA — Third-order transient generator (3 states: δ, ω, E’q).

§

Gentpf(GentpjParams)

GENTPF — Flux-based saturation round-rotor (same state/equations as GENTPJ).

§

Regcc(RegccParams)

REGCC — Next-gen GFM-capable converter (4 states).

§

Wt4g2(Wt4g2Params)

WT4G2 — Type 4 wind variant GE (2 states, same as WT4G1).

§

Derc(DercParams)

DER_C / DERC — DER_A variant C (3 states).

§

Genroa(GenrouParams)

GENROA — GENROU with additional AVR interface (Phase 21, same state as GENROU).

§

Gensaa(GensalParams)

GENSAA — GENSAL with additional AVR interface (Phase 21, same state as GENSAL).

§

RegfmC1(RegfmC1Params)

REGFM_C1 — Grid-forming inverter C1 (Phase 21).

§

Pvgu1(Pvgu1Params)

PVGU1 — WECC 1st-gen photovoltaic converter unit (Phase 22).

§

Pvdg(PvdgParams)

PVDG — Distributed/rooftop PV aggregate model (Phase 22).

§

Wt3g3(Wt3g2uParams)

WT3G3 — Type 3 wind generator variant 3 (Phase 27, reuses Wt3g2u dynamics).

§

Regco1(Regco1Params)

REGCO1 — Grid-following converter generator (Phase 27, 4 states).

§

Genwtg(GenrouParams)

GENWTG — Alias for GENROU (Phase 27).

§

Genroe(GenrouParams)

GENROE — GENROU with extended saturation (Phase 27, reuses GENROU params).

§

Gensal3(Gensal3Params)

GENSAL3 — Third-order salient-pole generator (Phase 27, 3 dynamic states).

§

Derp(DerpParams)

DERP — DER with Protection (Phase 28, 2 states).

§

RegfmD1(Regfmd1Params)

REGFM_D1 — WECC hybrid GFM/GFL converter (Phase 28, 8 states).

§

Gensae(GensalParams)

GENSAE — Salient-pole with exponential saturation (reuses GensalParams).

§

Wt1g1(Wt1g1Params)

WT1G1 — Type 1 fixed-speed wind generator (Wave 36, IBR equivalent).

§

Wt2g1(Wt1g1Params)

WT2G1 — Type 2 variable-slip wind generator (Wave 36, alias Wt1g1Params).

§

Pvd1(PvdgParams)

PVD1 — Distributed PV aggregate (Wave 36, alias PvdgParams).

§

Pvdu1(Pvgu1Params)

PVDU1 — PV distributed unit (Wave 36, alias Pvgu1Params).

Trait Implementations§

Source§

impl Clone for GeneratorModel

Source§

fn clone(&self) -> GeneratorModel

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 GeneratorModel

Source§

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

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

impl<'de> Deserialize<'de> for GeneratorModel

Source§

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

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

impl Serialize for GeneratorModel

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> 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.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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