Skip to content

Commit 9213d4c

Browse files
committed
fix start values of tests
1 parent 27bb198 commit 9213d4c

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

PowerSystems/Test/package.mo

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
within PowerSystems;
2-
package Test
2+
package Test
33

44

55
package SimpleComponentsTest
@@ -112,7 +112,9 @@ package Test
112112

113113
PowerSystems.Generic.Generator generator annotation (Placement(
114114
transformation(extent={{-20,0},{0,20}})));
115-
Modelica.Mechanics.Rotational.Components.Inertia inertia(J=1e3, w(start=2*pi*50))
115+
Modelica.Mechanics.Rotational.Components.Inertia inertia(J=1e3,
116+
phi(start=0, fixed=true),
117+
w(start=2*pi*50, fixed=true))
116118
annotation (Placement(transformation(extent={{-50,0},{-30,20}})));
117119
Modelica.Mechanics.Rotational.Sources.ConstantTorque constantTorque(useSupport=false, tau_constant=3e6/50/2/pi)
118120
annotation (Placement(transformation(extent={{-90,0},{-70,
@@ -136,7 +138,9 @@ package Test
136138

137139
PowerSystems.Generic.Generator generator annotation (Placement(
138140
transformation(extent={{-20,0},{0,20}})));
139-
Modelica.Mechanics.Rotational.Components.Inertia inertia(J=1e3, w(start=50*2*pi))
141+
Modelica.Mechanics.Rotational.Components.Inertia inertia(J=1e3,
142+
phi(start=0, fixed=true),
143+
w(start=50*2*pi, fixed=true))
140144
annotation (Placement(transformation(extent={{-50,0},{-30,20}})));
141145
Modelica.Mechanics.Rotational.Sources.ConstantTorque constantTorque(useSupport=false, tau_constant=3e6/50/2/2/pi)
142146
annotation (Placement(transformation(extent={{-90,0},{-70,
@@ -147,7 +151,9 @@ package Test
147151
annotation (Placement(transformation(extent={{60,-20},{80,0}})));
148152
PowerSystems.Generic.Generator generator1(synchronous=false) annotation (
149153
Placement(transformation(extent={{-20,-40},{0,-20}})));
150-
Modelica.Mechanics.Rotational.Components.Inertia inertia1(J=1e3, w(start=50*2*pi))
154+
Modelica.Mechanics.Rotational.Components.Inertia inertia1(J=1e3,
155+
phi(start=0, fixed=true),
156+
w(start=50*2*pi, fixed=true))
151157
annotation (Placement(transformation(extent={{-50,-40},{-30,-20}})));
152158
Modelica.Mechanics.Rotational.Sources.ConstantTorque constantTorque1(useSupport=false, tau_constant=3e6/50/2/pi)
153159
annotation (Placement(transformation(extent={{-90,-40},{-70,

0 commit comments

Comments
 (0)