Skip to content

Commit 7f81c8e

Browse files
committed
Move the PVD1 example under tests
Attention: model is still broken
1 parent c2deb55 commit 7f81c8e

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

  • OpenIPSL/Tests/Solar/PowerFactory
Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
1-
within OpenIPSL.Examples.Solar.PowerFactory;
2-
1+
within OpenIPSL.Tests.Solar.PowerFactory;
32
model PVD1
43
extends Modelica.Icons.Example;
5-
Modelica.Blocks.Sources.Step frequency(height = -0.05, offset = 1, startTime = 1) annotation(
4+
Modelica.Blocks.Sources.Step frequency(height = -0.05, offset = 1, startTime = 1) annotation (
65
Placement(visible = true, transformation(origin = {70, 30}, extent = {{10, -10}, {-10, 10}}, rotation = 0)));
7-
Modelica.Blocks.Sources.Step voltage(height = -0.05, offset = 1, startTime = 0.5) annotation(
6+
Modelica.Blocks.Sources.Step voltage(height = -0.05, offset = 1, startTime = 0.5) annotation (
87
Placement(visible = true, transformation(origin = {70, -20}, extent = {{10, -10}, {-10, 10}}, rotation = 0)));
9-
Electrical.Solar.PowerFactory.General.ElmVac elmVac(angle_0 = 0, v_0 = 1) annotation(
8+
Electrical.Solar.PowerFactory.General.ElmVac elmVac(angle_0 = 0, v_0 = 1) annotation (
109
Placement(visible = true, transformation(origin = {30, 0}, extent = {{10, -10}, {-10, 10}}, rotation = 0)));
11-
Electrical.Solar.PowerFactory.WECC.PVD1.Plant_PVD1 pvd1_plant(M_b(displayUnit = "V.A") = 0.5e6, P_0 = 300000, Q_0 = 100000) annotation(
10+
Electrical.Solar.PowerFactory.WECC.PVD1.Plant_PVD1 pvd1_plant(M_b(displayUnit = "V.A") = 0.5e6, P_0 = 300000, Q_0 = 100000) annotation (
1211
Placement(visible = true, transformation(origin = {-30, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
13-
inner Electrical.SystemBase SysData annotation(
12+
inner Electrical.SystemBase SysData annotation (
1413
Placement(visible = true, transformation(origin = {-70.5, 90}, extent = {{-29.5, -10}, {29.5, 10}}, rotation = 0)));
1514
equation
16-
connect(voltage.y, elmVac.v) annotation(
17-
Line(points = {{60, -20}, {50, -20}, {50, -6}, {40, -6}, {40, -4}}, color = {0, 0, 127}));
18-
connect(frequency.y, elmVac.f0) annotation(
19-
Line(points = {{60, 30}, {50, 30}, {50, 6}, {40, 6}, {40, 6}}, color = {0, 0, 127}));
20-
connect(pvd1_plant.p, elmVac.p) annotation(
21-
Line(points = {{-18, 0}, {18, 0}, {18, 0}, {20, 0}}, color = {0, 0, 255}));
22-
annotation(
15+
connect(voltage.y, elmVac.v) annotation (
16+
Line(points={{59,-20},{50,-20},{50,-6},{40.4,-6},{40.4,-4}}, color = {0, 0, 127}));
17+
connect(frequency.y, elmVac.f0) annotation (
18+
Line(points={{59,30},{50,30},{50,6},{40.4,6},{40.4,4}}, color = {0, 0, 127}));
19+
connect(pvd1_plant.p, elmVac.p) annotation (
20+
Line(points={{-19,0},{18,0},{18,0},{19,0}}, color = {0, 0, 255}));
21+
annotation (
2322
experiment(StartTime = 0, StopTime = 2, Tolerance = 1e-6, Interval = 0.001),
2423
__OpenModelica_simulationFlags(lv = "LOG_STATS", s = "rungekutta"));
2524
end PVD1;

0 commit comments

Comments
 (0)