125 views

Uploaded by sachinsaklani23

- Check Sismic
- 16. DAFTAR PUSTAKAAAAAA
- Fluid Mechanics
- RCCe11 Element Design
- Pictorial Presentation.pptx
- Dragonite Halloysite for Advanced Thermosets
- Nonlinear Structural Materials Model Library Manual
- Civil Engineer Assistant, Project Engineer
- Chapter 1-Lesson 1-Intro-2014 Students g
- Estudio de la influencia del metodo de sintesis en las propiedades cataliticas del oro
- Placement of Loads
- School of Chemical Engineering Public Seminar on Process Control
- DAFTAR PUSTAKA
- Data Desain 105-D P2B
- Thrust Anchor Blocks for End Caps
- 2.5 Reinforcement of RC Frame
- Day Summary Report
- 3 c
- Final Date Sheet Fall 2015(1) (1)
- Lecture 1 Wandda

You are on page 1of 4

SGP-TR-185

FOR FLUID FLOW IN PIPELINES

Mahendra P. Verma

Av. Reforma 113, Col. Palmira

Cuernavaca, Morelos, 62490, Mexico

e-mail: mahendra@iie.org.mx

ABSTRACT researchers developed explicit expression for the

Colebrook equation (Swamee and Jain 1976, Zigrang

An ActiveX component, MoodyChart is written in and Sylvester 1985, Serghides 1984, Tsal 1989).

Visual Basic 6.0 to calculate frictional factor for fluid During a numerical simulation of fluid flow in a

flow in a pipeline using one of the three implicit and pipeline or pipe-network, the calculation of frictional

four explicit forms of Colebrook equation. The factor is performed several times. Thus an explicit

MoodyChart can be integrated in any computer form is preferred, if it provides the reasonable

language, which support object link embedding accurate and consistent values of frictional factor.

(OLE) in the windows environment. A function, In this article an activeX component, MoodyChart in

FrictionalFactor (EqNo, Re, RelR), where EqNo, Re MS-Visual Basic 6.0 is developed to calculate the

and RelR are equation number, Reynold number and frictional factor using the implicit and explicit forms

relative roughness, respectively, is written in Visual of Colebrook equation. The MoodyChart can be

Basic for Application (VBA) to use the MoodyChart integrated in any computer language, which support

in a workbook of MS-Excel. A comparative study object link embedding (OLE) in the Windows

among the calculated values of frictional factor environment. A function, FrictionalFactor (EqNo,

indicates that the explicit equations of Serghide, and Re, RelR), where EqNo, Re and RelR are equation

Zigrang and Sylvester provide reasonably consistent number, Reynold number and relative roughness,

values of frictional factor for whole range of Re and respectively, is written in Visual Basic for

RelR. Application (VBA) to illustrate the use of

MoodyChart in a workbook of MS-Excel.

INTRODUCTION

The Darcy-Weisbach equation is used to calculate MoodyChart: ActiveX COMPONENT

pressure drop and energy loss resulting from fluid Reynold (1883) demonstrated experimentally the

motion in pipes and other closed conduits. Brown existence of two types of flow, laminar and turbulent,

(2002) presented a precise historical development of which are governed by the relative magnitude of the

this equation. The frictional factor is estimated inertial and viscous forces (i.e. Reynold number

through Moody chart for the above calculations (Re)). For practical purposes, it is considered the

(Moody, 1944). The Moody chart is a graphical laminar flow for Re<2000, turbulent flow for

representation of Colebrook equation (Colebrook, Re>4000 and transition region in the range

1939, Colebrook and White 1937, Lester 2002). 2000<Re<4000. The laminar flow equation is well

During a computer simulation of fluid flow the direct established. There are many forms of the Colebrook

application of Colebrook equation has advantages equation for turbulent flow. There is no study to

over the graphical approach of Moody chart. estimate the frictional factor for the transition region.

Therefore, a linear interpolation of frictional factor

Lester (2002) reviewed the different forms of for the values of laminar flow at Re=2000 and

Colebrook equation available in the literature. Table turbulent flow at Re=4000 for the respective

1 presents the most commonly used three implicit Colebrook equation is used here.

and four explicit forms of Colebrook equations. The The program MoodyChart is created as an ActiveX

original Colebrook equation is in the implicit form. component in the library MyActiveXLib.dll and a

An implicit equation is solved through iteration; class module is written in Visual Basic 6.0.

therefore, the computer execution time is relatively

larger for an implicit form than that for an explicit

Table 1: Description of different forms of Colebrook equation, programmed in the MoodyChart ActiveX component

(Lester, 2002)

Laminar Transition Turbulent flow

Flow (2000<Re<4000) (Re>=4000)

(Re>=2000)

64 Liner interpolation Implicit form

f = of frictional factor RelR

Re 1 2.51

for the values of 1. = 2 log10 +

Re f

laminar flow at f 3.7

Re=2000 and

1 18.7

turbulent flow at 2. = 1.74 2 log10 2RelR +

Re f

Re=4000 for the f

respective

3. 1 1 9.3

equation. = 1.14 + 2 log10 2 log10 1 +

f RelR Re RelR f

Explicit form

4. Serghide equation

2

( B A)2

f = A

( C 2 B + A )

where

RelR 12 RelR 2.51A RelR 2.51B

A = 2log10 + , B = 2log10 + , C = 2log10 +

3.7 Re 3.7 Re 3.7 Re

5. Zigrang and Sylvester equation

2

RelR 5.02 RelR 5.02 RelR 13

f = 2 log10 log10 log10 +

3.77 Re 3.77 Re 3.77 Re

6. Swamee and Jain equation

f =

0.25

2

log10 RelR 5.74

+ 0.9

3.7 Re

7. Altshul-Tsal equation

0.25

68

f = 0.11 RelR +

Re

if f < 0.018 then f = 0.85 f + 0.0028 ; otherwise f = f

10

8

% Deviation in Frictional factor

Re=5000, RelR=0.000001

Re=5000, RelR=0.0001

6 Re=5000, RelR=0.01

Re=100000, RelR=0.000001

Re=100000, RelR=0.0001

4 Re=100000, RelR=0.01

Re=10000000, RelR=0.000001

Re=10000000, RelR=0.0001

2 Re=10000000, RelR=0.01

-2

-4

0 1 2 3 4 5 6 7

Equation Number

Figure 1: Comparison of the values of fractional factor calculated using the seven forms of Colebrook equation. The

numbering of equation is same as given in Table 1.

An activeX component is a server application that exposes Now the function FrictionalFactor can be used on a

its functionality through an interface consisting of Worksheet in the Workbook.

properties, methods and events (Petroutsos 1998).

Programmers may access the module within their projects Figure 1 shows a comparative study of the three implicit

in any language that supports Object Link Embedding (1-3) and four explicit (4-7) forms of Colebrook equation.

(OLE) in the Windows environment. This approach also First the values of frictional factor for Re= 5000, 105 and

avoids name conflicting among various variables as the 107 and RelR=10-2, 10-4 and 10-6 are calculated on a

object variables are identified together with an object worksheet in workbook of MS-Excel. All the implicit

name. forms provide similar values of frictional factor; therefore,

the average values of frictional factor from implicit

The MyActiveXLib.dll must be registered with the equations for each set of Re and RelR are used to calculate

REGSVR32 utility in the Windows environment. First the percentage deviation in the values of frictional factor

copy the file MyActiveXLib.dll in a folder (directory) from the explicit forms.

and locate the REGSVR32 file your computer. It is mostly

in the folder C:\WINDOWS\SYSTEM32. To register the It can be observed in Figure 1 that the explicit equations 4

DLL, open a command prompt window (a DOS window), and 5 provide the values of frictional factor within 0.2%

switch to the folder where the DLL resides, and issue the deviation from the values of implicit forms. The deviation

following commend: in the values of frictional factor for the Swamee and Jain

C:\WINDOWS\SYSTEM32\REGSVR32 MyActiveXLib.dll

equation is between -3 to 1%. Similarly, the deviation for

Altshul-Tsal equation is between -1 to 9%. Thus the

There are several options one can use with the equations of Serghide equation and Zigrang and Sylvester

REGSVR32 utility. The /u option will uninstall a equation are good for the calculation of frictional factor

previously registered DLL. To uninstall the file during the fluid flow in pipelines and pipeline networks.

MyActiveXLib.dll, use the command:

C:\WINDOWS\SYSTEM32\REGSVR32 /u CONCLUSIONS

MyActiveXLib.dll

The ActiveX component, MoodyChart works well to

Once a DLL is registered, it may be accessed in a calculate the frictional factor for fluid flow in pipelines

computer program in any language that supports Object and pipeline networks using all the implicit and explicit

Link Embedding (OLE) in the Windows environment. forms of Colebrook equations. The explicit equations of

Serghide, and Zigrang and Sylvester are quite accurate for

The MoodyChart has three write properties: the numerical simulation of fluid flow in pipelines. The

EquationNumber, ReynoldNumber and RelRoughness, function, FrictionalFactor is an efficient approach to

which server as input parameters (i.e., user can change calculate frictional factor in a MS-Excel worksheet.

their values). Similarly, it has one read only property:

FrictionalFactor to get the calculated value of fractional We are working to include these ActiveX components in a

factor for a given set of input data. program to simulate the steam flow in a geothermal

pipeline network. The ActiveX component library

Using MoodyChart in MS-Excel MyActiveXLib is available for scientific use with free of

charge from the author. Presently, the library contains the

A function, FrictionalFactor is written here in VBA to use

following ActiveX components:

MoodyChart is a Workbook in MS-Excel. The storing of a

MS-Excel macro in different locations is presented earlier SteamTables95: Thermodynamic properties of water as

(Verma 2003). Here we will write the function, a function of T and P using the

FrictionalFactor in a currently opened Workbook. IAPWS-95 formulation

1. Choose Tools|Macro|Visual Basic Editor from

the menu bar of your MS-Excel. QrtzGeotherm: Geothermal reservoir temperature and

2. In the menu bar of the Visual Basic editor select vapor fraction calculation from quartz

Tool|References. In the reference window press geothermometry

the browse button to locate the file MoodyChart: The present ActiveX

MyPrograms.dll in the folder it was copied

earlier. The reference will show up as OrificeMeter: Calculation of Steam flow in a

MyActiveXLib. Check OK to close this geothermal pipeline with a differential

window. The library MyActiveXLib contains the head orifice flow meter

activeX component, MoodyChart.

Type the following lines is a module in the Visual Basic

editor

REFERENCES

Dim MdyChart As New MoodyChart Brown, G. O., (2002), The history of the Darcy-

Function FrictionalFactor(EqNo As _ Weisbach equation for pipe flow resistance, In

Integer, Re As Double, RelR As _ Environmental and water resources history, Proceedings

Double) As Double

MdyChart.EquationNumber = EqNo

and invited papers for ASCE 150th Anniversary (1852-

MdyChart.ReynoldNumber = Re 2002), Fredrich, A., and Rogers, J., (eds.), ASCE, Reston,

MdyChart.RelRoughness = RelR VA, 34-43.

FrictionalFactor = _ Colebrook, C.F., (1939), Turbulent flow in pipes with

MdyChart.FrictionFactor particular reference to the transition region between the

End Function

smooth and rough pipe laws, Proceedings Institution

Civil Engineers, 12, 393-422.

Colebrook, C.F., and White, C. M., (1937), Experiments

with fluid-friction in roughened pipes, Proceedings Royal

Society, London, 161, 367-381.

Lester, T., (2002), Solving the Colebrook equation for

friction factors, http://www.cheresources.com

Moody, L. F., (1944), Fraction factors for pipe flow,

ASSME Transactions, 66, 671-684.

Petroutsos, E., (1998), Mastering Visual Basic 6, BPB

Publications, New Delhi, India, 1285p.

Reynolds, O., (1883) An experimental investigation of

the circumstances which determine whether the motion of

water shall be direct or sinuous and of the law of

resistance in parallel channel, Philosophical Transactions

of the Royal Society, 174, 935-982.

Serghides, T. K., (1984), Estimate friction factor

accurately. Chemical Engineering, 91, 63-64.

Swamee, P. K., and Jain, A. K., (1976), Explicit

equations for pipe-flow problems, Journal of Hydraulics,

Division, ASCE, 102, 657-664.

Tsal, R. J., (1989), Altshul-Tsal friction factor equation,

Heating, Piping and Air Conditioning. (august).

Verma, M. P., (2003), Steam Tables for pure water as an

ActiveX component in Visual Basic 6.0, Computer &

Geosciences, 29, 1155-1163.

Zigrang, D. J., and Sylvester, N. D. (1985), A Review of

Explicit Friction Factor Equations, Transactions of

ASME, Journal of Energy Resources Technology, 107,

280-283.

- Check SismicUploaded byes
- 16. DAFTAR PUSTAKAAAAAAUploaded byFinka Pertama Putri
- Fluid MechanicsUploaded byMohammad Hosein Khanesaz
- RCCe11 Element DesignUploaded byBalaji Hari
- Pictorial Presentation.pptxUploaded bymujeebmehar
- Dragonite Halloysite for Advanced ThermosetsUploaded byHalloy1
- Nonlinear Structural Materials Model Library ManualUploaded byV Dhinakaran
- Civil Engineer Assistant, Project EngineerUploaded byapi-79287743
- Chapter 1-Lesson 1-Intro-2014 Students gUploaded byAlejandro Ariza García
- Estudio de la influencia del metodo de sintesis en las propiedades cataliticas del oroUploaded byDiego Ortega
- Placement of LoadsUploaded byamrelsayed
- School of Chemical Engineering Public Seminar on Process ControlUploaded byhsheshs
- DAFTAR PUSTAKAUploaded byViona Widya
- Data Desain 105-D P2BUploaded byabdur roqib
- Thrust Anchor Blocks for End CapsUploaded byKushan Dhanushka Nanayakkara
- 2.5 Reinforcement of RC FrameUploaded byflavian_gafita
- Day Summary ReportUploaded bykumaruragonda
- 3 cUploaded bybob
- Final Date Sheet Fall 2015(1) (1)Uploaded byGhulam Murtaza
- Lecture 1 WanddaUploaded byWanda
- My Plan NEWUploaded byM Habibie Irfansyah
- Common Mistakes in CFD Work_WaleedUploaded byعبدالله عبدالعاطي
- Books (1).docxUploaded byhammad
- Design SRP TTB-70 (24-01-19)Uploaded byReza Ramadhan
- scope of work.xlsxUploaded byananth
- JnJ Mech Comletion(Hbg)Uploaded byHaries Garcia
- 3_246Uploaded byJC Inquillay
- OILGEAR_ Best Under PressureUploaded byMonica Davis
- licao1Uploaded byYves Garnard
- Semi BatchUploaded byAngel Euan

- 22Uploaded bysachinsaklani23
- Static Pressure Calculations V1.1Uploaded bysachinsaklani23
- UFHUploaded bysachinsaklani23
- Danfoss ipat.pdfUploaded byNataLee
- Guide B1 Appendix LTHW SizingUploaded bysachinsaklani23
- HIU Range Design GuideUploaded bysachinsaklani23
- 10-General.pdfUploaded bysachinsaklani23
- Terminology Civil 3DUploaded bysachinsaklani23
- HiUploaded bysachinsaklani23
- _modine.comuserdataLEEDGBMyDocumentsshardyDocumentsTherm-X HR85 Technical Manual (1).pdfUploaded bysachinsaklani23
- hUploaded bysachinsaklani23
- project-process-map.pdfUploaded byShahrir
- Deliverable ListUploaded bysachinsaklani23
- 264034584-Sample-Hydraulic-calculation.pdfUploaded bysachinsaklani23
- HiUploaded bysachinsaklani23
- 3-pipe-sizing-2013-3.docxUploaded bysiva anand
- PipingUploaded bysachinsaklani23
- Coil LoadUploaded byMakarand Deshpande
- Mep AssumptionsUploaded bysachinsaklani23
- Mechanical - VentilationUploaded bysachinsaklani23
- hhUploaded bysachinsaklani23
- HiUploaded bysachinsaklani23
- HiUploaded bysachinsaklani23
- HiUploaded bysachinsaklani23
- HiUploaded bysachinsaklani23
- HiUploaded bysachinsaklani23
- 357182-MMD-ZZ-XX-CA-H-3300Uploaded bysachinsaklani23
- 382196 - IOG - Football & Athletic Stadium - Drawing RegisterUploaded bysachinsaklani23

- Service CovenienceUploaded byBalaji Balasubramaniam
- Desarrollo Físico y Cognoscitivo en la Edad Adulta TardíaUploaded byjinexahi
- -MB0049-Set 1Uploaded byDivya Nand
- Shekhar ResumeUploaded bydeepak.gairola12
- P7212_e.pdfUploaded byritasilabannatalie
- histogramUploaded byRadha Devi Periyasamy
- dynamic system modelingUploaded byDaniel Son
- 514PPUploaded byRiyaz Ahmed
- Microalgae_ a Sustainable Feed Source for AquacultureUploaded byFaisal Setiawan
- Part Two Comparative Environmental FrameworksUploaded bysalmanlodhi
- persuasive writing editingUploaded byapi-200889745
- sue goodrich - resumeUploaded byapi-285029164
- Luminol Post LabUploaded byjoshkty27
- Difference Between OSI Model and TCPUploaded byAndima Jeff Hardy
- readme.txtUploaded bytienthangviet
- Demand-side Financing and Promotion of Maternal Health_what Has India Le...Uploaded bygspkishore7953
- Personal History FormUploaded byAri Maulana
- FPDs and Applications FSM Course PubUploaded byNGOUNE
- The Conservative Party and Constitutional ReformUploaded byAndreea Gîlmeanu
- Stata CommandsUploaded byMuhammad Ullah
- 130606_Aktuelnosti 21-13 WEBUploaded byDragan Pejic
- Lab Report 5 Kita!!!Uploaded byZaidi Zakaria
- Rpf TemplateUploaded bycolombiasou
- UW Biomass Full ReportUploaded byjperraton
- Clinical Trial ManagementUploaded bynicky02
- 7.Eke O. UdumaUploaded byiiste
- 297 ethnographic reportUploaded byapi-400554052
- 37474_NEW(2)Uploaded bySr Re
- SOUNDING,HIGH RESOLUTION SHALLOW SEISMIC REFLECTION AND UNDERWATER SONOGRAPHICUploaded byAlvaro Javier
- State-Space Battery Modeling for Smart Battery Management System.pdfUploaded byJosé Perez