CFD Inside 5

Embed Size (px)

Citation preview

  • 7/31/2019 CFD Inside 5

    1/56

    1

    CFD Inside Finite Volume Method (2)

    Applied CFD

    Santiago Lan Beatove

    Adapted from material of A. Bakker Applied CFD & An Introduction to CFDof S. Lan

  • 7/31/2019 CFD Inside 5

    2/56

    2

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    3/56

    3

    Pressure-velocity coupling in steady flows

    The convection-diffusion equations are transport equations for allvariables, except for the pressure.

    Gradients in the pressure appear in the momentum equations,thus the pressure field needs to be calculated in order to be ableto solve these equations.

    If the flow is compressible:

    The continuity equation can be used to compute density. Temperature follows from the enthalpy equation.

    Pressure can then be calculated from the equation of state p=p(,T).

    However, if the flow is incompressible the density is constant andnot linked to pressure.

    The solution of the Navier-Stokes equations is then complicatedby the lack of an independent equation for pressure.

  • 7/31/2019 CFD Inside 5

    4/56

    4

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    5/56

    5

    Pressure-velocity coupling in steady flows

    In order to maintain consistency among the numerical approxima-

    tions used, it is best to derive the equation for the pressure from thediscretised momentum and continuity equations rather than by appro-

    ximating the Poisson equation

  • 7/31/2019 CFD Inside 5

    6/56

    6

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    7/56

    7

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    8/56

    8

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    9/56

    9

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    10/56

    10

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    11/56

    11

    Pressure-velocity coupling in steady flows

    x

    VA

    =

  • 7/31/2019 CFD Inside 5

    12/56

    12

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    13/56

    13

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    14/56

    14

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    15/56

    15

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    16/56

    16

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    17/56

    17

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    18/56

    18

    Pressure-velocity coupling in steady flows

    Notes on underrelaxation

    Underrelaxation factors are there to suppress oscillations in the

    flow solution that result from numerical errors. Underrelaxation factors that are too small will significantly slow

    down convergence, sometimes to the extent that the user thinksthe solution is converged when it really is not.

    The recommendation is to always use underrelaxation factorsthat are as high as possible, without resulting in oscillations ordivergence.

    When the solution is converged but the pressure residual is stillrelatively high, the factors for pressure and momentum can belowered to further refine the solution.

  • 7/31/2019 CFD Inside 5

    19/56

    19

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    20/56

    20

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    21/56

    21

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    22/56

    22

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    23/56

    23

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    24/56

    24

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    25/56

    25

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    26/56

    26

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    27/56

    27

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    28/56

    28

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    29/56

    29

    Pressure-velocity coupling in steady flows

    Effect of under-relaxation parameter for pressure, p

    CDS, 32x32 CV uniform grid

    Number of iterations required to reduce the residual 3 orders of magnitude

    Similar behaviour for the two kind of grids!!

  • 7/31/2019 CFD Inside 5

    30/56

    30

    Pressure-velocity coupling in steady flows

    Effect of under-relaxation parameter for velocity, u

    Number of iterations required to reduce the residual 3orders of magnitude

    Similar behaviour for the two kind of grids!!

  • 7/31/2019 CFD Inside 5

    31/56

    31

    Pressure-velocity coupling in steady flows

  • 7/31/2019 CFD Inside 5

    32/56

    32

    ho

    t

    Pressure-velocity coupling in steady flows

    col

    d

  • 7/31/2019 CFD Inside 5

    33/56

    33

    The iterative process is repeated until the change in the variablefrom one iteration to the next becomes so small that the solutioncan be considered converged.

    At convergence:

    All discrete conservation equations (momentum, energy, etc.) areobeyed in all cells to a specified tolerance.

    The solution no longer changes with additional iterations.

    Mass, momentum, energy and scalar balances are obtained.

    Residuals measure imbalance (or error) in conservationequations.

    The absolute residual at point P is defined as:

    baaRnb nbnbPPP

    =

    Convergence

  • 7/31/2019 CFD Inside 5

    34/56

    34

    Convergence

    Residuals are usually scaled relative to the local value of the

    property in order to obtain a relative error:

    They can also be normalized, by dividing them by the maximum

    residual that was found at any time during the iterative process. An overall measure of the residual in the domain is:

    It is common to require the scaled residuals to be on the order of10-3 to 10-4 or less for convergence.

    PP

    nb nbnbPP

    scaledP

    abaaR

    = ,

    =

    cellsall

    PP

    cellsall

    nb nbnbPP

    a

    baa

    R

  • 7/31/2019 CFD Inside 5

    35/56

    35

    Convergence: monitor residuals

    If the residuals have met thespecified convergence criterionbut are still decreasing, the

    solution may not yet be fullyconverged.

    If the residuals never meet theconvergence criterion, but are no

    longer decreasing and othersolution monitors do not changeeither, the solution is converged.

    Residuals are not the solution!Low residuals do notautomatically mean a correctsolution, and high residuals donot automatically mean a wrongsolution.

    Final residuals are often higherwith higher order discretizationschemes than with first order

    discretization. That does notmean that the first order solutionis better!

    Residuals can be monitored

    graphically also.

  • 7/31/2019 CFD Inside 5

    36/56

    36

    Convergence: other monitors

    For models whose purpose is tocalculate a force on an object,the predicted force itself should

    be monitored for convergence. E.g. for an airfoil, one should

    monitor the predicted dragcoefficient.

    Overall mass balance should besatisfied.

    When modeling rotating

    equipment such as turbofans ormixing impellers, the predictedtorque should be monitored.

    For heat transfer problems, the

    temperature at importantlocations can be monitored.

  • 7/31/2019 CFD Inside 5

    37/56

    37

    Solution of discretised equations

  • 7/31/2019 CFD Inside 5

    38/56

    38

    Solution of discretised equations

    =nb

    PnbnbnbPbaa

  • 7/31/2019 CFD Inside 5

    39/56

    39

    Solution of discretised equations

  • 7/31/2019 CFD Inside 5

    40/56

    40

    Solution of discretised equations

  • 7/31/2019 CFD Inside 5

    41/56

    41

    Solution of discretised equations

  • 7/31/2019 CFD Inside 5

    42/56

    42

    Solution of discretised equations

  • 7/31/2019 CFD Inside 5

    43/56

    43

    Finite Volume Method for unsteady flows

  • 7/31/2019 CFD Inside 5

    44/56

    44

    Finite Volume Method for unsteady flows

  • 7/31/2019 CFD Inside 5

    45/56

    45

    Finite Volume Method for unsteady flows

  • 7/31/2019 CFD Inside 5

    46/56

    46

    Finite Volume Method for unsteady flows

  • 7/31/2019 CFD Inside 5

    47/56

    47

    Finite Volume Method for unsteady flows

  • 7/31/2019 CFD Inside 5

    48/56

    48

    Finite Volume Method for unsteady flows

    Fi i V l M h d f d fl

  • 7/31/2019 CFD Inside 5

    49/56

    49

    Finite Volume Method for unsteady flows

    Fi it V l M th d f t d fl

  • 7/31/2019 CFD Inside 5

    50/56

    50

    Finite Volume Method for unsteady flows

    (Versteeg & Malalasekera, 1995)

    Fi it V l M th d f t d fl

  • 7/31/2019 CFD Inside 5

    51/56

    51

    Finite Volume Method for unsteady flows

    Fi it V l M th d f t d fl

  • 7/31/2019 CFD Inside 5

    52/56

    52

    Finite Volume Method for unsteady flows

    Finite Volume Method for unsteady flows

  • 7/31/2019 CFD Inside 5

    53/56

    53

    Finite Volume Method for unsteady flows

    Finite Volume Method for unsteady flows

  • 7/31/2019 CFD Inside 5

    54/56

    54

    Finite Volume Method for unsteady flows

    Finite Volume Method for unsteady flows

  • 7/31/2019 CFD Inside 5

    55/56

    55

    Finite Volume Method for unsteady flows

    Finite Volume Method for unsteady flows

  • 7/31/2019 CFD Inside 5

    56/56

    56

    Finite Volume Method for unsteady flows