Solver Setting in Ansys
Solver Setting in Ansys
INTRODUCTION
Lecture Theme:
FLUENT requires inputs (solver settings) which tell it how to calculate the
solution. By introducing the concepts of accuracy, stability and
convergence, the purpose of each setting can be understood. Emphasis
will be placed on convergence, which is critical for the CFD simulation.
Learning Aims:
You will learn:
How to choose the solver and the discretization schemes
How to initialize the solution
How to monitor and judge solution convergence and accuracy
Learning Objectives:
You will be able to choose appropriate solver settings for your CFD
simulation and be able to monitor and judge solution convergence
SOLUTION PROCEDURE OVERVIEW
• The sketch to the right shows the
basic workflow for any simulation
Set the solution parameters
• This lecture will look at all the items
in the chart Initialize the solution
– Solutionparameters
• Choosing the solver Enable the solution monitors of interest
• Discretization schemes
– Initialization Calculate a solution
Modify solution
parameters or grid
– Convergence
• Monitoring convergence
Check for convergence
• Stability
– Setting Under‐relaxation Yes No
– Setting Courant number
– Setting Pseudo‐timestep
• Accelerating convergence Check for accuracy No
– Accuracy
• Grid Independence Yes
• Adaption Stop
AVAILABLE SOLVERS
• There are two kinds of solvers available in FLUENT
• Pressure based
• Density based Pressure-Based Density-Based
Segregated Coupled Coupled Implicit Coupled-Explicit
Solve U-Momentum
Solve Energy
Solve Species
– SIMPLE‐Consistent (SIMPLEC)
• Allows faster convergence than SIMPLE for simple problems (allow high under‐relaxation
factors) (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 only
• Used with the NITA scheme; similar characteristics as PISO (used in LES for example)
PBS SEGREGATED PROCEDURE ‐ UNDER‐RELAXATION
FACTORS
• Implicit under‐relaxation factors are used for SIMPLE, SIMPLEC, PISO
– The under‐relaxation factor, α, is included to stabilize the iterative process for
the pressure‐based solver
– The final, converged solution is independent
of the under‐relaxation factor
• Only the number of iterations required
for convergence is dependen
Pseudo-transient:
Better convergence
for meshes with
• Pseudo time step is determined from velocity and large aspect ratio
domain size.
cells
• User‐specified: Characteristic physical time is chosen
PRESSURE‐BASED COUPLED SOLVER:
CONVERGENCE
• Pressure based coupled solver with default settings
Rotating propeller 1500 rpm SIMPLE: ~2250 iterations Coupled: ~120 iterations
InternalIntern
Flow
– For Automatic al Flow
Flow
– Set up your case the normal way 0 100 200 300 400
– Start iterating
0 100 200 300 400
PBS ‐ INTERPOLATION METHODS FOR
PRESSURE
• Interpolation is required for calculating cell‐face pressures in order to compute pressure
gradient (Gauss method):
P
Area Value (e.g. Pressure) computed here
face Aface Vector
But solver must estimate the value at each
P face
face in order to compute pressure gradient
Vol cell (Gauss method)
– 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
DISCRETIZATION (INTERPOLATION
METHODS)
• Field variables (stored at cell centers) must be interpolated to the
faces of the control volumes
f 1
C0 dr 0 C1 0
1st-Order Upwind
• If = 0 we get the 1st‐Order‐Upwind convection Scheme
scheme, i.e. no correction =0
– This is robust but only first order accurate
– Sometimes useful for initial runs
2nd-Order
• If = 1 we get the 2nd‐Order‐Upwind Scheme Scheme
=1.00
– Additional Limiters must be added to guaranteed the
solution to be bounded (C0<f<C1)
QUICK
• The QUICK Resolution scheme “maximizes” Resolution
throughout the flow domain while keeping the Scheme
solution bounded
DISCRETIZATION (INTERPOLATION
METHODS)
• Interpolation schemes for the diffusive term:
RG
f C 0 C 0 dr 0
Cell based/
Least-Squares
• The gradients of solution variables at cell centers can be
determined using three approaches:
– Green‐Gauss Cell‐Based – Good, but solution may have false diffusion (smearing of
the solution fields)
– Green‐Gauss Node‐Based – More accurate; minimizes false diffusion; (strongly
recommended for tri/tet and hybrid meshes)
– Least‐Squares Cell‐Based – The default method. Less expensive to compute than Node‐ Node-Based
Based gradients. Slightly more expensive than Cell‐Based gradients. However, exactly
reconstruct linear field on highly skewed or distorted meshes. (appropriate for any kind of
meshes)
INITIALIZATION
• FLUENT requires that all solution variables be initialized before starting
iterations
– A realistic initial guess improves solution stability and accelerates convergence
– In some cases a poor initial guess may cause the solver to fail during the first few
iterations
Isentropic Efficiency
Residuals
All equations
converged
10-3
10-6
CHECKING OVERALL FLUX
CONSERVATION
• The net flux imbalance (shown in the GUI as Net Results) should
be less than 1% of the smallest flux through the domain
boundary
CONVERGENCE MONITORS – FORCES AND
SURFACES
• In addition to residuals, you can also
monitor
– Lift, drag and moment coefficients
– Relevant variables or functions (e.g. surface
integrals) at a boundary or any defined surface
• These additional monitored quantities are
important convergence indicators
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!
Continuity equation convergence
• Troubleshooting trouble affects convergence of
– Ensure that the problem is well‐posed all equations.
– Compute an initial solution using a
first‐order discretization scheme
– For the pressure‐based solver, decrease
underrelaxation factors for equations
having convergence problems
– For the density‐based solver, reduce
the Courant number
– Remesh or refine cells which have large
aspect ratio or large skewness.
• Remember that you cannot improve
cell skewness by using mesh adaption!
ACCELERATING
CONVERGENCE
• All solvers provide tools for judging and improving convergence and ensuring
stability
• Local Parallel
– Shared Memory
• Distributed Parallel
– Distributed Memory