840 likes | 1.01k Views
From Gaussian Elimination to Multigrid – A Recapitulation. Dr. Miriam Mehl. Introduction to Scientific Computing II. Tasks – SLE. ???. Tasks – Molecular Dynamics. Prerequisites. discretisation of PDEs linear algebra Gaussian elimination basics on iterative solvers
E N D
From Gaussian Elimination to Multigrid – A Recapitulation Dr. Miriam Mehl Introduction to Scientific Computing II
Tasks – SLE ???
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 emailDr. Miriam Mehl: mehl@in.tum.deMartin Buchholz:buchholm@in.tum.de
Introduction to Scientific Computing II From Gaussian Elimination to Multigrid – A Recapitulation Dr. Miriam Mehl
What’s the Problem to be Solved? Application Scenario Partial Differential Equations Modelling Scientific Computing I Finite Elements Finite Differences (Finite Volumes) Scientific Computing I Numerical Programming II Systems of linear equations LU, Richardson, Jacobi, Gauss-Seidel, SOR, MG Scientific Computing I, Scientific Computing Lab, Numerical Programming I More on this!!!
Example Equation v v v v v v v v v v v v v v v two-dimensional Poisson equation • heat equation • diffusion • membranes • … grid + finite differences
Typical SLE sparse band structure
Gaussian Elimination – Costs 2D: O(N4) 3D: O(N7)
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 uxx=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
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 problem: order an amount of peas on a straight line (corresponds to solving uxx=0)