You are on page 1of 2

Process Simulation 2020

Name: Click here to enter text. Student ID: Click here to enter text.
Date: Click here to enter text. Time: Click here to enter text.

Computer Lab #1

The Colebrook equation is an implicit equation that combines experimental results of studies of
turbulent flow in smooth and rough pipes. For conduits that are flowing completely full of fluid at
Reynolds numbers greater than 4000, it is given as:

1 ε / Dh 2.51
√f
=−2 log 10 ( +
3.7 ℜ √ f ) [1]

here:
f is the Darcy friction factor
(m) is roughness height
Dh (m) is inside diameter of the pipe
Re is the Reynolds number
Reynolds number is defined as:

VD
ℜ= [2]
ν

where
V is the velocity (m/s)
νis the kinetic viscosity (m2/s)

1. Use Excel Solver to determine f for the following conditions:


 (m) D (m) Re
0.001 0.01 8000

Question 1. Value of f at above condition (1 mark)


Click here to enter text.

2. Write a VBA code to solve the above question using bisection method: the tolerance is 10 -15,
the solution is between 0.001 and 1.

Question 2. Value of f and number of iterations (1 mark)


Click here to enter text.

3. Use your bisection code to find f from a fixed flowrate/viscosity and variable diameter (as in
the Table). You need to calculate the velocity and then Re according to Equation (2) for each
value of D. Plot the results.

Q (m3/s) m2/s)  (m)


2 0.00123 0.001
Process Simulation 2020

Hint: use the $ in formula to copy and paste.

Question 3. Insert the graph into the box below (1 mark)

4. Use Solver and the bisection code to find the minimum f for D between 0.04 and 0.6 m. Find
the corresponding diameter of the minimum.

Question 4. Value of f and corresponding D (1 mark)


Click here to enter text.
Hint: use vlookup

5. Write a VBA using binary search code to find the minimum friction coefficient, for a diameter
between 0.04 and 0.6 m.

Q (m3/s)   (m)
2 0.00123 0.001

Question 5. Compare the minimum f with Solver solution in Q4. Discuss the advantage and
disadvantages between the two methods.

Click here to enter text.

You might also like