Skip to main content

ReecaParams

Struct ReecaParams 

Source
pub struct ReecaParams {
Show 23 fields pub trv: f64, pub kqv: f64, pub tp: f64, pub kqp: f64, pub kqi: f64, pub vref0: f64, pub dbd1: f64, pub dbd2: f64, pub vdip: f64, pub vup: f64, pub iqh1: f64, pub iql1: f64, pub qmax: f64, pub qmin: f64, pub tpfilt: f64, pub tqfilt: f64, pub rrpwr: f64, pub rrpwr_dn: f64, pub pqflag: i32, pub imax: f64, pub ipmax: f64, pub vdl1: [(f64, f64); 4], pub vdl2: [(f64, f64); 4],
}
Expand description

REEC_A – IBR electrical controller (maps to exciter slot, Phase 8 simplified).

Simplified to voltage-following / constant power factor mode. Full REEC_A includes Kqv droop, deadband, FRT limits.

This is a standard planning-level model for IBR electrical controllers. For studies involving IBR fault ride-through, voltage regulation, or reactive power control, use the full REEC_A model with Kqv droop and deadband parameters. See the module-level documentation for the full model mapping.

Key params: Trv Kqv Tp Kqp Kqi Vref0 Dbd1 Dbd2 Vdip Vup Iqh1 Iql1 Qmax Qmin

Fields§

§trv: f64

Voltage filter time constant (s).

§kqv: f64

Reactive power control voltage droop gain.

§tp: f64

Active current filter time constant (s).

§kqp: f64

Reactive power proportional gain.

§kqi: f64

Reactive power integral gain (1/s).

§vref0: f64

Initial voltage reference (pu).

§dbd1: f64

Voltage deadband lower limit (pu, negative).

§dbd2: f64

Voltage deadband upper limit (pu, positive).

§vdip: f64

Low voltage protection threshold (pu).

§vup: f64

High voltage protection threshold (pu).

§iqh1: f64

Maximum reactive current (pu).

§iql1: f64

Minimum reactive current (pu).

§qmax: f64

Maximum reactive power (pu).

§qmin: f64

Minimum reactive power (pu).

§tpfilt: f64

Active power measurement filter time constant (s).

§tqfilt: f64

Reactive power measurement filter time constant (s).

§rrpwr: f64

Active power ramp rate up limit (pu/s).

§rrpwr_dn: f64

Active power ramp rate down limit (pu/s, negative).

§pqflag: i32

Current priority flag: 0 = Q priority, 1 = P priority.

§imax: f64

Maximum total current magnitude (pu).

§ipmax: f64

Maximum active current (pu, used with PQFLAG=1).

§vdl1: [(f64, f64); 4]

VDL1 breakpoints: voltage-dependent reactive current limit (Vq, Iq) pairs. If all zeros or empty, flat iqh1/iql1 limits apply.

§vdl2: [(f64, f64); 4]

VDL2 breakpoints: voltage-dependent active current limit (Vp, Ip) pairs. If all zeros or empty, flat ipmax limit applies.

Trait Implementations§

Source§

impl Clone for ReecaParams

Source§

fn clone(&self) -> ReecaParams

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 ReecaParams

Source§

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

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

impl<'de> Deserialize<'de> for ReecaParams

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 ReecaParams

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>,