Professional Documents
Culture Documents
Learning Objectives:
You will be able to choose appropriate solver settings for your CFD
simulation and be able to monitor and judge solution convergence
Solve U-Momentum
Solve Energy
Solve Species
Pseudo-transient:
Better convergence
for meshes with
• Pseudo time step is determined automatically from velocity large aspect ratio
and domain size. cells
• User-specified: Characteristic physical time is chosen
Introduction Solver Theory Initialization Convergence Summary
© 2012 ANSYS, Inc. November 15, 2012 20 Release 14.5
Pressure-Based Coupled Solver: Convergence
• Pressure based coupled solver with default settings
Rotating propeller 1500 rpm SIMPLE: ~2250 iterations Coupled: ~120 iterations
Internal Flow
– For Automatic
• Select Length Scale Method (time=length/velocity)
Lext
– Aggressive : Max(Lext , LVol )
Internal Flow Lvol = 3 Vol
– Conservative : Min(Lext ,LVol )
– User Specified External Flow External Flow
25
First order upwind scheme
• This is the simplest numerical
scheme. It is the method that we interpolated
f(x) value
used earlier in the discretization
example. fP fe
• We assume that the value of f at
the face is the same as the cell fE
centered value in the cell e
P E
upstream of the face.
• The main advantages are that it
is easy to implement and that it
results in very stable
calculations, but it also very Flow direction
diffusive. Gradients in the flow
field tend to be smeared out, as
we will show later.
• This is often the best scheme to
start calculations with. 26
Central differencing scheme
• We determine the value of f at
the face by linear interpolation interpolated
f(x) value
between the cell centered
values. fP
• This is more accurate than the fe
first order upwind scheme, but it fE
leads to oscillations in the e
P E
solution or divergence if the local
Peclet number is larger than 2.
The Peclet number is the ratio
between convective and diffusive
transport: uL
Pe =
D
• It is common to then switch to
first order upwind in cells where
Pe>2. Such an approach is
called a hybrid scheme. 27
Power law scheme
• This is based on the analytical
solution of the one-dimensional
convection-diffusion equation.
f(x) interpolated
• The face value is determined value
fP
from an exponential profile
through the cell values. The
fe
exponential profile is fE
approximated by the following P e E
power law equation:
(1 − 0.1Pe)5 (
fe = f P − fE − fP ) x
Pe
L
• Pe is again the Peclet number.
• For Pe>10, diffusion is ignored
and first order upwind is used.
28
Second-order upwind scheme
• We determine the value of f from
the cell values in the two cells
upstream of the face.
• This is more accurate than the
first order upwind scheme, but in
regions with strong gradients it fW
can result in face values that are f(x) interpolated
value
outside of the range of cell fP
values. It is then necessary to
apply limiters to the predicted fe
face values. fE
Flow direction
30
Accuracy of numerical schemes
• Each of the previously discussed numerical schemes assumes some
shape of the function f. These functions can be approximated by Taylor
series polynomials:
• The first order upwind scheme only uses the constant and ignores the
first derivative and consecutive terms. This scheme is therefore
considered first order accurate.
• For high Peclet numbers the power law scheme reduces to the first
order upwind scheme, so it is also considered first order accurate.
• The central differencing scheme and second order upwind scheme do
include the first order derivative, but ignore the second order derivative.
These schemes are therefore considered second order accurate.
QUICK does take the second order derivative into account, but ignores
the third order derivative. This is then considered third order accurate.
31
Accuracy and false diffusion (1)
• False diffusion is numerically introduced diffusion and arises in
convection dominated flows, i.e. high Pe number flows.
• Consider the problem below. If there is no false diffusion, the
temperature will be exactly 100 ºC everywhere above the
diagonal and exactly 0 ºC everywhere below the diagonal.
• False diffusion will occur due to the oblique flow direction and
non-zero gradient of temperature in the direction normal to the
flow.
• Grid refinement coupled
with a higher-order
Diffusion set to zero
interpolation scheme will
k=0
minimize the false Hot fluid
diffusion as shown on T = 100ºC
the next slide.
Cold fluid 32
T = 0ºC
Accuracy and false diffusion (2)
8x8
64 x 64
33
Solution accuracy
• Higher order schemes will be more accurate. They will also be
less stable and will increase computational time.
• It is recommended to always start calculations with first order
upwind and after 100 iterations or so to switch over to second
order upwind.
• This provides a good combination of stability and accuracy.
• The central differencing scheme should only be used for transient
calculations involving the large eddy simulation (LES) turbulence
models in combination with grids that are fine enough that the
Peclet number is always less than one.
• It is recommended to only use the power law or QUICK schemes
if it is known that those are somehow especially suitable for the
particular problem being studied.
34
PBS - Interpolation Methods for Pressure
• Interpolation is required for calculating cell-face pressures in order to compute pressure
gradient (Gauss method):
Pface Aface
Area Value (e.g. Pressure) computed here
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
ff 1
fC0 dr 0 fC1 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 (fC0<ff<fC1)
QUICK
• The QUICK Resolution scheme “maximizes” Resolution
throughout the flow domain while keeping the Scheme
solution bounded
Introduction Solver Theory Initialization Convergence Summary
© 2012 ANSYS, Inc. November 15, 2012 37 Release 14.5
Discretization (Interpolation Methods)
RG
f f = fC0 + fC0 • dr0
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-Based gradients. Slightly more expensive than Cell-Based Node-Based
gradients. However, exactly reconstruct linear field on highly skewed or
distorted meshes. (appropriate for any kind of meshes)
Introduction Solver Theory Initialization Convergence Summary
© 2012 ANSYS, Inc. November 15, 2012 39 Release 14.5
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
• All solvers provide tools for judging and improving convergence and ensuring
stability
– Set up your case the normal way 0 100 200 300 400
• Local Parallel
– Shared Memory
• Distributed Parallel
– Distributed Memory