Skip to content

Commit ec4530e

Browse files
committed
Fix references after update of interfaces.
1 parent 3a8ae4a commit ec4530e

7 files changed

Lines changed: 12 additions & 11 deletions

File tree

OpenHPL/ElectroMech/Turbines/Francis.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ model Francis "Model of the Francis turbine"
7979
Real W_t2_n "Euler second term, nominal", W_t1_n "Euler first term, nominal", Wdot_t_n "Total power, nominal", cot_a1_n "Cotant nominal alpha", Vdot_n_ = Vdot_n / 0.99 "Flow rate for fully open guide vane", d_n(start = 0.67) "Nominal servo term", theta_n "Servo angle for fully open guide vane";
8080
SI.Angle alpha1_n "Nominal inlet guide vane angle";
8181
// connectors
82-
extends OpenHPL.Interfaces.TurbineContacts;
82+
extends OpenHPL.Interfaces.TurbineContacts(enable_P_out=true);
8383
Modelica.Blocks.Interfaces.RealInput w_in "Input angular velocity from the generator" annotation (
8484
Placement(transformation(origin={-120,-80}, extent={{-20,-20},
8585
{20,20}})));

OpenHPL/ElectroMech/Turbines/Pelton.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ model Pelton "Model of the Pelton turbine"
2121
SI.AngularVelocity w=w_in "Angular velocity";
2222
Real cos_b = Modelica.Math.cos(Modelica.Units.Conversions.from_deg(beta));
2323
// connectors
24-
extends OpenHPL.Interfaces.TurbineContacts;
24+
extends OpenHPL.Interfaces.TurbineContacts(enable_P_out=true);
2525
Modelica.Blocks.Interfaces.RealInput w_in "Input angular velocity from the generator" annotation (
2626
Placement(transformation(origin={-120,-80}, extent={{-20,-20},
2727
{20,20}})));

OpenHPL/Examples/SimpleGenFrancis.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ model SimpleGenFrancis "Model of a hydropower system with Francis turbine model"
2020
L=600,
2121
H=428.5,
2222
D_i=3,
23-
D_o=3) constrainedby Interfaces.TwoContact
23+
D_o=3) constrainedby Interfaces.TwoContacts
2424
annotation (Placement(transformation(
2525
origin={-30,0},
2626
extent={{-10,-10},{10,10}})));

OpenHPL/Examples/SimpleTurbine.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ model SimpleTurbine "Model of a hydropower system with a simple turbine turbine"
2121
D_o=3,
2222
H=80,
2323
L=200,
24-
vertical=true) constrainedby Interfaces.TwoContact annotation (Placement(transformation(origin={0,30}, extent={{-10,-10},{10,10}})));
24+
vertical=true) constrainedby Interfaces.TwoContacts annotation (Placement(transformation(origin={0,30}, extent={{-10,-10},{10,10}})));
2525
OpenHPL.Waterway.SurgeTank surgeTank(h_0=20) annotation (Placement(transformation(
2626
origin={-30,30},
2727
extent={{-10,-10},{10,10}})));

OpenHPL/Examples/SimpleValve.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ model SimpleValve "Model of a hydropower system with a simple turbine turbine"
2121
D_o=3,
2222
H=80,
2323
L=200,
24-
vertical=true) constrainedby Interfaces.TwoContact annotation (Placement(transformation(origin={0,30}, extent={{-10,-10},{10,10}})));
24+
vertical=true) constrainedby Interfaces.TwoContacts annotation (Placement(transformation(origin={0,30}, extent={{-10,-10},{10,10}})));
2525
OpenHPL.Waterway.SurgeTank surgeTank(
2626
H=30,
2727
L=30,

OpenHPL/Examples/WithOpenIPSL/SimpleGenFrancis.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ model SimpleGenFrancis "Synergy with OpenIPSL library(generator)"
1616
vertical=true,
1717
L=600,
1818
H=428.5,
19-
D_i=3) constrainedby Interfaces.TwoContact
19+
D_i=3) constrainedby Interfaces.TwoContacts
2020
annotation (Placement(transformation(
2121
origin={0,-50},
2222
extent={{-10,-10},{10,10}})));
@@ -84,13 +84,13 @@ equation
8484
connect(fpu_to_fSI.y, governor.f) annotation (
8585
Line(points={{-53.4,-90},{-10,-90},{-10,-84},{0,-84}}, color = {0, 0, 127}));
8686
connect(governor.Y_gv, turbine.u_t) annotation (
87-
Line(points={{23,-80},{32,-80},{32,-62}}, color = {0, 0, 127}));
87+
Line(points={{23,-80},{24,-80},{24,-62}}, color = {0, 0, 127}));
8888
connect(governor.P_ref, power.y) annotation (
8989
Line(points={{0,-76},{-10,-76},{-10,-72},{-21.2,-72}}, color = {0, 0, 127}));
9090
connect(fpu_to_fSI.u, wpu_to_wSI.u) annotation (Line(points={{-67.2,-90},{-94,-90},{-94,30},{-48,30},{-48,20},{-52.8,20}}, color={0,0,127}));
9191
connect(generator.w, wpu_to_wSI.u) annotation (Line(points={{-19,9},{-16,9},{-16,20},{-52.8,20}}, color={0,0,127}));
9292
connect(PSI_to_Ppu.u, turbine.P_out) annotation (
93-
Line(points={{-65,-5},{-70,-5},{-70,-24},{32,-24},{32,-39}}, color = {0, 0, 127}));
93+
Line(points={{-65,-5},{-70,-5},{-70,-24},{36,-24},{36,-61}}, color = {0, 0, 127}));
9494
connect(PSI_to_Ppu.y, generator.pm) annotation (Line(points={{-53.5,-5},{-42,-5}}, color={0,0,127}));
9595
connect(generator.vf, generator.vf0) annotation (Line(points={{-42,5},{-46,5},{-46,14},{-38,14},{-38,11}}, color={0,0,127}));
9696
connect(wpu_to_wSI.y, turbine.w_in) annotation (Line(points={{-66.6,20},{-80,20},{-80,-32},{16,-32},{16,-42},{20,-42}}, color={0,0,127}));

OpenHPL/Examples/WithOpenIPSL/SimpleGenFrancisTG.mo

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ model SimpleGenFrancisTG "Synergy with OpenIPSL library(generator)"
1616
vertical=true,
1717
L=600,
1818
H=428.5,
19-
D_i=3) constrainedby Interfaces.TwoContact
19+
D_i=3) constrainedby Interfaces.TwoContacts
2020
annotation (Placement(transformation(
2121
origin={0,-50},
2222
extent={{-10,-10},{10,10}})));
@@ -86,7 +86,7 @@ model SimpleGenFrancisTG "Synergy with OpenIPSL library(generator)"
8686
equation
8787
connect(generator.w, wpu_to_wSI.u) annotation (Line(points={{-19,9},{-16,9},{-16,20},{-52.8,20}}, color={0,0,127}));
8888
connect(PSI_to_Ppu.u, turbine.P_out) annotation (
89-
Line(points={{-65,-5},{-70,-5},{-70,-24},{32,-24},{32,-39}}, color = {0, 0, 127}));
89+
Line(points={{-65,-5},{-70,-5},{-70,-24},{36,-24},{36,-61}}, color = {0, 0, 127}));
9090
connect(PSI_to_Ppu.y, generator.pm) annotation (Line(points={{-53.5,-5},{-42,-5}}, color={0,0,127}));
9191
connect(generator.vf, generator.vf0) annotation (Line(points={{-42,5},{-46,5},{-46,14},{-38,14},{-38,11}}, color={0,0,127}));
9292
connect(wpu_to_wSI.y, turbine.w_in) annotation (Line(points={{-66.6,20},{-80,20},{-80,-32},{16,-32},{16,-42},{20,-42}}, color={0,0,127}));
@@ -97,7 +97,8 @@ equation
9797
connect(penstock.i, surgeTank.o) annotation (Line(points={{-10,-50},{-20,-50}},color={28,108,200}));
9898
connect(surgeTank.i, intake.o) annotation (Line(points={{-40,-50},{-46,-50}}, color={28,108,200}));
9999
connect(intake.i, reservoir.o) annotation (Line(points={{-66,-50},{-70,-50}}, color={28,108,200}));
100-
connect(tGTypeI.pm, turbine.u_t) annotation (Line(points={{13.2,-80},{32,-80},{32,-62}}, color={0,0,127}));
100+
connect(tGTypeI.pm, turbine.u_t) annotation (Line(points={{13.2,-80},{24,-80},
101+
{24,-62}}, color={0,0,127}));
101102
connect(tGTypeI.w, wpu_to_wSI.u) annotation (Line(points={{-14.4,-80},{-92,-80},{-92,32},{-16,32},{-16,20},{-52.8,20}}, color={0,0,127}));
102103
annotation (experiment(StopTime = 2000));
103104
end SimpleGenFrancisTG;

0 commit comments

Comments
 (0)