Introduction to Scientific Computing II From Gaussian Elimination to Multigrid – A Recapitulation Dr. Miriam Mehl
Tasks – SLE ???
Tasks – Molecular Dynamics
Prerequisites discretisation of PDEs linear algebra Gaussian elimination basics on iterative solvers Jacobi, Gauss-Seidel, SOR, MG matlab
Organization lecture (90 min/week) –theory –methods –simple examples tutorials (45 min/week) –more examples –make your own experiences
What Determines the Grading? written exam at the end of the semester no weighting of tutorials !!!! solving tutorials is essential !!!! -for understanding and remembering subjects -for your success in the exam
Materials slides (short, only headwords) exercise sheets make your own lecture notes! find your own solutions! solutions presented in the tutorials
Rules for questions ask or fix a date per Dr. Miriam Mehl: Martin Buchholz:
Introduction to Scientific Computing II From Gaussian Elimination to Multigrid – A Recapitulation Dr. Miriam Mehl
What’s the Problem to be Solved? Finite Elements Finite Differences (Finite Volumes) Scientific Computing I Numerical Programming II Systems of linear equations Application Scenario Modelling Scientific Computing I Partial Differential Equations LU, Richardson, Jacobi, Gauss-Seidel, SOR, MG Scientific Computing I, Scientific Computing Lab, Numerical Programming I More on this!!!
two-dimensional Poisson equation heat equation diffusion membranes … Example Equation v v v v v v v v v v v v v v v grid + finite differences
Typical SLE sparse band structure
Example
Gaussian Elimination (LU)
Gaussian Elimination – Costs 2D: O(N 4 ) 3D: O(N 7 )
Gaussian Elimination – Costs 2D hallo hruntime (HLRB2, 62 TFlop/s) sec sec sec min 16 sec min 55 sec h 02 min 40 sec d 8 h 37 min 15 sec
Gaussian Elimination – Costs 3D hallo hruntime (HLRB2, 62 TFlop/s) min 44 sec h 05 min 24 sec d 19 h 21 min 17 sec a 313 d 21 h 54 min 22 sec
Iterative Solvers – Principle series of approximations costs per iteration? convergence? stopping criterion?
Relaxation Methods problem: order an amount of peas on a straight line (corresponds to solving u xx =0)
Relaxation Methods – Gauss-Seidel sequentially place peas on the line between two neighbours
Relaxation Methods – Gauss-Seidel
sequentially place peas on the line between two neighbours Relaxation Methods – Gauss-Seidel
sequentially place peas on the line between two neighbours Relaxation Methods – Gauss-Seidel
sequentially place peas on the line between two neighbours Relaxation Methods – Gauss-Seidel
sequentially place peas on the line between two neighbours Relaxation Methods – Gauss-Seidel
sequentially place peas on the line between two neighbours Relaxation Methods – Gauss-Seidel
sequentially place peas on the line between two neighbours Relaxation Methods – Gauss-Seidel
sequentially place peas on the line between two neighbours Relaxation Methods – Gauss-Seidel
sequentially place peas on the line between two neighbours Relaxation Methods – Gauss-Seidel
sequentially place peas on the line between two neighbours Relaxation Methods – Gauss-Seidel
sequentially place peas on the line between two neighbours Relaxation Methods – Gauss-Seidel
sequentially place peas on the line between two neighbours Relaxation Methods – Gauss-Seidel
sequentially place peas on the line between two neighbours Relaxation Methods – Gauss-Seidel
sequentially place peas on the line between two neighbours Relaxation Methods – Gauss-Seidel
sequentially place peas on the line between two neighbours Relaxation Methods – Gauss-Seidel
sequentially place peas on the line between two neighbours Relaxation Methods – Gauss-Seidel
sequentially place peas on the line between two neighbours Relaxation Methods – Gauss-Seidel
sequentially place peas on the line between two neighbours Relaxation Methods – Gauss-Seidel
sequentially place peas on the line between two neighbours Relaxation Methods – Gauss-Seidel
sequentially place peas on the line between two neighbours Relaxation Methods – Gauss-Seidel
sequentially place peas on the line between two neighbours we get a smooth curve instead of a straight line global error is locally (almost) invisible Relaxation Methods – Gauss-Seidel
Relaxation Methods problem: order an amount of peas on a straight line (corresponds to solving u xx =0)
Relaxation Methods – Jacobi place peas on the line between two neighbours in parallel
Relaxation Methods – Jacobi place peas on the line between two neighbours in parallel
Relaxation Methods – Jacobi place peas on the line between two neighbours in parallel
Relaxation Methods – Jacobi place peas on the line between two neighbours in parallel we get a high plus a low frequency oscillation these fequencies are locally (almost) invisible
Relaxation Methods problem: order an amount of peas on a straight line (corresponds to solving u xx =0)
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR
sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours
Relaxation Methods – SOR sequentially correct location of peas a little more than to the line between two neighbours better than GS and J, but still not optimal
Relaxation Methods problem: order an amount of peas on a straight line (corresponds to solving u xx =0)
Relaxation Methods – Hierarchical place peas on the line between two neighbours in parallel, but in a hierarchical way from coarse to smooth
Relaxation Methods – Hierarchical place peas on the line between two neighbours in parallel, but in a hierarchical way from coarse to smooth
Relaxation Methods – Hierarchical place peas on the line between two neighbours in parallel, but in a hierarchical way from coarse to smooth
Relaxation Methods – Hierarchical place peas on the line between two neighbours in parallel, but in a hierarchical way from coarse to smooth exact solution in one step unfortunately only in 1D, 2D and 3D: multigrid