|
1 | | -within OpenIPSL.Examples.Solar.PowerFactory; |
2 | | - |
| 1 | +within OpenIPSL.Tests.Solar.PowerFactory; |
3 | 2 | model PVD1 |
4 | 3 | 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 ( |
6 | 5 | 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 ( |
8 | 7 | 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 ( |
10 | 9 | 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 ( |
12 | 11 | 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 ( |
14 | 13 | Placement(visible = true, transformation(origin = {-70.5, 90}, extent = {{-29.5, -10}, {29.5, 10}}, rotation = 0))); |
15 | 14 | 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 ( |
23 | 22 | experiment(StartTime = 0, StopTime = 2, Tolerance = 1e-6, Interval = 0.001), |
24 | 23 | __OpenModelica_simulationFlags(lv = "LOG_STATS", s = "rungekutta")); |
25 | 24 | end PVD1; |
0 commit comments