|
| 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; |
0 commit comments