There are many variations of multigrid algorithms, but the common features are that a hierarchy of
discretizations (grids) is considered. The important steps are: •
Smoothing – reducing high frequency errors, for example using a few
iterations of the
Gauss–Seidel method. •
Residual Computation – computing
residual error after the smoothing operation(s). •
Restriction – downsampling the
residual error to a coarser grid. •
Interpolation or
prolongation – interpolating a correction computed on a coarser grid into a finer grid. •
Correction – Adding prolongated coarser grid solution onto the finer grid. There are many choices of multigrid methods with varying trade-offs between speed of solving a single iteration and the rate of convergence with said iteration. The 3 main types are V-Cycle, F-Cycle, and W-Cycle. These differ in which and how many coarse-grain cycles are performed per fine iteration. The V-Cycle algorithm executes one coarse-grain V-Cycle. F-Cycle does a coarse-grain V-Cycle followed by a coarse-grain F-Cycle, while each W-Cycle performs two coarse-grain W-Cycles per iteration. For a
discrete 2D problem, F-Cycle takes 83% more time to compute than a V-Cycle iteration while a W-Cycle iteration takes 125% more. If the problem is set up in a 3D domain, then a F-Cycle iteration and a W-Cycle iteration take about 64% and 75% more time respectively than a V-Cycle iteration ignoring
overheads. Typically, W-Cycle produces similar convergence to F-Cycle. However, in cases of
convection-diffusion problems with high
Péclet numbers, W-Cycle can show superiority in its rate of convergence per iteration over F-Cycle. The choice of smoothing operators are extremely diverse as they include
Krylov subspace methods and can be
preconditioned. Any geometric multigrid cycle iteration is performed on a hierarchy of grids and hence it can be coded using recursion. Since the function calls itself with smaller sized (coarser) parameters, the coarsest grid is where the recursion stops. In cases where the system has a high
condition number, the correction procedure is modified such that only a fraction of the prolongated coarser grid solution is added onto the finer grid. == Computational cost ==