Troubleshooting the AMG Linear Solver
If you suspect that the AMG Linear Solver causes convergence problems, you can try the following troubleshooting procedure:
-
In the
AMG Linear Solver Properties window, set the
Verbosity to
Diagnostics.
-
Continue to iterate, and in the Output window,
identify the solver with which AMG
has problems. Then stop the iterations.
-
For the solver in which the AMG Linear Solver has
issues, either lacking convergence or diverging, deactivate the multigrid
procedure:
- Select the Cycle node.
- In the Properties window, set Max Levels to 0.
-
Select the AMG Linear Solver node and, in the Properties window, change Max
Cycles to a larger value (around 100—200).
- Run the simulation again.
If now the AMG Linear Solver does not converge (residuals not decreasing) or if divergence still occurs, it indicates an error in the coefficient of the linear system coming from the discretization. This shows that the problem is not located in the AMG Linear Solver—it could come from a meshing issue, for example.
Note |
AMG Linear Solver has another, more robust relaxation scheme method called ILU. You can enable this scheme for the most difficult problems, if you encounter issues with the Jacobi or (the default) the Gauss-Seidel relaxation schemes. Test with the ILU scheme when encountering numeric issues with the AMG Linear Solver. If using the ILU scheme solves the problem, it is a sign that the physical problem discretization is too stiff and lacks the properties required by Jacobi or Gauss-Seidel schemes. In this case, continue using the ILU scheme for such difficult problems. ILU scheme is more robust but also has added CPU cost. |
If Step 2 resolves the problem, it could indicate a technical issue inside the AMG Linear Solver. Contact your Siemens Digital Industries Software support engineer.