Skip to content

Commit a4c0e75

Browse files
committed
Updated Examples/Pipes.mo
1 parent 9b03034 commit a4c0e75

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

OpenHPL/Examples/Pipes.mo

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ model Pipes "Example of contracting, contstant and expanding pipe diameters"
44
//
55
inner OpenHPL.Data data(Vdot_0 = 0.0) annotation(
66
Placement(transformation(origin={-90,90}, extent={{-10,-10},{10,10}})));
7-
7+
parameter SI.Diameter Dn=0.3568 "Nominal Diameter";
88
Waterway.Reservoir Upstream(h_0 = 100.0, constantLevel=true)
99
annotation(
1010
Placement(transformation(origin={-50,0}, extent={{-10,-10},{10,10}})));
@@ -29,8 +29,7 @@ model Pipes "Example of contracting, contstant and expanding pipe diameters"
2929
H=0,
3030
L=1000,
3131
p_eps(displayUnit="mm") = 0) annotation (Placement(transformation(origin={0,-20}, extent={{-10,-10},{10,10}})));
32-
protected
33-
parameter SI.Diameter Dn=0.3568 "Nominal Diameter";
32+
3433
equation
3534
connect(Upstream.o, pipeExpanding.i) annotation (Line(points={{-40,0},{-28,0},{-28,20},{-10,20}}, color={0,128,255}));
3635
connect(pipeExpanding.o, Downstream.o) annotation (Line(points={{10,20},{30,20},{30,0},{40,0}}, color={0,128,255}));

0 commit comments

Comments
 (0)