Sei sulla pagina 1di 2

ENGR335 Computer Solution to Example 10.6 Calculate the exit velocity for a 100 meter long pipe. H := 20 g := 9.

8 d := 0.5 := .0000010 L := 100 (SI units)

ks := .000046 Extended Bernoulli Equation with f by Haaland Correlation


2 ks 1.11 L + s( x ) := 4 3.4735 1.5635 ln 2 + 63.635 2 g d d x d 2

1 H

x := 3 V := root( s( x ) , x ) V = 10.6964

x is the "guess" for the root solver

V is the exit velocity in meters/second

ks 1.11 f := 4 3.4735 1.5635ln + 63.635 2 d V d


f = 0.0121 Re := d V Re = 5.3482 10
6

f is the friction factor

Q is the volume flow rate in meters cubed per second Q := 4 d V


2

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 )

V1 is a function - where x is the guess and L1 is the pipe length.

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

FLOW RATE (CMS)

( Q2i)

1.5

0.5

100

200

300

400

500

600

700

800

900

1000

L2i PIPE LENGTH (meters)

Potrebbero piacerti anche