Winter School # Finite Volume Method - I

Embed Size (px)

Citation preview

  • 8/11/2019 Winter School # Finite Volume Method - I

    1/35

    Finite Volume Method in Heat

    Transfer & Fluid Flow - I

    Professor Parthapratim GuptaChemical Engineering Department

    National Institute of Technology Durgapur

  • 8/11/2019 Winter School # Finite Volume Method - I

    2/35

    ConservationEquations

  • 8/11/2019 Winter School # Finite Volume Method - I

    3/35

    Differential Conservation Equation - 1

    Differential conservation eqn represents

    conservation principle of a physical quantity

    like Mass, Momentum & Energy

    Dependent variablespecific property, i.e.

    property per unit mass, f

    e.g. mass fraction of a species, velocity,

    specific enthalpy

    STgradkdivTUcdivt

    Tcp

    p

    )](.[)(

    )(

  • 8/11/2019 Winter School # Finite Volume Method - I

    4/35

    Differential Conservation Equation - 2

    Infinitesimal

    Control Volume

    Jx, Jy, Jz - Total Flux of the property

    in x , y& zdirections

  • 8/11/2019 Winter School # Finite Volume Method - I

    5/35

    Conservation Principle

    [Rate of change of fin the controlvolume with respect to time]

    +

    [Net efflux of fdue to convection &diffusion out of the control volume]

    =[Net rate of generation of fin the control

    volume]

  • 8/11/2019 Winter School # Finite Volume Method - I

    6/35

    Net Efflux

    through theCV faces in xdirection =

    zyxx

    xJ

    ...

    Jdivz

    zJ

    y

    yJ

    x

    xJ

    Conservation Equation - 1

    Net Efflux fromthe CV per unitvolume =

  • 8/11/2019 Winter School # Finite Volume Method - I

    7/35

    Mass Conservation Equation - 1

    Conservation of mlis expressed as:

    unsteady / accumulation

    per unit volume

    Efflux due to convective &diffusive flux

    SlRate of generation of the species perunit volume per unit time. (+) ve forgeneration & (-) ve for consumption of l

    t

    ml

    )(

    ldll SJUmdiv

    t

    m

    )()(

    )( dl JUmdiv

  • 8/11/2019 Winter School # Finite Volume Method - I

    8/35

    Mass Conservation Equation - 2

    Diffusive flux expressed by Ficks law:

    - Diffusivity of l

    Resultant mass conservation equation:

    Each term represents mass of lper unit volume

    per unit time

    l

    )( lld mgradJ

    lllll SmgraddivUmdiv

    t

    m

    )]([)(

    )(

    ldll SJUmdivt

    m

    )(

    )(

  • 8/11/2019 Winter School # Finite Volume Method - I

    9/35

    Energy Conservation Equation - 1

    )(. TgradkJd

    STgradkdivUhdivt

    h

    )](.[)(

    )(

    SJUhdivt

    hd

    )(

    )(

    Tch p

  • 8/11/2019 Winter School # Finite Volume Method - I

    10/35

    Energy Conservation Equation - 2

    Shgradc

    kdivUhdiv

    t

    h

    p

    )](.[)(

    )(

    )(1)( hgrad

    pcTgrad

    pp c

    STgrad

    c

    kdivUTdiv

    t

    T

    )](.[)(

    )(

    STgradkdivUhdivt

    h

    )](.[)(

    )(

  • 8/11/2019 Winter School # Finite Volume Method - I

    11/35

    Momentum Conservation Equation

    Bx , By , BzBody force per unit volume inx, y & z directions

    Vx,Vy,VzAdditional viscous force tems

    xx VBxpugraddivUudiv

    tu

    )](.[)()(

    yy VB

    y

    pvgraddivUvdiv

    t

    v

    )](.[)(

    )(

    zz VBz

    pwgraddivUwdiv

    t

    w

    )](.[)(

    )(

  • 8/11/2019 Winter School # Finite Volume Method - I

    12/35

    General Conservation Equation - 1

    ff ff

    f

    SgraddivUdivt

    )]([)(

    )(

    Accumulation Diffusion Convection Source

    Equation ff

    Mass ml l

    Energy h k /cp

    Momentum u , v, w

    0)(

    Udiv

    t

    - Continuity Equation

  • 8/11/2019 Winter School # Finite Volume Method - I

    13/35

    General Conservation Equation - 2

    ffff

    fff

    ffff

    Szzyyxx

    wz

    vy

    uxt

    )()()(

    )()()()(

    0)()()(

    w

    zv

    yu

    xt

    Cartesian Coordinates (3-D)

    Conservation Equation:

    Continuity Equation:

  • 8/11/2019 Winter School # Finite Volume Method - I

    14/35

    Finite Volume

    Method

  • 8/11/2019 Winter School # Finite Volume Method - I

    15/35

    Computation Grid

  • 8/11/2019 Winter School # Finite Volume Method - I

    16/35

    Finite Volume Method (FVM) - 1

    Computation domain is divided into a

    number of non-overlapping controlvolumes such that there is one control

    volume surrounding each grid point.

    Values of thedependent variable

    f

    at a finite number

    of locations (grid

    points) in thecalculation domain

    are the basic

    unknowns

  • 8/11/2019 Winter School # Finite Volume Method - I

    17/35

    Finite Volume Method - 2

    The differential equation is integrated

    over each control volume.

    Piecewise profiles expressing variation

    of fbetween grid points are used to

    evaluate required integrals

    Resultant

    equations

    involving fare

    discretized

  • 8/11/2019 Winter School # Finite Volume Method - I

    18/35

    Finite Volume Method - 3

    Discretization equations are algebraic

    equations correlating the unknown valuesof fat chosen grid points. These are

    solved.

    The solutions constitute the computed

    values of fonly. The interpolating profiles

    are used to discretize the differential

    equation only.

    Different interpolating profiles may be

    used to integrate different terms

  • 8/11/2019 Winter School # Finite Volume Method - I

    19/35

    Finite Volume Method - 4

    The most attractive feature of the controlvolume is that the resulting solution

    would imply that the integral

    conservation of quantities such as mass,

    momentum, and energy, is exactly

    satisfied over any group of control

    volume and the whole calculation

    domain. Even a coarse-grid solutionexhibits exact integral balance.

  • 8/11/2019 Winter School # Finite Volume Method - I

    20/35

    Finite Volume Method - 5

    When the number of grid pointsbecomes very large, the solution of

    discretization equations are expected to

    approach the exact solution of the

    corresponding differential equations.

  • 8/11/2019 Winter School # Finite Volume Method - I

    21/35

    Finite Volume Method - 6

  • 8/11/2019 Winter School # Finite Volume Method - I

    22/35

    Finite Volume Method - 7

    ( ){ .( ) } { .[ ] }

    t t t t

    t V V t V V

    dV U dV dt dV S dV dt

    t f f

    f f f

    ( ){ ( ). } { ( ). }

    t t t t

    t V S t S V

    dV U ndA dt ndA S dV dt

    t

    f f

    f f f

    Integrating the governing differential

    equation over the control volume & thetime interval

    Using Gauss Divergence

    theorem the volume

    integrals are converted tosurface integrals

  • 8/11/2019 Winter School # Finite Volume Method - I

    23/35

    Finite Volume Method - 8

    eA

    e fdAF

    Flowrate through the CV boundary

    denoted e (east face of CV), Fe

    f is component ofconvective/ diffusive

    flux in the direction

    normal to face e& A eis the area of face e.

    eee AfF

  • 8/11/2019 Winter School # Finite Volume Method - I

    24/35

    Finite Volume Method - 9

    The last Volume integral is

    SfPis the source

    term Sfat cellcenter P, and V

    is volume of

    control volume

    VSdVS PV

    ff

  • 8/11/2019 Winter School # Finite Volume Method - I

    25/35

    Finite Volume Method - 9

    ( ){ ( ). } { ( ). }

    t t t t

    t V S t S V

    dV U ndA dt ndA S dV dt

    t f f

    f f f

    VP

    Sys

    Ayn

    Axw

    Axe

    A

    susAnunAwuwAeueAtV

    ff

    ff

    ff

    ff

    f

    ffffff

    )()()()(

    )()()()(]0)()[(

  • 8/11/2019 Winter School # Finite Volume Method - I

    26/35

    Finite Volume Method10

    A linear profile between the neighboring

    nodes assumed. The gradient of fat facee can be written

    bNANSASEAEWAPAP W fffff

    Replacing all terms in the integral and

    rearranging

  • 8/11/2019 Winter School # Finite Volume Method - I

    27/35

    1-D Steady

    Diffusion

  • 8/11/2019 Winter School # Finite Volume Method - I

    28/35

    1-D Steady Diffusion - 1

    0)( Sdx

    d

    dx

    d f

    Boundary values

    at A & B specified.(Dirichlet

    condition)

    Grid Generation: A number of interior node

    points (W, P, E, ) are placed between the

    boundary grid points A & B. Control volume

    faces are placed mid way between the

    adjacent node points.

    Computation Grid

  • 8/11/2019 Winter School # Finite Volume Method - I

    29/35

    1-D Steady Diffusion - 2

    Node Points

    P - CentralW - Western

    E - Eastern

    Control Volume Faces

    eeastern

    w - western

    Control Volume

    dxWPDistance between W & P

    dxPEDistance between P & E

    xWidth of the control volume

  • 8/11/2019 Winter School # Finite Volume Method - I

    30/35

    1-D Steady Diffusion - 3

    0)( Sdx

    d

    dx

    d f

    Discretization Control Volume

    Net Diffusive transfer = Generation

    Balance of fover the control volume

    So, even discretized equation in FVM has a

    clear physical interpretation.

    S - Average value of S over control volume

  • 8/11/2019 Winter School # Finite Volume Method - I

    31/35

    1-D Steady Diffusion - 4

    Control Volume

    Diffusive terms:

    Source terma linear function off

  • 8/11/2019 Winter School # Finite Volume Method - I

    32/35

    1-D Steady Diffusion - 5

  • 8/11/2019 Winter School # Finite Volume Method - I

    33/35

    The Four Basic Rules - 1

    (1) Consistency at Contro l Volume Faces

    (Conservat iveness) :When a face is

    common to two adjacent control volumes,

    the flux across it must be represented by

    the same expression in the discretizationequations for the two control volumes.

  • 8/11/2019 Winter School # Finite Volume Method - I

    34/35

    The Four Basic Rules - 2(2) Boundedness:

    ( 1 at all nodes,

  • 8/11/2019 Winter School # Finite Volume Method - I

    35/35

    The Four Basic Rules - 3

    (3) Negative Slope L inearization Of TheSou rce Term:When the source term is

    linearized as , the co-efficient

    SP must always be less than or equal to

    zero.

    (4) Sum Of The Neighbour ing Co-ef fic ients :

    , for situations where thedifferential equation continues to remain

    satisfied after a constant is added to the

    d d t i bl

    uS

    PPSVS f

    anbap