Geometric (Classical) MultiGrid. Hierarchy of graphs Apply grids in all scales: 2x2, 4x4, …, n 1/2 xn 1/2 Coarsening Interpolate and relax Solve the large.

Slides:



Advertisements
Similar presentations
School of something FACULTY OF OTHER School of Computing An Adaptive Numerical Method for Multi- Scale Problems Arising in Phase-field Modelling Peter.
Advertisements

Mutigrid Methods for Solving Differential Equations Ferien Akademie 05 – Veselin Dikov.
CISC 489/689 Spring 2009 University of Delaware
systems of linear equations
Chapter 8 Elliptic Equation.
Improvement of a multigrid solver for 3D EM diffusion Research proposal final thesis Applied Mathematics, specialism CSE (Computational Science and Engineering)
1 Iterative Solvers for Linear Systems of Equations Presented by: Kaveh Rahnema Supervisor: Dr. Stefan Zimmer
1 Numerical Solvers for BVPs By Dong Xu State Key Lab of CAD&CG, ZJU.
CS 290H 7 November Introduction to multigrid methods
SOLVING THE DISCRETE POISSON EQUATION USING MULTIGRID ROY SROR ELIRAN COHEN.
CSCI-455/552 Introduction to High Performance Computing Lecture 26.
MULTISCALE COMPUTATIONAL METHODS Achi Brandt The Weizmann Institute of Science UCLA
Image Reconstruction Group 6 Zoran Golic. Overview Problem Multigrid-Algorithm Results Aspects worth mentioning.
Graph problems Partition: min cut Clustering bioinformatics Image segmentation VLSI placement Routing Linear arrangement: bandwidth, cutwidth Graph drawing.
Algebraic MultiGrid. Algebraic MultiGrid – AMG (Brandt 1982)  General structure  Choose a subset of variables: the C-points such that every variable.
Total Recall Math, Part 2 Ordinary diff. equations First order ODE, one boundary/initial condition: Second order ODE.
Influence of (pointwise) Gauss-Seidel relaxation on the error Poisson equation, uniform grid Error of initial guess Error after 5 relaxation Error after.
Geometric (Classical) MultiGrid. Linear scalar elliptic PDE (Brandt ~1971)  1 dimension Poisson equation  Discretize the continuum x0x0 x1x1 x2x2 xixi.
Easy Optimization Problems, Relaxation, Local Processing for a single variable.
Multiscale Methods of Data Assimilation Achi Brandt The Weizmann Institute of Science UCLA INRODUCTION EXAMPLE FOR INVERSE PROBLEMS.
Partial differential equations Function depends on two or more independent variables This is a very simple one - there are many more complicated ones.
MULTISCALE COMPUTATION: From Fast Solvers To Systematic Upscaling A. Brandt The Weizmann Institute of Science UCLA
MULTISCALE COMPUTATIONAL METHODS Achi Brandt The Weizmann Institute of Science UCLA
Module on Computational Astrophysics Jim Stone Department of Astrophysical Sciences 125 Peyton Hall : ph :
Exercise where Discretize the problem as usual on square grid of points (including boundaries). Define g and f such that the solution to the differential.
Numerical methods for PDEs PDEs are mathematical models for –Physical Phenomena Heat transfer Wave motion.
1 Numerical Integration of Partial Differential Equations (PDEs)
© Fluent Inc. 9/5/2015L1 Fluids Review TRN Solution Methods.
Multigrid for Nonlinear Problems Ferien-Akademie 2005, Sarntal, Christoph Scheit FAS, Newton-MG, Multilevel Nonlinear Method.
Estimating the Laplace-Beltrami Operator by Restricting 3D Functions Ming Chuang 1, Linjie Luo 2, Benedict Brown 3, Szymon Rusinkiewicz 2, and Misha Kazhdan.
Finite Element Method.
6. Introduction to Spectral method. Finite difference method – approximate a function locally using lower order interpolating polynomials. Spectral method.
1 Computational Methods II (Elliptic) Dr. Farzad Ismail School of Aerospace and Mechanical Engineering Universiti Sains Malaysia Nibong Tebal Pulau.
Elliptic PDEs and the Finite Difference Method
Solving an elliptic PDE using finite differences Numerical Methods for PDEs Spring 2007 Jim E. Jones.
MULTISCALE COMPUTATION: From Fast Solvers To Systematic Upscaling A. Brandt The Weizmann Institute of Science UCLA
Multigrid Computation for Variational Image Segmentation Problems: Multigrid approach  Rosa Maria Spitaleri Istituto per le Applicazioni del Calcolo-CNR.
Using the Segregated and Coupled Solvers
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.
High Performance Computing 1 Multigrid Some material from lectures of J. Demmel, UC Berkeley Dept of CS.
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.
MULTISCALE COMPUTATIONAL METHODS Achi Brandt The Weizmann Institute of Science UCLA
1 Solving the algebraic equations A x = B =. 2 Direct solution x = A -1 B = = Applicable only to small problems For the vertical in the spectral technique.
Generalized Finite Element Methods
Elliptic PDEs and Solvers
The Application of the Multigrid Method in a Nonhydrostatic Atmospheric Model Shu-hua Chen MMM/NCAR.
Adaptive grid refinement. Adaptivity in Diffpack Error estimatorError estimator Adaptive refinementAdaptive refinement A hierarchy of unstructured gridsA.
Programming assignment # 3 Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Optimizing 3D Multigrid to Be Comparable to the FFT Michael Maire and Kaushik Datta Note: Several diagrams were taken from Kathy Yelick’s CS267 lectures.
Xing Cai University of Oslo
MultiGrid.
© Fluent Inc. 1/10/2018L1 Fluids Review TRN Solution Methods.
CHE 391 T. F. Edgar Spring 2012.
Convergence in Computational Science
A Multigrid Tutorial part two
Introduction to Multigrid Method
Introduction to Scientific Computing II
Stencil Quiz questions
Stencil Quiz questions
Numerical Analysis Lecture13.
Problems with Gauss-Seidel
Numerical Methods on Partial Differential Equation
Comparison of CFEM and DG methods
Ph.D. Thesis Numerical Solution of PDEs and Their Object-oriented Parallel Implementations Xing Cai October 26, 1998.
Programming assignment #1 Solving an elliptic PDE using finite differences Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Presentation transcript:

Geometric (Classical) MultiGrid

Hierarchy of graphs Apply grids in all scales: 2x2, 4x4, …, n 1/2 xn 1/2 Coarsening Interpolate and relax Solve the large systems of equations by multigrid! G1G1 G2G2 G3G3 GlGl G1G1 G2G2 G3G3 GlGl

Linear (2 nd order) interpolation in 1D x1x1 x2x2 x F(x)

i S(i) (U lb,V lb ) (U rt,V rt )(U lt,V lt ) (U rb,V rb ) (x 2,y 2 )(x 1,y 2 ) (x 2,y 1 )(x 1,y 1 ) (x 0,y 0 ) Bilinear interpolation C(S(i))={rb,rt,lb,lt}

i S(i) (U lb,V lb ) (U rt,V rt )(U lt,V lt ) (U rb,V rb ) (x 2,y 2 )(x 1,y 2 ) (x 2,y 1 )(x 1,y 1 ) (x 0,y 0 ) (U l,V l )(U r,V r )

From (x,y) to (U,V) by bilinear intepolation

Linear scalar elliptic PDE (Brandt ~1971)  1 dimension Poisson equation  Discretize the continuum x0x0 x1x1 x2x2 xixi x N-1 xNxN x=0x=1 Grid: Let local averaging

Linear scalar elliptic PDE  1 dimension Laplace equation  Second order finite difference approximation => Solve a linear system of equations Not directly, but iteratively => Use Gauss Seidel pointwise relaxation

fine grid h u = average of u's approximating Laplace eq.

u given on the boundary h e.g., u = average of u's approximating Laplace eq. Point-by-point RELAXATION Solution algorithm:

Exc#9: Error calculations 1.Use Taylor expansion to calculate the error when U’’(x) is approximated by 2.Find a,b,c,d and e such that This is a higher order approximation for U’’(x) than the one in exercise 1.

Exc#10: Gauss Seidel relaxation Solve the 1D Laplace equation U’’(x)=0, 0<x<1 by Gauss Seidel relaxation. Start with the approximations 1. U i = random(0,1), 2. U i = sin(  x), where U 0 = U N = 0 for N=32. Plot the L2 norm of the error and of the residual versus the number of iterations k=1,…,100, where the L2 norm of a vector v is and the residual of LU=F is R=F-LU Do you see a difference in the asymptotic behavior between the 2 norms? Which case converges faster 1. or 2., explain

Influence of (pointwise) Gauss-Seidel relaxation on the error Poisson equation, uniform grid Error of initial guess Error after 5 relaxation Error after 10 relaxations Error after 15 relaxations

The basic observations of ML  Just a few relaxation sweeps are needed to converge the highly oscillatory components of the error => the error is smooth  Can be well expressed by less variables  Use a coarser level (by choosing every other line) for the residual equation  Smooth component on a finer level becomes more oscillatory on a coarser level => solve recursively  The solution is interpolated and added

h2h Local relaxation approximation smooth L h U h =F h L 2h U 2h =F 2h

LU=F h 2h 4h L h U h =F h L 2h U 2h =F 2h L 4h U 4h =F 4h

TWO GRID CYCLE Approximate solution: Fine grid equation: 2. Coarse grid equation: h2 v ~~~ h old h new uu  Residual equation: Smooth error: 1. Relaxation residual: h2 v ~ Approximate solution: 3. Coarse grid correction: 4. Relaxation

Why additional relaxations are needed?

A smooth approximation is obtained after relaxation on the finer level

Why additional relaxations are needed? A smooth approximation is obtained after relaxation on the finer level The coarse grid correction

Why additional relaxations are needed? The coarse grid correction Interpolate and add

Why additional relaxations are needed? The coarse grid correction Interpolate and add

Why additional relaxations are needed? The coarse grid correction Interpolate and add

Why additional relaxations are needed? The coarse grid correction Interpolate and add

Why additional relaxations are needed? The coarse grid correction Interpolate and add

Why additional relaxations are needed? Interpolate and add => high oscillatory component emerges

TWO GRID CYCLE Approximate solution: Fine grid equation: 2. Coarse grid equation: h old h new uu h2 v ~~~  Residual equation: Smooth error: 1. Relaxation residual: h2 v ~ Approximate solution: 3. Coarse grid correction: 4. Relaxation by recursion MULTI-GRID CYCLE Correction Scheme

interpolation (order m) of corrections relaxation sweeps residual transfer enough sweeps or direct solver *... * h0h0 h 0 /2 h 0 /4 2h h V-cycle: V     

Multigrid solvers Cost: operations per unknown Linear scalar elliptic equation (Achi Brandt ~1971)

Multigrid solvers Cost: operations per unknown Linear scalar elliptic equation (~1971)* Nonlinear Grid adaptation General boundaries, BCs* Discontinuous coefficients Disordered: coefficients, grid (FE) AMG Several coupled PDEs* (1980) Non-elliptic: high-Reynolds flow Highly indefinite: waves Many eigenfunctions (N) Near zero modes Gauge topology: Dirac eq. Inverse problems Optimal design Integral equations Full matrix Statistical mechanics Massive parallel processing *Rigorous quantitative analysis (1986) FAS (1975) Within one solver (1977,1982)