Skip to content

Commit 9fb15fa

Browse files
committed
rebased IEEEST
1 parent bb61ead commit 9fb15fa

3 files changed

Lines changed: 18 additions & 16 deletions

File tree

GridKit/Model/PhasorDynamics/Stabilizer/IEEEST/Ieeest.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@ namespace GridKit
137137
RealT T4_{1};
138138
RealT T5_{0};
139139
RealT T6_{1};
140-
RealT T2_inv_{1};
141-
RealT T4_inv_{1};
142-
RealT T6_inv_{1};
143140
RealT Ks_{1};
144141
RealT Lsmin_{-0.1};
145142
RealT Lsmax_{0.1};

GridKit/Model/PhasorDynamics/Stabilizer/IEEEST/IeeestImpl.hpp

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,9 @@ namespace GridKit
4949
template <typename scalar_type, typename index_type>
5050
void Ieeest<scalar_type, index_type>::setDerivedParameters()
5151
{
52-
T2_ = std::max(T2_, TIME_CONSTANT_MINIMUM);
53-
T4_ = std::max(T4_, TIME_CONSTANT_MINIMUM);
54-
T6_ = std::max(T6_, TIME_CONSTANT_MINIMUM);
55-
T2_inv_ = ONE<RealT> / T2_;
56-
T4_inv_ = ONE<RealT> / T4_;
57-
T6_inv_ = ONE<RealT> / T6_;
52+
T2_ = std::max(T2_, TIME_CONSTANT_MINIMUM);
53+
T4_ = std::max(T4_, TIME_CONSTANT_MINIMUM);
54+
T6_ = std::max(T6_, TIME_CONSTANT_MINIMUM);
5855

5956
a1_ = A1_ + A3_;
6057
a2_ = A2_ + A4_ + A1_ * A3_;
@@ -352,9 +349,9 @@ namespace GridKit
352349
const ScalarT x2_rhs = (-x1 - a1_ * x2 + u) * a2_inv_;
353350
const ScalarT x3_rhs = (-x1 - a1_ * x2 - a2_ * x3 + u) * a3_inv_;
354351
const ScalarT x4_rhs = (-x1 - a1_ * x2 - a2_ * x3 - a3_ * x4 + u) * a4_inv_;
355-
const ScalarT x5_rhs = (v4 - x5) * T2_inv_;
356-
const ScalarT x6_rhs = (v5 - x6) * T4_inv_;
357-
const ScalarT x7_rhs = (v6 - x7) * T6_inv_;
352+
const ScalarT x5_rhs = (v4 - x5) / T2_;
353+
const ScalarT x6_rhs = (v5 - x6) / T4_;
354+
const ScalarT x7_rhs = (v6 - x7) / T6_;
358355

359356
f[X1] = -x1_dot + s1 * x1_rhs + (s2 + s3 + s4) * x2;
360357
f[X2] = -x2_dot + s2 * x2_rhs + (s3 + s4) * x3;

GridKit/Model/PhasorDynamics/Stabilizer/IEEEST/README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
Standard IEEE power system stabilizer: 4th-order notch filter, two lead–lag
44
blocks, washout, and output limiter.
55

6-
Notes:
6+
## Notes
7+
78
- $V_{\mathrm{cl}}$, $V_{\mathrm{cu}}$, and $T_{\mathrm{delay}}$ are accepted for input-format
89
compatibility but are not modeled.
910

@@ -69,6 +70,13 @@ IEEEST denominator time constants are conditioned and unsupported notch forms ar
6970
\end{aligned}
7071
```
7172

73+
## Model Ports
74+
75+
Name | Port | Init | Description
76+
---------|--------|-------|------
77+
`input` | Input | Known | Stabilizer input signal
78+
`output` | Output | Known | Stabilizer output signal
79+
7280
## Model Variables
7381

7482
### Internal Variables
@@ -188,11 +196,11 @@ The output limiter uses GridKit's smooth
188196

189197
## Initialization
190198

191-
### External Priors
199+
### Input Initialization
192200

193201
```math
194202
\begin{aligned}
195-
u_0 &\leftarrow \text{stabilizer input signal}
203+
u &\leftarrow \text{stabilizer input signal}
196204
\end{aligned}
197205
```
198206

@@ -208,7 +216,7 @@ The output limiter uses GridKit's smooth
208216
\end{aligned}
209217
```
210218

211-
### External Solved
219+
### Output Initialization
212220

213221
None.
214222

0 commit comments

Comments
 (0)