ProjectA
ProjectA
(2022 – 2023)
Project
Rules
1
Project statement
1 Discretization (0 points)
with the domain Ω and the problem parameters as specified in your MATH-H-301 project.
The boundary conditions are also the same as in your MATH-H-301 project, except if
they are all homogeneous (because the problem in this project was initially an eigenvalue
problem). In (and only in) this latter case, exchange homogeneous boundary conditions
on ∂Ω p
u = exp( x2 + y 2 ) on ∂Ω .
2
2 Two-grid method (4 points)
Implement the solution of the linear system with a proper geometric two-grid method,
using Gauss–Seidel smoothing (either standard or in symmetric/symmetrized form) and
solving the coarse grid problem with the direct solver UMFPACK.
For UMFPACK, in http://metronu.ulb.ac.be/MATH-H-301/1819/projet.v0.tar.gz,
you will find the package together with an example of use.
Hint: start with the implementation of stationary iterations with (symmetric) Gauss-
Seidel method (either as a preconditioner or as a solver).
Check the convergence of the method by plotting the residual norm against the number of
two-grid iterations; use semi-logarithmic scale.
On the basis of the previously obtained two-grid method, implement the solution of the
linear system with a multigrid method.
Compare the convergence with that of the two-grid method by plotting the corresponding
residual norms against the number of iterations; use semi-logarithmic scale.
Note : your multigrid method implementation is expected to run on large enough instances
of your discretized PDE problem. However, limiting the code to a series of selected problem
sizes, chosen to enable a generation of a proper multigrid hierarchy, is advised.