PC Review


Reply
Thread Tools Rate Thread

How do I solve the colbrooke equation by iteration in Excel?

 
 
Steve M.
Guest
Posts: n/a
 
      17th Mar 2008
I want to program excel to check whether fluid flow is laminar, transitional,
or turbulent and use corresponding equations to solve for friction.

Laminar (re<2300) - friction = Re/64
Transitional (2300<re<4000) - friction use Churcill equation
Turbulent (re>4000) - friction use colebrooke iterative equation

I have the flow type listed in one column and I would like the corresponding
friction factor to be listed in the adjacent column.

--Steve
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      17th Mar 2008
I would use a UDF. Use the mode either 1 or 2 to return the value or the type

Function Fluid_Flow(mode As Integer, re As Single)

Select Case mode
Case 1
Select Case re
Case Is < 2300
Fluid_Flow = "Laminar"
Case Is >= 4000
Fluid_Flow = "Transitional"
Case Else
Fluid_Flow = "Turbulent"
End Select
Case 2
Select Case re
Case Is < 2300
Fluid_Flow = "add formula"
Case Is >= 4000
Fluid_Flow = "add formula"
Case Else
Fluid_Flow = "add formula"
End Select

End Select

End Function


"Steve M." wrote:

> I want to program excel to check whether fluid flow is laminar, transitional,
> or turbulent and use corresponding equations to solve for friction.
>
> Laminar (re<2300) - friction = Re/64
> Transitional (2300<re<4000) - friction use Churcill equation
> Turbulent (re>4000) - friction use colebrooke iterative equation
>
> I have the flow type listed in one column and I would like the corresponding
> friction factor to be listed in the adjacent column.
>
> --Steve

 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      17th Mar 2008
Have you checked this site?

http://www.cheresources.com/colebrook1.shtml

"Steve M." wrote:

> I want to program excel to check whether fluid flow is laminar, transitional,
> or turbulent and use corresponding equations to solve for friction.
>
> Laminar (re<2300) - friction = Re/64
> Transitional (2300<re<4000) - friction use Churcill equation
> Turbulent (re>4000) - friction use colebrooke iterative equation
>
> I have the flow type listed in one column and I would like the corresponding
> friction factor to be listed in the adjacent column.
>
> --Steve

 
Reply With Quote
 
Steve M.
Guest
Posts: n/a
 
      17th Mar 2008

Does your code use the visual basic editor in excel?

How would I write a simple do loop to perform the iteration for the
colbrooke equation?

Thank,

--Steve M.

"Joel" wrote:

> I would use a UDF. Use the mode either 1 or 2 to return the value or the type
>
> Function Fluid_Flow(mode As Integer, re As Single)
>
> Select Case mode
> Case 1
> Select Case re
> Case Is < 2300
> Fluid_Flow = "Laminar"
> Case Is >= 4000
> Fluid_Flow = "Transitional"
> Case Else
> Fluid_Flow = "Turbulent"
> End Select
> Case 2
> Select Case re
> Case Is < 2300
> Fluid_Flow = "add formula"
> Case Is >= 4000
> Fluid_Flow = "add formula"
> Case Else
> Fluid_Flow = "add formula"
> End Select
>
> End Select
>
> End Function
>
>
> "Steve M." wrote:
>
> > I want to program excel to check whether fluid flow is laminar, transitional,
> > or turbulent and use corresponding equations to solve for friction.
> >
> > Laminar (re<2300) - friction = Re/64
> > Transitional (2300<re<4000) - friction use Churcill equation
> > Turbulent (re>4000) - friction use colebrooke iterative equation
> >
> > I have the flow type listed in one column and I would like the corresponding
> > friction factor to be listed in the adjacent column.
> >
> > --Steve

 
Reply With Quote
 
Steve M.
Guest
Posts: n/a
 
      17th Mar 2008

No, but I will. Articles appear helpful.

"JLGWhiz" wrote:

> Have you checked this site?
>
> http://www.cheresources.com/colebrook1.shtml
>
> "Steve M." wrote:
>
> > I want to program excel to check whether fluid flow is laminar, transitional,
> > or turbulent and use corresponding equations to solve for friction.
> >
> > Laminar (re<2300) - friction = Re/64
> > Transitional (2300<re<4000) - friction use Churcill equation
> > Turbulent (re>4000) - friction use colebrooke iterative equation
> >
> > I have the flow type listed in one column and I would like the corresponding
> > friction factor to be listed in the adjacent column.
> >
> > --Steve

 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      17th Mar 2008
What caught my eye was the Excel spreadsheet download that they have in zip
file format. I didn't check it but it could answer all of your questions.

"Steve M." wrote:

>
> No, but I will. Articles appear helpful.
>
> "JLGWhiz" wrote:
>
> > Have you checked this site?
> >
> > http://www.cheresources.com/colebrook1.shtml
> >
> > "Steve M." wrote:
> >
> > > I want to program excel to check whether fluid flow is laminar, transitional,
> > > or turbulent and use corresponding equations to solve for friction.
> > >
> > > Laminar (re<2300) - friction = Re/64
> > > Transitional (2300<re<4000) - friction use Churcill equation
> > > Turbulent (re>4000) - friction use colebrooke iterative equation
> > >
> > > I have the flow type listed in one column and I would like the corresponding
> > > friction factor to be listed in the adjacent column.
> > >
> > > --Steve

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you help me to solve the below equation in excel ? K Lee Microsoft Excel Worksheet Functions 10 30th Nov 2008 04:25 AM
how can I solve two equation with excel? =?Utf-8?B?cGV5bWFu?= Microsoft Excel Misc 1 3rd Feb 2007 08:18 PM
How can I use Excel to solve an equation? =?Utf-8?B?dGl0aW5h?= Microsoft Excel Worksheet Functions 4 11th Apr 2006 11:19 PM
Using iteration to solve a two-parameter equation Jason Microsoft Excel Misc 4 13th Oct 2005 08:35 PM
How do I define and solve a maths equation using excel? =?Utf-8?B?ZXhjZWwgbnVi?= Microsoft Excel New Users 1 9th Oct 2005 11:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:45 PM.