Skip to content

Commit

Permalink
Rename the examples to reflect the turbine usage
Browse files Browse the repository at this point in the history
Since we now have a `SimpleValve` model a it seems better to emphasise when a turbine is part of the example.
  • Loading branch information
dietmarw committed Apr 17, 2024
1 parent e6d8465 commit 0683a25
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
5 changes: 0 additions & 5 deletions OpenHPL/Examples/Detailed.mo

This file was deleted.

6 changes: 6 additions & 0 deletions OpenHPL/Examples/DetailedTurbine.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
within OpenHPL.Examples;
model DetailedTurbine "Hydropower system using KP scheme based penstock"
extends SimpleTurbine(
redeclare Waterway.PenstockKP penstock);
annotation (experiment(StopTime=1000));
end DetailedTurbine;
3 changes: 2 additions & 1 deletion OpenHPL/Examples/SimpleGen.mo
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
within OpenHPL.Examples;
model SimpleGen "Model of a hydropower system with a simple turbine turbine and generator"
extends Simple(turbine(
extends SimpleTurbine(
turbine(
enable_nomSpeed=false,
enable_P_out=true));
ElectroMech.Generators.SimpleGen simpleGen annotation (Placement(transformation(extent={{20,50},{40,70}})));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
within OpenHPL.Examples;
model Simple "Model of a hydropower system with a simple turbine turbine"
model SimpleTurbine "Model of a hydropower system with a simple turbine turbine"
extends Modelica.Icons.Example;
OpenHPL.Waterway.Reservoir reservoir(h_0=10) annotation (Placement(transformation(
origin={-90,30},
Expand Down Expand Up @@ -47,4 +47,4 @@ equation
connect(surgeTank.o, penstock.i) annotation (Line(points={{-20,30},{-10,30}}, color={28,108,200}));
connect(discharge.o, tail.o) annotation (Line(points={{70,0},{80,0}}, color={28,108,200}));
annotation (experiment(StopTime=1000));
end Simple;
end SimpleTurbine;
4 changes: 2 additions & 2 deletions OpenHPL/Examples/package.order
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
BranchingPipes
SimpleValve
Simple
SimpleTurbine
SimpleGen
SimpleGenFrancis
Detailed
DetailedTurbine
DetailedGen
DetailedGenFrancis
PowerSystemSimple
Expand Down

0 comments on commit 0683a25

Please sign in to comment.