Professional Documents
Culture Documents
Solving The Colebrook-White Equation With Excel - Excel Calculations
Solving The Colebrook-White Equation With Excel - Excel Calculations
More
Excel Calculations
Free Chemical and Petroleum Engineering Spreadsheets
Chemical
Engineering
Solving the Colebrook-White Equation with Calculations
Excel Petroleum
Engineering
Spreadsheets
The Colebrook-White describes the relationship between the Reynolds
Orifice Flow Meter
Number Re, the pipe relative roughness e, and the friction factor f in
Calculators
turbulent pipe flow.
Misc. Spreadsheets
Privacy Policy
BLOG ARCHIVE
► 2013 (3)
►
► 2012 (12)
►
Usually, we fix a value for Re and e, and compute f. However, this equation ▼ 2011 (34)
▼
► November (6)
►
There's several ways we can do this in Excel. I'll outline the two most
► October (9)
►
convenient methods. If you just want the spreadsheet, scroll to the bottom
of this post and download the spreadsheet. ► September (1)
►
► August (1)
►
Spreadsheet Setup ► July (2)
►
This is a screengrab of the spreadsheet included with this post.
► June (4)
►
► May (6)
►
▼ April (2)
▼
Solving the 1D
Heat
Equation
Using Finite
Differences
Solving the
Colebrook-
White
Equation with
Excel
MY BLOG LIST
Invest Excel
Steelers 19 chicago
bears 20 los
angeles rams
1 year ago
Note that the parameters to be entered by the user are highlighted green.
I've also assigned cell names to each parameter, so the pipe roughness is e, FOLLOWERS
the pipe diameter is D, and so on.
https://excelcalculations.blogspot.com/2011/04/solving-colebrook-white-equation-with.html 1/3
5/28/2021 Solving the Colebrook-White Equation with Excel | Excel Calculations
Dim bSuccess As Boolean Followers (86) Next
On Error Resume Next
bSuccess = Range("fCheck").GoalSeek(0, Range("f"))
On Error GoTo 0
If Not bSuccess Then
MsgBox "Goal Seek Failed for Cell ""X""!"
End If
End Sub
The code finds the value of f that will make fCheck equal 0.
Science directory
This is the formula I've typed into Cell B17 of the spreadsheet - it's just the
rearragned Colebrook-White Equation, but with one minor change.
=1/(-2*LOG(e/(D*3.7) + 2.51/(Re*SQRT(B17+1E-300))))^2
When Excel starts iterating, it initializes B17 with a value of zero. However,
this will a divide-by-zero error. To resolve this, I've added a very small
number (1E-300) to B17. This doesn't significantly change the accuracy of the
computer friction factor.
Both Method 1 and 2 give roughly the same value of f. I prefer Method 1
(purely because enabling spreadsheet iteration means you will not necessarily
be informed of any unintended circular references).
3 comments:
robhanson said...
Hi,
I've been using the second method but have a problem. If you remove
one of the variables, then re-enter the formula no longer works, unless
you change it very slightly, i.e. by removing a 0 from b8. Any idea why
this happens? It happens in yours also, bit confusing!
thanks,
Rob
https://excelcalculations.blogspot.com/2011/04/solving-colebrook-white-equation-with.html 2/3
5/28/2021 Solving the Colebrook-White Equation with Excel | Excel Calculations
February 10, 2012 at 5:40 AM
Unknown said...
That happens with me as well. I'll look into this when I have time.
S
February 10, 2012 at 11:08 AM
Pez said...
i tend to nest "iferror()" statements around problematic areas, such as
square roots and places where "div0#" errors may occur, with default, or
starting values, this stops the formula from causing an error, if it does,
the calculation simply resets.
Post a Comment
Publish Preview
Powered by Blogger.
https://excelcalculations.blogspot.com/2011/04/solving-colebrook-white-equation-with.html 3/3