Skip to content

Commit 88f1919

Browse files
GiuseppeLaeradietmarw
authored andcommitted
Add IEEEG2 model and IEEEG2 Test system
1 parent f6e1153 commit 88f1919

4 files changed

Lines changed: 129 additions & 0 deletions

File tree

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
within OpenIPSL.Electrical.Controls.PSSE.TG;
2+
model IEEEG2 "IEEE Type 2 Speed-Governing Model"
3+
extends OpenIPSL.Electrical.Controls.PSSE.TG.BaseClasses.BaseGovernor;
4+
parameter Real K=20 "Permanent governor gain K=1/R (pu on generator MVA base)";
5+
parameter Types.Time T_1=50 "Compensator time constant (sec)";
6+
parameter Types.Time T_2=5 "Compensator time constant (sec)";
7+
parameter Types.Time T_3=1 "Governor time constant (sec)";
8+
parameter Types.Time T_4=1.5 "Water starting time (sec)";
9+
parameter Types.PerUnit P_MAX=1.043 "Upper power limit (pu on machine MVA rating)";
10+
parameter Types.PerUnit P_MIN=0.09 "Lower power limit (pu on machine MVA rating)";
11+
OpenIPSL.NonElectrical.Continuous.LeadLag leadLag(
12+
K=K,
13+
T1=T_2,
14+
T2=T_1,
15+
y_start=0)
16+
annotation (Placement(transformation(extent={{-192,-150},{-134,-92}})));
17+
Modelica.Blocks.Math.Add add(k2=-1)
18+
annotation (Placement(transformation(extent={{0,-24},{48,24}})));
19+
Modelica.Blocks.Nonlinear.Limiter limiter(uMax=P_MAX, uMin=P_MIN)
20+
annotation (Placement(transformation(extent={{80,-24},{128,24}})));
21+
OpenIPSL.NonElectrical.Continuous.LeadLag leadLag2(
22+
K=1,
23+
T1=-T_4,
24+
T2=0.5*T_4,
25+
y_start=p0)
26+
annotation (Placement(transformation(extent={{162,-26},{214,26}})));
27+
OpenIPSL.NonElectrical.Continuous.SimpleLag simpleLag(
28+
K=1,
29+
T=T_3,
30+
y_start=0)
31+
annotation (Placement(transformation(extent={{-94,-148},{-40,-94}})));
32+
protected
33+
parameter Types.PerUnit p0(fixed=false);
34+
initial algorithm
35+
p0 := PMECH0;
36+
equation
37+
connect(PMECH0, add.u1) annotation (Line(points={{-240,80},{-80,80},{-80,14.4},
38+
{-4.8,14.4}}, color={0,0,127}));
39+
connect(SPEED, leadLag.u) annotation (Line(points={{-240,-120},{-202,-120},{-202,
40+
-121},{-197.8,-121}}, color={0,0,127}));
41+
connect(add.y, limiter.u)
42+
annotation (Line(points={{50.4,0},{75.2,0}}, color={0,0,127}));
43+
connect(limiter.y, leadLag2.u)
44+
annotation (Line(points={{130.4,0},{156.8,0}}, color={0,0,127}));
45+
connect(leadLag2.y, PMECH)
46+
annotation (Line(points={{216.6,0},{250,0}}, color={0,0,127}));
47+
connect(leadLag.y, simpleLag.u) annotation (Line(points={{-131.1,-121},{-118.55,
48+
-121},{-118.55,-121},{-99.4,-121}}, color={0,0,127}));
49+
connect(simpleLag.y, add.u2) annotation (Line(points={{-37.3,-121},{-37.3,-120},
50+
{-20,-120},{-20,-14},{-4.8,-14},{-4.8,-14.4}}, color={0,0,127}));
51+
annotation (Icon(coordinateSystem(preserveAspectRatio=false), graphics={Text(
52+
extent={{-88,48},{10,-50}},
53+
lineColor={28,108,200},
54+
textString="IEEEG2")}), Diagram(
55+
coordinateSystem(preserveAspectRatio=false)),
56+
Documentation(info="<html>
57+
<table cellspacing=\"1\" cellpadding=\"1\" border=\"1\"><tr>
58+
<td><p>Reference</p></td>
59+
<td><p>IEEE Type 2 Speed-Governing Model (PSS/E Manual)</p></td>
60+
</tr>
61+
<tr>
62+
<td><p>Last update</p></td>
63+
<td><p>2023-10</p></td>
64+
</tr>
65+
<tr>
66+
<td><p>Author</p></td>
67+
<td><p>ALSETLab, Rensselaer Polytechnic Institute</p></td>
68+
</tr>
69+
<tr>
70+
<td><p>Contact</p></td>
71+
<td><p>see <a href=\"modelica://OpenIPSL.UsersGuide.Contact\">UsersGuide.Contact</a></p></td>
72+
</tr>
73+
</table>
74+
</html>"));
75+
end IEEEG2;

OpenIPSL/Electrical/Controls/PSSE/TG/package.order

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ GGOV1
44
GGOV1DU
55
HYGOV
66
IEEEG1
7+
IEEEG2
78
IEESGO
89
TGOV1
910
BaseClasses
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
within OpenIPSL.Tests.Controls.PSSE.TG;
2+
model IEEEG2 "SMIB system to test functionality of IEEEG2 model"
3+
extends OpenIPSL.Tests.BaseClasses.SMIB;
4+
OpenIPSL.Electrical.Machines.PSSE.GENSAL gENSAL(
5+
P_0=40000000,
6+
Q_0=5415812,
7+
angle_0=0.070619983433093,
8+
M_b=115000000,
9+
Tpd0=4.1,
10+
Tppd0=0.05,
11+
Tppq0=0.06,
12+
H=1.4631,
13+
D=0,
14+
Xd=0.852,
15+
Xq=0.61,
16+
Xpd=0.395,
17+
Xppd=0.293,
18+
Xppq=0.293,
19+
Xl=0.237,
20+
S10=0.11,
21+
S12=0.48)
22+
annotation (Placement(transformation(extent={{-88,-16},{-58,16}})));
23+
Electrical.Controls.PSSE.TG.IEEEG2 iEEEG2(
24+
T_4=1,
25+
P_MAX=1.19,
26+
P_MIN=0) annotation (Placement(transformation(extent={{-86,32},{-48,66}})));
27+
equation
28+
connect(gENSAL.p, GEN1.p)
29+
annotation (Line(points={{-58,0},{-30,0}}, color={0,0,255}));
30+
connect(gENSAL.SPEED, iEEEG2.SPEED) annotation (Line(points={{-56.5,11.2},{
31+
-44,11.2},{-44,20},{-98,20},{-98,59.2},{-82.2,59.2}},
32+
color={0,0,127}));
33+
connect(gENSAL.PMECH0, iEEEG2.PMECH0) annotation (Line(points={{-56.5,8},{-40,
34+
8},{-40,22},{-90,22},{-90,38.8},{-82.2,38.8}}, color={
35+
0,0,127}));
36+
connect(iEEEG2.PMECH, gENSAL.PMECH) annotation (Line(points={{-46.1,49},{-36,
37+
49},{-36,28},{-96,28},{-96,9.6},{-91,9.6}}, color={0,0,
38+
127}));
39+
connect(gENSAL.EFD0, gENSAL.EFD) annotation (Line(points={{-56.5,-8},{-50,-8},
40+
{-50,-20},{-98,-20},{-98,-9.6},{-91,-9.6}},
41+
color={0,0,127}));
42+
annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,
43+
-100},{100,100}})), Diagram(
44+
coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},{100,
45+
100}})),
46+
experiment(
47+
StopTime=10,
48+
Interval=0.0001,
49+
Tolerance=1e-06,
50+
__Dymola_Algorithm="Dassl"),
51+
uses(OpenIPSL(version="3.1.0-dev")));
52+
end IEEEG2;

OpenIPSL/Tests/Controls/PSSE/TG/package.order

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ GGOV1
33
GGOV1DU
44
HYGOV
55
IEEEG1
6+
IEEEG2
67
IEESGO
78
TGOV1

0 commit comments

Comments
 (0)