Skip to content

Commit 836da39

Browse files
committed
We use one file per class policy in OpenIPSL
1 parent b1c118c commit 836da39

22 files changed

Lines changed: 823 additions & 816 deletions

File tree

OpenIPSL/Electrical/Controls/PSSE/COMP.mo

Lines changed: 0 additions & 54 deletions
This file was deleted.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
within OpenIPSL.Electrical.Controls.PSSE;
2+
package COMP
3+
end COMP;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
IEEEVC

0 commit comments

Comments
 (0)