Using L-infinity norm as convergence criteria when using FFT-preconditioned Conjugate Gradient Solver #4119
Unanswered
xkykai
asked this question in
Computational science!
Replies: 2 comments 1 reply
-
If you are interested by the residuals, |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am specifically referring to the choice of where in our CG iterations we use the L2 norm of the residual as the convergence criteria. Your suggestions of using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When we use the conjugate gradient solver and set some value of
reltol
andabstol
, implicitly I suspect people imagine that the residuals of the solution are roughly uniformly distributed within the entire immersed domain. However, when the FFT solver is used a preconditioner, what happens is that the flow divergence occurs near the immersed boundaries, therefore the residuals of the CG solver actually concentrates near the immersed boundary.See below for an example of a converged time step for an immersed boundary simulation:
Thus when we use a L2 norm as we are doing right now, the L2 norm would actually have much smaller values than the maximum of the residuals due to us averaging over a region with many much smaller numbers.
Perhaps it is a useful feature/default to set the convergence criteria using the L-infinity norm (ie: the maximum value) of the residuals instead? This way we guarantee no values of residuals are orders of magnitude larger than our tolerance.
@amontoison @glwagner @simone-silvestri interested in your thoughts!
Beta Was this translation helpful? Give feedback.
All reactions