Calculation#
Group of classes that calculates based on other models.
Common Parameters: u, name
Available models: ACE, ACEc, COI
ACE#
Area Control Error model.
Discrete frequency sampling.
System base frequency from system.config.freq is used.
Frequency sampling period (in seconds) can be specified in
ACE.config.interval. The sampling start time (in seconds)
can be specified in ACE.config.offset.
Note: area idx is automatically retrieved from bus.
Parameters#
Name |
Symbol |
Description |
Default |
Unit |
Properties |
|---|---|---|---|---|---|
idx |
unique device idx |
||||
u |
\(u\) |
connection status |
1 |
bool |
|
name |
device name |
||||
bus |
bus idx for freq. measurement |
mandatory |
|||
bias |
\(\beta\) |
bias parameter |
1 |
MW/0.1Hz |
power |
busf |
Optional BusFreq device idx |
||||
area |
0 |
Variables#
Name |
Symbol |
Type |
Description |
Unit |
Properties |
|---|---|---|---|---|---|
ace |
\(ace\) |
Algeb |
area control error |
p.u. (MW) |
|
f |
\(f\) |
ExtAlgeb |
Bus frequency |
p.u. (Hz) |
Initialization Equations#
Name |
Symbol |
Type |
Initial Value |
|---|---|---|---|
ace |
\(ace\) |
Algeb |
|
f |
\(f\) |
ExtAlgeb |
Algebraic Equations#
Name |
Symbol |
Type |
RHS of Equation "0 = g(x, y)" |
|---|---|---|---|
ace |
\(ace\) |
Algeb |
\(10 \cdot 1/S_{b, sys} \beta f_{sys} \left(v^{f_s} - 1\right) - ace\) |
f |
\(f\) |
ExtAlgeb |
\(0\) |
Services#
Name |
Symbol |
Equation |
Type |
|---|---|---|---|
imva |
\(1/S_{b, sys}\) |
\(\frac{1}{S_{b,sys}}\) |
ConstService |
Discretes#
Name |
Symbol |
Type |
Info |
|---|---|---|---|
fs |
\(f_s\) |
Sampling |
Sampled freq. |
Config Fields in [ACE]
Option |
Symbol |
Value |
Info |
Accepted values |
|---|---|---|---|---|
allow_adjust |
1 |
allow adjusting upper or lower limits |
(0, 1) |
|
adjust_lower |
0 |
adjust lower limit |
(0, 1) |
|
adjust_upper |
1 |
adjust upper limit |
(0, 1) |
|
freq_model |
BusFreq |
default freq. measurement model |
('BusFreq',) |
|
interval |
4 |
sampling time interval |
||
offset |
0 |
sampling time offset |
ACEc#
Area Control Error model.
Continuous frequency sampling.
System base frequency from system.config.freq is used.
Note: area idx is automatically retrieved from bus.
Parameters#
Name |
Symbol |
Description |
Default |
Unit |
Properties |
|---|---|---|---|---|---|
idx |
unique device idx |
||||
u |
\(u\) |
connection status |
1 |
bool |
|
name |
device name |
||||
bus |
bus idx for freq. measurement |
mandatory |
|||
bias |
\(\beta\) |
bias parameter |
1 |
MW/0.1Hz |
power |
busf |
Optional BusFreq device idx |
||||
area |
0 |
Variables#
Name |
Symbol |
Type |
Description |
Unit |
Properties |
|---|---|---|---|---|---|
ace |
\(ace\) |
Algeb |
area control error |
p.u. (MW) |
|
f |
\(f\) |
ExtAlgeb |
Bus frequency |
p.u. (Hz) |
Initialization Equations#
Name |
Symbol |
Type |
Initial Value |
|---|---|---|---|
ace |
\(ace\) |
Algeb |
|
f |
\(f\) |
ExtAlgeb |
Algebraic Equations#
Name |
Symbol |
Type |
RHS of Equation "0 = g(x, y)" |
|---|---|---|---|
ace |
\(ace\) |
Algeb |
\(10 \cdot 1/S_{b, sys} \beta f_{sys} \left(f - 1\right) - ace\) |
f |
\(f\) |
ExtAlgeb |
\(0\) |
Services#
Name |
Symbol |
Equation |
Type |
|---|---|---|---|
imva |
\(1/S_{b, sys}\) |
\(\frac{1}{S_{b,sys}}\) |
ConstService |
Config Fields in [ACEc]
Option |
Symbol |
Value |
Info |
Accepted values |
|---|---|---|---|---|
allow_adjust |
1 |
allow adjusting upper or lower limits |
(0, 1) |
|
adjust_lower |
0 |
adjust lower limit |
(0, 1) |
|
adjust_upper |
1 |
adjust upper limit |
(0, 1) |
|
freq_model |
BusFreq |
default freq. measurement model |
('BusFreq',) |
COI#
Center of inertia calculation class.
Parameters#
Name |
Symbol |
Description |
Default |
Unit |
Properties |
|---|---|---|---|---|---|
idx |
unique device idx |
||||
u |
\(u\) |
connection status |
1 |
bool |
|
name |
device name |
||||
M |
Linearly stored SynGen.M |
0 |
Variables#
Name |
Symbol |
Type |
Description |
Unit |
Properties |
|---|---|---|---|---|---|
wgen |
\(\omega_{gen}\) |
ExtState |
Linearly stored SynGen.omega |
||
agen |
\(\delta_{gen}\) |
ExtState |
Linearly stored SynGen.delta |
||
omega |
\(\omega_{coi}\) |
Algeb |
COI speed |
v_str,v_setter |
|
delta |
\(\delta_{coi}\) |
Algeb |
COI rotor angle |
v_str,v_setter |
|
omega_sub |
\(\omega_{sub}\) |
ExtAlgeb |
COI frequency contribution of each generator |
||
delta_sub |
\(\delta_{sub}\) |
ExtAlgeb |
COI angle contribution of each generator |
Initialization Equations#
Name |
Symbol |
Type |
Initial Value |
|---|---|---|---|
wgen |
\(\omega_{gen}\) |
ExtState |
|
agen |
\(\delta_{gen}\) |
ExtState |
|
omega |
\(\omega_{coi}\) |
Algeb |
\(\omega_{gen,0,avg}\) |
delta |
\(\delta_{coi}\) |
Algeb |
\(\delta_{gen,0,avg}\) |
omega_sub |
\(\omega_{sub}\) |
ExtAlgeb |
|
delta_sub |
\(\delta_{sub}\) |
ExtAlgeb |
Differential Equations#
Name |
Symbol |
Type |
RHS of Equation "T x' = f(x, y)" |
T (LHS) |
|---|---|---|---|---|
wgen |
\(\omega_{gen}\) |
ExtState |
\(0\) |
|
agen |
\(\delta_{gen}\) |
ExtState |
\(0\) |
Algebraic Equations#
Name |
Symbol |
Type |
RHS of Equation "0 = g(x, y)" |
|---|---|---|---|
omega |
\(\omega_{coi}\) |
Algeb |
\(- \omega_{coi}\) |
delta |
\(\delta_{coi}\) |
Algeb |
\(- \delta_{coi}\) |
omega_sub |
\(\omega_{sub}\) |
ExtAlgeb |
\(M_{w} \omega_{gen}\) |
delta_sub |
\(\delta_{sub}\) |
ExtAlgeb |
\(M_{w} \delta_{gen}\) |
Services#
Name |
Symbol |
Equation |
Type |
|---|---|---|---|
Mw |
\(M_w\) |
\(\frac{M}{M_{tr}}\) |
ConstService |
d0w |
\(\delta_{gen,0,w}\) |
\(M_{w} \delta_{gen,0}\) |
ConstService |
a0w |
\(\omega_{gen,0,w}\) |
\(M_{w} \omega_{gen,0}\) |
ConstService |
Config Fields in [COI]
Option |
Symbol |
Value |
Info |
Accepted values |
|---|---|---|---|---|
allow_adjust |
1 |
allow adjusting upper or lower limits |
(0, 1) |
|
adjust_lower |
0 |
adjust lower limit |
(0, 1) |
|
adjust_upper |
1 |
adjust upper limit |
(0, 1) |