Solver Settings. Introductory FLUENT Training ANSYS, Inc. All rights reserved. ANSYS, Inc. Proprietary

Similar documents
Fluent User Services Center

Introduction to Computational Fluid Dynamics Mech 122 D. Fabris, K. Lynch, D. Rich

Introduction to C omputational F luid Dynamics. D. Murrin

Modeling External Compressible Flow

Introduction to ANSYS CFX

Introduction to ANSYS SOLVER FLUENT 12-1

Tutorial 17. Using the Mixture and Eulerian Multiphase Models

A COUPLED FINITE VOLUME SOLVER FOR THE SOLUTION OF LAMINAR TURBULENT INCOMPRESSIBLE AND COMPRESSIBLE FLOWS

Using a Single Rotating Reference Frame

CFD MODELING FOR PNEUMATIC CONVEYING

Express Introductory Training in ANSYS Fluent Workshop 04 Fluid Flow Around the NACA0012 Airfoil

Calculate a solution using the pressure-based coupled solver.

Heat transfer and Transient computations

CFD Best Practice Guidelines: A process to understand CFD results and establish Simulation versus Reality

Tutorial: Modeling Liquid Reactions in CIJR Using the Eulerian PDF transport (DQMOM-IEM) Model

Express Introductory Training in ANSYS Fluent Workshop 08 Vortex Shedding

Driven Cavity Example

Simulating Sinkage & Trim for Planing Boat Hulls. A Fluent Dynamic Mesh 6DOF Tutorial

Tutorial 1. Introduction to Using FLUENT: Fluid Flow and Heat Transfer in a Mixing Elbow

Lab 9: FLUENT: Transient Natural Convection Between Concentric Cylinders

Modeling Unsteady Compressible Flow

NIA CFD Seminar, October 4, 2011 Hyperbolic Seminar, NASA Langley, October 17, 2011

NUMERICAL VISCOSITY. Convergent Science White Paper. COPYRIGHT 2017 CONVERGENT SCIENCE. All rights reserved.

Debojyoti Ghosh. Adviser: Dr. James Baeder Alfred Gessow Rotorcraft Center Department of Aerospace Engineering

Using the Eulerian Multiphase Model for Granular Flow

CFD-1. Introduction: What is CFD? T. J. Craft. Msc CFD-1. CFD: Computational Fluid Dynamics

1.2 Numerical Solutions of Flow Problems

Numerical Investigation of Transonic Shock Oscillations on Stationary Aerofoils

Compressible Flow in a Nozzle

SELECTIVE ALGEBRAIC MULTIGRID IN FOAM-EXTEND

Numerical Simulation of Fuel Filling with Volume of Fluid

Mid-Year Report. Discontinuous Galerkin Euler Equation Solver. Friday, December 14, Andrey Andreyev. Advisor: Dr.

CS205b/CME306. Lecture 9

Express Introductory Training in ANSYS Fluent Workshop 07 Tank Flushing

Tutorial: Hydrodynamics of Bubble Column Reactors

This tutorial illustrates how to set up and solve a problem involving solidification. This tutorial will demonstrate how to do the following:

Coupling of STAR-CCM+ to Other Theoretical or Numerical Solutions. Milovan Perić

Flow and Heat Transfer in a Mixing Elbow

Computational Study of Laminar Flowfield around a Square Cylinder using Ansys Fluent

Mesh Morphing and the Adjoint Solver in ANSYS R14.0. Simon Pereira Laz Foley

Introduction to CFX. Workshop 2. Transonic Flow Over a NACA 0012 Airfoil. WS2-1. ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

Non-Newtonian Transitional Flow in an Eccentric Annulus

CFD in COMSOL Multiphysics

Auto Injector Syringe. A Fluent Dynamic Mesh 1DOF Tutorial

Using the Discrete Ordinates Radiation Model

Use 6DOF solver to calculate motion of the moving body. Create TIFF files for graphic visualization of the solution.

Grid. Apr 09, 1998 FLUENT 5.0 (2d, segregated, lam) Grid. Jul 31, 1998 FLUENT 5.0 (2d, segregated, lam)

Supersonic Flow Over a Wedge

Strategies to Achieve Reliable and Accurate CFD Solutions

EFFICIENT SOLUTION ALGORITHMS FOR HIGH-ACCURACY CENTRAL DIFFERENCE CFD SCHEMES

High-Fidelity Simulation of Unsteady Flow Problems using a 3rd Order Hybrid MUSCL/CD scheme. A. West & D. Caraeni

The Development of a Navier-Stokes Flow Solver with Preconditioning Method on Unstructured Grids

Adarsh Krishnamurthy (cs184-bb) Bela Stepanova (cs184-bs)

Using Multiple Rotating Reference Frames

Verification and Validation of Turbulent Flow around a Clark-Y Airfoil

Introduction To FLUENT. David H. Porter Minnesota Supercomputer Institute University of Minnesota

Free Convection Cookbook for StarCCM+

Advanced ANSYS FLUENT Acoustics

Pressure Drop Evaluation in a Pilot Plant Hydrocyclone

Recent developments for the multigrid scheme of the DLR TAU-Code

Ansys Fluent R Michele Andreoli

Verification and Validation in CFD and Heat Transfer: ANSYS Practice and the New ASME Standard

The WENO Method in the Context of Earlier Methods To approximate, in a physically correct way, [3] the solution to a conservation law of the form u t

Solver Basics. Introductory FLUENT Training ANSYS, Inc. All rights reserved. ANSYS, Inc. Proprietary

Investigation of cross flow over a circular cylinder at low Re using the Immersed Boundary Method (IBM)

Middle East Technical University Mechanical Engineering Department ME 485 CFD with Finite Volume Method Fall 2017 (Dr. Sert)

Modeling Evaporating Liquid Spray

Multigrid Algorithms for Three-Dimensional RANS Calculations - The SUmb Solver

Explicit and Implicit Coupling Strategies for Overset Grids. Jörg Brunswig, Manuel Manzke, Thomas Rung

Backward facing step Homework. Department of Fluid Mechanics. For Personal Use. Budapest University of Technology and Economics. Budapest, 2010 autumn

ENERGY-224 Reservoir Simulation Project Report. Ala Alzayer

Accurate and Efficient Turbomachinery Simulation. Chad Custer, PhD Turbomachinery Technical Specialist

A Study of the Development of an Analytical Wall Function for Large Eddy Simulation of Turbulent Channel and Rectangular Duct Flow

Turbulent Premixed Combustion with Flamelet Generated Manifolds in COMSOL Multiphysics

Simulation of Turbulent Flow around an Airfoil

Possibility of Implicit LES for Two-Dimensional Incompressible Lid-Driven Cavity Flow Based on COMSOL Multiphysics

Stream Function-Vorticity CFD Solver MAE 6263

Simulation of Flow Development in a Pipe

Development of a Maxwell Equation Solver for Application to Two Fluid Plasma Models. C. Aberle, A. Hakim, and U. Shumlak

Chapter 1 Introduction

Multi-Mesh CFD. Chris Roy Chip Jackson (1 st year PhD student) Aerospace and Ocean Engineering Department Virginia Tech

Using Multiple Rotating Reference Frames

Shape optimisation using breakthrough technologies

Modeling Evaporating Liquid Spray

Flow in an Intake Manifold

Three Dimensional Numerical Simulation of Turbulent Flow Over Spillways

Optimization of under-relaxation factors. and Courant numbers for the simulation of. sloshing in the oil pan of an automobile

Adjoint Solver Workshop

Chapter 6. Petrov-Galerkin Formulations for Advection Diffusion Equation

Carl Leake Embry-Riddle Aeronautical University,

Axisymmetric Viscous Flow Modeling for Meridional Flow Calculation in Aerodynamic Design of Half-Ducted Blade Rows

Isotropic Porous Media Tutorial

Overview of Traditional Surface Tracking Methods

Module 1: Introduction to Finite Difference Method and Fundamentals of CFD Lecture 13: The Lecture deals with:

EVALUATE SHOCK CAPTURING CAPABILITY WITH THE NUMERICAL METHODS IN OpenFOAM

Solution of 2D Euler Equations and Application to Airfoil Design

CFD Project Workflow Guide

The purpose of this tutorial is to illustrate how to set up and solve a problem using the. Moving Deforming Mesh (MDM) using the layering algorithm.

A High-Order Accurate Unstructured GMRES Solver for Poisson s Equation

Modeling Supersonic Jet Screech Noise Using Direct Computational Aeroacoustics (CAA) 14.5 Release

Transcription:

Solver Settings Introductory FLUENT Training 2006 ANSYS, Inc. All rights reserved.

2006 ANSYS, Inc. All rights reserved. 5-2 Outline Using the Solver Setting Solver Parameters Convergence Definition Monitoring Stability Accelerating Convergence Accuracy Grid Independence Grid Adaption Unsteady Flows Modeling Unsteady-flow problem setup Unsteady flow modeling options Summary Appendix

2006 ANSYS, Inc. All rights reserved. 5-3 Outline Using the Solver (solution procedure overview) Setting Solver Parameters Convergence Definition Monitoring Stability Accelerating Convergence Accuracy Grid Independence Grid Adaption Unsteady Flows Modeling Unsteady-flow problem setup Unsteady flow modeling options Summary Appendix

2006 ANSYS, Inc. All rights reserved. 5-4 Solution Procedure Overview Solution parameters Choosing the solver Discretization schemes Initialization Convergence Monitoring convergence Stability Setting Under-relaxation Setting Courant number Accelerating convergence Accuracy Grid Independence Adaption Set the solution parameters Initialize the solution Enable the solution monitors of interest Yes Yes Calculate a solution Check for convergence Check for accuracy Stop No No Modify solution parameters or grid

2006 ANSYS, Inc. All rights reserved. 5-5 Available Solvers There are two kinds of solvers available in FLUENT. Pressure-based solver Density-based coupled solver (DBCS) The pressure-based solvers take momentum and pressure (or pressure correction) as the primary variables. Pressure-velocity coupling algorithms are derived by reformatting the continuity equation Two algorithms are available with the pressure-based solvers: Segregated solver Solves for pressure correction and momentum sequentially. Coupled Solver (PBCS) Solves pressure and momentum simultaneously. Segregated Solve U-Momentum Solve V-Momentum Solve W-Momentum Solve Mass Continuity; Update Velocity PBCS Solve Mass & Momentum Solve Energy Solve Species Solve Turbulence Equation(s) DBCS Solve Mass, Momentum, Energy, Species Solve Other Transport Equations as required

2006 ANSYS, Inc. All rights reserved. 5-6 Density-Based Coupled Solver equations for continuity, momentum, energy, and species, if required, are solved in vector form. Pressure is obtained through the equation of state. Additional scalar equations are solved in a segregated fashion. The density-based solver can use either an implicit or explicit solution approach: Implicit Uses a point-implicit Gauss- Seidel / symmetric block Gauss-Seidel / ILU method to solve for variables. Explicit: uses a multi-step Runge- Kutta explicit time integration method Note: the pressure-based solvers are implicit Available Solvers

2006 ANSYS, Inc. All rights reserved. 5-7 Choosing a Solver The pressure-based solver is applicable for a wide range of flow regimes from low speed incompressible flow to high-speed compressible flow. Requires less memory (storage). Allows flexibility in the solution procedure. The pressure-based coupled solver (PBCS) is applicable for most single phase flows, and yields superior performance to the pressure-based (segregated) solver. Not available for multiphase (Eulerian), periodic mass-flow and NITA cases. Requires 1.5 2 times more memory than the segregated solver. The density-based coupled solver (DBCS) is applicable when there is a strong coupling, or interdependence, between density, energy, momentum, and/or species. Examples: High speed compressible flow with combustion, hypersonic flows, shock interactions. The Implicit solution approach is generally preferred to the explicit approach, which has a very strict limit on time step size The explicit approach is used for cases where the characteristic time scale of the flow is on the same order as the acoustic time scale. (e.g.: propagation of high-ma shock waves).

2006 ANSYS, Inc. All rights reserved. 5-8 Discretization (Interpolation Methods) Field variables (stored at cell centers) must be interpolated to the faces of the control volumes. ( ρφ) t V + N faces f ρ f V f φ f A f = N faces f Γ φ φ f A f + S φ V Interpolation schemes for the convection term: First-Order Upwind Easiest to converge, only first-order accurate. Power Law More accurate than first-order for flows when Re cell < 5 (typ. low Re flows) Second-Order Upwind Uses larger stencils for 2nd order accuracy, essential with tri/tet mesh or when flow is not aligned with grid; convergence may be slower. Monotone Upstream-Centered Schemes for Conservation Laws (MUSCL) Locally 3rd order convection discretization scheme for unstructured meshes; more accurate in predicting secondary flows, vortices, forces, etc. Quadratic Upwind Interpolation (QUICK) Applies to quad/hex and hybrid meshes, useful for rotating/swirling flows, 3rd-order accurate on uniform mesh

2006 ANSYS, Inc. All rights reserved. 5-9 Interpolation Methods (Gradients) Gradients of solution variables are required in order to evaluate diffusive fluxes, velocity derivatives, and for higher-order discretization schemes. ( ρφ) t V + N faces f ρ f V f φ f A f = The gradients of solution variables at cell centers can be determined using three approaches: Green-Gauss Cell-Based The default method; solution may have false diffusion (smearing of the solution fields). Green-Gauss Node-Based More accurate; minimizes false diffusion; recommended for tri/tet meshes. Least-Squares Cell-Based Recommended for polyhedral meshes; has the same accuracy and properties as Node-based Gradients. Gradients of solution variables at faces computed using multidimensional Taylor series expansion N faces f Γ φ φ f A f + S φ V

2006 ANSYS, Inc. All rights reserved. 5-10 Interpolation Methods for Face Pressure Interpolation schemes for calculating cell-face pressures when using the segregated solver in FLUENT are available as follows: Standard The default scheme; reduced accuracy for flows exhibiting large surface-normal pressure gradients near boundaries (but should not be used when steep pressure changes are present in the flow PRESTO! scheme should be used instead.) PRESTO! Use for highly swirling flows, flows involving steep pressure gradients (porous media, fan model, etc.), or in strongly curved domains Linear Use when other options result in convergence difficulties or unphysical behavior Second-Order Use for compressible flows; not to be used with porous media, jump, fans, etc. or VOF/Mixture multiphase models Body Force Weighted Use when body forces are large, e.g., high Ra natural convection or highly swirling flows

2006 ANSYS, Inc. All rights reserved. 5-11 Pressure-Velocity Coupling Pressure-velocity coupling refers to the numerical algorithm which uses a combination of continuity and momentum equations to derive an equation for pressure (or pressure correction) when using the pressure-based solver. Four algorithms are available in FLUENT. Semi-Implicit Method for Pressure-Linked Equations (SIMPLE) The default scheme, robust SIMPLE-Consistent (SIMPLEC) Allows faster convergence for simple problems (e.g., laminar flows with no physical models employed). Pressure-Implicit with Splitting of Operators (PISO) Useful for unsteady flow problems or for meshes containing cells with higher than average skewness Fractional Step Method (FSM) for unsteady flows. Used with the NITA scheme; similar characteristics as PISO.

2006 ANSYS, Inc. All rights reserved. 5-12 Iterative procedure requires that all solution variables be initialized before calculating a solution Solve Initialize Initialize Initialization Realistic guesses improves solution stability and accelerates convergence In some cases, a good initial guess is required. Example: high temperature region to initiate chemical reaction. Patch values for individual variables in certain regions. Solve Initialize Patch Free jet flows (high velocity for jet) Combustion problems (high temperature region to initialize reaction) Cell registers (created by marking the cells in the Adaption panel) can be used for patching values into various regions of the domain.

2006 ANSYS, Inc. All rights reserved. 5-13 FMG Initialization Full Multigrid (FMG) Initialization can be used to create a better initialization of the flow field: TUI command: /solve/init/fmg-initialization FMG is computationally inexpensive and faster. Euler equations are solved with first-order accuracy on the coarse-level meshes. It can be used with both pressure and density based solvers, but only in steady state. FMG uses the Full Approximation Storage (FAS) multigrid method to solve the flow problem on a sequence of coarser meshes, before transferring the solution onto the actual mesh. Settings can be accessed by the TUI command: /solve/init/set-fmg-initialization FMG Initialization is useful for complex flow problems involving large gradients in pressure and velocity on large domains (e.g.: rotating machinery, expanding spiral ducts)

2006 ANSYS, Inc. All rights reserved. 5-14 Case Check Case Check is a utility in FLUENT which looks for common setup errors and provides guidance in selecting case parameters and models. Uses rules and best practices Case check will look for compliance in: Grid Model Selection Solve Case Check Boundary Conditions Material Properties Solver Settings Tabbed sections contain recommendations Automatic recommendations: the utility will make the changes Manual recommendations: the user has to make the changes

2006 ANSYS, Inc. All rights reserved. 5-15 Outline Using the Solver Setting Solver Parameters Convergence Definition Monitoring Stability Accelerating Convergence Accuracy Grid Independence Grid Adaption Unsteady Flows Modeling Unsteady-flow problem setup Unsteady flow modeling options Summary Appendix

2006 ANSYS, Inc. All rights reserved. 5-16 Convergence At convergence, the following should be satisfied: All discrete conservation equations (momentum, energy, etc.) are obeyed in all cells to a specified tolerance OR the solution no longer changes with subsequent iterations. Overall mass, momentum, energy, and scalar balances are achieved. Monitoring convergence using residual history: Generally, a decrease in residuals by three orders of magnitude indicates at least qualitative convergence. At this point, the major flow features should be established. Scaled energy residual must decrease to 10-6 (for the pressure-based solver). Scaled species residual may need to decrease to 10-5 to achieve species balance. Monitoring quantitative convergence: Monitor other relevant key variables/physical quantities for a confirmation. Ensure that overall mass/heat/species conservation is satisfied.

2006 ANSYS, Inc. All rights reserved. 5-17 Convergence Monitors: Residuals Residual plots show when the residual values have reached the specified tolerance. Solve Monitors Residual All equations converged. 10-3 10-6

2006 ANSYS, Inc. All rights reserved. 5-18 Convergence Monitors: Forces/Surfaces In addition to residuals, you can also monitor: Lift, drag, or moment Solve Monitors Force Pertinent variables or functions (e.g., surface integrals) at a boundary or any defined surface. Solve Monitors Surface

2006 ANSYS, Inc. All rights reserved. 5-19 Checking for Flux Conservation In addition to monitoring residual and variable histories, you should also check for overall heat and mass balances. Report Fluxes The net imbalance should be less than 1% of the smallest flux through the domain boundary

2006 ANSYS, Inc. All rights reserved. 5-20 Tightening the Convergence Tolerance If solution monitors indicate that the solution is converged, but the solution is still changing or has a large mass/heat imbalance, this clearly indicates the solution is not yet converged. In this case, you need to: Reduce values of Convergence Criterion or disable Check Convergence in the Residual Monitors panel. Solve Continue iterations until the solution converges. Solve Monitors Iterate Residual Selecting none under Convergence Criterion will instruct FLUENT to not check convergence for any equations.

2006 ANSYS, Inc. All rights reserved. 5-21 Convergence Difficulties Numerical instabilities can arise with an ill-posed problem, poor quality mesh, and/or inappropriate solver settings. Exhibited as increasing (diverging) or stuck residuals. Diverging residuals imply increasing imbalance in conservation equations. Unconverged results are very misleading! Troubleshooting Ensure that the problem is wellposed. Compute an initial solution using a first-order discretization scheme. Decrease under-relaxation factors for equations having convergence problems (pressure-based solver). Decrease the Courant number (density-based solver) Remesh or refine cells which have large aspect ratio or large skewness. Continuity equation convergence trouble affects convergence of all equations.

2006 ANSYS, Inc. All rights reserved. 5-22 Modifying Under-Relaxation Factors Under-relaxation factor, α, is included to stabilize the iterative process for the pressure-based solver Use default under-relaxation factors to start a calculation. Solve Controls Solution Decreasing under-relaxation for momentum often aids convergence. Default settings are suitable for a wide range of problems, you can reduce the values when necessary Appropriate settings are best learned from experience! φ p = φ p, old + α φ p For density-based solvers, under-relaxation factors for equations outside coupled set are modified as in the pressure-based solver.

2006 ANSYS, Inc. All rights reserved. 5-23 Modifying the Courant Number A transient term is included in the density-based solver even for steady state problems. The Courant number defines the time step size. For density-based explicit solver: Stability constraints impose a maximum limit on the Courant number. Cannot be greater than 2 (default value is 1). Reduce the Courant number when having difficulty converging. For density-based implicit solver: The Courant number is not limited by stability constraints. Default value is 5. Solve Controls Solution (CFL) x t = u Mesh size Appropriate velocity scale

2006 ANSYS, Inc. All rights reserved. 5-24 Accelerating Convergence Convergence can be accelerated by: Supplying better initial conditions Starting from a previous solution (using file/interpolation when necessary) Gradually increasing under-relaxation factors or Courant number Excessively high values can lead to instabilities or convergence problems Recommend saving case and data files before continuing iterations Controlling multigrid solver settings (but default settings provide a robust Multigrid setup and typically do not need to be changed). See the Appendix for details on the Multigrid settings.

2006 ANSYS, Inc. All rights reserved. 5-25 Starting from a Previous Solution Previous solution can be used as an initial condition when changes are made to problem definition. Use solution interpolation to initialize a run (especially useful for starting fine-mesh cases when coarse-mesh solutions are available). File Once the solution is initialized, additional iterations always use the current data set as the starting point. Some suggestions on how to provide initial conditions for some actual problems: Interpolate Actual Problem Heat Transfer Natural convection Combustion / reacting flow Turbulence Initial Condition Isothermal Low Rayleigh number Cold flow Inviscid (Euler) solution

2006 ANSYS, Inc. All rights reserved. 5-26 Outline Setting Solver Parameters Convergence Definition Monitoring Stability Accelerating Convergence Accuracy Grid Independence Grid Adaption Unsteady Flows Modeling Unsteady-flow problem setup Unsteady flow modeling options Summary Appendix

2006 ANSYS, Inc. All rights reserved. 5-27 Solution Accuracy A converged solution is not necessarily a correct one! Always inspect and evaluate the solution by using available data, physical principles and so on. Use the second-order upwind discretization scheme for final results. Ensure that solution is grid-independent: Use adaption to modify the grid or create additional meshes for the gridindependence study If flow features do not seem reasonable: Reconsider physical models and boundary conditions Examine mesh quality and possibly remesh the problem Reconsider the choice of the boundaries location (or the domain): inadequate choice of domain (especially the outlet boundary) can significantly impact solution accuracy

2006 ANSYS, Inc. All rights reserved. 5-28 Mesh Quality and Solution Accuracy Numerical errors are associated with calculation of cell gradients and cell face interpolations. Ways to contain the numerical errors: Use higher-order discretization schemes (second-order upwind, MUSCL) Attempt to align grid with the flow to minimize the false diffusion Refine the mesh Sufficient mesh density is necessary to resolve salient features of flow Interpolation errors decrease with decreasing cell size Minimize variations in cell size in non-uniform meshes Truncation error is minimized in a uniform mesh FLUENT provides capability to adapt mesh based on cell size variation Minimize cell skewness and aspect ratio In general, avoid aspect ratios higher than 5:1 (but higher ratios are allowed in boundary layers) Optimal quad/hex cells have bounded angles of 90 degrees Optimal tri/tet cells are equilateral

2006 ANSYS, Inc. All rights reserved. 5-29 Determining Grid Independence A grid-independent solution exists when the solution no longer changes with further grid refinement. Systematic procedure for obtaining a grid-independent solution: Generate a new, finer mesh Grid Adapt Use the solution-based adaption feature in FLUENT. Save the original mesh before doing this. If you know where large gradients should occur, you need to have a fine mesh in the original mesh for that region, e.g. use boundary layers and/or size functions. Adapt the mesh Data from the original mesh is interpolated onto the finer mesh. FLUENT offers dynamic mesh adaption which automatically changes the mesh according to user-defined criteria. Continue calculation until convergence. Compare the results obtained on the different meshes. Repeat the procedure if necessary. To use a different mesh on a single problem, use the TUI commands file/write-bc and file/read-bc to facilitate the setup of a new problem. Better initialization can be obtained via interpolation from existing case/data by using File Interpolate

2006 ANSYS, Inc. All rights reserved. 5-30 Outline Using the Solver Setting Solver Parameters Convergence Definition Monitoring Stability Accelerating Convergence Accuracy Grid Independence Grid Adaption Unsteady Flow Modeling Unsteady flow problem setup Unsteady flow modeling options Summary Appendix

2006 ANSYS, Inc. All rights reserved. 5-31 Unsteady Flow Modeling Solver iterates to convergence within each time step, then advances to the next. Solution initialization defines the initial condition and it must be realistic. Non-iterative Time Advancement (NITA) is available for faster computation time (see the Appendix for details). For the pressure-based solver: Time step size, t, is set in the Iterate panel t must be small enough to resolve time-dependent features; make sure the convergence is reached within the number of Max Iterations per Time Step The order of magnitude of an appropriate time step size can be estimated as: Typical cell size t Characteristic flow velocity Time step size estimate can also be chosen so that the unsteady characteristics of the flow can be resolved (e.g. flow within a known period of fluctuations) To iterate without advancing in time, use zero time steps The PISO scheme may aid in accelerating convergence for many unsteady flows

2006 ANSYS, Inc. All rights reserved. 5-32 Unsteady Flow Modeling Options Adaptive Time Stepping Automatically adjusts time-step size based on local truncation error analysis Customization possible via UDF Time-averaged statistics Particularly useful for LES turbulence modeling If desirable, animations should be set up before iterating (for flow visualization) For the density-based solver, the Courant number defines: The global time step size for density-based explicit solver. The pseudo time step size for densitybased implicit solver Real time step size must still be defined in the Iterate panel

2006 ANSYS, Inc. All rights reserved. 5-33 Summary Solution procedure for both the pressure-based and density-based solvers is identical. Calculate until you get a converged solution Obtain a second-order solution (recommended) Refine the mesh and recalculate until a grid-independent solution is obtained. All solvers provide tools for judging and improving convergence and ensuring stability. All solvers provide tools for checking and improving accuracy. Solution accuracy will depend on the appropriateness of the physical models that you choose and the boundary conditions that you specify.

2006 ANSYS, Inc. All rights reserved. 5-34 Appendix Background Finite Volume Method Explicit vs. Implicit Segregated vs. Coupled Transient Solutions Flow Diagrams of NITA and ITA Schemes

2006 ANSYS, Inc. All rights reserved. 5-35 The Finite Volume Method FLUENT solvers are based on the finite volume method. Domain is discretized into a finite set of control volumes or cells. The general transport equation for mass, momentum, energy, etc. is applied to each cell and discretized. All equations are solved in order to render the flow field. t V ρφ dv + A ρφv da = A Γ φ da + V S φ dv Unsteady Convection Diffusion Generation control volume Equation Variable Continuity 1 X momentum u Y momentum v Z momentum w Energy h Fluid region of pipe flow discretized into finite set of control volumes (mesh).

2006 ANSYS, Inc. All rights reserved. 5-36 The Finite Volume Method Each transport equation is discretized into algebraic form. For cell P, t+ t t ( ρφ ) ( ρφ ) p t p V + faces ρ f φ f V f A face f cell p adjacent cells, nb Discretized equations require information at both cell centers and faces. Field data (material properties, velocities, etc.) are stored at cell centers. Face values are interpolated in terms of local and adjacent cell values. Discretization accuracy depends on the stencil size. The discretized equation can be expressed simply as a φ + a φ = b p f = p faces nb Γ f ( φ) A + S V nb Equation is written for every control volume in the domain resulting in an equation set., f nb f p φ

2006 ANSYS, Inc. All rights reserved. 5-37 Linearization Equation sets are solved iteratively. Coefficients a p and a nb are typically functions of solution a p φ p + variables (nonlinear and coupled). nb Coefficients are written to use values of solution variables from the previous iteration. Linearization removes the coefficients dependence on φ. anb φnb = b Decoupling removes the coefficients dependence on other solution variables. Coefficients are updated with each outer iteration. For a given inner iteration, coefficients are constant (frozen). φ p can either be solved explicitly or implicitly. p

2006 ANSYS, Inc. All rights reserved. 5-38 Explicit vs. Implicit Solution Assumptions are made about the knowledge of φ nb. Explicit linearization Unknown value in each cell computed from relations that include only existing values (φ nb assumed known from previous iteration). φ p is then solved explicitly using a Runge-Kutta scheme. Implicit linearization φ p and φ nb are assumed unknown and are solved using linear equation techniques. Equations that are implicitly linearized tend to have less restrictive stability requirements. The equation set is solved simultaneously using a second iterative loop (e.g., point Gauss-Seidel).

2006 ANSYS, Inc. All rights reserved. 5-39 Pressure-Based vs. Density-Based Solver Pressure-based solver If the only unknowns in a given equation are assumed to be for a single variable, then the equation set can be solved without regard to the solution of other variables. Simply put, each governing equation is solved independently of the other equations). In this case, the coefficients a p and a nb are scalar values. a p φ p + anb φnb = Density-based solver nb If more than one variable is unknown in each equation, and each variable is defined by its own transport equation, then the equation set is coupled together. In this case, the coefficients a p and a nb are N eq N eq matrices. b p φ is a vector of the dependent variables, {p, u, v, w, T, Y} T

2006 ANSYS, Inc. All rights reserved. 5-40 Pressure-Based Solver In the pressure-based solver, each equation is solved separately. The continuity equation takes the form of a pressure correction equation as part of Patankar s SIMPLE algorithm. Under-relaxation factors are included in the discretized equations. Included to improve stability of iterative process. An explicit under-relaxation factor, α, limits change in variable from one iteration to the next: φ = φ + α φ p p, old p Update properties Solve momentum equations (u, v, w velocity) Solve pressure correction (continuity) equation Update pressure field and face mass flow rates No Solve energy, species, turbulence, and other scalar equations Converged? Yes Stop

2006 ANSYS, Inc. All rights reserved. 5-41 Density-Based Solver Continuity, momentum, energy, and species are solved simultaneously in the density-based solver. Equations are modified to resolve both compressible and incompressible flow. Transient term is always included. Steady-state solution is formed as time increases and transients tend to zero. For steady-state problem, the time step is defined by the Courant number. Stability issues limit the maximum time step size for the explicit solver but not for the implicit solver. t = ( CFL) U x CFL = Courant-Friedrichs-Lewy-number u = appropriate velocity scale x = grid spacing Update properties Solve continuity, momentum, energy and species equations simultaneously Solve turbulence and other scalar equations No Converged? Yes Stop

2006 ANSYS, Inc. All rights reserved. 5-42 Multigrid Solver The Multigrid solver accelerates convergence by solving the discretized equations on multiple levels of mesh density so that the low-frequency errors of the approximate solution can be efficiently eliminated Influence of boundaries and far-away points are more easily transmitted to interior of coarse mesh than on fine mesh. Coarse mesh defined from original mesh Multiple coarse mesh levels can be created. Algebraic Multigrid (AMG) coarse mesh emulated algebraically Full Approximate Storage Multigrid (FAS) cell coalescing defines new grid. An option in the density-based explicit solver. Final solution is for original mesh Multigrid solver operates automatically in the background Consult the FLUENT User s Guide for additional options and technical details Fine (original) mesh Solution Transfer coarse mesh

2006 ANSYS, Inc. All rights reserved. 5-43 Background: Coupled/Transient Terms Coupled solver equations always contain a transient term. Equations solved using the unsteady coupled solver may contain two transient terms: Pseudo-time term, τ. Physical-time term, t. Pseudo-time term is driven to near zero at each time step and for steady flows. Flow chart indicates which time step size inputs are required. Courant number defines τ Inputs to Iterate panel define t. Implicit Coupled Solver Explicit Discretization of: pseudo-time Steady Unsteady τ Steady Unsteady τ Implicit τ, t Implicit τ, t Explicit physical-time τ (global time step)

ITA versus NITA t = t + n t t = t + n t Solve momentum equations Solve U, V, W equations No Converged? Yes Solve pressure correction Correct velocity, pressure, fluxes Solve pressure correction Correct velocity, pressure, fluxes No Converged? Yes Solve scalars (T, k, ε, etc.) Solve k and ε No Converged? No Converged? Solve other scalars Yes Yes Advance to next time step Advance to next time step Iterative Time Advancement (ITA) Non-Iterative Time Advancement (NITA) 2006 ANSYS, Inc. All rights reserved. 5-44

2006 ANSYS, Inc. All rights reserved. 5-45 NITA Schemes for the Pressure-Based Solver Overall time-discretization error for 2 nd -order scheme: O( t 2 ) = + Truncation error: O( t 2 ) Splitting error (due to eqn segregation): O( t n ) Non-iterative time advancement (NITA) schemes reduce the splitting error to O( t 2 ) by using sub-iterations (not the more expensive outer iterations to eliminate the splitting errors used in ITA) per time step. NITA runs about twice as fast as the ITA scheme. Two flavors of NITA schemes available in FLUENT 6.3: PISO (NITA/PISO) Energy and turbulence equations are still loosely coupled. Fractional-step method (NITA/FSM) About 20% cheaper than NITA/PISO on a per time-step basis. NITA schemes have a wide range of applications for unsteady simulations, such as incompressible, compressible (subsonic, transonic), turbomachinery flows, etc. NITA schemes are not available for multiphase (except VOF), reacting flows, porous media, and fan models, etc. Consult the FLUENT User s Guide for additional details.

2006 ANSYS, Inc. All rights reserved. 5-46 NITA Solution Control and Monitoring Sub-iterations are performed for discretized equations till the Correction Tolerance is met or the number of sub-iterations has reached the Max Corrections Algebraic multigrid (AMG) cycles are performed for each sub-iteration. AMG cycles terminate if the default AMG criterion is met or the Residual Tolerance is sastisfied for the last sub-iteration Relaxation Factor is used for solutions between each sub-iteration