Skip to content

Commit 2e0ca56

Browse files
committed
add global system model to tests of generic components
1 parent d877b61 commit 2e0ca56

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

PowerSystems/Test/package.mo

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ package Test
1616
PowerSystems.Generic.Ground
1717
ground
1818
annotation (Placement(transformation(extent={{40,0},{60,20}})));
19+
inner PowerSystems.System system
20+
annotation (Placement(transformation(extent={{-100,80},{-80,100}})));
1921
equation
2022
connect(source.terminal, load.terminal_p)
2123
annotation (Line(points={{-60,10},{-20,10}}, color={0,120,120}));
@@ -35,6 +37,8 @@ package Test
3537
PowerSystems.Generic.Ground
3638
ground
3739
annotation (Placement(transformation(extent={{40,0},{60,20}})));
40+
inner PowerSystems.System system
41+
annotation (Placement(transformation(extent={{-100,80},{-80,100}})));
3842
equation
3943
connect(source.terminal, load.terminal_p)
4044
annotation (Line(points={{-60,10},{-20,10}}, color={0,120,120}));
@@ -59,6 +63,8 @@ package Test
5963
ground
6064
annotation (Placement(transformation(extent={{40,
6165
0},{60,20}})));
66+
inner PowerSystems.System system
67+
annotation (Placement(transformation(extent={{-100,80},{-80,100}})));
6268
equation
6369
connect(source.terminal, line.terminal_p)
6470
annotation (Line(points={{-60,10},{-40,10}}, color={0,120,120}));
@@ -79,6 +85,8 @@ package Test
7985
annotation (Placement(transformation(extent={{-40,0},{-20,20}})));
8086
PowerSystems.Generic.FixedCurrent
8187
load(I=173.448, phi=-0.356) annotation (Placement(transformation(extent={{0,0},{20,20}})));
88+
inner PowerSystems.System system
89+
annotation (Placement(transformation(extent={{-100,80},{-80,100}})));
8290
equation
8391
connect(line.terminal_n, load.terminal)
8492
annotation (Line(points={{-20,10},{0,10}}, color={0,120,120}));
@@ -99,6 +107,8 @@ package Test
99107
PowerSystems.Generic.FixedLoad
100108
load( P=2.7076e6, phi=atan(1000/
101109
3000)) annotation (Placement(transformation(extent={{0,0},{20,20}})));
110+
inner PowerSystems.System system
111+
annotation (Placement(transformation(extent={{-100,80},{-80,100}})));
102112
equation
103113
connect(source.terminal, line.terminal_p)
104114
annotation (Line(points={{-60,10},{-40,10}}, color={0,120,120}));
@@ -118,6 +128,8 @@ package Test
118128
PowerSystems.Generic.FixedLoad
119129
load( P=2.7076e6, phi=atan(1000/
120130
3000)) annotation (Placement(transformation(extent={{0,0},{20,20}})));
131+
inner PowerSystems.System system
132+
annotation (Placement(transformation(extent={{-100,80},{-80,100}})));
121133
equation
122134
connect(source.terminal, pMeter.terminal_p)
123135
annotation (Line(points={{-60,10},{-40,10}}, color={0,120,120}));
@@ -142,6 +154,8 @@ package Test
142154
fixedLoad(P=3e6,
143155
phi=0.3)
144156
annotation (Placement(transformation(extent={{20,0},{40,20}})));
157+
inner PowerSystems.System system
158+
annotation (Placement(transformation(extent={{-100,80},{-80,100}})));
145159
equation
146160
connect(inertia.flange_b, generator.flange)
147161
annotation (Line(points={{-30,10},{-20,10}}, color={0,0,0}));
@@ -183,6 +197,8 @@ package Test
183197
PowerSystems.Generic.Impedance
184198
impedance1
185199
annotation (Placement(transformation(extent={{20,-40},{40,-20}})));
200+
inner PowerSystems.System system
201+
annotation (Placement(transformation(extent={{-100,80},{-80,100}})));
186202
equation
187203
connect(inertia.flange_b, generator.flange)
188204
annotation (Line(points={{-30,10},{-20,10}}, color={0,0,0}));

0 commit comments

Comments
 (0)