Introduction to Scientific Computing II Overview Michael Bader.

Slides:



Advertisements
Similar presentations
Partial Differential Equations
Advertisements

CSCI-455/552 Introduction to High Performance Computing Lecture 25.
1 Numerical Solvers for BVPs By Dong Xu State Key Lab of CAD&CG, ZJU.
CS 290H 7 November Introduction to multigrid methods
The Finite Element Method Defined
MATH 685/ CSI 700/ OR 682 Lecture Notes
Linear Systems of Equations
Numerical Algorithms Matrix multiplication
1 Systems of Linear Equations Iterative Methods. 2 B. Iterative Methods 1.Jacobi method and Gauss Seidel 2.Relaxation method for iterative methods.
1 Systems of Linear Equations Iterative Methods. 2 B. Direct Methods 1.Jacobi method and Gauss Seidel 2.Relaxation method for iterative methods.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 20 Solution of Linear System of Equations - Iterative Methods.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Parallel Programming in C with MPI and OpenMP Michael J. Quinn.
Thomas algorithm to solve tridiagonal matrices
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
Monica Garika Chandana Guduru. METHODS TO SOLVE LINEAR SYSTEMS Direct methods Gaussian elimination method LU method for factorization Simplex method of.
Iterative Methods for Solving Linear Systems of Equations ( part of the course given for the 2 nd grade at BGU, ME )
Assignment Solving System of Linear Equations Using MPI Phạm Trần Vũ.
Computer Engineering Majors Authors: Autar Kaw
1 Numerical Integration of Partial Differential Equations (PDEs)
Time integration methods for the Heat Equation Solution u for t= Tobias Köppl TUM.
9/7/ Gauss-Siedel Method Chemical Engineering Majors Authors: Autar Kaw Transforming.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Scientific Computing Partial Differential Equations Poisson Equation.
Introduction to Scientific Computing II From Gaussian Elimination to Multigrid – A Recapitulation Dr. Miriam Mehl.
10/17/ Gauss-Siedel Method Industrial Engineering Majors Authors: Autar Kaw
Chapter 3 Solution of Algebraic Equations 1 ChE 401: Computational Techniques for Chemical Engineers Fall 2009/2010 DRAFT SLIDES.
Linear Systems Iterative Solutions CSE 541 Roger Crawfis.
10/26/ Gauss-Siedel Method Civil Engineering Majors Authors: Autar Kaw Transforming.
Administrivia: May 20, 2013 Course project progress reports due Wednesday. Reading in Multigrid Tutorial: Chapters 3-4: Multigrid cycles and implementation.
Lecture 7 - Systems of Equations CVEN 302 June 17, 2002.
Elliptic PDEs and the Finite Difference Method
Parallel Solution of the Poisson Problem Using MPI
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Linear Systems – Iterative methods
Introduction to Scientific Computing II Multigrid Dr. Miriam Mehl Institut für Informatik Scientific Computing In Computer Science.
Introduction to Scientific Computing II Multigrid Dr. Miriam Mehl.
Lecture 21 MA471 Fall 03. Recall Jacobi Smoothing We recall that the relaxed Jacobi scheme: Smooths out the highest frequency modes fastest.
Introduction to Scientific Computing II
Discretization for PDEs Chunfang Chen,Danny Thorne Adam Zornes, Deng Li CS 521 Feb., 9,2006.
Partial Derivatives Example: Find If solution: Partial Derivatives Example: Find If solution: gradient grad(u) = gradient.
Mechanical Engineering Majors Authors: Autar Kaw
9 Nov B - Introduction to Scientific Computing1 Sparse Systems and Iterative Methods Paul Heckbert Computer Science Department Carnegie Mellon.
2/26/ Gauss-Siedel Method Electrical Engineering Majors Authors: Autar Kaw
Scientific Computing Lab Organization Dr. Miriam Mehl Institut für Informatik Scientific Computing in Computer Science.
3/6/ Gauss-Siedel Method Major: All Engineering Majors Author: دکتر ابوالفضل رنجبر نوعی
The Application of the Multigrid Method in a Nonhydrostatic Atmospheric Model Shu-hua Chen MMM/NCAR.
University of Colorado
Lecture 9 Numerical Analysis. Solution of Linear System of Equations Chapter 3.
Computational Fluid Dynamics Lecture II Numerical Methods and Criteria for CFD Dr. Ugur GUVEN Professor of Aerospace Engineering.
MA2213 Lecture 12 REVIEW. 1.1 on page Compute Compute quadratic Taylor polynomials for 12. Compute where g is the function in problems 11 and 12.
S5.40. Module Structure 30% practical tests / 70% written exam 3h lectures / week (except reading week) 3 x 2h of computer labs (solving problems practicing.
Numerical Analysis Lecture12.
Scientific Computing Lab
Lecture 19 MA471 Fall 2003.
Introduction to Multigrid Method
Introduction to Scientific Computing II
Scientific Computing Lab
Introduction to Scientific Computing II
Matrix Methods Summary
Introduction to Scientific Computing II
Introduction to Scientific Computing II
Introduction to Scientific Computing II
Introduction to Scientific Computing II
Introduction to Scientific Computing II
Introduction to Scientific Computing II
Numerical Analysis Lecture13.
Numerical Linear Algebra
Introduction to Scientific Computing II
Numerical Analysis Lecture11.
Home assignment #3 (1) (Total 3 problems) Due: 12 November 2018
Presentation transcript:

Introduction to Scientific Computing II Overview Michael Bader

Recall: Scientific Computing “Pipeline”

Topic #1 – SLE (numerical treatment, implementation) ???

Topic #2 – Molecular Dynamics (entire pipeline for one application)

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 however: solving tutorials is essential -for understanding and remembering subjects -for your success in the exam

Course Material slides (short, only headwords) exercise sheets  make your own lecture notes!  find your own solutions!  solutions presented in the tutorials

Contact for questions contact us after the lectures or fix a date per Michael Bader: Wolfgang Eckhardt:

Introduction to Scientific Computing II From Gaussian Elimination to Multigrid – A Recapitulation

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 Storage: (for an n-by-n grid) matrix has N = n 2 rows in L and U: n new non-zeros per row therefore: O(Nn) = O(n 3 ) bytes In 3D: N = n 3 rows, n 2 new non-zeros therefore: O(Nn 2 ) = O(n 5 ) bytes

Gaussian Elimination – Costs Operations: matrix has N = n 2 rows for each row, eliminate n non-zeros in column below addition of rows requ. O(n) operations therefore: O(Nn 2 ) = O(n 4 ) operations In 3D: N = n 3 rows, n 2 new non-zeros therefore: O(Nn 4 ) = O(n 7 ) operations

Gaussian Elimination – Costs Storage: (for an n-by-n grid) 2D: O(Nn) = O(n 3 ) bytes 3D: O(Nn 2 ) = O(n 5 ) bytes Computation: 2D: O(Nn 2 ) = O(n 4 ) operations 3D: O(Nn 4 ) = O(n 7 ) operations Even for problems of modest size (n = )  Gaussian Elimination is unfeasible

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