Skip to content

Commit 3fc616b

Browse files
GiuseppeLaeradietmarw
authored andcommitted
Unification of parameters naming in AC7B and AC8B
1 parent f9a98b3 commit 3fc616b

4 files changed

Lines changed: 79 additions & 79 deletions

File tree

OpenIPSL/Electrical/Controls/PSSE/ES/AC7B.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ reactances";
2727
parameter Types.PerUnit K_F3 "Excitation control system stabilizer gain";
2828
parameter Types.Time T_F3 "Excitation control system stabilizer time constant ";
2929
parameter Types.PerUnit VE_MIN "Minimum exciter voltage output";
30-
parameter Types.PerUnit VFEMAX "Exciter field current limit reference";
30+
parameter Types.PerUnit VFE_MAX "Exciter field current limit reference";
3131
parameter Types.PerUnit E_1 "Exciter alternator output voltages back of commutating
3232
reactance at which saturation is defined";
3333
parameter Types.PerUnit S_EE_1 "Exciter saturation function value at the corresponding exciter
@@ -86,7 +86,7 @@ reactances";
8686
annotation (Placement(transformation(extent={{52,-50},{82,-20}})));
8787
Modelica.Blocks.Sources.Constant lowLim(k=VE_MIN)
8888
annotation (Placement(transformation(extent={{116,-16},{96,4}})));
89-
Modelica.Blocks.Sources.Constant FEMAX(k=VFEMAX)
89+
Modelica.Blocks.Sources.Constant FEMAX(k=VFE_MAX)
9090
annotation (Placement(transformation(extent={{-74,-24},{-54,-4}})));
9191
Modelica.Blocks.Math.Add DiffV2(k2=-1)
9292
annotation (Placement(transformation(extent={{-38,-34},{-18,-14}})));
@@ -185,7 +185,7 @@ initial equation
185185
V_REF = ECOMP0;
186186
VT0 = VT;
187187
Ifd0 = XADIFD;
188-
max_lim0 = (VFEMAX - K_D*Ifd0)/(K_E + SE(VE0,S_EE_1,S_EE_2,E_1,E_2));
188+
max_lim0 = (VFE_MAX - K_D*Ifd0)/(K_E + SE(VE0,S_EE_1,S_EE_2,E_1,E_2));
189189
y_start_int_PID = VR0;
190190
y_start_int_PI = VA0;
191191

OpenIPSL/Electrical/Controls/PSSE/ES/AC8B.mo

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -3,65 +3,65 @@ model AC8B "AC8B Excitation System [IEEE2005]"
33
import OpenIPSL.NonElectrical.Functions.SE;
44
import OpenIPSL.Electrical.Controls.PSSE.ES.BaseClasses.invFEX;
55
extends OpenIPSL.Electrical.Controls.PSSE.ES.BaseClasses.BaseExciter;
6-
parameter Types.Time TR "Filter time constant ";
7-
parameter Types.PerUnit KPR "Voltage regulator proportional gain";
8-
parameter Types.PerUnit KIR "Voltage regulator integral gain";
9-
parameter Types.PerUnit KDR "Voltage regulator derivative gain";
10-
parameter Types.Time TDR "Regulator derivative block time constant ";
11-
parameter Types.PerUnit VPIDMAX "PID maximum limit";
12-
parameter Types.PerUnit VPIDMIN "PID minimum limit";
13-
parameter Types.PerUnit KA "Voltage regulator gain";
14-
parameter Types.Time TA "Voltage regulator time constant ";
15-
parameter Types.PerUnit VRMAX "Maximum voltage regulator output";
16-
parameter Types.PerUnit VRMIN "Minimum voltage regulator output";
17-
parameter Types.Time TE "Exciter time constant, integration rate associated with exciter
6+
parameter Types.Time T_R "Filter time constant ";
7+
parameter Types.PerUnit K_PR "Voltage regulator proportional gain";
8+
parameter Types.PerUnit K_IR "Voltage regulator integral gain";
9+
parameter Types.PerUnit K_DR "Voltage regulator derivative gain";
10+
parameter Types.Time T_DR "Regulator derivative block time constant ";
11+
parameter Types.PerUnit VPID_MAX "PID maximum limit";
12+
parameter Types.PerUnit VPID_MIN "PID minimum limit";
13+
parameter Types.PerUnit K_A "Voltage regulator gain";
14+
parameter Types.Time T_A "Voltage regulator time constant ";
15+
parameter Types.PerUnit V_RMAX "Maximum voltage regulator output";
16+
parameter Types.PerUnit V_RMIN "Minimum voltage regulator output";
17+
parameter Types.Time T_E "Exciter time constant, integration rate associated with exciter
1818
control ";
19-
parameter Types.PerUnit KC "Rectifier loading factor proportional to commutating reactance";
20-
parameter Types.PerUnit KD "Demagnetizing factor, a function of exciter alternator
19+
parameter Types.PerUnit K_C "Rectifier loading factor proportional to commutating reactance";
20+
parameter Types.PerUnit K_D "Demagnetizing factor, a function of exciter alternator
2121
reactances";
22-
parameter Types.PerUnit KE "Exciter constant related to self-excited field";
23-
parameter Types.PerUnit E1 "Exciter alternator output voltages back of commutating reactance
22+
parameter Types.PerUnit K_E "Exciter constant related to self-excited field";
23+
parameter Types.PerUnit E_1 "Exciter alternator output voltages back of commutating reactance
2424
at which saturation is defined";
25-
parameter Types.PerUnit SE1 "Exciter saturation function value at the corresponding exciter
25+
parameter Types.PerUnit S_EE_1 "Exciter saturation function value at the corresponding exciter
2626
voltage, E1, back of commutating reactance";
27-
parameter Types.PerUnit E2 "Exciter alternator output voltages back of commutating
27+
parameter Types.PerUnit E_2 "Exciter alternator output voltages back of commutating
2828
reactance at which saturation is defined";
29-
parameter Types.PerUnit SE2 "Exciter saturation function value at the correspponding exciter
29+
parameter Types.PerUnit S_EE_2 "Exciter saturation function value at the correspponding exciter
3030
voltage, E2, back of commutating reactance";
31-
parameter Types.PerUnit VFEMAX "Exciter field current limit reference";
32-
parameter Types.PerUnit VEMIN "Minimum exciter voltage output";
31+
parameter Types.PerUnit VFE_MAX "Exciter field current limit reference";
32+
parameter Types.PerUnit VE_MIN "Minimum exciter voltage output";
3333

3434
OpenIPSL.Electrical.Controls.PSSE.ES.BaseClasses.RotatingExciterWithDemagnetizationVarLim
3535
rotatingExciterWithDemagnetizationVarLim(
36-
T_E=TE,
37-
K_E=KE,
38-
E_1=E1,
39-
E_2=E2,
40-
S_EE_1=SE1,
41-
S_EE_2=SE2,
36+
T_E=T_E,
37+
K_E=K_E,
38+
E_1=E_1,
39+
E_2=E_2,
40+
S_EE_1=S_EE_1,
41+
S_EE_2=S_EE_2,
4242
Efd0=VE0,
43-
K_D=KD)
43+
K_D=K_D)
4444
annotation (Placement(transformation(extent={{-8,-66},{36,-22}})));
45-
Modelica.Blocks.Sources.Constant lowLim(k=VEMIN)
45+
Modelica.Blocks.Sources.Constant lowLim(k=VE_MIN)
4646
annotation (Placement(transformation(extent={{100,-34},{80,-14}})));
47-
Modelica.Blocks.Sources.Constant FEMAX(k=VFEMAX)
47+
Modelica.Blocks.Sources.Constant FEMAX(k=VFE_MAX)
4848
annotation (Placement(transformation(extent={{-10,-10},{10,10}},
4949
rotation=180,
5050
origin={100,50})));
51-
Modelica.Blocks.Math.Add DiffV2(k2=-KD)
51+
Modelica.Blocks.Math.Add DiffV2(k2=-K_D)
5252
annotation (Placement(transformation(extent={{-10,-10},{10,10}},
5353
rotation=180,
5454
origin={50,50})));
5555
OpenIPSL.NonElectrical.Functions.ImSE
5656
se1(
57-
SE1=SE1,
58-
SE2=SE2,
59-
E1=E1,
60-
E2=E2) annotation (Placement(transformation(
57+
SE1=S_EE_1,
58+
SE2=S_EE_2,
59+
E1=E_1,
60+
E2=E_2) annotation (Placement(transformation(
6161
extent={{-9,-6},{9,6}},
6262
rotation=180,
6363
origin={147,4})));
64-
Modelica.Blocks.Sources.Constant const(k=KE)
64+
Modelica.Blocks.Sources.Constant const(k=K_E)
6565
annotation (Placement(transformation(extent={{180,20},{160,40}})));
6666
Modelica.Blocks.Math.Add DiffV3
6767
annotation (Placement(transformation(extent={{120,0},{100,20}})));
@@ -77,19 +77,19 @@ model AC8B "AC8B Excitation System [IEEE2005]"
7777
rotation=90,
7878
origin={140,-184}),iconTransformation(extent={{-120,-80},{-100,-60}})));
7979
NonElectrical.Continuous.PID_No_Windup pID_No_Windup(
80-
K_P=KPR,
81-
K_I=KIR,
82-
K_D=KDR,
83-
T_D=TDR,
84-
V_RMAX=VPIDMAX,
85-
V_RMIN=VPIDMIN,
80+
K_P=K_PR,
81+
K_I=K_IR,
82+
K_D=K_DR,
83+
T_D=T_DR,
84+
V_RMAX=VPID_MAX,
85+
V_RMIN=VPID_MIN,
8686
y_start_int=y_start_int)
8787
annotation (Placement(transformation(extent={{-90,92},{-48,124}})));
8888

8989
OpenIPSL.NonElectrical.Continuous.SimpleLag
9090
TransducerDelay(
9191
K=1,
92-
T=TR,
92+
T=T_R,
9393
y_start=ECOMP0)
9494
annotation (Placement(transformation(extent={{-164,-10},{-144,10}})));
9595
Modelica.Blocks.Math.Add3 VS annotation (Placement(transformation(
@@ -99,14 +99,14 @@ model AC8B "AC8B Excitation System [IEEE2005]"
9999
Modelica.Blocks.Math.Add DiffV1(k2=+1)
100100
annotation (Placement(transformation(extent={{-120,-60},{-100,-40}})));
101101
OpenIPSL.NonElectrical.Continuous.SimpleLagLim simpleLagLim(
102-
K=KA,
103-
T=TA,
102+
K=K_A,
103+
T=T_A,
104104
y_start=VR0,
105-
outMax=VRMAX,
106-
outMin=VRMIN)
105+
outMax=V_RMAX,
106+
outMin=V_RMIN)
107107
annotation (Placement(transformation(extent={{-34,98},{-14,118}})));
108108
OpenIPSL.Electrical.Controls.PSSE.ES.BaseClasses.RectifierCommutationVoltageDrop
109-
rectifierCommutationVoltageDrop(K_C=KC)
109+
rectifierCommutationVoltageDrop(K_C=K_C)
110110
annotation (Placement(transformation(extent={{88,-86},{122,-52}})));
111111

112112
protected
@@ -120,19 +120,19 @@ protected
120120
initial equation
121121
// Finding initial value of excitation voltage, VE0, via going through conditions of FEX function
122122
VE0 = invFEX(
123-
K_C=KC,
123+
K_C=K_C,
124124
Efd0=Efd0,
125125
Ifd0=Ifd0);
126126
// Case IN>0 not checked because it will be resolved in the next iteration
127127
VFE0 = VE0*(SE(
128128
VE0,
129-
SE1,
130-
SE2,
131-
E1,
132-
E2) + KE) + Ifd0*KD;
129+
S_EE_1,
130+
S_EE_2,
131+
E_1,
132+
E_2) + K_E) + Ifd0*K_D;
133133
VR0 = VFE0;
134134
V_REF = ECOMP;
135-
y_start_int = VR0/KA;
135+
y_start_int = VR0/K_A;
136136
Ifd0 = XADIFD;
137137
equation
138138
connect(TransducerDelay.u, ECOMP) annotation (Line(points={{-166,0},{-180,0},{

OpenIPSL/Tests/Controls/PSSE/ES/AC7B.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ model AC7B "SMIB system to test functionality of exciter AC7B"
4545
K_F3=0,
4646
T_F3=1,
4747
VE_MIN=0,
48-
VFEMAX=5.5,
48+
VFE_MAX=5.5,
4949
E_1=2.75,
5050
S_EE_1=0.08,
5151
E_2=3.8,

OpenIPSL/Tests/Controls/PSSE/ES/AC8B.mo

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,27 +29,27 @@ model AC8B "SMIB system to test functionality of exciter AC8B"
2929
rotation=180,
3030
origin={-28,-48})));
3131
Electrical.Controls.PSSE.ES.AC8B aC8B(
32-
TR=0.02,
33-
KPR=160,
34-
KIR=6,
35-
KDR=8,
36-
TDR=0.08,
37-
VPIDMAX=Modelica.Constants.inf,
38-
VPIDMIN=-Modelica.Constants.inf,
39-
KA=1,
40-
TA=0.01,
41-
VRMAX=7.76,
42-
VRMIN=-6.96,
43-
TE=1,
44-
KC=0.2,
45-
KD=0.2,
46-
KE=1,
47-
E1=1,
48-
SE1=0.05,
49-
E2=2,
50-
SE2=0.5,
51-
VFEMAX=8,
52-
VEMIN=0)
32+
T_R=0.02,
33+
K_PR=160,
34+
K_IR=6,
35+
K_DR=8,
36+
T_DR=0.08,
37+
VPID_MAX=Modelica.Constants.inf,
38+
VPID_MIN=-Modelica.Constants.inf,
39+
K_A=1,
40+
T_A=0.01,
41+
V_RMAX=7.76,
42+
V_RMIN=-6.96,
43+
T_E=1,
44+
K_C=0.2,
45+
K_D=0.2,
46+
K_E=1,
47+
E_1=1,
48+
S_EE_1=0.05,
49+
E_2=2,
50+
S_EE_2=0.5,
51+
VFE_MAX=8,
52+
VE_MIN=0)
5353
annotation (Placement(transformation(extent={{-60,-66},{-86,-40}})));
5454

5555
equation

0 commit comments

Comments
 (0)