LE06 Solution
LE06 Solution
Release 2020 R1
Lecture Theme:
A Fluent simulation begins with initialization and proceeds, over a number of
iterations, to convergence. Inputs that control this process are called solver settings.
Convergence is a critical concept in simulation, so while default settings can be used in
most cases, a basic understanding of the role of the most important settings can help
to ensure optimal convergence.
Learning Aims:
You will learn:
• How to specify the solver and choose solution methods and controls
• How to initialize the solution
• How to use report definitions to monitor and judge convergence
Learning Objectives:
You will be able to choose appropriate methods and controls for your Fluent
simulation and be able to monitor and judge solution convergence
• The sketch to the right shows the basic workflow Set the solution parameters
for any simulation once the domain and physics
have been set up Enable the report definitions of interest
• Most items in the chart will be covered here
Initialize the solution
‐ Solution parameters
• Choosing the solver Modify solution
• Solution methods Calculate a solution
parameters or grid
• Initialization Check for convergence
• Calculate the solution and monitor convergence Yes No
‐ Monitoring convergence
• Stability
▪ Setting controls Check for accuracy No
‐ Accelerating convergence Yes
• Accuracy Stop
• This main control for the pseudo-transient solver is the Timescale Factor
− The pseudo transient solver advances the solution to steady state using a false (pseudo-) time step to
control how the solution advances from one iteration to the next
− The default pseudo time step size is determined automatically by the solver, based on the length and
velocity scales present in the domain and flow
− The automatically determined value is often conservative
− If the residuals decrease smoothly, but slowly, the timescale factor can often be increased to values
in the range of 3 to 10
− Always save the case and data file before increasing the timescale factor because too large of an increase might cause the
solution to diverge
− Conversely, if the residuals are not decreasing, try lowering the value to somewhere in the range of 0.1 to 0.3
•
length
The time scale resulting from the automatic method can
or
be displayed in the console window for each iteration by
setting Verbosity > 0 in the panel
− Other times, it may be desirable (e.g. Heat sink
workshop) to enter the pseudo time step based
on knowledge of the physical length and velocity
scales in the problem
• Fluent requires that all solution variables be initialized before starting iterations
‐ Basically this means that in every individual cell in the mesh a value must be assigned for every
solution variable to serve as an initial guess for the solution
‐ 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
Initial mesh before Standard Initialization: Hybrid Initialization: FMG Initialization: Final converged
solving solution
All cells have the same Slightly more realistic Much more realistic non-
value non-uniform initial guess uniform initial guess,
however takes longer to
generate
In general, the closer the initial guess is to the final solution,
the fewer iterations will be needed to reach convergence.
• Steady State
– Enter the number of iterations to be performed
– Fluent will continue from the current solution
• If no iterations have been performed previously, it starts from the
initialized solution
– The solution will stop sooner if convergence monitor
checks are met
• Transient
– Enter the time step size and the number of time steps for
the solution to run
– Continues from the current solution
Residuals
• At convergence, the following should be satisfied:
‐ All discrete conservation equations (momentum, energy,
etc.) are obeyed in all cells to a specified tolerance
(Residual)
• The residual measures the imbalance of the current numerical solution Iteration Number
and is related to but NOT EQUAL to the numerical error
‐ Overall mass, momentum, energy, and scalar balances are
Isentropic Efficiency
achieved
‐ Target quantities reach constant values
• Integral: e.g. Pressure drop
• Local: e.g. Velocity at specified position
Iteration Number
All equations
converged
10-3
10-6
• The net flux imbalance (shown in the GUI as Net Results) should be less than 1% of the
smallest flux through the domain boundary
• 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 pseudo transient solver, decrease
timescale factor
– 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!