The equations of patchwork.solvers.multigrid, declared on the code that implements them and checked by the tests.
A geometric multigrid V-cycle over the levels of a hierarchy, preconditioning CG.
- spaces
- V0⊂⋯⊂VL: the composite nodes of the hierarchy without its finest levels, then of its base level coarsened by 2k
- interpolation
- Pk=Ek(xfree(k+1))Tkfree,Ak=Pk⊤Ak+1Pk (Galerkin)
- cycle
- V-cycle: Chebyshev/Jacobi smoothing on [0.1,1.1]λmax(D−1A) (or Gauss–Seidel), LU on V0; CG (GMRES if A=A⊤), ∥r∥≤rtol∥b∥
- diagonal
- A1=P0⊤(A+diagd)P0=A1ref+Wd,W(a,b),i=(P0)ia(P0)ib
- singular
- b→b−bˉ,p∑Vp(Tϕ)p=0(no Dirichlet face, no body; all nodes, the hanging ones too)
- Assumes
- the coarse spaces are nested in the fine one: a refinement level is a multigrid level
- the base level halves while every bound of its boxes is even and every axis keeps two cells; else its LU is the coarsest solve
- the whole system on every rank (like 'lu')
- a base level with an odd number of cells along an axis coarsens on its node lattice (linear interpolation)
- smoother='gauss-seidel': multicolour symmetric Gauss--Seidel, the V-cycle compiled (OpenMP over each colour) when the coarsest level is small
- point (Jacobi) smoothing: a strongly anisotropic coefficient (magnetized susceptibility) slows it down
- References
- W. L. Briggs, V. E. Henson and S. F. McCormick, A Multigrid Tutorial, 2nd ed., SIAM (2000)
- McCormick and Thomas, Math. Comp. 46, 439 (1986): the fast adaptive composite grid method
- Adams, Brezina, Hu and Tuminaro, J. Comput. Phys. 188, 593 (2003)00194-3): Chebyshev smoothers
- Built from