Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1 H
x := 3 V := root( s( x ) , x ) V = 10.6964
Q = 2.1002
Now a program is written to calculate the exit velocity over a range of pipe lengths (L varies from 50 meters to 1000 meters).
2 ks 1.11 L1 + s( x , L1 ) := 4 3.4735 1.5635 ln 2 + 63.635 2 g d d x d 2
1 H
V1( x , L1 ) := root( s( x , L1 ) , x )
V2 :=
for k 0 .. 95 L2 50 + k 10 V2 V1( 1 , L2 )
k
A for loop is used to calculate velocity for 96 pipe lengths. The guess for each call of function V1 is 1. i := 0 .. 95
V2 4
Q2 :=
d V2
L2 := 0.5 + i 10
i
2.5
( Q2i)
1.5
0.5
100
200
300
400
500
600
700
800
900
1000