Skip to content

Commit a75e252

Browse files
committed
If type is PerUnit then we don't need to repeat the unit
1 parent 8bf42cf commit a75e252

7 files changed

Lines changed: 89 additions & 89 deletions

File tree

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

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,38 @@ model AC7B "AC7B Excitation System [IEEE2016]"
44
import OpenIPSL.Electrical.Controls.PSSE.ES.BaseClasses.invFEX;
55
import OpenIPSL.NonElectrical.Functions.SE;
66
parameter Types.Time T_R "Filter time constant (s)";
7-
parameter Types.PerUnit K_PR "Voltage regulator proportional gain (pu)";
8-
parameter Types.PerUnit K_IR "Voltage regulator integral gain (pu)";
9-
parameter Types.PerUnit K_DR "Voltage regulator derivative gain (pu)";
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";
1010
parameter Types.Time T_DR "Lag time constant (s)";
11-
parameter Types.PerUnit V_RMIN "Minimum voltage regulator output (pu)";
12-
parameter Types.PerUnit V_RMAX "Maximum voltage regulator output (pu)";
13-
parameter Types.PerUnit K_PA "Voltage regulator proportional gain (pu)";
14-
parameter Types.PerUnit K_IA "Voltage regulator integral gain(pu)";
15-
parameter Types.PerUnit VA_MIN "Minimum voltage regulator output (pu)";
16-
parameter Types.PerUnit VA_MAX "Maximum voltage regulator output (pu)";
17-
parameter Types.PerUnit K_P "Potential circuit gain coefficient (pu)";
18-
parameter Types.PerUnit K_L "Exciter field voltage lower limit parameter (pu)";
11+
parameter Types.PerUnit V_RMIN "Minimum voltage regulator output";
12+
parameter Types.PerUnit V_RMAX "Maximum voltage regulator output";
13+
parameter Types.PerUnit K_PA "Voltage regulator proportional gain";
14+
parameter Types.PerUnit K_IA "Voltage regulator integral gain";
15+
parameter Types.PerUnit VA_MIN "Minimum voltage regulator output";
16+
parameter Types.PerUnit VA_MAX "Maximum voltage regulator output";
17+
parameter Types.PerUnit K_P "Potential circuit gain coefficient";
18+
parameter Types.PerUnit K_L "Exciter field voltage lower limit parameter";
1919
parameter Types.Time T_E "Exciter time constant, integration rate associated with exciter
2020
control (s)";
21-
parameter Types.PerUnit K_C "Rectifier loading factor proportional to commutating reactance(pu)";
21+
parameter Types.PerUnit K_C "Rectifier loading factor proportional to commutating reactance";
2222
parameter Types.PerUnit K_D "Demagnetizing factor, a function of exciter alternator
23-
reactances(pu)";
24-
parameter Types.PerUnit K_E "Exciter constant related to self-excited field(pu)";
25-
parameter Types.PerUnit K_F1 "Excitation control system stabilizer gain(pu)";
26-
parameter Types.PerUnit K_F2 "Excitation control system stabilizer gain(pu)";
27-
parameter Types.PerUnit K_F3 "Excitation control system stabilizer gain(pu)";
23+
reactances";
24+
parameter Types.PerUnit K_E "Exciter constant related to self-excited field";
25+
parameter Types.PerUnit K_F1 "Excitation control system stabilizer gain";
26+
parameter Types.PerUnit K_F2 "Excitation control system stabilizer gain";
27+
parameter Types.PerUnit K_F3 "Excitation control system stabilizer gain";
2828
parameter Types.Time T_F3 "Excitation control system stabilizer time constant (s)";
29-
parameter Types.PerUnit VE_MIN "Minimum exciter voltage output(pu)";
30-
parameter Types.PerUnit VFEMAX "Exciter field current limit reference(pu)";
29+
parameter Types.PerUnit VE_MIN "Minimum exciter voltage output";
30+
parameter Types.PerUnit VFEMAX "Exciter field current limit reference";
3131
parameter Types.PerUnit E_1 "Exciter alternator output voltages back of commutating
32-
reactance at which saturation is defined (pu)";
33-
parameter Types.PerUnit S_EE_1 "Exciter saturation function value at the corresponding exciter
34-
voltage, E1, back of commutating reactance (pu)";
32+
reactance at which saturation is defined";
33+
parameter Types.PerUnit S_EE_1 "Exciter saturation function value at the corresponding exciter
34+
voltage, E1, back of commutating reactance";
3535
parameter Types.PerUnit E_2 "Exciter alternator output voltages back of commutating
36-
reactance at which saturation is defined (pu)";
36+
reactance at which saturation is defined";
3737
parameter Types.PerUnit S_EE_2 "Exciter saturation function value at the corresponding exciter
38-
voltage, E2, back of commutating reactance(pu)";
38+
voltage, E2, back of commutating reactance";
3939

4040
Modelica.Blocks.Continuous.Derivative imDerivativeLag(
4141
k=K_F3,
@@ -285,7 +285,7 @@ equation
285285
extent={{-96,-60},{-26,-80}},
286286
lineColor={28,108,200},
287287
textString="
288-
288+
289289
"), Text(
290290
extent={{-104,90},{-22,70}},
291291
lineColor={28,108,200},

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,32 @@ model AC8B "AC8B Excitation System [IEEE2005]"
44
import OpenIPSL.Electrical.Controls.PSSE.ES.BaseClasses.invFEX;
55
extends OpenIPSL.Electrical.Controls.PSSE.ES.BaseClasses.BaseExciter;
66
parameter Types.Time TR "Filter time constant (s)";
7-
parameter Types.PerUnit KPR "Voltage regulator proportional gain (pu)";
8-
parameter Types.PerUnit KIR "Voltage regulator integral gain (pu)";
9-
parameter Types.PerUnit KDR "Voltage regulator derivative gain (pu)";
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";
1010
parameter Types.Time TDR "Regulator derivative block time constant (s)";
11-
parameter Types.PerUnit VPIDMAX "PID maximum limit (pu)";
12-
parameter Types.PerUnit VPIDMIN "PID minimum limit (pu)";
13-
parameter Types.PerUnit KA "Voltage regulator gain (pu)";
11+
parameter Types.PerUnit VPIDMAX "PID maximum limit";
12+
parameter Types.PerUnit VPIDMIN "PID minimum limit";
13+
parameter Types.PerUnit KA "Voltage regulator gain";
1414
parameter Types.Time TA "Voltage regulator time constant (s)";
15-
parameter Types.PerUnit VRMAX "Maximum voltage regulator output (pu)";
16-
parameter Types.PerUnit VRMIN "Minimum voltage regulator output (pu)";
15+
parameter Types.PerUnit VRMAX "Maximum voltage regulator output";
16+
parameter Types.PerUnit VRMIN "Minimum voltage regulator output";
1717
parameter Types.Time TE "Exciter time constant, integration rate associated with exciter
1818
control (s)";
19-
parameter Types.PerUnit KC "Rectifier loading factor proportional to commutating reactance (pu)";
19+
parameter Types.PerUnit KC "Rectifier loading factor proportional to commutating reactance";
2020
parameter Types.PerUnit KD "Demagnetizing factor, a function of exciter alternator
21-
reactances (pu)";
22-
parameter Types.PerUnit KE "Exciter constant related to self-excited field (pu)";
23-
parameter Types.PerUnit E1 "Exciter alternator output voltages back of commutating reactance
24-
at which saturation is defined (pu)";
21+
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
24+
at which saturation is defined";
2525
parameter Types.PerUnit SE1 "Exciter saturation function value at the corresponding exciter
26-
voltage, E1, back of commutating reactance (pu)";
26+
voltage, E1, back of commutating reactance";
2727
parameter Types.PerUnit E2 "Exciter alternator output voltages back of commutating
28-
reactance at which saturation is defined (pu)";
28+
reactance at which saturation is defined";
2929
parameter Types.PerUnit SE2 "Exciter saturation function value at the correspponding exciter
30-
voltage, E2, back of commutating reactance (pu)";
31-
parameter Types.PerUnit VFEMAX "Exciter field current limit reference (pu)";
32-
parameter Types.PerUnit VEMIN "Minimum exciter voltage output (pu)";
30+
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";
3333

3434
OpenIPSL.Electrical.Controls.PSSE.ES.BaseClasses.RotatingExciterWithDemagnetizationVarLim
3535
rotatingExciterWithDemagnetizationVarLim(

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ model DC4B "DC4B Excitation System [IEEE2005]"
55
import
66
OpenIPSL.Electrical.Controls.PSSE.ES.BaseClasses.calculate_dc_exciter_params;
77
parameter Types.Time T_R=0.004 "Regulator input filter time constant (sec)";
8-
parameter Types.PerUnit K_PR=13 "Voltage regulator proportional gain (pu)";
9-
parameter Types.PerUnit K_IR=4 "Voltage regulator integral gain (pu)";
10-
parameter Types.PerUnit K_DR=6 "Voltage regulator derivative gain (pu)";
8+
parameter Types.PerUnit K_PR=13 "Voltage regulator proportional gain";
9+
parameter Types.PerUnit K_IR=4 "Voltage regulator integral gain";
10+
parameter Types.PerUnit K_DR=6 "Voltage regulator derivative gain";
1111
parameter Types.Time T_DR=0.03 "Voltage regulator derivative channel time constant (sec)";
12-
parameter Types.PerUnit V_RMAX=10.8 "Maximum regulator output (pu)";
13-
parameter Types.PerUnit V_RMIN=-7 "Minimum regulator output (pu)";
14-
parameter Types.PerUnit K_A=10.8 "Voltage regulator gain (pu)";
12+
parameter Types.PerUnit V_RMAX=10.8 "Maximum regulator output";
13+
parameter Types.PerUnit V_RMIN=-7 "Minimum regulator output";
14+
parameter Types.PerUnit K_A=10.8 "Voltage regulator gain";
1515
parameter Types.Time T_A=0.01 "Voltage regulator time constant (sec)";
1616
parameter Types.PerUnit K_E=1 "Exciter field proportional constant";
1717
parameter Types.Time T_E=0.8 "Exciter field time constant";

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,34 @@ model ESURRY "AC1A Excitation System"
55
extends OpenIPSL.Electrical.Controls.PSSE.ES.BaseClasses.BaseExciter(VoltageReference(k=V_REF));
66
extends OpenIPSL.Icons.VerifiedModel;
77
parameter Types.Time T_R=0 "Transducer time constant, sec.";
8-
parameter Types.Time T_1=0 "Time constant, pu";
8+
parameter Types.Time T_1=0 "Time constant";
99
parameter Types.Time T_A=0
10-
"Lead-lag numerator time constant, sec.";
10+
"Lead-lag numerator time constant";
1111
parameter Types.Time T_B=0
12-
"Lead-lag denominator time constant, sec.";
12+
"Lead-lag denominator time constant";
1313
parameter Types.Time T_C=0
14-
"Lead-lag numerator time constant, sec.";
14+
"Lead-lag numerator time constant";
1515
parameter Types.Time T_D=0
16-
"Lead-lag denominator time constant, sec";
17-
parameter Types.Time T_E=0.8 "Exciter time constant, sec.";
18-
parameter Types.PerUnit K_10=1 "Gain, pu";
19-
parameter Types.PerUnit K_16=1 "Gain, pu";
20-
parameter Types.PerUnit K_F=0.03 "Rate feedback gain, pu";
21-
parameter Types.Time T_F=1 "Rate feedback time constant, sec.";
16+
"Lead-lag denominator time constant";
17+
parameter Types.Time T_E=0.8 "Exciter time constant.";
18+
parameter Types.PerUnit K_10=1 "Gain";
19+
parameter Types.PerUnit K_16=1 "Gain";
20+
parameter Types.PerUnit K_F=0.03 "Rate feedback gain";
21+
parameter Types.Time T_F=1 "Rate feedback time constant";
2222
parameter Types.PerUnit K_C=0.2
23-
"Rectifier regulation factor, pu";
23+
"Rectifier regulation factor";
2424
parameter Types.PerUnit K_D=0.48
25-
"Exciter internal reactance, pu";
25+
"Exciter internal reactance";
2626
parameter Types.PerUnit K_E=1
27-
"Exciter field resistance constant, pu";
27+
"Exciter field resistance constant";
2828
parameter Types.PerUnit E_1=5.25 "Field voltage value, 1";
2929
parameter Types.PerUnit E_2=7 "Field voltage value, 2";
3030
parameter Types.PerUnit S_EE_1=0.03 "Saturation factor at E1";
3131
parameter Types.PerUnit S_EE_2=0.1 "Saturation factor at E2";
3232
parameter Types.PerUnit V_RMAX=6.03
33-
"Voltage regulator maximum output, pu";
33+
"Voltage regulator maximum output";
3434
parameter Types.PerUnit V_RMIN=-5.43
35-
"Voltage regulator minimum output, pu";
35+
"Voltage regulator minimum output";
3636
OpenIPSL.NonElectrical.Continuous.SimpleLag simpleLag(
3737
K=1,
3838
T=T_R,

OpenIPSL/Electrical/Controls/PSSE/TG/WEHGOV.mo

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@ model WEHGOV "Woodward Electric Hydro Governor Model [PSSE-MODELS]"
2323
parameter Types.PerUnit Tg=0.2 "Distribution valve limit";
2424

2525
//Turbine Parameters
26-
parameter Types.PerUnit G1=0 "Gate position 1 [pu]";
27-
parameter Types.PerUnit G2=0.25 "Gate position 2 [pu]";
28-
parameter Types.PerUnit FLWG1=0 "Water flow rate 1 [pu]";
29-
parameter Types.PerUnit FLWG2=0.25 "Water flow rate 2 [pu]";
26+
parameter Types.PerUnit G1=0 "Gate position 1";
27+
parameter Types.PerUnit G2=0.25 "Gate position 2";
28+
parameter Types.PerUnit FLWG1=0 "Water flow rate 1";
29+
parameter Types.PerUnit FLWG2=0.25 "Water flow rate 2";
3030
parameter Types.PerUnit TW=0.2 "Water time constant [s]";
31-
parameter Types.PerUnit FLWP1=0 "Water flow rate 1 [pu]";
32-
parameter Types.PerUnit FLWP2=0.2 "Water flow rate 2 [pu]";
33-
parameter Types.PerUnit FLWP3=0.23 "Water flow rate 3 [pu]";
34-
parameter Types.PerUnit FLWP4=0.4 "Water flow rate 4 [pu]";
35-
parameter Types.PerUnit FLWP5=0.6 "Water flow rate 5 [pu]";
36-
parameter Types.PerUnit FLWP6=0.8 "Water flow rate 6 [pu]";
37-
parameter Types.PerUnit Pmech1=0 "Mechanical power 1 [pu]";
38-
parameter Types.PerUnit Pmech2=0 "Mechanical power 2 [pu]";
39-
parameter Types.PerUnit Pmech3=0.05 "Mechanical power 3 [pu]";
40-
parameter Types.PerUnit Pmech4=0.35 "Mechanical power 4 [pu]";
41-
parameter Types.PerUnit Pmech5=0.66 "Mechanical power 5 [pu]";
42-
parameter Types.PerUnit Pmech6=0.82 "Mechanical power 6 [pu]";
31+
parameter Types.PerUnit FLWP1=0 "Water flow rate 1";
32+
parameter Types.PerUnit FLWP2=0.2 "Water flow rate 2";
33+
parameter Types.PerUnit FLWP3=0.23 "Water flow rate 3";
34+
parameter Types.PerUnit FLWP4=0.4 "Water flow rate 4";
35+
parameter Types.PerUnit FLWP5=0.6 "Water flow rate 5";
36+
parameter Types.PerUnit FLWP6=0.8 "Water flow rate 6";
37+
parameter Types.PerUnit Pmech1=0 "Mechanical power 1";
38+
parameter Types.PerUnit Pmech2=0 "Mechanical power 2";
39+
parameter Types.PerUnit Pmech3=0.05 "Mechanical power 3";
40+
parameter Types.PerUnit Pmech4=0.35 "Mechanical power 4";
41+
parameter Types.PerUnit Pmech5=0.66 "Mechanical power 5";
42+
parameter Types.PerUnit Pmech6=0.82 "Mechanical power 6";
4343
parameter Types.PerUnit D_TURB=0 "Turbine damping";
4444

4545
BaseClasses.WEHGOV.Turbine Turbine(

OpenIPSL/NonElectrical/Continuous/PID_No_Windup.mo

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
within OpenIPSL.NonElectrical.Continuous;
22
model PID_No_Windup
33
extends Modelica.Blocks.Interfaces.SISO;
4-
parameter Types.PerUnit K_PR "Voltage regulator proportional gain (pu)";
5-
parameter Types.PerUnit K_IR "Voltage regulator integral gain (pu)";
6-
parameter Types.PerUnit K_DR "Voltage regulator derivative gain (pu)";
4+
parameter Types.PerUnit K_PR "Voltage regulator proportional gain";
5+
parameter Types.PerUnit K_IR "Voltage regulator integral gain";
6+
parameter Types.PerUnit K_DR "Voltage regulator derivative gain";
77
parameter Types.Time T_DR "Voltage regulator derivative channel time constant (sec)";
8-
parameter Types.PerUnit V_RMAX "Maximum regulator output (pu)";
9-
parameter Types.PerUnit V_RMIN "Minimum regulator output (pu)";
8+
parameter Types.PerUnit V_RMAX "Maximum regulator output";
9+
parameter Types.PerUnit V_RMIN "Minimum regulator output";
1010
parameter Real y_start_int;
1111
Modelica.Blocks.Continuous.Integrator integral(
1212
k=K_IR,

OpenIPSL/NonElectrical/Continuous/PI_No_Windup.mo

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
within OpenIPSL.NonElectrical.Continuous;
22
model PI_No_Windup "PI controller with no wind-up"
33
extends Modelica.Blocks.Interfaces.SISO;
4-
parameter Types.PerUnit K_P "Voltage regulator proportional gain (pu)";
5-
parameter Types.PerUnit K_I "Voltage regulator integral gain (pu)";
6-
parameter Types.PerUnit V_RMAX "Maximum regulator output (pu)";
7-
parameter Types.PerUnit V_RMIN "Minimum regulator output (pu)";
4+
parameter Types.PerUnit K_P "Voltage regulator proportional gain";
5+
parameter Types.PerUnit K_I "Voltage regulator integral gain";
6+
parameter Types.PerUnit V_RMAX "Maximum regulator output";
7+
parameter Types.PerUnit V_RMIN "Minimum regulator output";
88
parameter Real y_start_int;
99
Modelica.Blocks.Continuous.Integrator integral(
1010
k=K_I,

0 commit comments

Comments
 (0)