|
| 1 | +within OpenIPSL.Electrical.Controls.PSSE.COMP; |
| 2 | +model IEEEVC "Voltage Regulator Current Compensating Model" |
| 3 | + import Modelica.ComplexMath.j; |
| 4 | + import 'abs' = |
| 5 | + Modelica.ComplexMath.abs; |
| 6 | + parameter Types.PerUnit RC; |
| 7 | + parameter Types.PerUnit XC; |
| 8 | + OpenIPSL.Interfaces.PwPin Gen_terminal annotation (Placement(transformation( |
| 9 | + extent={{-80,60},{-60,80}}), iconTransformation(extent={{-80,60},{ |
| 10 | + -60,80}}))); |
| 11 | + OpenIPSL.Interfaces.PwPin Bus annotation (Placement(transformation(extent={{60,60}, |
| 12 | + {80,80}}), iconTransformation(extent={{60,60},{80,80}}))); |
| 13 | + Modelica.Blocks.Interfaces.RealOutput VCT annotation (Placement( |
| 14 | + transformation(extent={{100,-16},{132,16}}),iconTransformation(extent={{100,-16}, |
| 15 | + {132,16}}))); |
| 16 | +protected |
| 17 | + Complex V_T; |
| 18 | + Complex I_T; |
| 19 | +equation |
| 20 | + VCT = 'abs'(V_T + (RC + j*XC)*I_T); |
| 21 | + V_T = Gen_terminal.vr + j*Gen_terminal.vi; |
| 22 | + I_T = Gen_terminal.ir + j*Gen_terminal.ii; |
| 23 | + connect(Gen_terminal,Bus) annotation (Line(points={{-70,70},{70,70}}, |
| 24 | + color={0,0,255})); |
| 25 | + annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100}, |
| 26 | + {100,100}}), graphics={Rectangle(extent={{-100,100},{100,-100}}, |
| 27 | + lineColor={28,108,200}), Text( |
| 28 | + extent={{-54,36},{68,-36}}, |
| 29 | + textColor={28,108,200}, |
| 30 | + textString="IEEEVC")}), Diagram( |
| 31 | + coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},{100,100}})), |
| 32 | + Documentation(info="<html> |
| 33 | +<table cellspacing=\"1\" cellpadding=\"1\" border=\"1\"><tr> |
| 34 | +<td><p>Reference</p></td> |
| 35 | +<td><p>Voltage Regulator Current Compensating Model (PSS/E Manual)</p></td> |
| 36 | +</tr> |
| 37 | +<tr> |
| 38 | +<td><p>Last update</p></td> |
| 39 | +<td><p>2024-10-05</p></td> |
| 40 | +</tr> |
| 41 | +<tr> |
| 42 | +<td><p>Author</p></td> |
| 43 | +<td><p>Giuseppe Laera, ALSETLab, RPI Rensselaer Polytechnic Institute</p></td> |
| 44 | +</tr> |
| 45 | +<tr> |
| 46 | +<td><p>Contact</p></td> |
| 47 | +<td><p><a href=\"mailto:luigiv@kth.se\">luigiv@kth.se</a></p></td> |
| 48 | +</tr> |
| 49 | +</table> |
| 50 | +</html>"), |
| 51 | + conversion(noneFromVersion="")); |
| 52 | +end IEEEVC; |
0 commit comments