Simulation of Laminar and Turbulent Flow inside a Pipe Using Ansys Fluent

22
SIMULATION OF LAMINAR AND TURBULENT FLOW INSIDE A PIPE BY: ANDI FIRDAUS SUDARMA (432107963) LECTURER: DR. JAMEL ALI ORFI SIMULATION PROJECT NUMERICAL METHODS IN THERMOFLUIDS (ME 578) MAGISTER PROGRAM OF MECHANICAL ENGINEERING COLLEGE OF ENGINEERING KING SAUD UNIVERSITY RIYADH - KSA FIRST SEMESTER 1433/1434 H

description

The steady-state three-dimensional water flows inside a pipe are investigated by the numerical simulation using Fluent. Both problems, laminar and turbulent, are simulated under the same model. The solutions are compared with experimental results. The results are illustrated in form of velocity profile and maximum velocity along the pipe.

Transcript of Simulation of Laminar and Turbulent Flow inside a Pipe Using Ansys Fluent

  • SIMULATION OF LAMINAR AND TURBULENT FLOW INSIDE A PIPE

    BY:

    ANDI FIRDAUS SUDARMA

    (432107963)

    LECTURER:

    DR. JAMEL ALI ORFI

    SIMULATION PROJECT

    NUMERICAL METHODS IN THERMOFLUIDS (ME 578)

    MAGISTER PROGRAM OF MECHANICAL ENGINEERING

    COLLEGE OF ENGINEERING

    KING SAUD UNIVERSITY

    RIYADH - KSA

    FIRST SEMESTER 1433/1434 H

  • i

    ABSTRACT

    The steady-state three-dimensional water flows inside a pipe are investigated by the

    numerical simulation using Fluent. Both problems, laminar and turbulent, are simulated

    under the same model. The solutions are compared with experimental results. The results are

    illustrated in form of velocity profile and maximum velocity along the pipe.

  • ii

    TABLE OF CONTENT

    Abstract ....................................................................................................................................... i

    Table of Content ........................................................................................................................ ii

    Nomenclature ........................................................................................................................... iii

    I. Introduction ........................................................................................................................... 1

    II. Theoritical Analysis ............................................................................................................. 2

    III. Numerical Simulation ......................................................................................................... 7

    IV. Result and Discussion ....................................................................................................... 13

    V. Conclusions. ....................................................................................................................... 17

    References ................................................................................................................................ 18

  • iii

    NOMENCLATURE

    A Area . m2

    D Diameter of tube m

    L Channel length .. m

    P Pressure . Pa

    R Radius of tube m

    r Radial coordinate

    Re Reynolds number,

    u Axial temperature m / s

    V Volume m3

    x Axial coordinate ... m

    Greek symbols

    Dynamic viscosity Kg / ms

    Kinematic viscosity .. m2 / s

    Density . Kg / m3

  • Simulation Project Numerical Methods in Thermo-Fluids (ME 578)

    1

    I. INTRODUCTION

    Flows completely bounded by solid surfaces are called internal ows. Thus internal ows

    include many important and practical ows such as those through pipes, ducts, nozzles,

    diffusers, sudden contractions and expansions, valves, and ttings. The pipe networks are

    common in any engineering industry. It is important to know the development of a flow at the

    pipe entrance and pressure drop taking place along the pipe length. The flow of fluids in a

    pipe is widely studied fluid mechanics problem. The correlations for entry length and

    pressure drop are available in terms of flow Reynolds number.

    Internal ows may be laminar or turbulent. Some laminar ow cases may be solved

    analytically. In the case of turbulent ow, analytical solutions are not possible, and we must

    rely heavily on semi-empirical theories and on experimental data. For internal ows, the ow

    regime (laminar or turbulent) is primarily a function of the Reynolds number. In this project

    we will only consider incompressible ows; hence we will study the ow of water inside a

    smooth surface pipe.

    1.1. Problem Description

    The purpose of this project is to illustrate the setup and solution of a 3D turbulent and laminar

    fluid flow in a pipe using Fluent. This project will consider the flow inside a pipe of diameter

    1 m and a length of 20 m (Figure 1). The geometry is symmetric therefore this project will

    model only half portion of the pipe. Water enters from the inlet boundary with a various

    velocity (depend on Reynolds number). The flow Reynolds number is 8500 and 300 to

    illustrate the turbulent and laminar flow respectively.

    Figure 1. Problem description

    The objectives of this study are examining the results, such as velocity profile and entrance

    length, compare them with experimental data and visualize the flow using animation tools.

    Pipe

    Inlet Outlet

  • Simulation Project Numerical Methods in Thermo-Fluids (ME 578)

    2

    II. THEORITICAL ANALYSIS

    The problem that will be discussed in this project is a two-dimensional single phase forced

    convection flow in a pipe. To obtain the equations that govern the current problem, the

    following assumptions are made for the analysis;

    i) Steady flow

    ii) Constant transport properties of fluid

    iii) Incompressible fluid flow

    iv) Newtonian fluid

    v) Continuum fluid

    Figure 2. Schematic diagram.

    2.1. Laminar Velocity Profile

    In the first place we examine the flow of fluid inside the pipe set in motion. The governing

    equations of this problem are continuity, momentum and energy equations. To get the

    velocity profile inside the pipe, the governing equations, namely continuity, momentum and

    energy equations have been derived based on the above-mentioned assumptions.

    (Continuity equation) 0D

    VDt

    (2.1)

    (Momentum eq. in x-direction) 21x

    x x x

    u PV u g u

    t x

    (2.2)

    Begin by formulating two-dimensional continuity equation (2.1) for conditions mentioned

    above which can be written with respect to cylindrical coordinates as;

    1 1

    0r xr u u ur r r x

    (2.3)

    Since is constant, we will obtain 0V . Where 0ru u and the velocity is not

    changing with respect to x, its only a function of r ( )u u r . An important feature of hydrodynamic conditions in the fully developed region is the gradient of axial velocity

    2

  • Simulation Project Numerical Methods in Thermo-Fluids (ME 578)

    3

    component is everywhere zero. And from the assumption, there is no velocity in the r and

    directions, i.e, 0ru u , which gives

    0u

    x

    (2.4)

    The next step is momentum equation formulation. The flow is in the x-direction xu , so

    0ru u . Where 0xg , ( )x xu u r , 0xu t (steady).

    We can write momentum equation (2.2) as;

    21

    x x

    PV u u

    x

    (2.5)

    Expanding the momentum equation,

    xr

    uu

    r

    0

    1 xu

    r

    0

    xx

    uu

    x

    0 2

    2 2

    1 1 1x xu uP rx r r r r

    02

    2

    xu

    x

    0

    Using continuity equation (2.5) and assumption (iii), where xu u , we can write above

    equation as follows;

    1 1u Pr

    r r r x

    (2.6)

    The boundary conditions for the internal flow inside a pipe problem are;

    Boundary Condition 1 at 0r

    , 0u r (2.7)

    Boundary Condition 2 at r R

    , 0su u (2.8)

    The momentum equation can be solved analytically to be used in the energy equation.

    Multiplying energy equation (2.6) by r and integrating it twice with respect to r,

    2

    12

    u r Pr c

    r x

    (2.9)

    2

    1 2ln4

    r Pu c r c

    x

    (2.10)

    The integration constants may be determined by invoking the boundary conditions

    For 0

    0r

    u

    r

    will give the result 1 0c (2.11)

  • Simulation Project Numerical Methods in Thermo-Fluids (ME 578)

    4

    And for 0r R su u (no slip flow condition), will give the result

    2

    24

    R Pc

    x

    (2.12)

    Substituting equation (2.11) and (2.12) into equation (2.10) will gives

    2 21

    4

    Pu r R

    x

    (2.13)

    Then, we formulate the dimensionless form of velocity. Where mu Q A and

    0 0

    2

    R R

    Q u dA u r dr (2.14)

    Substitute equation (2.13) into equation (2.14).

    2 20

    12

    4

    RP

    Q r R r drx

    (2.15)

    And substitute equation (2.13) into mu Q A

    2

    4m

    R Pu U

    x

    (2.16)

    Substitute equation (2.13) and (2.16) to obtain dimensionless variable

    2

    1m

    u r

    u R

    (2.17)

    Equation (2.17) can be used to obtain laminar velocity profile inside the pipe.

    2.2. Turbulent Velocity Profile

    Except for ows of very viscous uids in small diameter ducts, internal ows generally are

    turbulent. As noted in the relation of shear stress distribution in fully developed pipe ow, in

    turbulent ow there is no universal relationship between the stress eld and the mean velocity

    eld. Thus, for turbulent ows we are forced to rely on experimental data.

    The velocity prole for turbulent ow through a smooth pipe may also be approximated by

    the empirical power-law equation

    1

    1nu r

    U R

    (2.18)

  • Simulation Project Numerical Methods in Thermo-Fluids (ME 578)

    5

    Where the exponent (n) is varies with the Reynolds number. Data from Hinze suggest that the

    variation of power-law exponent n with Reynolds number (based on pipe diameter, D, and

    centerline velocity, U) for fully developed ow in smooth pipes is given by,

    1.7 1.8log Reun (2.19)

    For 2

    Velocity proles for n = 6 and n = 10 are shown in Figure 3. The parabolic prole for fully

    developed laminar ow is included for comparison. It is clear that the turbulent prole has a

    much steeper slope near the wall.

    Figure 3. Velocity profiles for fully developed flow.

    2.1. Reynolds Number Correlation

    As discussed previously in introduction, the pipe ow regime (laminar or turbulent) is

    determined by the Reynolds number, where;

    ReUD

    (2.20)

    At low ow rates (low Reynolds numbers) the ow is laminar and at high rates the flow is

    transition into or turbulent. Laminar flow in a pipe may be only for Reynolds numbers less

    than 2300.

  • Simulation Project Numerical Methods in Thermo-Fluids (ME 578)

    6

    Figure 4. Flow in the entrance region of a pipe

    The length of the tube between the start and the point where the fully developed flow begins

    is called the Entrance Length, denoted by Le. The entrance length is a function of the

    Reynolds Number Re of the flow.

    min 0.06ReLa arLe D (2.21)

    Where D is the tube diameter.

    To restore a turbulent flow to parabolic flow, the entrance length is by approximation:

    1/64.4 ReTurbulentLe D (2.22)

  • Simulation Project Numerical Methods in Thermo-Fluids (ME 578)

    7

    III. NUMERICAL SIMULATION

    The grid (mesh) that used in this project is already included in Fluent Tutorial-4. Using the

    same mesh to generate 2 model, that is;

    Model A. Laminar flow with Re = 300

    Model B. Turbulent flow with Re = 8500

    Reynolds number approximation is based on expectation that fully developed region will be

    occurring before the flow reaching the pipe outlet.

    Figure 5. Grid display

    The problem is solved in steady state using pressure based solver. Definition of viscous

    model is shown in figure (6), where the laminar and k-epsilon (2 eqn.) option are selected for

    laminar and turbulent problem respectively.

  • Simulation Project Numerical Methods in Thermo-Fluids (ME 578)

    8

    Figure 6. Setting of viscous model

  • Simulation Project Numerical Methods in Thermo-Fluids (ME 578)

    9

    The fluid that flows inside the pipe is water. The properties of water are obtained from Fluent

    database.

    Figure 7. Material properties

    The models are made with boundary conditions at inlet (at X = 0 m) and outlet (at X = 20 m)

    is Inlet and Outlet respectively. The boundary condition for surface and axis of the pipe is

    Wall and Axis respectively. Axis boundary condition acts like Symmetry boundary

    condition but it is used for axisymmetric problem such as flow in a pipe.

    The velocity inlet is obtained by using equation (2.20). The velocity is 0.0003 and 0.0085 m/s

    for model A and model B, respectively. Where Turbulent Intensity can be calculated as;

    1/8. . 0.16 ReT I (2.23)

  • Simulation Project Numerical Methods in Thermo-Fluids (ME 578)

    10

    The CFD calculation is carried out using the SIMPLE algorithm for pressure-velocity

    coupling and the second order upwind differencing scheme for momentum equation and

    turbulent term. These settings are shown in solution controls window figure (8).

    Figure 8. Settings of algorithm for pressure-velocity coupling and spatial discretization

    The convergence data are plotted to represent the fully developed velocity profile at outlet

    and maximum velocity along the centerline.

    Model A

    Model B

  • Simulation Project Numerical Methods in Thermo-Fluids (ME 578)

    11

    Figure 9. Fully developed velocity profile at outlet for laminar

    -0.5

    -0.4

    -0.3

    -0.2

    -0.1

    0.0

    0.1

    0.2

    0.3

    0.4

    0.5

    0 0.0001 0.0002 0.0003 0.0004 0.0005 0.0006

    Rad

    ius

    (m)

    Velocity (m/s)

    Model A

    Model A

  • Simulation Project Numerical Methods in Thermo-Fluids (ME 578)

    12

    Figure 10. Fully developed velocity profile at outlet for turbulent

    -0.5

    -0.4

    -0.3

    -0.2

    -0.1

    0.0

    0.1

    0.2

    0.3

    0.4

    0.5

    0 0.002 0.004 0.006 0.008 0.01 0.012

    Rad

    ius

    (m)

    Velocity (m/s)

    Model B

    Model B

  • Simulation Project Numerical Methods in Thermo-Fluids (ME 578)

    13

    IV. RESULT AND DISCUSSION

    The maximum velocities at centerline are presented in the chart below. Where fully

    developed region will occur after the flow reaching entrance length (Le).

    Figure 11. Maximum velocity of laminar flow

    The entrance length of laminar flow can be calculated using equation (2.21). For Re=300, the

    entrance length may as long as 18 m. Comparing with the result obtained from simulation

    (figure 11), at length of the pipe above 18 m there velocity is still developing with margin of

    increment 0.052 percent.

    0.0003

    0.00035

    0.0004

    0.00045

    0.0005

    0.00055

    0.0006

    0 2 4 6 8 10 12 14 16 18 20

    Max

    imu

    m V

    elo

    city

    (m

    /s)

    Pipe Length (m)

  • Simulation Project Numerical Methods in Thermo-Fluids (ME 578)

    14

    Figure 12. Maximum velocity of turbulent flow

    For turbulent flow, entrance length can be approximated using equation (2.22). Where at

    Re=8500, the flow approximated will be fully developed at 18 m length of pipe. Comparing

    with the result obtained from simulation (figure 12), at length of the pipe above 19.8 m there

    velocity is still developing with margin of increment 0.0384 percent.

    Using dimensionless form of velocity profile, we comparing experimental data from equation

    (2.17) for laminar and equation (2.18) for turbulent and data that obtained from the

    simulation. The results are illustrated in the figure (13) for laminar and (14) for turbulent.

    0.008

    0.0085

    0.009

    0.0095

    0.01

    0.0105

    0 2 4 6 8 10 12 14 16 18 20

    Max

    imu

    m V

    elo

    city

    (m

    /s)

    Pipe Length (m)

  • Simulation Project Numerical Methods in Thermo-Fluids (ME 578)

    15

    Figure 13. Dimensionless velocity profile of laminar flow

    Figure 14. Dimensionless velocity profile of turbulent flow

    0.0

    0.1

    0.2

    0.3

    0.4

    0.5

    0.6

    0.7

    0.8

    0.9

    1.0

    0 0.2 0.4 0.6 0.8 1

    r\R

    u/U

    Numerical

    Experimental

    0.0

    0.1

    0.2

    0.3

    0.4

    0.5

    0.6

    0.7

    0.8

    0.9

    1.0

    0 0.2 0.4 0.6 0.8 1

    r\R

    u/U

    Numerical

    Experimental

  • Simulation Project Numerical Methods in Thermo-Fluids (ME 578)

    16

    The dimensionless velocity profile comparison for laminar flow shows that the velocities

    obtained from the simulation are similar with the theoretical data. But the turbulent flow chart

    shows that there is unmatched data between experimental and simulations. This result happen

    when the problem not simulated correctly. After evaluating the turbulent model, we found

    that the turbulent intensity value was 4.8%, where it should be 0.052% base on equation

    (2.23).

  • Simulation Project Numerical Methods in Thermo-Fluids (ME 578)

    17

    V. CONCLUSIONS.

    In general, for the above three-dimensional with two boundary conditions stated, Reynolds

    number affects the velocity profile. When Reynolds number is increasing, the entrance length

    will also be increased. This situation is valid for both cases, laminar and turbulent.

    The velocity profile of laminar flow is similar with parabolic curve, and at the turbulent flow,

    there is extreme different between internal flow with the flow near the wall.

  • 18

    REFERENCES

    [1] Fluent Inc., Tutorial 4. Simulation of Flow Development in a Pipe, 2006

    [2] Fox, R. W., McDonald, A. T., Pritchard, P. J., Introduction to Fluid Mechanics, 6th ed.,

    John Wiley & Sons, New York, 2003.