From fee9c77645124bdf27e26b117f07aab448037da3 Mon Sep 17 00:00:00 2001 From: Dietmar Winkler Date: Wed, 3 Apr 2024 14:01:49 +0200 Subject: [PATCH] Simplify the example parameters. --- OpenHPL/Examples/Simple.mo | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/OpenHPL/Examples/Simple.mo b/OpenHPL/Examples/Simple.mo index 483f912..1424839 100644 --- a/OpenHPL/Examples/Simple.mo +++ b/OpenHPL/Examples/Simple.mo @@ -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}, @@ -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