Skip to content

Commit b4b77ec

Browse files
committed
Update formulation for non-equal inlet and outlet diameter
1 parent e5fb5fc commit b4b77ec

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

OpenHPL/Waterway/Pipe.mo

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ model Pipe "Model of a pipe"
4242
initial equation
4343
if SteadyState then
4444
der(mdot) = 0;
45-
/*else
46-
Testing with no initialization for this case, to avoid conflicts with multiple branches. Should in princple be ok.
47-
mdot=Vdot_0*data.rho;
48-
*/
4945
end if;
5046
algorithm
5147
assert( phi < 1.0 , "Change in pipe diameter is too large. (angle= "+String(phi)+" )",AssertionLevel.warning);
@@ -61,7 +57,7 @@ equation
6157
mdot = i.mdot "Inlet direction for mdot";
6258

6359
annotation (
64-
Documentation(info="<html><p>The simple model of the pipe gives possibilities
60+
Documentation(info= "<html><head></head><body><p>The simple model of the pipe gives possibilities
6561
for easy modelling of different conduit: intake race, penstock, tail race, etc.</p>
6662
<p>This model is described by the momentum differential equation, which depends
6763
on pressure drop through the pipe together with friction and gravity forces.
@@ -78,6 +74,6 @@ equation
7874
up to 0.6 for sharp contractions.</p>
7975
<p>More info about the pipe model can be found in
8076
<a href=\"modelica://OpenHPL.UsersGuide.References\">[Vytvytskyi2017]</a>
81-
and <a href=\"modelica://OpenHPL.UsersGuide.References\">[Splavska2017a]</a>.</p>
82-
</html>"));
77+
and <a href=\"modelica://OpenHPL.UsersGuide.References\">[Splavska2017a]</a>.</p><p>Updated formulation for non-equal inlet- and outlet diameter.</p><p><br></p><p><br></p>
78+
</body></html>"));
8379
end Pipe;

0 commit comments

Comments
 (0)