There are several additional parameters that control the algebraic multigrid solver, but there will usually be no need to modify them. These additional scalar and coupled parameters are all contained in the Multigrid tab in the Advanced Solution Controls Dialog Box (Figure 28.9: The Multigrid Tab for the Flexible Cycle).
Solution →
Controls → Advanced...
Important: When using the density-based explicit formulation or the pressure-based solver with any of the segregated algorithms, described in Pressure-Velocity Coupling in the Theory Guide and Choosing the Pressure-Velocity Coupling Method, only Scalar Parameters are set in the Multigrid tab. If you use the density-based implicit or the pressure-based coupled algorithm, described in Coupled Algorithm in the Theory Guide, then you can set the Coupled Parameters.
For the fixed (V, W, and F) multigrid cycles, you can control the number of
pre- and post-relaxations ( and
in Multigrid Cycles in the Theory Guide).
Pre-Sweeps sets the number of relaxations to perform
before moving to a coarser level. Post-Sweeps sets the
number to be performed after coarser level corrections have been applied.
Normally, under Scalar Parameters, one post-relaxation is
performed and no pre-relaxations are done (that is,
and
), but in rare cases, you may need to increase the value of
to 1 or 2. Under Coupled Parameters,
three post-relaxations are performed by default with no pre-relaxations. If you
are using the pressure-based coupled solver for a steady simulation with
pseudo-transient enabled, three post-relaxations are performed under
Scalar Parameters also.
If you are using AMG with V-cycle to solve an energy equation with
a solid conduction model presented with anisotropic or very high
conductivity coefficient, there is a possibility of divergence with
a default post-relaxation sweep of . In such cases you should increase the
post-relaxation sweep (to say
) in the AMG section for better convergence when
using the pressure-based segregated algorithms.
It is recommended that you use the Fixed F-cycle for the energy equation when running parallel ANSYS Fluent.
For all multigrid cycle types, you can control the maximum number of coarse levels (Max Coarse Levels under Scalar or Coupled Parameters) that will be built by the multigrid solver.
Sets of coarser simultaneous equations are built until the maximum number of levels has been created, or the coarsest level has only 3 equations. Each level has about half as many unknowns as the previous level, so coarsening until there are only a few cells left will require about as much total coarse-level coefficient storage as was required on the fine mesh. Reducing the maximum coarse levels will reduce the memory requirements, but may require more iterations to achieve a converged solution. Setting Max Coarse Levels to 0 turns off the algebraic multigrid solver.
Another coarsening parameter you can control is the increase in coarseness on successive levels. The Coarsen by parameter specifies the number of fine grid cells that will be grouped together to create a coarse grid cell. The algorithm groups each cell with its strongest neighbor, then groups the cell and its strongest neighbor with the neighbor’s strongest neighbor, continuing until the desired coarsening is achieved. Typical values for the scalar parameters are in the range from 2 to 10, with the default value of 2 for the Gauss-Seidel smoother giving the best performance, but also the greatest memory use. For coupled parameters and scalar parameters when using the pressure-based coupled solver with pseudo-transient enabled, the default values of 4 (for 2D) and 8 (for 3D) for the ILU smoother give the best performance. You should not adjust this parameter unless you need to reduce the memory required to run a problem.
Important: Depending on the smoother type, Gauss-Seidel or ILU, the Coarsen by and Post-Sweeps settings should be changed as follows when selecting the non-default smoother type:
: Post-Sweeps=3 and Coarsen by = 8
: Post-Sweeps=1 and Coarsen by = 2
By default, a cell’s strongest neighbor is identified based on the magnitude of its interaction with the cell in question. Alternatively, you can enable Laplace Coarsening under Scalar Parameters or Coupled Parameters in the Multigrid tab of the Advanced Solution Controls dialog box. The Laplace coarsening option will use Laplace coefficients to evaluate neighbor strength when grouping cells for coarsening. This may improve stability in some cases because the coarser levels will not change as the solution evolves. It may also reduce computation time, particularly at high core counts, because the coarse levels don’t need to be recreated every iteration.
For coupled equations, a Conservative Coarsening AMG option is enabled by default. This option improves convergence for difficult problems by tuning multigrid coarsening based on coefficient strengths and, in parallel computations, the partitioning.
Two smoother types are available for scalar and coupled parameters. Gauss-Seidel is the simplest smoother type and is recommended when using the pressure-based segregated algorithm. ILU is more CPU intensive, but has better smoothing properties for block-coupled systems such as the pressure-based coupled solver and the density-based implicit formulation. The default scalar Smoother Type is Gauss-Seidel, while the coupled Smoother Type is ILU. The ILU smoother is also used for scalar equations when using the coupled solver with pseudo-transient enabled. For more information about the two smoother types, see The Coupled and Scalar AMG Solvers in the Theory Guide.
To change the maximum number of relaxations, increase or decrease the value of Max Fine Relaxations or Max Coarse Relaxations in the Multigrid tab in the Advanced Solution Controls Dialog Box (Figure 28.9: The Multigrid Tab for the Flexible Cycle) under Flexible Cycle Parameters.
Solution →
Controls → Advanced...
The steps for monitoring the solver are as follows:
Set multigrid Verbosity to 1 or 2 in the Multigrid tab in the Advanced Solution Controls Dialog Box.
Solution →
Controls
→ Advanced...
Request a single iteration using the Run Calculation Task Page.
Solution →
Run Calculation
If you set the verbosity to 2, the information printed in the ANSYS Fluent console for each equation will include the following:
equation name
equation tolerance (computed by the solver using a normalization of the source vector)
residual value after each fixed multigrid cycle or fine relaxation for the flexible cycle
number of equations in each multigrid level, with the zeroth level being the original (finest-level) system of equations
Note that the residual printed at cycle or relaxation 0 is the initial residual before any multigrid cycles are performed.
When verbosity is set to 1, only the equation name, tolerance, and residuals are printed.
A portion of a sample printout is shown below:
pressure correction equation: tol. 1.2668e-05 0 2.5336e+00 1 4.9778e-01 2 2.5863e-01 3 1.9387e-01 multigrid levels: 0 918 1 426 2 205 3 97 4 45 5 21 6 10 7 4
If you change the multigrid parameters, but you then want to return to ANSYS Fluent’s default settings, you can click the button in the Multigrid tab. ANSYS Fluent will change all settings to the defaults, and the button will become the Reset button. To get your settings back again, you can click the button.