Skip to content

Commit 939b8da

Browse files
committed
Adapt OpenChannel test example to new version.
1 parent 269c442 commit 939b8da

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

OpenHPLTest/OpenChannel.mo

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ model OpenChannel "Model of a hydropower system with open channel model"
1616
annotation (Placement(transformation(
1717
origin={-90,90},
1818
extent={{-10,-10},{10,10}})));
19-
OpenHPL.Waterway.OpenChannel openChannel(N=10, H={0,0}) annotation (Placement(transformation(extent={{-10,-10},{10,10}})));
19+
OpenHPL.Waterway.OpenChannel openChannel(
20+
H_i=2,
21+
useSections=true, N=10) annotation (Placement(transformation(extent={{-10,-10},{10,10}})));
2022
OpenHPL.Waterway.Pipe pipe(H=0, L=10) annotation (Placement(transformation(extent={{20,-10},{40,10}})));
2123
equation
2224
connect(discharge.o, openChannel.i) annotation (Line(points={{-20,0},{-10,0}}, color={0,128,255}));
2325
connect(openChannel.o, pipe.i) annotation (Line(points={{10,0},{20,0}}, color={0,128,255}));
2426
connect(reservoir.o, discharge.i) annotation (Line(points={{-60,0},{-40,0}}, color={0,128,255}));
2527
connect(pipe.o, tail.o) annotation (Line(points={{40,0},{60,0}}, color={0,128,255}));
26-
annotation (experiment(StopTime=1000));
28+
annotation (experiment(StopTime=10000));
2729
end OpenChannel;

0 commit comments

Comments
 (0)