72
© 2012 ANSYS, Inc. September 19, 2013 1 Release 14.5 PRACE Autumn School 2013 - Industry Oriented HPC Simulations, September 21-27, University of Ljubljana, Faculty of Mechanical Engineering, Ljubljana, Slovenia Express Introductory Training in ANSYS Fluent Lecture 3 Turbulence Modeling, Heat Transfer & Transient Calculations Dimitrios Sofialidis Technical Manager, SimTec Ltd. Mechanical Engineer, PhD

Fluent-Intro 14.5 L03 Turbulence&HeatTransfer&Transient

Embed Size (px)

DESCRIPTION

Fluent-Intro 14.5 L03 Turbulence&HeatTransfer&Transient

Citation preview

  • 2012 ANSYS, Inc. September 19, 2013 1 Release 14.5

    PRACE Autumn School 2013 - Industry Oriented HPC Simulations, September 21-27,

    University of Ljubljana, Faculty of Mechanical Engineering, Ljubljana, Slovenia

    Express Introductory Training in ANSYS Fluent

    Lecture 3

    Turbulence Modeling, Heat Transfer & Transient Calculations

    Dimitrios Sofialidis

    Technical Manager, SimTec Ltd.

    Mechanical Engineer, PhD

  • 2012 ANSYS, Inc. September 19, 2013 2 Release 14.5

    14.5 Release

    Introduction to ANSYS Fluent

    Lecture 3. Turbulence Modeling, Heat Transfer & Transient Calculations

  • 2012 ANSYS, Inc. September 19, 2013 3 Release 14.5

    Introduction

    Introduction Material Properties Cell Zone Conditions Boundary Conditions Summary

    Lecture Theme: The problem definition for all CFD simulations includes boundary conditions,

    cell zone conditions and material properties. The accuracy of the simulation results depends on defining these properly.

    Learning Aims: You will learn:

    How to define material properties. The different boundary condition types in FLUENT and how to use them. How to define cell zone conditions in FLUENT including solid zones and

    porous media. How to specify wellposed boundary conditions.

    Learning Objectives: You will know how to perform these essential steps in setting up a CFD

    analysis.

    Part 1. Turbulence Modeling

  • 2012 ANSYS, Inc. September 19, 2013 4 Release 14.5

    Lecture Theme:

    The majority of engineering flows are turbulent. Successfully simulating such flows requires understanding a few basic concepts of turbulence theory and modeling. This allows one to make the best choice from the available turbulence models and near wall options for any given problem.

    Learning Aims: You will learn:

    Basic turbulent flow and turbulence modeling theory . Turbulence models and nearwall options available in Fluent. How to choose an appropriate turbulence model for a given problem. How to specify turbulence boundary conditions at inlets.

    Learning Objectives:

    You will understand the challenges inherent in turbulent flow simulation and be able to identify the most suitable model and nearwall treatment for a given problem.

    Introduction

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 5 Release 14.5

    Flows can be classified as either :

    Laminar (Low Reynolds Number)

    Transition (Increasing Reynolds Number)

    Turbulent (Higher Reynolds Number)

    Observation by Osborne Reynolds [1]

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 6 Release 14.5

    Observation by Osborne Reynolds [2]

    The Reynolds number is the criterion used to determine whether the flow is laminar or turbulent.

    The Reynolds number is based on the length scale of the flow:

    Transition to turbulence varies depending on the type of flow:

    External flow:

    Along a surface : ReX > 500000

    Around on obstacle : ReL > 20000

    Internal flow: : ReD > 2300

    . .ReL

    U L

    etc. ,d d, x,L hyd

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 7 Release 14.5

    A turbulent flow contains a wide range of turbulent eddy sizes.

    Turbulent flow characteristics:

    Unsteady, threedimensional, irregular, stochastic motion in which transported quantities (mass, momentum, scalar species) fluctuate in time and space.

    Enhanced mixing of these quantities results from the fluctuations.

    Unpredictability in detail.

    Large scale coherent structures are different in each flow, whereas small eddies are more universal.

    Turbulent Flow Structures [1]

    Small

    structures

    Large

    structures

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 8 Release 14.5

    Turbulent Flow Structures [2]

    Energy is transferred from larger eddies to smaller eddies.

    (Kolmogorov Cascade).

    Large scale contains most of the energy.

    In the smallest eddies, turbulent energy is converted to internal energy by viscous dissipation.

    Energy Cascade Richardson (1922), Kolmogorov (1941)

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 9 Release 14.5

    Backward Facing Step

    Instantaneous velocity contours.

    Timeaveraged velocity contours.

    As engineers, in most cases we do not actually need to see an exact snapshot of the velocity at a particular instant.

    Instead for most problems, knowing the timeaveraged velocity (and intensity of the turbulent fluctuations) is all we need to know. This gives us a useful way to approach modelling turbulence.

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 10 Release 14.5

    If we recorded the velocity at a particular point in the real (turbulent) fluid flow, the instantaneous velocity (U) would look like this:

    Timeaverage of velocity.

    Velo

    city

    U Instantaneous velocity.

    U

    u Fluctuating velocity.

    At any point in time:

    The timeaverage of the fluctuating velocity must be zero:

    BUT, the RMS of u' is not necessarily zero:

    Note you will hear reference to the turbulence energy, k. This is the sum of the three normal fluctuating velocity components: .

    uUU

    0u

    0u 2

    222 wvu

    2

    1k

    Time

    Mean and Instantaneous Velocities

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

    u

  • 2012 ANSYS, Inc. September 19, 2013 11 Release 14.5

    Overview of Computational Approaches

    Different approaches to make turbulence computationally tractable.

    DNS

    (Direct Numerical Simulation)

    Numerically solving the full unsteady NavierStokes equations.

    Resolves the whole spectrum of scales.

    No modeling is required.

    But the cost is too prohibitive!

    Not practical for industrial flows!

    Solves the spatially averaged NS equations.

    Large eddies are directly resolved, but eddies smaller than the mesh are modeled.

    Less expensive than DNS, but the amount of computational resources and efforts are still too large for most practical applications.

    Solve timeaveraged NavierStokes equations.

    All turbulent length scales are modeled in RANS.

    Various different models are available.

    This is the most widely used approach for industrial flows.

    LES

    (Large Eddy Simulation)

    RANS

    (Reynolds Averaged NavierStokes Simulation)

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 12 Release 14.5

    RANS Modeling: Averaging

    Thus, the instantaneous NavierStokes equations may be rewritten as ReynoldsAveraged equations (RANS):

    The Reynolds stresses are additional unknowns introduced by the averaging procedure, hence they must be modeled (related to the averaged flow quantities) in order to close the system of governing equations.

    jiij uuR

    j

    ij

    j

    i

    jik

    ik

    i

    x

    R

    x

    u

    xx

    p

    x

    uu

    t

    u

    (Reynolds stress tensor)

    2

    2

    2

    ' ' ' ' '

    ' ' ' ' '

    ' ' ' ' '

    xx xy xz

    yx yy yz

    zx zy zz

    u u v u w

    u v v v w

    u w v w w

    jiij uuR

    Symmetric tensor 6 unknowns

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 13 Release 14.5

    The Reynolds Stress tensor must be solved.

    The RANS models can be closed in two ways:

    Note: All turbulence models contain empiricism.

    Equations cannot be derived from fundamental principles.

    Some calibrating to observed solutions and 'intelligent guessing' is contained in the models.

    Eddy Viscosity Models

    Boussinesq hypothesis Reynolds stresses are modeled using an eddy (or turbulent) viscosity, T.

    The hypothesis is reasonable for simple turbulent

    shear flows: boundary layers, round jets, mixing layers, channel flows, etc.

    ijij

    k

    k

    i

    j

    j

    ijiij k

    x

    u

    x

    u

    x

    uuuR

    3

    2

    3

    2TT

    RANS Modeling: The Closure Problem

    ReynoldsStress Models (RSM)

    Rij is directly solved via transport equations (modeling is still required for many terms in the

    transport equations).

    RSM is more advantageous in complex 3D

    turbulent flows with large streamline curvature and swirl,

    but the model is more complex, computationally intensive, more difficult to converge than eddy viscosity models.

    jiij uuR

    ijijTijijijjikk

    ji DFPuuux

    uut

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 14 Release 14.5

    Turbulence Models Available in Fluent

    RANS based models

    OneEquation Model

    SpalartAllmaras

    TwoEquation Models

    Standard k

    RNG k

    Realizable k*

    Standard k

    SST k*

    Reynolds Stress Model

    kkl Transition Model

    SST Transition Model

    Detached Eddy Simulation

    Large Eddy Simulation

    Increase in Computational Cost Per Iteration

    * Recommended choice for standard cases.

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 15 Release 14.5

    TwoEquation Models

    Two transport equations are solved, giving two independent scales for calculating t. Virtually all use the transport equation for the turbulent kinetic energy, k.

    Several transport variables have been proposed, based on dimensional arguments, and used for second equation. The eddy viscosity t is then formulated from the two transport variables.

    Kolmogorov, w: t k / w, l k

    1/2 / w, k / w

    w is specific dissipation rate.

    Defined in terms of large eddy scales that define supply rate of k.

    Chou, : t k2 / , l k3/2 /

    Rotta, l: t k1/2l, k3/2 / l

    ijijt

    jkj

    SSSskeSPPx

    k

    xDt

    Dk2)(; 2t

    production dissipation

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 16 Release 14.5

    RANS:EVM: Standard k (SKE) Model

    The Standard k model (SKE) is the most widelyused engineering turbulence model for industrial applications.

    Model parameters are calibrated by using data from a number of benchmark experiments such as pipe flow, flat plate, etc.

    Robust and reasonably accurate for a wide range of applications. Contains submodels for compressibility, buoyancy, combustion, etc.

    Known limitations of the SKE model: Performs poorly for flows with larger pressure gradient, strong separation, high

    swirling component and large streamline curvature.

    Inaccurate prediction of the spreading rate of round jets. Production of k is excessive (unphysical) in regions with large strain rate (for example,

    near a stagnation point), resulting in very inaccurate model predictions.

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 17 Release 14.5

    RANS:EVM: Realizable kepsilon

    Realizable k (RKE) model (Shih): Dissipation rate () equation is derived from the meansquare

    vorticity fluctuation, which is fundamentally different from the SKE.

    Several realizability conditions are enforced for Reynolds stresses.

    Benefits: Accurately predicts the spreading rate of both planar and round jets.

    Also likely to provide superior performance for flows involving rotation, boundary layers under strong adverse pressure gradients, separation, and recirculation.

    OFTEN PREFERRED TO STANDARD k

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 18 Release 14.5

    RANS: EVM: SpalartAllmaras (SA) Model

    SpalartAllmaras is a lowcost RANS model solving a single transport equation for a modified eddy viscosity.

    Designed specifically for aerospace applications involving wallbounded flows . Has been shown to give good results for boundary layers subjected to adverse

    pressure gradients.

    Used mainly for aerospace and turbomachinery applications.

    Limitations: The model was designed for wall bounded flows and flows with mild separation

    and recirculation.

    No claim is made regarding its applicability to all types of complex engineering flows.

  • 2012 ANSYS, Inc. September 19, 2013 19 Release 14.5

    In kw models, the transport equation for the turbulent dissipation rate, , is replaced with an equation for the specific dissipation rate, w.

    The turbulent kinetic energy transport equation is still solved. See Appendix for details of w equation.

    kw models have gained popularity in recent years mainly because:

    Much better performance than k models for boundary layer flows. For separation, transition, low Re effects, and impingement, kw models are more

    accurate than k models.

    Accurate and robust for a wide range of boundary layer flows with pressure gradient.

    Two variations of the kw model are available in Fluent. Standard kw model (Wilcox, 1998). SST kw model (Menter).

    komega Models

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 20 Release 14.5

    Shear Stress Transport (SST) Model. The SST model is an hybrid twoequation model that combines the advantages of

    both k and kw models.

    kw model performs much better than k models for boundary layer flows.

    Wilcox original kw model is overly sensitive to the freestream value (BC) of w, while k model is not prone to such problem.

    The ke and kw models are blended such that the SST model functions like the k close to the wall and the k model in the freestream.

    SST is a good compromise between k and kw models

    SST Model

    Wall

    k

    kw

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 21 Release 14.5

    RANS: Other Models in Fluent

    RNG k model. Model constants are derived from renormalization group (RNG) theory instead of

    empiricism.

    Advantages over the standard k model are very similar to those of the RKE model.

    Reynolds Stress model (RSM). Instead of using eddy viscosity to close the RANS equations, RSM solves transport

    equations for the individual Reynolds stresses.

    7 additional equations in 3D, compared to 2 additional equations with EVM.

    More computationally expensive than EVM and generally difficult to converge. As a result, RSM is used primarily in flows where eddy viscosity models are

    known to fail.

    These are mainly flows where strong swirl is the predominant flow feature, for instance a cyclone (see Appendix).

  • 2012 ANSYS, Inc. September 19, 2013 22 Release 14.5

    The Structure of NearWall Flows.

    Turbulence Near a Wall [1]

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 23 Release 14.5

    Near to a wall, the velocity changes rapidly.

    If we plot the same graph again, where: Log scale axes are used.

    The velocity is made dimensionless, from U/U ( ,, is friction velocity)

    The wall distance vector is made dimensionless.

    Then we arrive at the graph on the next page. The shape of this is generally the same for all flows:

    Turbulence Near a Wall [2]

    Velo

    city,

    U

    Distance from Wall, y

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 24 Release 14.5

    By scaling the variables near the wall the velocity profile data takes on a predictable (universal) form (transitioning from linear to logarithmic behavior).

    Since near wall conditions are often predictable, functions can be used to determine the near wall profiles rather than using a fine mesh to actually resolve the profile.

    These functions are called wall functions.

    Linear

    Logarithmic

    Scaling the nondimensional velocity and nondimensional distance from the wall results in a

    predictable boundary layer profile

    for a wide range of flows.

    Turbulence Near a Wall [3]

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 25 Release 14.5

    Choice of Wall Modeling Strategy.

    In the nearwall region, the solution gradients are very high, but accurate calculations in the nearwall region are paramount to the success of the simulation.

    The choice is between:

    Resolving the Viscous Sublayer.

    First grid cell needs to be at about y+ = 1. This will add significantly to the mesh count. Use a lowReynolds number turbulence model (like komega) . Generally speaking, if the forces on the wall are key to your simulation (aerodynamic drag,

    turbomachinery blade performance) this is the approach you will take.

    Using a Wall Function.

    First grid cell needs to be 30

  • 2012 ANSYS, Inc. September 19, 2013 26 Release 14.5

    In some situations, such as boundary layer separation, logarithmicbased wall functions do not correctly predict the boundary layer profile.

    In these cases logarithmicbased wall functions should not be used.

    Instead, directly resolving the boundary layer can provide accurate results.

    Wall functions applicable. Wall functions not applicable.

    Limitations of Wall Functions

    NonEquilibrium Wall Functions have been developed in Fluent to address this situation but they are very

    empirical. A more rigorous approach is recommended if

    affordable.

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 27 Release 14.5

    Standard Wall Functions. The Standard Wall Function options

    is designed for high Re attached flows.

    The nearwall region is not resolved. Nearwall mesh is relatively coarse.

    NonEquilibrium Wall Functions. For better prediction of adverse pressure gradient flows and

    separation.

    Nearwall mesh is relatively coarse.

    Enhanced Wall Treatment* Used for lowRe flows or flows with complex nearwall phenomena.

    Generally requires a very fine nearwall mesh capable of resolving the nearwall region.

    Can also handle coarse nearwall mesh.

    UserDefined Wall Functions. Can host user specific solutions.

    Choosing a Near Wall Treatment

    * Recommended choice for standard cases.

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 28 Release 14.5

    Inlet Boundary Conditions

    When turbulent flow enters a domain at inlets or outlets (backflow), boundary conditions for k, , and/or must be specified, depending on which turbulence model has been selected.

    Four methods for directly or indirectly specifying turbulence parameters: 1) Explicitly input k, , , or Reynolds stress components (this is the only method that

    allows for profile definition). Note by default, the Fluent GUI enters k=1 [m/s] and =1 [m/s]. These values

    MUST be changed, they are unlikely to be correct for your simulation.

    2) Turbulence intensity and length scale. Length scale is related to size of large eddies that contain most of energy.

    For boundary layer flows: l 0.499. For flows downstream of grid: l opening size.

    3) Turbulence intensity and hydraulic diameter (primarily for internal flows). 4) Turbulence intensity and viscosity ratio (primarily for external flows). The default setting is turbulent intensity=5% and turbulent viscosity ratio=10. This

    should be reasonable for many flows if more precise information not available.

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

    'j

    'iuu

  • 2012 ANSYS, Inc. September 19, 2013 29 Release 14.5

    Inlet Turbulence Conditions

    If you have absolutely no idea of the turbulence levels in your simulation, you could use following values of turbulence intensities and viscosity ratios:

    Usual turbulence intensity ranges from 1% to 5%.

    The default turbulence intensity value of 0.037 (that is, 3.7%) is sufficient for nominal turbulence through a circular inlet, and is a good estimate in the absence of experimental data.

    For external flows, turbulent viscosity ratio of 110 is typically a good value. For internal flows, turbulent viscosity ratio of 10100 it typically a good value.

    For fully developed pipe flow at Re=50,000, the turbulent viscosity ratio is around 100.

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 30 Release 14.5

    RANS Turbulence Model Usage

    Model Behavior and Usage

    SpalartAllmaras Economical for large meshes. Performs poorly for 3D flows, free shear flows, flows with strong separation. Suitable for mildly complex (quasi2D) external/internal flows and boundary layer flows

    under pressure gradient (e.g. airfoils, wings, airplane fuselages, missiles, ship hulls).

    Standard k Robust. Widely used despite the known limitations of the model. Performs poorly for complex flows involving severe pressure gradient, separation, strong streamline curvature. Suitable for initial

    iterations, initial screening of alternative designs, and parametric studies.

    Realizable k* Suitable for complex shear flows involving rapid strain, moderate swirl, vortices, and locally transitional flows (e.g. boundary layer separation, massive separation, and vortex shedding behind bluff bodies, stall

    in wideangle diffusers, room ventilation).

    RNG k Offers largely the same benefits and has similar applications as Realizable. Possibly harder to converge than Realizable.

    Standard k Superior performance for wallbounded boundary layer, free shear, and low Reynolds number flows. Suitable for complex boundary layer flows under adverse pressure gradient and separation (external

    aerodynamics and turbomachinery). Can be used for transitional flows (though tends to predict early

    transition). Separation is typically predicted to be excessive and early.

    SST k* Offers similar benefits as standard k. Dependency on wall distance makes this less suitable for free shear flows.

    RSM Physically the most sound RANS model. Avoids isotropic eddy viscosity assumption. More CPU time and memory required. Tougher to converge due to close coupling of equations. Suitable for complex

    3D flows with strong streamline curvature, strong swirl/rotation (e.g. curved duct, rotating flow

    passages, swirl combustors with very large inlet swirl, cyclones).

    * Recommended choice for standard cases

  • 2012 ANSYS, Inc. September 19, 2013 31 Release 14.5

    RANS Turbulence Model Descriptions

    Model Description

    Spalart

    Allmaras

    A single transport equation model solving directly for a modified turbulent viscosity. Designed specifically

    for aerospace applications involving wallbounded flows on a fine nearwall mesh. Fluents implementation

    allows the use of coarser meshes. Option to include strain rate in k production term improves predictions of

    vortical flows.

    Standard k The baseline twotransportequation model solving for k and . This is the default k model. Coefficients are empirically derived; valid for fully turbulent flows only. Options to account for viscous heating,

    buoyancy, and compressibility are shared with other k models.

    RNG k A variant of the standard k model. Equations and coefficients are analytically derived. Significant changes in the equation improves the ability to model highly strained flows. Additional options aid in predicting

    swirling and low Reynolds number flows.

    Realizable k A variant of the standard k model. Its "realizability" stems from changes that allow certain mathematical constraints to be obeyed which ultimately improves the performance of this model.

    Standard k A twotransportequation model solving for k and , the specific dissipation rate ( / k) based on Wilcox (1998). This is the default k model. Demonstrates superior performance for wallbounded and low

    Reynolds number flows. Shows potential for predicting transition. Options account for transitional, free

    shear, and compressible flows.

    SST k A variant of the standard k model. Combines the original Wilcox model for use near walls and the standard k model away from walls using a blending function. Also limits turbulent viscosity to guarantee

    that T ~ k. The transition and shearing options are borrowed from standard k. No option to include

    compressibility.

    RSM Reynolds stresses are solved directly using transport equations, avoiding isotropic viscosity assumption of other models. Use for highly swirling flows. Quadratic pressurestrain option improves performance for

    many basic shear flows.

  • 2012 ANSYS, Inc. September 19, 2013 32 Release 14.5

    Summary Turbulence Modeling Guidelines

    Successful turbulence modeling requires engineering judgment of: Flow physics. Computer resources available. Project requirements.

    Accuracy.

    Turnaround time.

    Choice of Nearwall treatment.

    Modeling procedure 1. Calculate characteristic Reynolds number and determine whether flow is turbulent. 2. If the flow is in the transition (from laminar to turbulent) range, consider the use of one

    of the turbulence transition models (not covered in this training).

    3. Estimate walladjacent cell centroid y+ before generating the mesh. 4. Prepare your mesh to use wall functions except for lowRe flows and/or flows with

    complex nearwall physics (nonequilibrium boundary layers).

    5. Begin with RKE (Realizable k) and change to SA, RNG, SKW, or SST if needed. Check the tables on previous slides as a guide for your choice.

    6. Use RSM for highly swirling, 3D, rotating flows. 7. Remember that there is no single, superior turbulence model for all flows!

    Introduction Theory Models NearWall Treatments Inlet BCs Summary

  • 2012 ANSYS, Inc. September 19, 2013 33 Release 14.5

    Introduction

    Introduction Material Properties Cell Zone Conditions Boundary Conditions Summary

    Lecture Theme: The problem definition for all CFD simulations includes boundary conditions,

    cell zone conditions and material properties. The accuracy of the simulation results depends on defining these properly.

    Learning Aims: You will learn:

    How to define material properties. The different boundary condition types in FLUENT and how to use them. How to define cell zone conditions in FLUENT including solid zones and

    porous media. How to specify wellposed boundary conditions.

    Learning Objectives: You will know how to perform these essential steps in setting up a CFD

    analysis.

    Part 2. Heat Transfer

  • 2012 ANSYS, Inc. September 19, 2013 34 Release 14.5

    Lecture Theme:

    Heat transfer has broad applications across all industries. All modes of heat transfer (conduction, convection forced and natural, radiation, phase change) can be modeled in Fluent and solution data can be used as input for oneway thermal FSI simulations.

    Learning Aims: You will learn:

    How to treat conduction, convection (forced and natural) and radiation in Fluent.

    How to set wall thermal boundary conditions. How to export solution data for use in a thermal stress analysis (oneway

    FSI).

    Learning Objectives:

    You will be familiar with Fluents heat transfer modeling capabilities and be able to set up and solve problems involving all modes of heat transfer.

    Introduction

    Intro. Energy Equation Wall BCs Applications 1way Thermal FSI Summary

  • 2012 ANSYS, Inc. September 19, 2013 35 Release 14.5

    Heat Transfer Modeling in Fluent

    All modes of heat transfer can be taken into account in the CFD simulation:

    Conduction. Convection (forced and natural). Fluidsolid conjugate heat transfer. Radiation. Interphase energy source (phase change). Viscous dissipation. Species diffusion.

    Intro. Energy Equation Wall BCs Applications 1way Thermal FSI Summary

  • 2012 ANSYS, Inc. September 19, 2013 36 Release 14.5

    To model heat transfer, the energy equation must be activated.

    "Define>Models>Energy"=ON.

    Enabling Heat Transfer

    Intro. Energy Equation Wall BCs Applications 1way Thermal FSI Summary

  • 2012 ANSYS, Inc. September 19, 2013 37 Release 14.5

    Energy Equation Introduction

    Energy transport equation:

    Energy E per unit mass is defined as:

    Pressure work and kinetic energy are always accounted for with compressible flows or when using the densitybased solvers. For the pressurebased solver, they are omitted and can be added through a text command:

    The TUI command define/models/energy? will give more options when enabling the energy equation.

    Conduction Species

    Diffusion

    Viscous

    Dissipation

    Convection Unsteady Enthalpy

    Source/Sink

    Intro. Energy Equation Wall BCs Applications 1way Thermal FSI Summary

  • 2012 ANSYS, Inc. September 19, 2013 38 Release 14.5

    Governing Equation : Convection

    As a fluid moves, it carries heat with it this is called convection. Thus, heat transfer can be tightly coupled to the fluid flow solution. Energy + Fluid flow equations activated means Convection is computed.

    Tbody

    T

    ThTThq body )(

    average heat transfer coefficient (W/m2K) h

    q

    Additionally:

    The rate of heat transfer is strongly dependent of fluid velocity.

    Fluid properties may vary significantly with temperature (e.g., air).

    At walls, heat transfer coefficient is computed by the turbulent thermal wall functions.

    Intro. Energy Equation Wall BCs Applications 1way Thermal FSI Summary

  • 2012 ANSYS, Inc. September 19, 2013 39 Release 14.5

    Governing Equation: Conduction

    Conduction heat transfer is governed by Fouriers Law.

    Fouriers law states that the heat transfer rate is directly proportional to the gradient of temperature.

    Mathematically,

    The constant of proportionality is the thermal conductivity (k). k may be a function of temperature, space, etc.

    for isotropic materials, k is a constant value.

    for anisotropic materials, k is a matrix.

    Thermal conductivity

    Tkq conduction

    Intro. Energy Equation Wall BCs Applications 1way Thermal FSI Summary

  • 2012 ANSYS, Inc. September 19, 2013 40 Release 14.5

    Governing Equation: Viscous Dissipation

    Energy source due to viscous dissipation:

    Also called viscous heating. Often negligible, especially in

    incompressible flow.

    Important when viscous shear in fluid is large (e.g., lubrication) and/or in highvelocity, compressible flows.

    Important when Brinkman number approaches or exceeds unity:

    Tk

    UBr e

    2

    Intro. Energy Equation Wall BCs Applications 1way Thermal FSI Summary

  • 2012 ANSYS, Inc. September 19, 2013 41 Release 14.5

    Thermal Wall Boundary Conditions Six thermal conditions at Walls:

    Heat Flux. Temperature. Convection simulates an external convection environment which is not modeled (user

    prescribed heat transfer coefficient).

    Radiation simulates an external radiation environment which is not

    modeled (userprescribed external

    emissivity and radiation temperature).

    Mixed Combination of Convection and Radiation boundary conditions.

    Via System Coupling Can be used when Fluent is coupled with another system in Workbench using System Couplings.

    )( wextextconv TThq

    )( 44 wextrad TTq

    )()( 44 wextwextextmixed TTTThq

    Intro. Energy Equation Wall BCs Applications 1way Thermal FSI Summary

  • 2012 ANSYS, Inc. September 19, 2013 42 Release 14.5

    Conjugate Heat Transfer (CHT)

    At Fluid/Solid or Fluid/Fluid interface, a wall/wall_shadow is created automatically by Fluent while reading the mesh file.

    By default energy is balanced automatically on the two sides of the walls.

    Possibility to uncouple and to specify different thermal conditions on each side.

    Coolant Flow Past Heated Rods

    Grid

    Velocity Vectors

    Temperature Contours

    Intro. Energy Equation Wall BCs Applications 1way Thermal FSI Summary

  • 2012 ANSYS, Inc. September 19, 2013 43 Release 14.5

    Convection

    Convection heat transfer results from fluid motion. Heat transfer rate can be closely coupled to the fluid flow solution. The rate of heat transfer is always strongly dependent on fluid velocity and

    fluid properties (uncoupled equations can solve energy after flow solution).

    Fluid properties may vary significantly with temperature (coupled equations).

    There are three types of convection. Natural convection: fluid moves due to buoyancy effects. Boiling convection: body is hot enough to cause fluid phase change. Forced convection: flow is induced by some external means.

    Flow and heat transfer past a heated block.

    Example: When cold air flows past a warm body, it draws away warm air near the body and replaces it with cold air.

    Intro. Energy Equation Wall BCs Applications 1way Thermal FSI Summary

  • 2012 ANSYS, Inc. September 19, 2013 44 Release 14.5

    Tcold

    Heat Transfer Coefficient

    In general, h is not constant but is usually a function of temperature gradient.

    There are three types of convection. Natural Convection Fluid moves due to

    buoyancy effects.

    Forced Convection Flow is induced by some external means.

    Boiling Convection Body is hot enough to cause fluid phase change.

    3/14/1 , ThTh

    )( Tfh

    2Th

    Typical

    values of h

    (W/m2K)

    4 4,000

    10 75,000

    300 900,000

    hotT

    hotT

    hotT

    Tcold

    Tcold

    (Laminar) (Turbulent)

  • 2012 ANSYS, Inc. September 19, 2013 45 Release 14.5

    Natural Convection: GravityReference Density

    Momentum equation along the direction of gravity (z in this case).

    In Fluent, a variable change is done for the pressure field as soon as gravity is enabled.

    Hydrostatic reference pressure head and operating pressure are removed from pressure field.

    Momentum equation becomes.

    where P' is the static gauge pressure used by Fluent for boundary conditions and postprocessing.

    This pressure transformation avoids round off error and simplifies the setup of pressure boundary conditions.

    g

    z

    PWW

    t

    W0

    2

    U

    g

    z

    PWW

    t

    W abs

    2U

    zgPPP operatingabs 0

    Intro. Energy Equation Wall BCs Applications 1way Thermal FSI Summary

  • 2012 ANSYS, Inc. September 19, 2013 46 Release 14.5

    Radiation

    Radiative heat transfer is a mode of energy transfer where the energy is transported via electromagnetic waves.

    Thermal radiation covers the portion of the electromagnetic spectrum from 0.1 to 100 m.

    For semitransparent bodies (e.g., glass, combustion product gases), radiation is a volumetric phenomenon since emissions can escape from within bodies.

    For opaque bodies, radiation is essentially a surface phenomena since nearly all internal emissions are absorbed within the body.

    Headlight

    Glass furnace Solar load (HVAC)

    Visible

    Ultraviolet

    X rays

    -5 -4 -3 -2 -1 0 1 2 3 4 5

    rays

    Thermal Radiation

    Infrared

    Microwaves

    log10 (Wavelength), m

    Intro. Energy Equation Wall BCs Applications 1way Thermal FSI Summary

  • 2012 ANSYS, Inc. September 19, 2013 47 Release 14.5

    When to Include Radiation?

    Radiation effects should be accounted for if:

    is of the same order or magnitude than the convective and conductive heat transfer rates. This is usually true at high temperatures but can also be true at lower temperatures, depending on the application.

    Estimate the magnitude of conduction or convection heat transfer in the system as:

    Compare qrad with qconv.

    StefanBoltzmann constant 5.6704108 W/(m2K4)

    4min4maxrad TTq

    bulkwall TThqconv

    Intro. Energy Equation Wall BCs Applications 1way Thermal FSI Summary

  • 2012 ANSYS, Inc. September 19, 2013 48 Release 14.5

    Optical Thickness and Radiation Modeling

    The optical thickness should be determined before choosing a radiation model.

    a Absorption Coefficient (m1) (Note: Absorptivity of a Surface).

    L Mean beam length (m) (a typical distance between 2 opposing walls).

    Optically thin means that the fluid is transparent to the radiation at wavelengths where the heat transfer occurs.

    The radiation only interacts with the boundaries of the domain.

    Optically thick/dense means that the fluid absorbs and reemits the radiation.

    Optical Thickness (a+s)L a= absorption coefficient.

    s=scattering coefficient (often=0).

    L= mean beam length.

    Intro. Energy Equation Wall BCs Applications 1way Thermal FSI Summary

  • 2012 ANSYS, Inc. September 19, 2013 49 Release 14.5

    The radiation model selected must be appropriate for the optical thickness of the system being simulated.

    In terms of accuracy, DO and DTRM are most accurate. S2S is accurate for optical thickness = 0.

    Choosing a Radiation Model

    Available Model Optical

    Thickness

    Surface to surface model (S2S) 0

    Solar load model 0 (except window panes)

    Rosseland > 5

    P1 > 1

    Discrete ordinates model (DO) All

    Discrete Transfer Method (DTRM) All

    Intro. Energy Equation Wall BCs Applications 1way Thermal FSI Summary

  • 2012 ANSYS, Inc. September 19, 2013 50 Release 14.5

    Additional Factors in Radiation Modeling

    Additional guidelines for radiation model selection:

    Scattering. Scattering is accounted for only with

    P1 and DO.

    Particulate effects. P1 and DOM account for radiation

    exchange between gas and

    particulates.

    Localized heat sources. S2S is the best.

    DTRM/DOM with a sufficiently large

    number of rays/ ordinates is most

    appropriate for domain with

    absorbing media. Intro. Energy Equation Wall BCs Applications 1way Thermal FSI Summary

  • 2012 ANSYS, Inc. September 19, 2013 51 Release 14.5

    Phase Change

    Heat released or absorbed when matter changes state.

    There are many different forms of phase change. Condensation. Evaporation. Boiling. Melting/Solidification.

    Multiphase models and/or UDFs are needed to properly model these phenomena.

    Tracks from evaporating liquid pentane droplets and temperature contours for pentane combustion with the nonpremixed combustion model.

    Contours of vapor volume fraction for boiling in a nuclear fuel assembly calculated with the Eulerian multiphase model.

    Intro. Energy Equation Wall BCs Applications 1way Thermal FSI Summary

  • 2012 ANSYS, Inc. September 19, 2013 52 Release 14.5

    Summary

    After activating heat transfer, you must provide: Thermal conditions at walls and flow boundaries. Fluid properties for energy equation.

    Available heat transfer modeling options include: Species diffusion heat source. Combustion heat source. Conjugate heat transfer. Natural convection. Radiation. Periodic heat transfer.

    Double precision solver usually needed to balance accurately the heat transfer rate inside the domain.

    Intro. Energy Equation Wall BCs Applications 1way Thermal FSI Summary

  • 2012 ANSYS, Inc. September 19, 2013 53 Release 14.5

    Introduction

    Introduction Material Properties Cell Zone Conditions Boundary Conditions Summary

    Lecture Theme: The problem definition for all CFD simulations includes boundary conditions,

    cell zone conditions and material properties. The accuracy of the simulation results depends on defining these properly.

    Learning Aims: You will learn:

    How to define material properties. The different boundary condition types in FLUENT and how to use them. How to define cell zone conditions in FLUENT including solid zones and

    porous media. How to specify wellposed boundary conditions.

    Learning Objectives: You will know how to perform these essential steps in setting up a CFD

    analysis.

    Part 3. Transient Calculations

  • 2012 ANSYS, Inc. September 19, 2013 54 Release 14.5

    Lecture Theme:

    Performing a transient calculation is in some ways similar to performing a steady state calculation, but there are additional considerations. More data is generated and extra inputs are required. This lecture will explain these inputs and describe transient data postprocessing.

    Learning Aims: You will learn:

    How to set up and run transient calculations in Fluent. How to choose the appropriate time step size for your calculation. How to postprocess transient data and make animations.

    Learning Objectives:

    Transient flow calculations are becoming increasingly common due to advances in High Performance Computing (HPC) and reductions in hardware costs. You will understand what transient calculations involve and be able to perform them with confidence.

    Introduction

    Introduction Unsteady Flow Time Step Setup PostProcessing Summary

  • 2012 ANSYS, Inc. September 19, 2013 55 Release 14.5

    Motivation

    Nearly all flows in nature are unsteady! Steadystate assumption is possible if we:

    Ignore unsteady fluctuations.

    Employ ensemble/timeaveraging to remove unsteadiness. This is what is done in modeling RANS turbulence.

    In CFD, steadystate methods are preferred. Lower computational cost. Easier to postprocess and analyze.

    Many applications require resolution of unsteady flow: Aerodynamics (aircraft, land vehicles, etc.) vortex shedding. Rotating Machinery rotor/stator interaction, stall, surge. Multiphase Flows free surfaces, bubble dynamics. Deforming Domains incylinder combustion, store separation. Unsteady Heat Transfer transient heating and cooling. Many more

    Introduction Unsteady Flow Time Step Setup PostProcessing Summary

  • 2012 ANSYS, Inc. September 19, 2013 56 Release 14.5

    Origins of Unsteady Flow

    KelvinHelmholtz Cloud Instability.

    Natural unsteadiness. Unsteady flow due to growth of instabilities within the fluid or a nonequilibrium

    initial fluid state. Examples: natural convection flows, turbulent eddies of all scales, fluid waves (gravity

    waves, shock waves). Forced unsteadiness.

    Timedependent boundary conditions, source terms drive the unsteady flow field. Examples: pulsing flow in a nozzle, rotorstator interaction in a turbine stage.

    RotorStator Interaction in an Axial Compressor.

    Introduction Unsteady Flow Time Step Setup PostProcessing Summary

  • 2012 ANSYS, Inc. September 19, 2013 57 Release 14.5

    Unsteady CFD Analysis [1]

    Simulate a transient flow field over a specified time period. Solution may approach:

    Steadystate solution: Flow variables stop changing with time.

    Timeperiodic solution: Flow variables fluctuate with repeating pattern.

    Your goal may also be simply to analyze the flow over a prescribed time interval. Free surface flows.

    Moving shock waves.

    Extract quantities of interest. Natural frequencies (e.g. Strouhal Number). Timeaveraged and/or RMS values. Timerelated parameters (e.g. time required to cool a hot solid, residence time

    of a pollutant).

    Spectral data Fourier Transform (FT).

    Introduction Unsteady Flow Time Step Setup PostProcessing Summary

  • 2012 ANSYS, Inc. September 19, 2013 58 Release 14.5

    Unsteady CFD Analysis [2]

    Transient simulations are solved by computing a solution for many discrete points in time.

    At each time point we must iterate & converge to the solution.

    Time step size = 2 [s]

    Initial Time = 0 [s]

    Total Time = 20 [s]

    Number of time steps = 10

    20 2 4 6 8 10 12 14 16 18

    Time (seconds) Several iterations per time step.

    Introduction Unsteady Flow Time Step Setup PostProcessing Summary

    Resid

    ual

  • 2012 ANSYS, Inc. September 19, 2013 59 Release 14.5

    Convergence Behavior

    Residual plots for transient simulations are not always indicative of a converged solution.

    You should select the time step size such that the residuals reduce by around three orders of magnitude within one time step. This will ensure accurate resolution of transient behavior. For smaller time steps, residuals may only drop by 12 orders of magnitude look for a

    monotonic decrease throughout the time step.

    A residual plot for a simple transient calculation is shown here.

    Introduction Unsteady Flow Time Step Setup PostProcessing Summary

  • 2012 ANSYS, Inc. September 19, 2013 60 Release 14.5

    Selecting the Transient Time Step Size [1]

    The time step size is an important parameter in transient simulations. t must be small enough to resolve timedependent features

    True solution.

    Time

    Variable of

    interest.

    t

    Time

    Variable of

    interest.

    t

    Time step too large to resolve transient changes. Note the solution points generally will not lie on the true

    solution because the true behaviour has not been resolved.

    A smaller time step can

    resolve the true solution. At least, 1020 t per period.

    Introduction Unsteady Flow Time Step Setup PostProcessing Summary

  • 2012 ANSYS, Inc. September 19, 2013 61 Release 14.5

    Selecting the Transient Time Step Size [2]

    and it must be small enough to maintain solver stability.

    The quantity of interest may be changing very slowly (e.g. temperature in a solid), but you may not be able to use a large time step if other quantities (e.g. velocity) have smaller timescales.

    The Courant Number is often used to estimate a time step:

    This gives the number of mesh elements the fluid passes through in one time step.

    Typical values are 110, but in some cases higher values are acceptable.

    Size Cell Typical

    velocityflow sticCharacteriNumber Courant

    t

    Introduction Unsteady Flow Time Step Setup PostProcessing Summary

  • 2012 ANSYS, Inc. September 19, 2013 62 Release 14.5

    Tips & Tricks for the estimation of the time step:

    Usual Case:

    Restrictive but safe for convergence with L=cell characteristic size, V=characteristic velocity.

    Turbomachinery:

    Natural Convection:

    Conduction in solids:

    A smaller time step will typically improve convergence.

    Selecting the Transient Time Step Size [3]

    L = Characteristic length V = Characteristic velocity

    V.

    3

    1

    Lt

    Velocity Rotational

    Blades ofNumber .

    10

    1 t

    1/2T.L) .(g.

    Lt

    Cp

    Lt

    .

    2

    Introduction Unsteady Flow Time Step Setup PostProcessing Summary

  • 2012 ANSYS, Inc. September 19, 2013 63 Release 14.5

    Transient Flow Modeling Workflow Similar setup as steadystate simulation, then:

    1. Enable the unsteady solver.

    2. Set up physical models and boundary conditions as usual. Transient boundary conditions are possible you can use either a UDF or profile to

    accomplish this.

    3. Prescribe initial conditions, according to the type of transient flow: Time History : Cannot be any guess; must be what is the situation at time t=0 [s].

    SteadyState or Cyclic: Best to use a physically realistic initial condition, such as a steady solution.

    4. Assign solver settings and configure solution monitors.

    5. Configure animations and data output/sampling options.

    6. Select time step size and max iterations per time step.

    7. Prescribe the number of time steps.

    8. Run the calculations (Iterate).

    Introduction Unsteady Flow Time Step Setup PostProcessing Summary

  • 2012 ANSYS, Inc. September 19, 2013 64 Release 14.5

    Enabling the Transient Solver To enable the unsteady solver, select the Transient button on the General

    problem setup form.

    Introduction Unsteady Flow Time Step Setup PostProcessing Summary

  • 2012 ANSYS, Inc. September 19, 2013 65 Release 14.5

    Set Up Time Step Size

    Introduction Unsteady Flow Time Step Setup PostProcessing Summary

    Set the time step size. This controls the spacing in time

    between the solution points.

    Options are:

    Number of time steps.

    Maximum number of iterations per time step.

  • 2012 ANSYS, Inc. September 19, 2013 66 Release 14.5

    NonIterative Time Advancement

    Introduction Unsteady Flow Time Step Setup PostProcessing Summary

    Noniterative Time Advancement (NITA) is available for faster computation time (not always guaranteed).

    NITA runs about 2x to 10x as fast as ITA scheme.

    Limitations: Available with pressurebased solvers only.

    NITA schemes are not available for multiphase (except VOF), reacting flows, radiation models, porous media, fan models, etc.

    Consult the Appendix and Fluent Documentation for additional details.

  • 2012 ANSYS, Inc. September 19, 2013 67 Release 14.5

    Unsteady Flow Modeling Options

    Introduction Unsteady Flow Time Step Setup PostProcessing Summary

    Adaptive Time Stepping. Automatically adjusts timestep size

    based on local truncation error analysis.

    Customization possible via UDF.

    Extrapolate Variables. Speed up the transient solution by reducing required sub

    iteration.

    Using Taylor series expansion solution will be extrapolated to the next time level to improve the predicted initial value.

    Data Sampling for Time Statistics. Particularly useful for LES turbulence calculations.

  • 2012 ANSYS, Inc. September 19, 2013 68 Release 14.5

    Physically realistic initial conditions should be used. A converged steady state solution is often used as the

    starting point (for cyclic or steadystate flows).

    If a transient simulation is started from an approximate initial guess, the initial transient will not be accurate. The first few time steps may not converge.

    A smaller time step may be needed initially to maintain solver stability.

    For cyclic behavior the first few cycles can be ignored until a repeatable pattern is obtained.

    Initialization

    2 4 6 8 10 12 14 16

    Time (seconds)

    Resid

    uals

    Introduction Unsteady Flow Time Step Setup PostProcessing Summary

  • 2012 ANSYS, Inc. September 19, 2013 69 Release 14.5

    Tips for Success in Transient Flow Modeling

    With Pressurebased Solvers, use PISO scheme for PressureVelocity Coupling: this scheme provides faster convergence for unsteady flows than the standard SIMPLE approach.

    Select the number of iterations per time step to be around 20. It is better (faster) to reduce the time step size than to do too many iterations per time

    step.

    Remember that accurate initial conditions are as important as boundary conditions for unsteady problems.

    Initial condition should always be physically realistic!

    To iterate without advancing in time, specify zero time steps. This will instruct the solver to converge the current time step only.

    Introduction Unsteady Flow Time Step Setup PostProcessing Summary

  • 2012 ANSYS, Inc. September 19, 2013 70 Release 14.5

    Unsteady Flow Modeling Animations [1]

    You must set up any animations BEFORE performing iterations. Animation frames are written/stored onthefly during calculations.

    Introduction Unsteady Flow Time Step Setup PostProcessing Summary

  • 2012 ANSYS, Inc. September 19, 2013 71 Release 14.5

    CFDPost: Fourier Transform

    FT can be applied to signals to extract frequency data.

    Original Signal.

    FT of Signal Showing

    Dominant Frequency.

    Introduction Unsteady Flow Time Step Setup PostProcessing Summary

  • 2012 ANSYS, Inc. September 19, 2013 72 Release 14.5

    Summary

    No matter what solver is being used. The time step size will be determined by the minimum of:

    The value at which the solution will converge.

    The value needed to resolve mean flow physical time scales (e.g. vortex shedding frequency given by Strouhal number) and/or turbulent eddies (Courant number 1).

    The solution must converge at every time step. Nonconvergence within the very first steps may be acceptable when there is

    a nonphysical initial condition.

    If the solution is not converging, it is almost always more efficient to reduce the time step size.

    Solution monitors are an important tool for ensuring the solution is correct. Watch out for physically unrealistic behavior of monitored variables.

    Second order temporal discretization is almost always preferred.

    Introduction Unsteady Flow Time Step Setup PostProcessing Summary