Skip to content

Commit

Permalink
Simplify the example parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
dietmarw committed Apr 3, 2024
1 parent 07e789f commit fee9c77
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions OpenHPL/Examples/Simple.mo
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
within OpenHPL.Examples;
model Simple "Model of a hydropower system with a simple turbine turbine"
extends Modelica.Icons.Example;
OpenHPL.Waterway.Reservoir reservoir(h_0=48) annotation (Placement(transformation(
OpenHPL.Waterway.Reservoir reservoir(h_0=10) annotation (Placement(transformation(
origin={-90,30},
extent={{-10,-10},{10,10}})));
Modelica.Blocks.Sources.Ramp control(
duration=30, height = -0.04615, offset = 0.7493,
duration=30,
height=-0.9,
offset=1,
startTime=500) annotation (
Placement(transformation(origin={-10,70}, extent = {{-10, -10}, {10, 10}})));
OpenHPL.Waterway.Pipe intake(H=23, Vdot(fixed = true)) annotation (Placement(transformation(extent={{-70,20},{-50,40}})));
OpenHPL.Waterway.Pipe intake(H=10, Vdot(fixed = true)) annotation (Placement(transformation(extent={{-70,20},{-50,40}})));
OpenHPL.Waterway.Pipe discharge(H=0.5, L=600) annotation (Placement(transformation(extent={{50,-10},{70,10}})));
OpenHPL.Waterway.Reservoir tail(h_0=5) annotation (Placement(transformation(
origin={90,0},
Expand All @@ -17,18 +19,20 @@ model Simple "Model of a hydropower system with a simple turbine turbine"
replaceable OpenHPL.Waterway.Pipe penstock(
D_i=3,
D_o=3,
H=428.5,
L=600,
H=80,
L=200,
vertical=true) constrainedby Interfaces.TwoContact annotation (Placement(transformation(origin={0,30}, extent={{-10,-10},{10,10}})));
OpenHPL.Waterway.SurgeTank surgeTank(h_0=69.9) annotation (Placement(transformation(
OpenHPL.Waterway.SurgeTank surgeTank(h_0=20) annotation (Placement(transformation(
origin={-30,30},
extent={{-10,-10},{10,10}})));
ElectroMech.Turbines.Turbine turbine(C_v=3.7, ConstEfficiency=false, enable_nomSpeed=true,
ElectroMech.Turbines.Turbine turbine(
ValveCapacity=false, ConstEfficiency=false, enable_nomSpeed=true,
enable_f=false)
annotation (Placement(transformation(
origin={30,10},
extent={{-10,-10},{10,10}})));
inner OpenHPL.Data data annotation (Placement(transformation(
inner OpenHPL.Data data(Vdot_0=3)
annotation (Placement(transformation(
origin={-90,90},
extent={{-10,-10},{10,10}})));
equation
Expand Down

0 comments on commit fee9c77

Please sign in to comment.