Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

Embed Size (px)

Citation preview

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    1/230

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    2/230

    Michael V. Lurie

    Modeling of Oil Product and

    Gas Pipeline Transportation

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    3/230

    Related Titles

    Olah, G. A., Goeppert, A., Prakash, G. K. S.

    Beyond Oil and Gas: The Methanol Economy

    2006

    ISBN: 978-3-527-31275-7

    Olah, G. A., Prakash, G. K. S. (eds.)

    Carbocation Chemistry

    2004

    ISBN: 978-0-471-28490-1

    Sheldrake, A. L.

    Handbook of Electrical Engineering For Practitioners in the

    Oil, Gas and Petrochemical Industry

    2003E-Book

    ISBN: 978-0-470-86478-4

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    4/230

    Michael V. Lurie

    Modeling of Oil Product and

    Gas Pipeline Transportation

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    5/230

    The Author

    Prof. Dr. Michael V. Lurie

    Russian State Universityof Oil and GasMoscow, Russian Federation

    Translation

    Emmanuil G. Sinaiski

    Leipzig, Germany

    Cover Picture

    Trans-Alaska Pipeline

    All books published by Wiley-VCH arecarefully produced. Nevertheless, authors,

    editors, and publisher do not warrant theinformation contained in these books,including this book, to be free of errors.Readers are advised to keep in mind thatstatements, data, illustrations, proceduraldetails or other items may inadvertently beinaccurate.

    Library of Congress Card No.:applied forBritish Library Cataloguing-in-Publication DataA catalogue record for this book is availablefrom the British Library.

    Bibliographic information published bythe Deutsche NationalbibliothekDie Deutsche Nationalbibliothek lists thispublication in the Deutsche National-bibliografie; detailed bibliographic data areavailable in the Internet at.

    2008 WILEY-VCH Verlag GmbH & Co.KGaA, Weinheim

    All rights reserved (including those oftranslation into other languages). No part ofthis book may be reproduced in any form byphotoprinting, microfilm, or any othermeans nor transmitted or translated into amachine language without written permissionfrom the publishers. Registered names,trademarks, etc. used in this book, even whennot specifically marked as such, are not to be

    considered unprotected by law.

    Printed in the Federal Republic of GermanyPrinted on acid-free paper

    Composition Laserwords, Chennai

    Printing Strauss GmbH, Movlenbach

    Bookbinding Litges & Dopf GmbH,Heppenheim

    ISBN: 978-3-527-40833-7

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    6/230

    V

    In memory of the Teacher academician Leonid I. Sedov

    Modeling of Oil Product and Gas Pipeline Transportation.Michael V. LurieCopyright 2008 WILEY-VCH Verlag GmbH & Co. KGaA, WeinheimISBN: 978-3-527-40833-7

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    7/230

    VII

    Foreword

    This book is dedicated first and foremost to holders of a masters degree andpostgraduate students of oil and gas institutes who have decided to specializein the field of theoretical problems in the transportation of oil, oil products andgas. It contains methods of mathematical modeling of the processes takingplace in pipelines when transporting these media.

    By the term mathematical model is understood a system of mathematicalequations in which framework a class of some processes could be studied. Thesolution of these equations provides values of parameters without carrying outmodel and, especially, full scale experiments.

    Physical laws determining the dynamics of fluids and gases in pipes arepresented. It is then shown how these laws are transformed into mathematical

    equations that are at the heart of one or another mathematical model. Inthe framework of each model, are formulated problems with the aim ofinvestigating concrete situations. In doing so there are given methods of itssolution.

    The book is self-sufficient for studying the subject but the text is outlined insuch a way that it impels the reader to address oneself to closer acquaintanceof considered problem containing in special technical literature.

    Professor Michael V. LurieMoscow

    Modeling of Oil Product and Gas Pipeline Transportation.Michael V. LurieCopyright 2008 WILEY-VCH Verlag GmbH & Co. KGaA, WeinheimISBN: 978-3-527-40833-7

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    8/230

    IX

    Contents

    Dedication Page V

    Foreword VII

    Preface XIII

    List of Symbols XV

    1 Fundamentals of Mathematical Modeling of One-DimensionalFlows of Fluid and Gas in Pipelines 1

    1.1 Mathematical Models and Mathematical Modeling 1

    1.1.1 Governing Factors 31.1.2 Schematization of One-Dimensional Flows of Fluids and Gases

    in Pipelines 41.2 Integral Characteristics of Fluid Volume 51.3 The Law of Conservation of Transported Medium Mass.

    The Continuity Equation 71.4 The Law of Change in Momentum. The Equation of Fluid Motion 91.5 The Equation of Mechanical Energy Balance 111.5.1 Bernoulli Equation 151.5.2 Input of External Energy 161.6 Equation of Change in Internal Motion Kinetic Energy 171.6.1 Hydraulic Losses (of Mechanical Energy) 181.6.2 Formulas for Calculation of the Factor(Re, ) 201.7 Total Energy Balance Equation 221.8 Complete System of Equations for Mathematical Modeling

    of One-Dimensional Flows in Pipelines 29

    2 Models of Transported Media 312.1 Model of a Fluid 312.2 Models of Ideal and Viscous Fluids 322.3 Model of an Incompressible Fluid 342.4 Model of Elastic (Slightly Compressible) Fluid 34

    Modeling of Oil Product and Gas Pipeline Transportation.Michael V. LurieCopyright 2008 WILEY-VCH Verlag GmbH & Co. KGaA, WeinheimISBN: 978-3-527-40833-7

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    9/230

    X Contents

    2.5 Model of a Fluid with Heat Expansion 342.6 Models of Non-Newtonian Fluids 362.7 Models of a Gaseous Continuum 382.7.1 Model of a Perfect Gas 392.7.2 Model of a Real Gas 392.8 Model of an Elastic Deformable Pipeline 42

    3 Structure of Laminar and Turbulent Flows in a Circular Pipe 453.1 Laminar Flow of a Viscous Fluid in a Circular Pipe 453.2 Laminar Flow of a Non-Newtonian Power Fluid in a Circular Pipe 47

    3.3 Laminar Flow of a Viscous-Plastic Fluid in a Circular Pipe 493.4 Transition of Laminar Flow of a Viscous Fluid to Turbulent Flow 513.5 Turbulent Fluid Flow in a Circular Pipe 523.6 A Method to Control Hydraulic Resistance by Injection of

    Anti-Turbulent Additive into the Flow 623.7 Gravity Fluid Flow in a Pipe 65

    4 Modeling and Calculation of Stationary Operating Regimes of Oiland Gas Pipelines 73

    4.1 A System of Basic Equations for Stationary Flow of anIncompressible Fluid in a Pipeline 73

    4.2 Boundary Conditions. Modeling of the Operation of Pumps andOil-Pumping Stations 75

    4.2.1 Pumps 754.2.2 Oil-Pumping Station 784.3 Combined Operation of Linear Pipeline Section and Pumping

    Station 814.4 Calculations on the Operation of a Pipeline with Intermediate

    Oil-Pumping Stations 844.5 Calculations on Pipeline Stationary Operating Regimes in

    Fluid Pumping with Heating 874.6 Modeling of Stationary Operating Regimes of Gas-Pipeline Sections 924.6.1 Distribution of Pressure in Stationary Gas Flow in a Gas-Pipeline 944.6.2 Pressure Distribution in a Gas-Pipeline with Great Difference

    in Elevations 964.6.3 Calculation of Stationary Operating Regimes

    of a Gas-Pipeline (General Case) 974.6.4 Investigation of Thermal Regimes of a Gas-Pipeline Section 984.7 Modeling of Blower Operation 100

    5 Closed Mathematical Models of One-Dimensional Non-StationaryFlows of Fluid and Gas in a Pipeline 109

    5.1 A Model of Non-Stationary Isothermal Flow of a Slightly CompressibleFluid in a Pipeline 109

    5.2 A Model of Non-Stationary Gas Flow in a Pipeline 112

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    10/230

    Contents XI

    5.3 Non-Stationary Flow of a Slightly Compressible Fluidin a Pipeline 113

    5.3.1 Wave Equation 1135.3.2 Propagation of Waves in an Infinite Pipeline 1155.3.3 Propagation of Waves in a Semi-Infinite Pipeline 1175.3.4 Propagation of Waves in a Bounded Pipeline Section 1195.3.5 Method of Characteristics 1215.3.6 Initial, Boundary and Conjugation Conditions 1245.3.7 Hydraulic Shock in Pipes 1275.3.8 Accounting for Virtual Mass 1345.3.9 Hydraulic Shock in an Industrial Pipeline Caused by Instantaneous

    Closing of the Gate Valve 1355.4 Non-Isothermal Gas Flow in Gas-Pipelines 1385.5 Gas Outflow from a Pipeline in the Case of a Complete Break

    of the Pipeline 1465.6 Mathematical Model of Non-Stationary Gravity Fluid Flow 1495.7 Non-Stationary Fluid Flow with Flow Discontinuities

    in a Pipeline 152

    6 Dimensional Theory 1576.1 Dimensional and Dimensionless Quantities 1576.2 Primary (Basic) and Secondary (Derived) Measurement Units 1586.3 Dimensionality of Quantities. Dimensional Formula 159

    6.4 Proof of Dimensional Formula 1616.5 Central Theorem of Dimensional Theory 1636.6 Dimensionally-Dependent and Dimensionally-Independent

    Quantities 1646.7 Buckingham-Theorem 168

    7 Physical Modeling of Phenomena 1737.1 Similarity of Phenomena and the Principle of Modeling 1737.2 Similarity Criteria 1747.3 Modeling of Viscous Fluid Flow in a Pipe 1757.4 Modeling Gravity Fluid Flow 1767.5 Modeling the Fluid Outflow from a Tank 1787.6 Similarity Criteria for the Operation of Centrifugal Pumps 179

    8 Dimensionality and Similarity in Mathematical Modelingof Processes 183

    8.1 Origination of Similarity Criteria in the Equations of aMathematical Model 183

    8.2 One-Dimensional Non-Stationary Flow of a Slightly CompressibleFluid in a Pipeline 184

    8.3 Gravity Fluid Flow in a Pipeline 1868.4 Pipeline Transportation of Oil Products. Batching 187

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    11/230

    XII Contents

    8.4.1 Principle of Oil Product Batching by Direct Contact 1888.4.2 Modeling of Mixture Formation in Oil Product Batching 1898.4.3 Equation of Longitudinal Mixing 1928.4.4 Self-Similar Solutions 194

    References 199

    Appendices 201

    Author Index 205

    Subject Index 207

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    12/230

    XIII

    Preface

    This book presents the fundamentals of the mathematical simulation ofprocesses of pipeline transportation of oil, oil products and gas. It is shownhow the basic laws of mechanics and thermodynamics governing the flow offluids and gases in pipelines are transformed into mathematical equationswhich are the essence of a certain mathematical modeland, in the frameworkof a givenphysical problem, appropriatemathematical problemsare formulatedto analyze concrete situations.

    The book is suitable for graduate and postgraduate students of universitieshaving departments concerned with oil and gas and to engineers and researchworkers specializing in pipeline transportation.

    Beginners will find in this book a consecutive description of the theory and

    mathematical simulation methods of stationary and non-stationary processesoccurring in pipelines. Engineers engaged in the design of and calculations onpipelines will find a detailed theoretical and practical text-book on the subjectof their work. Graduate and postgraduate students and research workers willbecome acquainted with situations in the theory and methods in order togeneralize and develop them in the future.

    The author of the book, Professor Dr. M. Lurie, is a great authority in Russiain the field of the hydromechanics of oil and gas pipeline transportation.

    Prof. Emmanuil SinaiskiLeipzig

    . . .No human investigation could be referred to as true when it is not supportedby mathematical proof

    Leonardo da Vinci

    Modeling of Oil Product and Gas Pipeline Transportation.Michael V. LurieCopyright 2008 WILEY-VCH Verlag GmbH & Co. KGaA, WeinheimISBN: 978-3-527-40833-7

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    13/230

    XV

    List of Symbols

    Symbol Definitiona radius of the flow corea dimensionless constanta parameter of the(Q H)characteristicA proportionality factorA+ value of parameterAto the left of the discontinuity frontA value of parameterAto the right of the discontinuity front[A] = A+ A jump of parameterAat the discontinuity frontdAin elementary work of internal forcedAex elementary work of external forceb parameter of the(Q H)characteristic

    c velocity of wave propagation in a pipelinec sound velocity in gasC2 integration constantCf friction factorCp heat capacity at constant pressureCSh Chezy factorCv heat capacity at constant volumecP centipoise, 0.01 PcSt centistokes, 0.01 St = 106 m2 s1

    d pipeline internal diameterd diameter incrementd0 nominal internal diameter of pipeline; cylinder internal

    diameterD pipeline external diameterD velocity of hydraulic shock wave propagation in a pipelineD velocity of discontinuity front propagation in the positive

    direction of thex-axisDim diameter of impellerDp diameter of pump impellerD Joule Thompson factorein internal energy density; specific internal energyekin kinetic energy density; specific kinetic energy

    Modeling of Oil Product and Gas Pipeline Transportation.Michael V. LurieCopyright 2008 WILEY-VCH Verlag GmbH & Co. KGaA, WeinheimISBN: 978-3-527-40833-7

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    14/230

    XVI List of Symbols

    E elastic modulus in extension and compression,Youngs modulus

    Ein internal energyEkin kinetic energyEi(z) Euler functionf1 dimensionless factor

    f(Q) friction forceF restoring forcedFn elementary forceFr Froude number

    g acceleration due to gravityg0,g1 dimensionless constantsh piezometric headh(S) depth of pipeline cross-section filling with fluidhc head losses in station communicationshcr critical depthh. head before PLPhn normal depth of gravity flow in the pipeH headH differential headH= F(Q) head-discharge(Q H)characteristic of a pumpH1 hydraulic headH1 hydraulic head

    He Hedstroem numberi hydraulic gradienti0 hydraulic gradientI momentumI Ilyushin numberI1, I2 Riemann invariants

    J gas enthalpyk factor of string elasticityk factor of power, Ostwald fluidk parameter of non-Newtonian fluid factor; heat-transfer factor; empirical factor 1/K Karman constant

    k dimensionless constantk kinematic consistencyK heat transfer factorK elastic modulus of fluid, PaK factor of longitudinal mixing of oil productlc length of the mixture regionL length of a pipeline or a pipeline sectionM mass flow rateM0 initial mass flow rateOPS oil-pumping station

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    15/230

    List of Symbols XVII

    n factor of power, Ostwald fluidn exponent in Ostwald rheological lawn exponentn number of revolutions of centrifugal blower shaftn unit normal vectorn0 nominal number of revolutions of blower shaftnin specific power of internal friction forcesN power consumption, kWNmech power of external mechanical devicesNus useful power of mechanical force acting on gasN/e specific power

    p pressurep difference between internal and external pressures, pressure

    dropp0 nominal pressure, initial pressure, normal pressure, pressure

    at the beginning of the pipeline sectionpen pressure of gas at the entrance of compressor station

    and blowerpcr critical pressurepex external pressure; pressure at initial cross-section

    of the pipeline sectionpin internal pressurepL pressure at the end of the pipeline section

    pl,pe,p pressure at the pressure line of pumps (PLP)pr reduced pressurepst standard pressure,pst =101 325 Papu pressure before oil-pumping stationpu head before stationpv saturated vapor tension (pressure)[p] pressure jump[pinc] incident pressure wave amplitude[prefl] reflected pressure wave amplitude[ptrans] transmitted pressure wave amplitudeP poise, 0.1 kg m s1

    Ps wetted perimeter

    Pa pascal (SI unit), kg m1

    s2

    Pe Peclet numberqh specific heat fluxqex heat inflow (qex >0) to gas; heat outflow (qex

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    16/230

    XVIII List of Symbols

    Qv volume flow rate of gas at pipeline cross-sectionr radial coordinater0 pipeline radiusR gas constant (R= R0/g)R0 universal gas constantRh hydraulic radiusRim radius of the impellerRr reduced gas constantRe Reynolds numberRecr critical Reynolds numberRe generalized Reynolds numberS area of a cross-section; area of pipeline cross-section part filled

    with fluidS0 area of pipeline cross-section; nominal (basic) areaSt stokes, 104 m2 s1

    t timeT absolute temperatureT0 nominal temperature; initial temperature; temperature of fluid

    at normal conditionTav average temperature over pipeline section lengthTcr critical temperatureTB temperature of gas at the entrance to the compressor stationTex temperature of external medium

    TL temperature at the end of pipeline sectionTm mean temperatureTr reduced temperatureTst standard absolute temperatureu(y) velocity distribution over cross-sectionumax maximum value of velocityuw fluid velocity at pipe wallu dynamic velocityv velocity averaged over cross-sectionv mean flow rate velocityvcr critical velocityV volume

    [v] fluid velocity jumpw accelerationx coordinate along the pipeline axisx1 coordinate of gravity flow section beginningx2 coordinate of gravity flow section endy coordinate transverse to the pipeline axis; directionof a normal

    to the elementary surface dz(x) elevation level of a pipeline cross-sectionx(z1 z2) geometrical height differences of sections 1 and 2Z over-compressibility factor

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    17/230

    List of Symbols XIX

    Zav average over-compressibility factorZ= Zr reduced gas over-compressibility

    angle of inclination of the pipeline axis to the horizontal, factorsv volume expansion factorT thermal expansion factor compressibility factor adiabatic index ratio between the hydraulic gradient of pipeline section

    completely filled with fluid and the absolute value of thegravity flow section with slope pto the horizontal

    shear rate, s1

    pipeline wall thickness absolute equivalent roughness; roughness of wall surface relative roughness; compression ratio; thickness ratio(t) local resistance factor dimensionless radius(%) efficiency function of temperature; concentration; parameter of over-

    compressibility factor; parameter of state equation of real gas;concentration of anti-turbulent additive

    hydraulic resistance factor

    eff effective factor of hydraulic resistance dynamic viscosity factor kg m1 s1

    g molar mass of gas; molecular weightt turbulent dynamic viscosity apparent viscosity of power Ostwald fluid kinematic viscosity factor m2 s1

    0 kinematic viscosity factor at temperatureT01 kinematic viscosity factor at temperatureT1P Poisson ratiot turbulent kinematic viscosity factor of volumetric expansion, K1; self-similar coordinate;

    dimensionless coordinate

    dimensionless parameter; similarity criterion(x) initial pressure distribution density, v,p,S values of parameters before hydraulic shock wave+, v+,p+,S+ values of parameters after hydraulic shock wave0 nominal density; fluid density at p0; density of fluid under

    normal conditionsst gas density under standard conditions area of suction branch pipe cross-section; hoop stress; degree

    of pipe filling; circumferential stress

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    18/230

    XX List of Symbols

    d elementary surface area; surface element tangential (shear) stress

    tangential friction stress0 critical (limit) shear stressw tangential (shear) stress at the pipeline internal surface specific volumecr critical specific volume angle of inclination of a straight line to the abscissa; central

    angle(x) initial fluid velocity distribution frequency of rotor rotation; angular velocity of impeller

    rotation

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    19/230

    1

    1

    Fundamentals of Mathematical Modeling of

    One-Dimensional Flows of Fluid and Gas in Pipelines

    1.1Mathematical Models and Mathematical Modeling

    Examination of phenomena is carried out with the help ofmodels. Each modelrepresents a definite schematization of the phenomenon taking into accountnot all the characteristic factors but some of them governing the phenomenaand characterizing it from some area of interest to the researcher.

    For example, to examine the motion of a body the material point modelisoften used. In such a model the dimensions of the body are assumed to beequal to zero and the whole mass to be concentrated at a point. In other wordswe ignore a lot of factors associated with body size and shape, the material

    from which the body is made and so on. The question is: to what extent wouldsuch a schematization be efficient in examining the phenomenon? As we allknow such a body does not exist in nature. Nevertheless, when examining themotion of planets around the sun or satellites around the earth, and in manyother cases, the material point model gives brilliant results in the calculationof the trajectories of a body under consideration.

    In the examination of oscillations of a small load on an elastic spring wemeet with greater schematization of the phenomenon. First the load is takenas a point mass m, that is we use the material point model, ignoring bodysize and shape and the physical and chemical properties of the body material.Secondly, the elastic string is also schematized by replacing it by the so-calledrestoring force F= k x, where x(t) is the deviation of the material pointmodeling the load under consideration from the equilibrium position and kis

    the factor characterizing the elasticity of the string. Here we do not take intoaccount the physical-chemical properties of the string, its construction andmaterial properties and so on. Further schematization could be done by takinginto account the drag arising from the air flow around the moving load andthe rubbing of the load during its motion along the guide.

    The use of the differential equation

    md2x

    dt2= k x, (1.1)

    Modeling of Oil Product and Gas Pipeline Transportation.Michael V. LurieCopyright 2008 WILEY-VCH Verlag GmbH & Co. KGaA, WeinheimISBN: 978-3-527-40833-7

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    20/230

    2 1 Mathematical Modeling of One-Dimensional Flows of Fluid and Gas in Pipelines

    expressing the second Newtonian law is also a schematization of thephenomenon, since the motion is described in the framework of Euclidiangeometry which is the model of our space without taking into account therelativistic effects of the relativity theory.

    The fact that the load motion can begin from an arbitrary position with anarbitrary initial velocity may be taken into account in the schematization byspecifyinginitial conditionsat

    t= 0 : x= x0; v=

    dx

    dt

    0

    = v0. (1.2)

    Equation (1.1) represents the closed mathematical model of the considered

    phenomenon and when the initial conditions are included (1.2) this is theconcrete mathematical modelin the framework of this model. In the given casewe have the so-calledinitial value (Cauchy) problemallowing an exact solution.This solution permits us to predict the load motion at instants of time t> 0and by so doing to discover regularities of its motion that were not previouslyevident. The latest circumstance contains the whole meaning and purpose ofmathematical models.

    It is also possible of course to produce another more general schematizationof the same phenomenon which takes into account a great number ofcharacteristic factors inherent to this phenomenon, that is, it is possible, inprinciple, to have another more general model of the considered phenomenon.

    This raises the question, how can one tell about the correctness or

    incorrectness of the phenomenon schematization when, from the logicalpoint of view, both schematizations (models) are consistent? The answer is:only from results obtained in the framework of these models. For example,the above-outlined model of load oscillation around an equilibrium positionallows one to calculate the motion of the load as

    x(t) = x0 cos

    k

    m t

    +

    m

    kv0 sin

    k

    m t

    having undamped periodic oscillations. How can one evaluate the obtainedresult? On the one hand there exists a time interval in the course of whichthe derived result accords well with the experimental data. Hence the modelis undoubtedly correct and efficient. On the other hand the same experimentshows that oscillations of the load are gradually damping in time and cometo a stop. This means that the model (1.1) and the problem (1.2) do not takeinto account some factors which could be of interest for us, and the acceptedschematization is inadequate.

    Including in the number of forces acting on the load additional forces,namely the forces of dryf0 sign(x)and viscousf1 x friction (where thesymbol sign(x)denotes the functionx sign equal to 1, atx> 0; equal to 1,atx< 0 and equal to 0, atx= 0), that is using the equation

    md2x

    dt2= k xf0 sign(x) f1 x (1.3)

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    21/230

    1.1 Mathematical Models and Mathematical Modeling 3

    instead of Eq. (1.1), one makes the schematization (model) more complete.Therefore it adequately describes the phenomenon.

    But even the new model describes only approximately the model underconsideration. In the case when the size and shape of the load strongly affectits motion, the motion itself is not one-dimensional, the forces acting on thebody have a more complex nature and so on. Thus it is necessary to use morecomplex schematizations or in another words to exploit more complex models.Correct schematization frequently represents a challenging task, requiringfrom the researcher great experience, intuition and deep insight into thephenomenon to be studied (Sedov, 1965).

    Of special note is the continuum model,which occupies a highly importantplace in the following chapters. It is known that all media, includingliquids and gases, comprise a great collection of different atoms andmolecules in permanent heat motion and with complex interactions.By molecular interactions we mean such properties of real media ascompressibility, viscosity, heat conductivity, elasticity and others. Thecomplexity of these processes is very high and the governing forcesare not always known. Therefore such seemingly natural investigationof medium motion through a study of discrete molecules is absolutelyunacceptable.

    One of the general schematization methods for fluid, gas and otherdeformable media motion is based on the continuum model. Because eachmacroscopic volume of the medium under consideration contains a great

    number of molecules the medium could be approximately considered as ifit fills the space continuously. Oil, oil products, gas, water or metals may beconsidered as a medium continuously filling one or another region of thespace. That is whya system of material points continuously filling a part of spaceis called a continuum.

    Replacement of a real medium consisting of separate molecules by acontinuum represents of course a schematization. But such a schemati-zation has proved to be very convenient in the use of the mathemat-ical apparatus of continuous functions and, as was shown in practice,it is quite sufficient for studying the overwhelming majority of observedphenomena.

    1.1.1Governing Factors

    In the examination of different phenomena the researcher is always restrictedby a finite number of parameters called governing factors (parameters) withinthe limits of which the investigation is being studied. This brings up thequestion: How to reveal the system of governing parameters?

    It could be done for example by formulating the problem mathematicallyor, in other words, by building a mathematical model of the considered

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    22/230

    4 1 Mathematical Modeling of One-Dimensional Flows of Fluid and Gas in Pipelines

    phenomenon as was demonstrated in the above-mentioned example. In thisproblem the governing parameters are:

    x, t, m, k,f0,f1, x0, v0.

    But, in order to determine the system of governing parameters, there is noneed for mathematical schematization of the process. It is enough to be guided,as has already been noted, by experience, intuition and understanding of themechanism of the phenomenon.

    Let us investigate the decrease in a parachutists speed vin the air whenhis motion can be taken as steady. Being governed only by intuition it

    is an easy matter to assume the speed to be dependent on the mass ofthe parachutist m, acceleration due to g, the diameter of the parachutecanopyD, the length L of its shroud and the air density . The viscosity ofthe air flowing around the parachute during its descent can be taken intoaccount or ignored since the force of viscous friction is small compared toparachute drag. Both cases represent only different schematizations of thephenomenon.

    So the function sought could be assumed to have the following general formv= f(m,g, D, L, ). Then the governing parameters are:

    m,g, D, L, .

    Theuse of dimensional theorypermitsus to rewrite theformulated dependence

    in invariant form, that is, independent of the system of measurement units(see Chapters 6 and 7)

    vgD

    =f mD3

    ,L

    D

    , v=

    gD f m

    D3,

    L

    D

    .

    Thus, among five governing parameters there are only two independentdimensionless combinations, m/D3 and L/D, defining the sought-fordependence.

    1.1.2Schematization of One-Dimensional Flows of Fluids and Gases in Pipelines

    In problems of oil and gas transportation most often schematization of theflow process under the following conditions is used: oil, oil product and gas are considered as a continuum continuously filling

    the whole cross-section of the pipeline or its part; the flow is taken as one-dimensional, that is all governing parameters

    depend only on one space coordinate xmeasured along the pipeline axisand, in the general case, on timet;

    the governing parameters of the flow represent values of the correspondingphysical parameters averaged over the pipeline cross-section;

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    23/230

    1.2 Integral Characteristics of Fluid Volume 5

    the profile of the pipeline is given by the dependence of the height of thepipeline axis above sea level on the linear coordinate z(x);

    the areaSof the pipeline cross-section depends, in the general case, onxandt. If the pipeline is assumed to be undeformable, then S = S(x). If thepipeline has a constant diameter, thenS(x) = S0= const.;

    the most important parameters are:(x, t) density of medium to be transported, kg m3;v(x, t) velocity of the medium, m s1;

    p(x, t) pressure at the pipeline axis, Pa = N m2;T(x, t) temperature of the medium to be transported, degrees;(x, t) shear stress (friction force per unit area of the pipeline internalsurface), Pa = N m2;Q(x, t) = vS volume flow rate of the medium, m3 s1;M(x, t) = vS mass flow rate of the medium, kg s1 and other.

    Mathematical models of fluid and gas flows in the pipeline are basedon the fundamental laws of physics (mechanics and thermodynamics) of acontinuum, modeling a real fluid and a real gas.

    1.2Integral Characteristics of Fluid Volume

    In what follows one needs the notion ofmovable fluid volumeof the continuumin the pipeline. Let, at some instant of time, an arbitrary volume of themedium be transported between cross-sections x1 and x2 of the pipeline(Figure 1.1).

    If the continuum located between these two cross-sections is identifiedwith a system of material points and track is kept of its displacement intime, the boundaries x1 and x2 become dependent on time and, togetherwith the pipeline surface, contain one and the same material points ofthe continuum. This volume of the transported medium is called themovable fluid volume or individual volume. Its special feature is that italways consists of the same particles of the continuum under consideration.

    If, for example, the transported medium is incompressible and the pipelineis non-deformable, then S = S0= const. and the difference between thedemarcation boundaries (x2 x1) defining the length of the fluid volumeremains constant.

    Figure 1.1 Movable fluid volume of thecontinuum.

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    24/230

    6 1 Mathematical Modeling of One-Dimensional Flows of Fluid and Gas in Pipelines

    Exploiting the notion of fluid or individual volume of the transportedmedium in the pipeline one can introduce the following integral quantities:

    M= x2 (t)

    x1(t)(x, t) S(x, t) dx mass of fluid volume (kg);

    I= x2 (t)

    x1(t)(x, t) v(x, t) S(x, t) dx momentum of fluid volume

    (kg m s1);

    Ekin= x2 (t)

    x1(t) k

    v2

    2 S(x, t) dx kinetic energy of the fluid volume(J),wherekis the factor;

    Ein= x2 (t)

    x1(t)(x, t) ein(x, t) S(x, t) dx internal energy of the fluid

    volume, where ein is the density of the internal energy (J kg1), that is the

    internal energy per unit mass.These quantities model the mass, momentum and energy of a material point

    system.Since the main laws of physics are often formulated as connections between

    physical quantities and the rate of their change in time, we ought to adducethe rule of integral quantity differentiation with respect to time. The symbolof differentiation d()/ dt denotes the total derivative with respect to time,associated withindividualparticles of a continuum whereas the symbol ()/tdenotes the local derivative with respect to time, that is the derivative of aflow parameter with respect to time at a given space point, e.g.x = const. Thelocal derivative with respect to time gives the rate of flow parameter change ata given cross-section of the flow while, at two consecutive instances of time,different particles of the continuum are located in this cross-section.

    The total derivative with respect to time is equal to

    d

    dt

    x2(t)x1(t)

    A(x, t) S(x, t) dx.

    From mathematical analysis it is known how an integral containing aparameter, in the considered case it is t, is differentiated with respect tothis parameter, when the integrand and limits of integration depend on thisparameter. We have

    d

    dt

    x2(t)x1(t)

    A(x, t) S(x, t) dx= x2(t)

    x1 (t)

    t[A(x, t) S(x, t)] dx

    + A(x, t) S(x, t)|x2 (t) dx2dt

    A(x, t) S(x, t)|x1 (t) dx1dt

    .

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    25/230

    1.3 The Law of Conservation of Transported Medium Mass. The Continuity Equation 7

    First, at frozen upper and lower integration limits, the integrand isdifferentiated (the derivative being local) and then the integrand calculated atthe upper and lower integration limits is multiplied by the rates of change ofthese limits dx2/ dtand dx1/ dt, the first term having been taken with a plussign and the second with a minus sign (see Appendix B).

    For the case of the fluid volume of the medium the quantities dx2/ dtanddx1/ dtare the corresponding velocities v2(t)and v1(t)of the medium in theleft and right cross-sections bounding the considered volume. Hence

    d

    dt x2(t)

    x1(t)A(x, t) S(x, t) dx=

    x2(t)

    x1 (t)

    t[A(x, t) S(x, t)] dx

    + A(x, t) v(x, t) S(x, t)|x2(t) A(x, t) v(x, t) S(x, t)|x1(t).

    If, in addition, we take into account the well-known NewtonLeibniz formula,according to which

    A(x, t) v(x, t) S(x, t)|x2 (t) A(x, t) v(x, t) S(x, t)|x1 (t)

    = x2 (t)

    x1(t)

    x[A(x, t) v(x, t) S(x, t)] dx,

    we obtain

    d

    dt x2(t)

    x1(t)

    A(x, t)

    S(x, t) dx

    = x2(t)

    x1 (t) AS

    t +

    ASv

    x dx. (1.4)

    1.3The Law of Conservation of Transported Medium Mass. The Continuity Equation

    The density (x, t), the velocity of the transported medium v(x, t) and thearea of the pipeline cross-section S(x, t) cannot be chosen arbitrarily sincetheir values define the enhancement or reduction of the medium mass inone or another place of the pipeline. Therefore the first equation would beobtained when the transported medium is governed by the mass conservationlaw

    ddt x2(t)

    x1(t)(x, t) S(x, t) dx= 0, (1.5)

    This equation should be obeyed for any fluid particle of the transportedmedium, that is for any valuesx1(t)andx2(t).

    Applying to Eq. (1.4) the rule (1.5) of differentiation of integral quantity withregard to fluid volume, we obtain x2(t)

    x1(t)

    S

    t + vS

    x

    dx= 0.

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    26/230

    8 1 Mathematical Modeling of One-Dimensional Flows of Fluid and Gas in Pipelines

    Since the last relation holds for arbitrary integration limits we get the followingdifferential equation

    S

    t + vS

    x = 0, (1.6)

    which is calledcontinuity equationof the transported medium in the pipeline.If the flow is stationary, that is the local derivative with respect to time is

    zero (()/t= 0), the last equation is simplified todvS

    dx = 0 M= vS = const. (1.7)

    This means that in stationary flow the mass flow rate Mis constant along thepipeline.

    If we ignore the pipeline deformation and take S(x) = S0= const.,from Eq. (1.7) it follows that v= const. From this follow two importantconsequences:

    1. In the case of a homogeneous incompressible fluid (sometimes oil andoil product can be considered as such fluids) = 0= const. and theflow velocityv(x) = const. Hence theflow velocity of a homogeneousincompressible fluid in a pipeline of constant cross-section does not changealong the length of the pipeline.

    Example. The volume flow rate of the oil transported by a pipeline withdiameterD = 820 mm and wall thickness = 8 mm is 2500 m3 h1. It isrequired to find the velocityvof the flow.

    Solution. The internal diameterdof the oil pipeline is equal to

    d= D 2 = 0.82 2 0.008 = 0.804 m;v= 4Q/d2 = const.v= 4 2500/(3600 3.14 0.8042) = 1.37 m s1.

    2. In the case of a compressible medium, e.g. a gas, the density(x)changes along the length of pipeline section under consideration. Since

    the density is as a rule connected with pressure, this change representsa monotonic function decreasing from the beginning of the section toits end. Then from the conditionv= const. it follows that the velocityv(x)of the flow also increases monotonically from the beginning of thesection to its end. Hence the velocity of thegas flow in a pipeline withconstant diameter increases from the beginning of the section betweencompressor stations to its end.

    Example. The mass flow rate of gas transported along the pipeline(D = 1020 mm, = 10 mm) is 180 kg s1. Find the velocity of the gas flow

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    27/230

    1.4 The Law of Change in Momentum. The Equation of Fluid Motion 9

    v1at the beginning andv2at the end of the gas-pipeline section, if thedensity of the gas at the beginning of the section is 45 kg m3 and at theend is 25 kg m3.

    Solution. v1=M/(1S) = 4 180/(45 3.14 12) = 5.1 m s1;v2=M/(2S) = 4 180/(25 3.14 12) = 9.2 m s1, that is the gas flowvelocity is enhanced by a factor 1.8 towards the end as compared with thevelocity at the beginning.

    1.4The Law of Change in Momentum. The Equation of Fluid Motion

    The continuity equation (1.6) contains several unknown functions, hence theuse of only this equation is insufficient to find each of them. To get additionalequations we can use, among others, the equation of the change in momentumof the system of material points comprising the transported medium. This lawexpresses properly the second Newton law applied to an arbitrary fluid volumeof transported medium

    dI

    dt= d

    dt

    x2(t)x1 (t)

    v S dx= (p1S1 p2S2) + x2(t)

    x1(t)

    pS

    xdx

    x2(t)x1 (t)

    d wdx x2(t)x1 (t)

    gsin(x) S dx. (1.8)

    On the left is the total derivative of the fluid volume momentum of thetransported medium with respect to time and on the right the sum of allexternal forces acting on the considered volume.

    The first term on the right-hand side of the equation gives the differencein pressure forces acting at the ends of the single continuum volume.The second term represents the axial projection of the reaction forcefrom the lateral surface of the pipe (this force differs from zero whenS = const.). The third term defines the friction force at the lateral surfaceof the pipe (w is the shear stress at the pipe walls, that is the frictionforce per unit area of the pipeline internal surface, Pa). The fourth term

    gives the sliding component of the gravity force ((x) is the slope of thepipeline axis to the horizontal, > 0 for ascending sections of the pipeline;< 0 for descending sections of the pipeline; g is the acceleration due togravity).

    Representing the pressure difference in the form of an integral over thelength of the considered volume

    p1S1 p2S2= x2(t)

    x1 (t)

    pS

    x dx

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    28/230

    10 1 Mathematical Modeling of One-Dimensional Flows of Fluid and Gas in Pipelines

    and noting that

    x2 (t)

    x1(t)

    pS

    x dx+

    x2(t)x1(t)

    pS

    xdx=

    x2(t)x1 (t)

    Sp

    xdx,

    we obtain the following equation

    d

    dt

    x2(t)x1(t)

    vS dx= x2(t)

    x1(t)

    S p

    x S 4

    dw Sgsin(x)

    dx.

    Now applying to the left-hand side of this equation the differentiation rule offluid volume

    x2(t)x1(t)

    vSt

    + v2 Sx

    dx= x2 (t)

    x1(t)

    S p

    x S 4

    dw Sgsin (x)

    dx.

    As far as the limits of integration in the last relation are arbitrary one candiscard the integral sign and get the differential equation

    vS

    t + v

    2 S

    x = S

    p

    x 4

    dw gsin (x)

    . (1.9)

    If we represent the left-hand side of this equation in the form

    vSt + vSx + Svt+ vvxand take into account that in accordance with the continuity equation (1.6) theexpression in the first brackets is equal to zero, the resulting equation may bewritten in a more simple form

    v

    t+ vv

    x

    = p

    x 4

    dw gsin(x). (1.10)

    The expression in brackets on the left-hand side of Eq. (1.10) represents thetotal derivative with respect to time, that is the particle acceleration

    w= dvdt

    = vt

    + vvx

    . (1.11)

    Now the meaning of Eq. (1.10) becomes clearer: the product of unit volumemass of transported medium and its acceleration is equal to the sum of allforces acting on the medium, namely pressure, friction and gravity forces. SoEq. (1.10) expresses the Newtons Second Law and can therefore also be calledtheflow motion equation.

    Remark. about the connection between total and partial derivatives with respectto time. The acceleration w = dv/ dtis a total derivative with respect to time(symbol d()/ dt), since we are dealing with the velocity differentiation of oneand the same fixed particle of the transported medium moving from one

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    29/230

    1.5 The Equation of Mechanical Energy Balance 11

    cross-section of the pipeline to another one, whereas the partial derivative withrespect to time (symbol ()/t) has the meaning of velocity differentiation ata given place in space, that is at a constant value ofx. Thus such a derivativegives the change in velocity of different particles of the transported mediumentering a given cross-section of the pipeline.

    Let a particle of the medium at the instant of time tbe in the cross-sectionxof the pipeline and so have velocityv(x, t). In the next instant of time t+ tthis particle will transfer to the cross-section x+ xand will have velocityv(x+ x, t+ t). The accelerationwof this particle is defined as the limit

    w= dvdt

    = limt0 v

    (x+ x, t+ t) v(x, t)t

    = vt

    x

    + vx

    t

    dxdt

    .

    Since dx/ dt= v(x, t)is the velocity of the considered particle, from the lastequality it follows that

    dv

    dt= v

    t+ v v

    x. (1.12)

    A similar relation between the total derivative ( d/ dt), or as it is also calledthe individual or Lagrangian derivative, and the partial derivative ( / t), or asit is also called the local or Eulerian derivative, has the form (1.12) no matterwhether the case in point is velocity or any other parameterA(x, t)

    dA(x, t)

    dt = A(x, t)

    t + vA(x, t)

    x .

    1.5The Equation of Mechanical Energy Balance

    Consider now what leads to the use of the mechanical energy change law asapplied to the system of material points representing a fluid particle of thetransported medium. This law is written as:

    dEkindt

    = dAex

    dt + dA

    in

    dt (1.13)

    that is the change in kinetic energy of a system of material points dEkinis equalto the sum of the work of the external dAex and internal dAin forces acting onthe points of this system.

    We can calculate separately the terms of this equation but first we shoulddefine more exactly what meant by the kinetic energy Ekin. If the transportedmedium moves in the pipeline as a piston with equal velocityv(x, t)over thecross-section then the kinetic energy would be expressed as the integral

    Ekin= x2 (t)

    x1(t)

    v2

    2 S dx.

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    30/230

    12 1 Mathematical Modeling of One-Dimensional Flows of Fluid and Gas in Pipelines

    But, in practice, such a schematization is too rough because, as experimentsshow, the velocity of the separate layers of the transported medium (fluid orgas) varies over the pipe cross-section. At the center of the pipe it reaches thegreatest value, whereas as the internal surface of the pipe is approached thevelocity decreases and at the wall itself it is equal to zero. Furthermore, if ata small velocity of the fluid the flow regime is laminar, with an increase invelocity the laminar flow changes into a turbulentone (pulsating and mixingflow) and the velocities of the separate particles differ significantly from theaverage velocity vof the flow. That is why models of the flow are, as a rule,constructed with regard to the difference in flow velocity from the averagevelocity over the cross-section.

    Thetrue velocity u of a particle of the transported medium is given as the sumu = v+ u of the average velocity over the cross-sectionv(x, t) and the additiveone (deviation) urepresenting the difference between the true velocity andthe average one. The average value of this additive u is equal to zero, but

    the root-mean-square (rms) value of the additive (u)2 is non-vanishing.The deviation characterizes the kinetic energy of the relative motion of thecontinuum particle in the pipeline cross-section. Then the kinetic energy of thetransported medium unit massekinmay be presented as the sum of two terms

    ekin=v2

    2+ (u)

    2

    2

    namely the kinetic energy of the center of mass of the considered point systemand the kinetic energy of the motion of these points relative to the center ofmass. If the average velocityv= 0, then

    v2

    2 + (u)

    2

    2 = v

    2

    2

    1 + (u)2

    v2

    = k

    v2

    2

    wherek= 1 + (u)2/v2 >1. For laminar flow k= 4/3, while for turbulentflow the value ofklies in the range 1.021.05.

    Remark. It should be noted that in one-dimensional theory, as a rule, the cases

    v= 0and(u)2 = 0are not considered.With regard to the introduced factor the kinetic energy of any movable

    volume of transported medium may be represented as

    Ekin= x2 (t)

    x1(t)k

    v2

    2 S dx.

    Let us turn now to the calculation of the terms in the mechanical energyequation (1.13). Let us calculate first the change in kinetic energy

    dEkindt

    = ddt

    x2 (t)x1(t)

    k v2

    2 S dx

    .

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    31/230

    1.5 The Equation of Mechanical Energy Balance 13

    Employing the rule of integral quantity integration with reference to the fluidvolume, that is an integral with variable integration limits, we get

    dEkindt

    = x2(t)

    x1 (t)

    t

    k

    v2

    2 S

    +

    x

    k

    v2

    2 S v

    dx.

    The work of the external forces (in this case they are the forces of pressure andgravity), including also the work of external mechanical devices, e.g. pumps ifsuch are used, is equal to

    dAexdt

    = (p1Sv1 p2Sv2) x2(t)x1(t)

    gsin v S dx+ Nmech

    = x2(t)

    x1 (t)

    x(pSv) dx

    x2(t)x1 (t)

    gsin v S dx+ Nmech.

    The first term on the right-hand side of the last expression gives the workperformed in unit time or, more precisely, the power of the pressure forceapplied to the initial and end cross-sections of the detached volume. Thesecond term gives the power of the gravity force and the third term Nmech thepower of the external mechanical devices acting on the transported mediumvolume under consideration.

    The work of the internal forces (pressure and internal friction) executed in

    unit time is given by

    dAin

    dt =

    x2(t)x1(t)

    p(Sv)

    x dx+

    x2(t)x1(t)

    nin S dx.

    The first term on the right-hand side gives the work of the pressure force inunit time, that is the power, for compression of the particles of the medium,the factor (Sv)/x dxgiving the rate of elementary volume change. Thesecond term represents the power of the internal friction forces, that is theforces of mutual friction between the internal layers of the medium, nin

    denoting specific power, that is per unit mass of the transported medium.In what follows it will be shown that this quantity characterizes the amountof mechanical energy converting into heat per unit time caused by mutual

    internal friction of the transported particles of the medium.Gathering together all the terms of the mechanical energy equation we get x2(t)x1(t)

    t

    k

    v2

    2 S

    +

    x

    k

    v2

    2vS

    dx

    = x2 (t)

    x1(t)Sv

    1

    p

    x

    +gsin

    dx+

    x2(t)x1(t)

    nin S dx+ Nmech.

    If the transported medium is barotropic, that is the pressure in it depends onlyon the density p = p(), one can introduce a function P() of the pressure

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    32/230

    14 1 Mathematical Modeling of One-Dimensional Flows of Fluid and Gas in Pipelines

    such that dP= dp/,P() = dp/and 1

    px= P()x. If, moreover, we take

    into account the equality sin(x) = z/x, where the functionz(x)is referredto as the pipeline profile, the last equation could be rewritten in the simpleform x2(t)

    x1(t)

    S

    t

    kv

    2

    2

    + vS

    x

    kv

    2

    2 + P() +gz

    dx

    = x2(t)

    x1(t)nin S dx+ Nmech. (1.14)

    If we assume that in the region [x1(t), x2(t)] external sources of mechanicalenergy are absent. Then Nmech= 0 and we can go from the integral equality(1.14) to a differential equation using, as before, the condition of arbitrarinessof integration limitsx1(t)andx2(t)in Eq. (1.14). Then the sign of the integralcan be omitted and the corresponding differential equation is

    S

    t

    kv2

    2

    + vS

    x

    kv2

    2 + P() +gz

    = S nin (1.15)

    or

    tkv22 + v xkv22 + dp +gz = nin. (1.16)This is the soughtdifferential equation expressing the lawof mechanical energychange. It should be emphasized that this equation is not a consequence of themotion equation (1.10). It represents an independent equation for modelingone-dimensional flows of a transported medium in the pipeline.

    If we divide both parts of Eq. (1.16) bygwe get

    t

    kv

    2

    2g

    + v

    x

    kv

    2

    2g +

    dp

    g+ z

    = n

    in

    g .

    The expression

    H= kv2

    2g +

    dp

    g+ z (1.17)

    in the derivative on the left-hand side of the last equation has the dimension oflength and is called thetotal head. The total head at the pipeline cross-sectionxconsists of the kinetic head (dynamic pressure) kv

    2/2g, thepiezometric head dp/gand thegeometric head z. The concept of head is very important in the

    calculation of processes occurring in pipelines.

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    33/230

    1.5 The Equation of Mechanical Energy Balance 15

    1.5.1Bernoulli Equation

    In the case of stationary flow of a barotropic fluid or gas in the pipeline thederivative ()/t= 0, hence the following ordinary differential equations apply

    v d

    dx

    kv

    2

    2g +

    dp

    g+ z

    = n

    in

    g

    or

    d

    dxkv2

    2g + dpg+ z = nin

    gv= i, (1.18)whereidenotes the dimensional quantitynin/gvcalled thehydraulic gradient

    i = dHdx

    = nin

    gv.

    Thus the hydraulic gradient, defined as the pressure loss per unit length ofthe pipeline, is proportional to the dissipation of mechanical energy into heatthrough internal friction between the transported medium layers ( i< 0).

    In integral form, that is as applied to transported medium located betweentwo fixed cross-sectionsx1and x2, Eq. (1.18) takes the following form

    kv22g + dpg+ z1 kv2

    2g + dpg+ z2 = x2

    x1i dx. (1.19)

    This equation is called the Bernoulli equation. It is one of the fundamentalequations used to describe the stationary flow of a barotropic medium ina pipeline.

    For an incompressible homogeneous fluid, which under some conditions canbe water, oil and oil product, = const., dp/g= p/g+ const. Thereforethe Bernoulli equation becomes

    kv2

    2g + p

    g+ z

    1

    kv

    2

    2g + p

    g+ z

    2

    = x2

    x1

    i dx.

    If in addition we takei=

    i0=

    const.(i0 >0), thenv2

    2g + p

    g+ z

    1

    v2

    2g + p

    g+ z

    2

    = i0 l12 (1.20)

    wherel12is the length of the pipeline between cross-sections 1 and 2.Thislastequation has a simple geometricinterpretation(see Figure 1.2).This

    figure illustrates a pipeline profile (heavy broken line); the line H(x)denotingthe dependence of the total head Hon the coordinate xdirected along theaxis of the pipeline (straight line) with constant slope to the horizontal(i = dH/ dx= tg = const.) and three components of the total head at an

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    34/230

    16 1 Mathematical Modeling of One-Dimensional Flows of Fluid and Gas in Pipelines

    Figure 1.2 Geometric interpretation of the Bernoulli equation.

    arbitrary cross-section of the pipeline: geometric headz(x), piezometric headp(x)/gand kinetic headkv

    2(x)/2g.The line H(x) representing the dependence of the total head H on the

    coordinatexalong the pipeline axis is called theline of hydraulic gradient.It should be noted that if we neglect the dynamic pressure (in oil and

    oil product pipelines the value of the dynamic pressure does not exceed thepipeline diameter, e.g. at v 2 m s1, k 1.05 then v2/2g= 0.25 m), andthe length of the section between the pipeline profile and the line of hydraulic

    gradient multiplied byggives the value of the pressure in the pipeline cross-sectionx. For example, when the length of the section AA (see Figure 1.2) is500 m and diesel fuel with density = 840 kg m3 is transported along thepipeline, then

    p

    840 9.81= 500 p = 500 840 9.81 = 4120200(Pa)

    or 4.12 MPa (42 atm).

    1.5.2Input of External Energy

    In fluid flow in the pipeline the mechanical energy is dissipated into heat andthe pressure decreases gradually. Devices providing pressure restoration orgeneration are calledcompressors.

    Compressors installed separately or combined in a group form the pumpingplant destined to set the fluid moving from the cross-section with lesserpressure to the cross-section with greater pressure. To do this it is required toexpend, or deliver from outside to the fluid, energy whose power is denoted byNmech.

    Let index 1 in the Bernoulli equation refer to parameters at the cross-sectionx1of the pump entrance (suction line) and index 2 at the cross-section x2of the

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    35/230

    1.6 Equation of Change in Internal Motion Kinetic Energy 17

    pump exit (discharge line). Since vS = const., the Bernoulli equation (1.14)may be written as: x2

    x1

    d

    dx

    vS

    kv

    2

    2 + p

    +gz

    dx=

    x2x1

    nin S dx+ Nmech.

    Ignoring the difference between the kinetic and geometric heads we get

    vS p2 p1

    x2

    x1

    nin S dx= Nmech.

    Denoting byH

    =(p2

    p1)/gthedifferential headproduced by the pump or

    pumping plant and taking into account that vS = Q= const. and nin = gv i,we obtain

    Nmech= gQ H x2

    x1

    gQ i dx= gQ H

    1 x2

    x1

    i

    Hdx

    .

    The expression in parentheses characterizes the loss of mechanical energywithin the pump. Usually this factor is taken into account by insertion of thepump efficiency

    =

    1 x2

    x1

    i/H dx

    1 1. Now we can derive anequation for the second component of the kinetic energy, namely the kineticenergy of the internal or relative motion in the flow of the transportedmedium.

    Multiplication of motion equation (1.10) by the productvSyields

    S d

    dt

    v2

    2

    = p

    x vS 4

    dw vS gvS sin(x).

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    36/230

    18 1 Mathematical Modeling of One-Dimensional Flows of Fluid and Gas in Pipelines

    Subtracting this equation term-by-term from the Bernoulli equation (1.15),one obtains

    S d

    dt

    (k 1)

    v2

    2

    = 4

    dw vS + S nin.

    Introduction ofnin = gv i0gives

    S d

    dt

    ( 1)

    v2

    2

    =

    4

    dw v

    S gvS i0. (1.22)

    This is the sought equation of change in kinetic energy of internal motion of

    one-dimensional flow of the transported medium. Its sense is obvious: thepower of the external friction forces(4w vS/d)in one-dimensional flow minus thepowergS(v i0)of internal friction forces between the particles causing transitionof mechanical energy into heat is equal to the rate of change of internal motionkinetic energy in the flow of the transported medium.

    For stationary flow ( d/ dt= 0 + v / x) of the transported mediumEq. (1.22) gives

    d

    dx

    (k 1)

    v2

    2

    = 4

    d

    w

    g i0. (1.23)

    Ifv = const., which for the flow of an incompressible medium in a pipelinewith constant diameter is the exact condition, the left-hand part of the equationvanishes. This means that the tangential friction tension w at the pipelinewall and the hydraulic gradienti0are connected by

    w=gd

    4 i0. (1.24)

    It must be emphasized that in the general case, including non-stationary flow,such a connection betweenwand i0is absent (see Section 4.1).

    1.6.1Hydraulic Losses (of Mechanical Energy)

    The quantity nin entering into Eq. (1.16) denotes the specific power of theinternal friction force, that is per unit mass of transported medium. Thisquantity is very important since it characterizes the loss of mechanical energyconverted into heat owing to internal friction between layers of the medium.In order to derive this quantity theoretically one should know how the layersof transported medium move at each cross-section of the pipeline but this isnot always possible. In the next chapter it will be shown that in several cases,in particular for laminar, flow such motion can be calculated and the quantitynin can be found. In other cases, such as for turbulent flows of the transported

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    37/230

    1.6 Equation of Change in Internal Motion Kinetic Energy 19

    medium, it is not possible to calculate the motion of the layers and othermethods of determiningnin are needed.

    The quantity of specific mechanical energy dissipation nin has the followingdimension (from now onwards dimension will be denoted by the symbol [ ])

    [nin] = Wkg

    = Js kg

    = N ms kg

    = kg m s2 m

    s kg = m

    2

    s3 =

    v3

    d

    .

    So the dimension ofn in is the same as the dimension of the quantity v3/d,hence, without disturbance of generality, one can seeknin in the form

    nin = 2 v3

    d (1.25)

    where is a dimensional factor (> 0), the minus sign shows that nin

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    38/230

    20 1 Mathematical Modeling of One-Dimensional Flows of Fluid and Gas in Pipelines

    The formula (1.25) acquires the form

    nin = (Re, ) 1d v

    3

    2. (1.26)

    The factor in this formula is called the hydraulic resistance factor, oneof the most important parameters of hydraulics and pipeline transportation.Characteristic values of lie in the range 0.01 0.03. More detailed informationabout this factor and its dependence on the governing parameters will bepresented below.

    Turning to the hydraulic gradienti0, one can write

    i0= ningv

    = 1d v2

    2g. (1.27)

    Characteristic values of the hydraulic slope are 0.000050.005.If we substitute Eq. (1.27) into the Bernoulli equation (1.20), we obtain

    kv2

    2g + p

    g+ z

    1

    kv

    2

    2g + p

    g+ z

    2

    = (Re, ) l12d

    v2

    2g. (1.28)

    The expressionh= l1 2 /d v2/2gon the right-hand side of this equationis calledthe loss of head in Darcy-Veisbach form.

    Using Eq. (1.27) in the case of stationary flow of the transported mediumpermits us to get an expression for the tangential friction stress w at the

    pipeline wall. Substitution of Eq. (1.27) into Eq. (1.24), yields

    w=gd

    4 i0=

    gd

    4

    1

    d

    v2

    2g

    =

    4 v

    2

    2 = Cf

    v2

    2 , (1.29)

    Cf(Re, ) =(Re, )

    4

    where the dimensional factorCfis called thefriction factorof the fluid on theinternal surface of the pipeline or theFunning factor(Leibensonet al., 1934).

    1.6.2Formulas for Calculation of the Factor(Re, )

    Details of methods to find and calculate the factor of hydraulic resistance inEqs. (1.26)(1.29) and one of the primary factors in hydraulics and pipelinetransportation will be given in Chapter 3. Here are shown several formulasexploiting the practice.

    If the flow of fluid or gas in the pipeline is laminar, that is jetwise or layerwise(the Reynolds numberRe should be less than 2300), then to determine theStokes formula(see Section 3.1) is used

    = 64Re

    . (1.30)

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    39/230

    1.6 Equation of Change in Internal Motion Kinetic Energy 21

    As the Reynolds number increases (Re> 2300) the flow in the pipelinegradually loses hydrodynamic stability and becomes turbulent, that is vortexflow with mixing layers. The best known formula to calculate the factor inthis case is theAltshuler formula:

    = 0.11 + 68

    Re

    1/4(1.31)

    valid over a wide range of Reynolds number from 104 up to 106 and higher.If 104 500/, the second term in parentheses in the Altshuler formula canbe neglected compared to the first one. Whence it follows that at great fluidvelocities the fluid friction is caused chiefly by the smoothness of the pipelineinternal surface, that is by the parameter . In such a case one can use thesimplerShiphrinson formula = 0.11 0.25. Then

    w=

    4 v

    2

    2 = 0.11

    1/4

    4 v

    2

    2 v2.

    From this it transpires that the friction resistance is proportional to the squareof the fluid mean velocity and hence this type of flow is called square flow.

    Finally, in the region of flow transition from laminar to turbulent, thatis in the range of Reynolds number from 2320 up to 10 4 one can use theapproximation formula

    = 64Re

    (1 ) +0.3164

    4

    Re , (1.33)

    where= 1 e0.002(Re2320) is the intermittency factor (Ginsburg, 1957). Itis obvious that the form of the last formula assures continuous transfer fromthe Stokes formula for laminar flow to the Blasius formula for turbulent flowin the zone of hydraulic smooth pipes.

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    40/230

    22 1 Mathematical Modeling of One-Dimensional Flows of Fluid and Gas in Pipelines

    To calculate the hydraulic resistance factor of the gas flow in a gas main,where the Reynolds number Re is very large and this factor depends only onthe condition of the pipeline internal surface, Eq. (1.34) is often used.

    = 0.067

    2

    d

    0.2(1.34)

    in which the absolute roughnessis equal to 0.030.05 mm.

    Exercise 1. The oil ( = 870 kg m3, = 15 s St) flows along the pipeline(D = 156 mm; = 5 mm; = 0.1 mm) with mean velocity v= 0.2 m s1.Determine through the Reynolds criterion the flow regime; calculate factors andCf.

    Answer. Laminar; 0.033; 0.0083.

    Exercise 2. Benzene ( = 750 kg m3, = 0.7 s St) flows along the pipeline(D = 377 mm; = 7 mm; = 0.15 mm) with mean velocity v= 1.4 m s1.Determine through the Reynolds criterion the flow regime; calculate factors andCf.

    Answer. Turbulent; 0.017; 0.0041.

    Exercise 3. Diesel fuel ( = 840 kg m3, = 6 s St) flows along the pipeline(D

    =530 mm;

    =8 mm;

    =0.25 mm) with mean velocity v

    =0.8 m s1.

    Determine the flow regime; calculate factors andCf.

    Answer. Turbulent; 0.022; 0.0054.

    1.7Total Energy Balance Equation

    Besides the law (1.13) of mechanical energy change of material points,applied to an arbitrary continuum volume in the pipeline there is one morefundamental physical law valid for any continuum the law of total energyconservation or, as it is also called, the first law of thermodynamics. This law

    asserts that the energy does not appear from anywhere and does not disappearto anywhere. It changes in total quantity from one form into another. Asapplied to our case this law may be written as follows

    d(Ekin + Ein)dt

    = dQex

    dt + dA

    ex

    dt (1.35)

    that is the change in total energy (Ekin + Ein) of an arbitrary volume of thetransported medium happens only due to the exchange of energy withsurrounding bodies owing to external inflow of heat dQex and the workof external forces dAex.

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    41/230

    1.7 Total Energy Balance Equation 23

    In Eq. (1.35)Einis the internal energy of the considered mass of transportedmedium, unrelated to the kinetic energy, that is the energy of heat motion,interaction between molecules and atoms and so on. In thermodynamicsreasons are given as to why the internal energy is a function of state, thatis at thermodynamic equilibrium of a body in some state the energy has awell-defined value regardless of the means (procedure) by which this statewas achieved. At the same time the quantities dQex/ dt and dAex/ dt arenot generally derivatives with respect to a certain function of state but onlyrepresent the ratio of elementary inflows of heat energy (differential dQex) andexternal mechanical energy (differential dAex) to the time dtin which theseinflows happened. It should be kept in mind that these quantities depend onthe process going on in the medium.

    In addition to function Ein one more function ein is often introduced,representing the internal energy of a unit mass of the considered bodyein= Ein/m, wheremis the mass of the body.

    We can write Eq. (1.35) for a movable volume of transported mediumenclosed between cross-sectionsx1(t)andx2(t). The terms of this equation are

    d(Ekin + Ein)dt

    = ddt

    x2 (t)x1(t)

    k

    v2

    2 + ein

    S dx

    ,

    dQex

    dt =

    x2(t)x1 (t)

    d qndx,

    dAexdt

    = x2(t)x1(t)

    x

    (pSv) dx x2(t)x1(t)

    gsin v S dx+ Nmech

    whereqn is the heat flux going through the unit area of the pipeline surfaceper unit time (W m2);d dxis an element of pipeline surface area and disthe pipeline diameter.

    Gathering all terms, we obtain

    d

    dt

    x2(t)x1(t)

    k

    v2

    2 + ein

    S dx

    = x2(t)

    x1 (t)d qndx

    x2 (t)

    x1(t)

    x(pSv) dx

    x2 (t)x1(t)

    gsin v S dx+ Nmech.

    Differentiation of the left-hand side of this equation gives x2(t)x1(t)

    t

    kv

    2

    2 + ein

    S

    +

    x

    kv

    2

    2 + ein

    vS

    dx

    = x2(t)

    x1(t)d qndx

    x2(t)x1(t)

    x

    p

    vS

    dx

    x2(t)

    x1(t)vSg

    z

    xdx+ Nmech

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    42/230

    24 1 Mathematical Modeling of One-Dimensional Flows of Fluid and Gas in Pipelines

    or x2(t)x1(t)

    t

    kv2

    2 + ein

    S

    +

    x

    kv2

    2 + ein +

    p

    vS

    dx

    = x2(t)

    x1(t)d qndx

    x2(t)x1(t)

    vSgz

    xdx+ Nmech. (1.36)

    If we assume that inside the region [x1(t), x2(t)] the external sources of me-chanical energy are absent, that isNmech= 0, then it is possible to pass fromintegral equality (1.36) to the corresponding differential equation using, asbefore, the condition that this equation should be true for any volume of the

    transported medium, that is the limits of integration x1(t)and x2(t)in (1.36)are to be arbitrarily chosen. Then the sign of the integral can be omitted andthe differential equation is

    t

    kv2

    2 + ein

    S

    +

    x

    kv2

    2 + ein +

    p

    vS

    = d qn vSg

    z

    x. (1.37)

    Excluding from Eq. (1.37) the change in kinetic energy with the help of theBernoulli equation with term by term subtraction of Eq. (1.16) from Eq. (1.37)we get one more energy equation

    S

    t

    kv

    2

    2

    + vS

    x

    kv

    2

    2 +

    dp

    +gz

    = vSg i

    called theequation of heat inflow.This equation could be variously written. First, it may be written through

    the internal energyein:

    t(ein S) +

    x(ein vS) = d qn p

    vS

    x vSg i

    or

    Seint + veinx = d qn p vSx vSg i. (1.38)This equation proved to be especially convenient for modeling flows ofincompressible or slightly compressible fluids because the derivative (vS)/xexpressing the change in fluid volume in the pipeline cross-section is extremelysmall as is the work p (vS)/xof the pressure forces. With this in mindEq. (1.38) may be written in a particularly simple form:

    deindt

    = 4d qn vg i. (1.39)

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    43/230

    1.7 Total Energy Balance Equation 25

    This means that the rate of internal energy change of the transported mediumis determined by the inflow of external heat through the pipeline surface andheat extraction due to conversion of mechanical energy into heat produced byfriction between the continuum layers.

    Second, the equation of heat inflow can be written using the functionJ= ein +p/ representing one of the basic thermodynamic functions,enthalpyor heat content,of the transported medium

    t(ein S) +

    x

    ein +

    p

    vS

    = d qn + vSg

    1

    g

    p

    x i

    or

    t(ein S) +

    x[J vS] = d qn + vSg

    1

    g

    p

    x i

    . (1.40)

    If we take into account (as will be shown later) that the expression inparentheses on the right-hand side of this equation is close to zero, since for arelatively light medium, e.g. gas, the hydraulic slope is expressed through thepressure gradient by the formulai = 1/g p/x, the equation of heat inflowcan be reduced to a simpler form

    S eint

    + vS Jx

    = d qn (1.41)

    in which the dissipation of mechanical energy appears to be absent.

    Temperature Distribution in Stationary Flow

    The equation of heat inflow in the form (1.39) or (1.41) is convenient todetermine the temperature distribution along the pipeline length in stationaryflow of the transported medium.1. For anincompressibleorslightly compressiblemedium, e.g. dropping liquid:

    water, oil and oil product, this equation has the form

    v deindx

    = 4d qn vg i. (1.42)

    The internal energy ein depends primarily on the temperature of the fluid

    T, the derivative dein/ dTgiving its specific heat Cv(J kg1 K1). If we takeCv= const. thenein= Cv T+ const.

    To model the heat fluxqnthe Newton formulais usually used

    qn= (T Tex), (1.43)

    by which this flow is proportional to the difference between the temperaturesTandTex in and outside the pipeline, withqn < 0 whenT >Tex and qn >0when T

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    44/230

    26 1 Mathematical Modeling of One-Dimensional Flows of Fluid and Gas in Pipelines

    from the pipe to the surrounding medium (anticorrosive and heat insulation,ground, the boundary between ground and air and so on) or the reverse. Thisfactor is called theheat-transfer factor.

    The hydraulic gradienti can sometimes be considered constant i = i0const., if the dissipation of mechanical energy in the stationary fluid flow inthe pipeline with constant diameter is identical at all cross-sections of thepipeline.

    With due regard for all the aforesaid Eq. (1.42) is reduced to the followingordinary differential equation

    CvvdT

    dx= 4

    d (T Tex) + vgi0 (1.44)for temperatureT= T(x). From this equation in particular it follows that theheat transfer through the pipeline wall (the first term on the right-hand side)lowers the temperature of the transported medium whenT(x) >Texor raisesit whenT(x)

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    45/230

    1.7 Total Energy Balance Equation 27

    the condition of equality to zero of the right-hand side is obeyed

    4d

    (T0 Tex) + vgi0= 0

    that is the factor satisfies the condition

    = vdgi04(T0 Tex)

    = gM i0

    d (T0 Tex).

    And the temperature of the transported medium would remain constant andequal to its initial value over the whole pipeline section. In such a case the

    heat outgoing from the pipeline would be compensated by the heat extractedby internal friction between the layers. Such an effect is used, for example,in oil transportation along the Trans-Alaska oil pipeline (USA, see the coverpicture). Through good insulation of the pipeline the oil is pumped overwithout preheating despite the fact that in winter the temperature of theenvironment is very low.

    From Eq. (1.45) follows the connection between the initial T0 and final TLtemperatures of the transported medium. If in this formula we set x= L,whereLis the length of the pipeline section, we obtain

    TL Tex TT0 Tex T

    = exp

    dLCvM

    . (1.46)

    Expressing now from (1.46) the argument under the exponent and substitutingthe result in Eq. (1.45), we get the expression for the temperature distributionthrough the initial and final values

    T(x) Tex TT0 Tex T

    =

    TL Tex TT0 Tex T

    x/L. (1.47)

    Exercise 1. The initial temperature of crude oil ( = 870 kg m3, Cv=2000 J kg1 K1, Q= 2500 m3 h1), pumping over a pipeline section (d=800 mm, L = 120 km, i0= 0.002)is55 C. Thetemperature of the surroundingmedium is 8 C. The heat insulation of the pipeline is characterized by theheat-transfer factor = 2 W m2 K1. It is required to find the temperature atthe end of the section.

    Solution. Calculate first the temperatureT:

    T=gi0Md

    = 9.81 0.002 870 (2500/3600)3.14 0.8 2

    = 2.36 K.

    Using Eq. (1.46) we obtain

    TL 8 2.3655 8 2.36= exp

    3.14 0.8 2 120 10

    3

    2000 870 (2500/3600)

    ,

    from which followsTL= 37.5 C.

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    46/230

    28 1 Mathematical Modeling of One-Dimensional Flows of Fluid and Gas in Pipelines

    Exercise 2. By how much would the temperature of the oil (Cv=1950 J kg1 K1) be raised due to the heat of internal friction when theoil is transported by an oil pipeline (L = 150 km, d= 500 mm, i0= 0.004)provided with ideal heat insulation( = 0)?

    Solution. In this case it is impossible to use at once Eq. (1.45) since = 0. Touse Eq. (1.47) one should go to the limit at 0, therefore it would be betterto use Eq. (1.44)

    CvvdT

    dx= vgi0 or Cv

    dT

    dx= gi0,

    from whichT= gi0L/Cv= 9.81 0.004 150 103/1950 = 3 K.

    Exercise 3. It is required to obtain the temperature of oil pumping over thepipeline section of length 150 km in cross-sections x = 50, 100 and 125 km,if the temperature at the beginning of the pipeline T0= 60 C, that at theendTL= 30 C, and that of the environment Tex= 8 C. The extracted heat ofinternal friction may be ignored.

    Solution. Using Eq. (1.46), one gets

    T(x) 860

    8

    =

    30 860

    8

    x/L

    and T(x) = 8 + 52 (0.4231)x/150.

    Substitution in this formula of successive x= 50, 100 and 125 givesT(50) = 47 C;T(100) = 37.3 C;T(125) = 33.4 C.2. For stationary flow of acompressible medium, e.g. gas, the equation of heat

    inflow (1.41) takes the form

    vSdJ

    dx= d qn.

    In the general case, the gas enthalpyJis a function of pressure and temperatureJ= J(p, T),butforaperfect gas,thatisagasobeyingtheClapeyronlawp = RT,where R is the gas constant, the enthalpy is a function only of temperature

    J=

    Cp

    T+

    const., where Cp

    is the gas specific heat capacity at constantpressure (Cp >Cv;Cp Cv= R). RegardingCp= const. and taking as beforeqn= (T Tex), we transform the last equation to

    CpMdT

    dx= d (T Tex)

    or

    dT

    dx= d

    CpM (T Tex).

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    47/230

    1.8 Mathematical Modeling of One-Dimensional Flows in Pipelines 29

    The solution of this differential equation with initial condition T(0) = T0gives

    T(x) TexT0 Tex

    = exp

    dCpM

    x

    , (1.48)

    which is similar to the solution (1.45) for temperature distribution in anincompressible fluid. The difference consists only in that instead of heatcapacityCvin the solution (1.47) we use heat capacityCpand the temperatureT taking into account the heat of internal friction is absent (for methaneCp= 2230 J kg1 K1;Cv= 1700 J kg1 K1).

    The temperatureTLof the gas at the end of the gas pipeline section is found

    from

    TL TexT0 Tex

    = exp

    dLCpM

    (1.49)

    with regard to which the distribution (1.47) takes the form

    T(x) TexT0 Tex

    =

    TL TexT0 T

    x/L(1.50)

    allowing us to express the temperature through the initial and finaltemperatures.

    Note that for a real gas the enthalpyJ = J(p, T)of the medium depends notonly on temperature but also on pressure, so the equation of heat inflow has amore complex form. By the dependenceJ(p, T)is explained, in particular, the

    Joule-Thomson effect.

    1.8Complete System of Equations for Mathematical Modeling of One-DimensionalFlows in Pipelines

    This system consists of the following equations.

    1. Continuity equation (1.6)

    S

    t +vS

    x = 0;2. Momentum (motion) equation (1.10)

    v

    t+ vv

    x

    = p

    x 4

    dw gsin(x);

    3. Equation of mechanical energy balance (1.15)

    t

    kv2

    2

    + v

    x

    kv2

    2 + P() +gz

    = vg i;

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    48/230

    30 1 Mathematical Modeling of One-Dimensional Flows of Fluid and Gas in Pipelines

    4. Equation of total energy balance (1.37)

    t

    kv

    2

    2 + ein

    S

    +

    x

    kv

    2

    2 +J

    vS

    = d qn vgS

    dz

    dx.

    Thenumber of unknown functionsin this equation is 10:, v,p, S, ein, T, w,i, qn, k, while the number of equations is 4. Therefore there are neededadditional relations to close the system of equations. As closing relations thefollowing relations are commonly used: equation of statep = p(, T), characterizing the properties of the

    transported medium; equation of pipeline stateS = S(p, T)characterizing the deformation ability

    of the pipeline; calorimetric dependencesein= e(p, T)orJ= J(p, T); dependenceqn= (T Tex)or more complex dependences

    representing heat exchange between the transported medium and theenvironment;

    hydraulic dependencew= w(, v, v, d, , . . . ); dependencesk= f(, v, , d, . . . ), ori =f(w),characterizing internal structure of medium flow.

    To obtain closing relations a more detailed analysis of flow processes isneeded. It is also necessary to consider mathematical relations describingproperties of the transported medium and the pipeline in which the mediumflows.

    The division of mechanics in which properties of a transported mediumsuch as viscosity, elasticity, plasticity and other more complex properties arestudied is calledrheology.

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    49/230

    31

    2

    Models of Transported Media

    Algebraic relations connecting parameters of the transported medium such asdensity, pressure, temperature and so on are called equations of state. Each ofthese relations represents of course a certain schematization of the propertiesof the considered medium and is only a modelof a given medium. Let usconsider some models.

    2.1Model of a Fluid

    Byfluidis meant a continuumin which the interaction of the contacting interior

    parts at rest is reduced only to the pressing force of pressure. If fluid particlesinteract along the surface element dwith the unit normal n (Figure 2.1), theforce dFnwith which the fluid particles on one side of the element act on thefluid particles on the other side of the element is proportional to the area d,is directed along the normaln and has a pressing action on them. Then

    dFn = pnd. (2.1)

    The magnitude p of this force does not depend on the surface elementorientation and is calledpressure.

    Thus,p = | dFn/ d|. The absence of tangential friction forces in the state ofrest models the fact that the fluid takes the shape of the vessel it fills.

    Further classification of fluids is dependent on whether or not tangential

    friction forces are taken into account on exposure to fluid flow. In accordance

    Figure 2.1 A scheme of force interactions in a fluid.

    Modeling of Oil Product and Gas Pipeline Transportation.Michael V. LurieCopyright 2008 WILEY-VCH Verlag GmbH & Co. KGaA, WeinheimISBN: 978-3-527-40833-7

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    50/230

    32 2 Models of Transported Media

    with this there are two models: the model of an ideal fluidand the model of aviscous fluid.

    2.2Models of Ideal and Viscous Fluids

    In the model of an ideal fluid it is assumed that tangential friction forcesbetween fluid particles separated by an elementary surface are absent, not onlyin the state of rest but also in the state of flow. Such a schematization

    (or model) of a fluid appears to be very fruitful when the tangentialcomponents of interaction forces, that is friction forces, are far smallerthan their normal components, that is pressure forces. In other cases whenthe friction forces are comparable with or even exceed the pressure forces themodel of an ideal fluid has proved to be inapplicable. Hence expression (2.1)for an ideal fluid is true in the state of rest as well as in the state offlow.

    In themodel of a viscous fluidtangential stresses resulting in fluid flow aretaken into account. Let forexample thefluid layersmove as shown in Figure 2.2.

    Hereu(y)is the velocity distribution in the flow and yis the direction of anormal to the elementary surface d.

    In the model of a viscous fluid it is accepted that the tangential stress

    between the layers of the moving fluid is proportional to the velocity differenceof these layers calculated per unit length of the distance between them, namelyto the velocity gradient du/ dy:

    = du

    dy. (2.2)

    The tangential stressis defined as the friction force between the fluid layersdivided by the area of the surface separating these layers. Then the dimensionof the stressis

    [] =force

    area =

    M L/T2

    L2 =

    M

    L T2.

    In the SI system of units the stress is measured by Pa = kg m1 s2.

    Figure 2.2 Illustration of the definition of the viscousfriction law.

  • 8/13/2019 Lurie_Modeling of Oil Product and Gas Pipeline Transportation_3527408339

    51/230

    2.2 Models of Ideal and Viscous Fluids 33

    The proportionality factor in the law of viscous friction (2.2) is called thefactor of dynamic viscosityor simplydynamic viscosity. Its dimension is

    [] = [] T = M

    L T

    In SI units is measured in kg m1s1 and is expressed through poise P,where 1 P = 0.1 kg m1 s1. For example the dynamic viscosity of water isequal to 0.01 P = 0.001 kg m1 s1 = 1 cP (centipoise).

    The factor of kinematic viscosityor simply kinematic viscosity of a fluid isdefined as the ratio/, therefore

    [] =

    =

    M/(L