@@ -26,7 +26,7 @@ package PowerWorld "Demonstrate stabilization of wind power in Eurosyslib work p
26
26
annotation (Placement(transformation(extent={{-36,-6},{-24,6}})));
27
27
PowerSystems.Generic.VoltageConverter distribution(ratio= 380 / 50 )
28
28
annotation (Placement(transformation(extent={{44,-46},{56,-34}})));
29
- PowerSystems.Generic.Inverter HVDC
29
+ PowerSystems.Generic.Inverter HVDC(potentialReference = false )
30
30
annotation (Placement(transformation(extent={{-16,34},{-4,46}})));
31
31
Components.HydroPlant hydroPlant(primaryControlMax= 200 )
32
32
annotation (Placement(transformation(extent={{80,20},{60,40}})));
@@ -45,7 +45,7 @@ package PowerWorld "Demonstrate stabilization of wind power in Eurosyslib work p
45
45
rotation=-90,
46
46
origin={40,-10})));
47
47
Modelica.Blocks.Sources.RealExpression frequency(y= system.omega/ 2 / pi)
48
- "Average frequency" annotation (Placement(
48
+ "Average frequency" annotation (Placement(
49
49
transformation(
50
50
extent={{-10,-10},{10,10}},
51
51
rotation=-90,
@@ -153,7 +153,7 @@ The following switches/features are provided:
153
153
154
154
model PowerPlant "Thermal Power Plant with primary and secondary control"
155
155
extends PowerSystems.Generic.Ports.PartialSource(
156
- final potentialReference= true , final definiteReference = false );
156
+ final potentialReference= true );
157
157
158
158
parameter Boolean Modakond = false "Install Modakond for condensate stop"
159
159
annotation(Dialog(group="Features" ));
@@ -264,7 +264,7 @@ The following switches/features are provided:
264
264
Interfaces.Sender sender(w= generator.w, H= 0.5 * rotor.J* rotor.w^ 2 / 800e6 )
265
265
annotation (Placement(transformation(extent={{66,6},{74,14}})));
266
266
initial equation
267
- if potentialReference then
267
+ if Connections.isRoot(generator. terminal .theta) then
268
268
if system.steadyIni then
269
269
rotor.a = 0 ;
270
270
else
@@ -452,7 +452,7 @@ The following switches/features are provided:
452
452
453
453
model HydroPlant
454
454
extends PowerSystems.Generic.Ports.PartialSource(
455
- final potentialReference= true , final definiteReference = false );
455
+ final potentialReference= true );
456
456
457
457
parameter Real primaryControlMax(unit= "MW" ) = 200
458
458
"Maximum power for primary frequency control"
@@ -520,7 +520,7 @@ The following switches/features are provided:
520
520
Interfaces.Sender sender(w= generator.w, H= 0.5 * rotor.J* rotor.w^ 2 / 200e6 )
521
521
annotation (Placement(transformation(extent={{66,16},{74,24}})));
522
522
initial equation
523
- if potentialReference then
523
+ if Connections.isRoot(generator. terminal .theta) then
524
524
if system.steadyIni then
525
525
rotor.a = 0 ;
526
526
else
0 commit comments