-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathOpenChannel.mo
More file actions
29 lines (29 loc) · 1.47 KB
/
OpenChannel.mo
File metadata and controls
29 lines (29 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
within OpenHPLTest;
model OpenChannel "Model of a hydropower system with open channel model"
extends Modelica.Icons.Example;
OpenHPL.Waterway.Reservoir reservoir(h_0=5) annotation (Placement(transformation(
origin={-70,0},
extent={{-10,-10},{10,10}})));
OpenHPL.Waterway.Pipe discharge(H=0, L=10) annotation (Placement(transformation(extent={{-40,-10},{-20,10}})));
OpenHPL.Waterway.Reservoir tail(h_0=5) annotation (Placement(transformation(
origin={70,0},
extent={{-10,10},{10,-10}},
rotation=180)));
inner OpenHPL.Data data(
SteadyState=false,
Vdot_0=0,
f_0(displayUnit="Hz"))
annotation (Placement(transformation(
origin={-90,90},
extent={{-10,-10},{10,10}})));
OpenHPL.Waterway.OpenChannel openChannel(
H=2,
useSections=true, N=10) annotation (Placement(transformation(extent={{-10,-10},{10,10}})));
OpenHPL.Waterway.Pipe pipe(H=0, L=10) annotation (Placement(transformation(extent={{20,-10},{40,10}})));
equation
connect(discharge.o, openChannel.i) annotation (Line(points={{-20,0},{-10,0}}, color={0,128,255}));
connect(openChannel.o, pipe.i) annotation (Line(points={{10,0},{20,0}}, color={0,128,255}));
connect(reservoir.o, discharge.i) annotation (Line(points={{-60,0},{-40,0}}, color={0,128,255}));
connect(pipe.o, tail.o) annotation (Line(points={{40,0},{60,0}}, color={0,128,255}));
annotation (experiment(StopTime=10000));
end OpenChannel;