Troubleshooting the Adjoint Solver

Similar to a standard flow simulation, it is possible that the iterative process does not converge or even diverges.

One of the most common reasons for difficult convergence behavior is the mesh quality. The adjoint solver has a high requirement on the mesh quality. Even though the coupled primal solution converges, the mesh quality might not be sufficient for the adjoint solution to converge.

  • If you suspect that this could be the case, then perform the mesh quality checks as described in Checking the Volume Mesh. If necessary, improve the cell quality of the volume mesh and re-run the primal solution.

There are some numerical measures that you can take to improve the adjoint solver convergence.

  • If the AMG preconditioner residual is not decreasing by 1 to 2 orders of magnitude, reduce the Courant number of the Adjoint Coupled Implicit solver.
  • Increase the number of Krylov Space Dimensions vectors up to available memory. See GMRES Krylov Solver.
  • Switch to Right Preconditioning instead of using default Left Preconditioning.
  • Switch to Flexible GMRES instead of using default Restarted GMRES acceleration method.
    NoteThis switching requires double the memory if the Krylov Space Dimensions vectors are kept the same.

The following flow chart describes the procedure of improving the adjoint convergence: