Multigrid Methods The Implementation Wei E Universität München. Ferien Akademie 19 th Sep. 2005.

Slides:



Advertisements
Similar presentations
Technische Universität München Fakultät für Informatik Scientific Computing in Computer Science Practical Course CFD - Free Boundary Value Problems Tobias.
Advertisements

Practical Course SC & V Free Boundary Value Problems Prof. Dr. Hans-Joachim Bungartz Institut für Informatik Schwerpunkt Wissenschaftliches Rechnen.
Practical Course SC & V More on Boundaries Dr. Miriam Mehl Institut für Informatik Schwerpunkt Wissenschaftliches Rechnen.
Practical Course SC & V Free Boundary Value Problems Prof. Dr. Hans-Joachim Bungartz Institut für Informatik Schwerpunkt Wissenschaftliches Rechnen.
Institut für Informatik Scientific Computing in Computer Science Practical Course SC & V Time Discretisation Dr. Miriam Mehl.
Mutigrid Methods for Solving Differential Equations Ferien Akademie 05 – Veselin Dikov.
Simulation of Fluids using the Navier-Stokes Equations Kartik Ramakrishnan.
Chapter 8 Elliptic Equation.
Svetlana Marmutova Laminar flow simulation around circular cylinder 11 of March 2013, Espoo Faculty of Technology.
Computational Fluid Dynamics
Parabolic Partial Differential Equations
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
MULTISCALE COMPUTATIONAL METHODS Achi Brandt The Weizmann Institute of Science UCLA
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.
Introduction to numerical simulation of fluid flows
Influence of (pointwise) Gauss-Seidel relaxation on the error Poisson equation, uniform grid Error of initial guess Error after 5 relaxation Error after.
Jordanian-German Winter Academy 2006 NATURAL CONVECTION Prepared by : FAHED ABU-DHAIM Ph.D student UNIVERSITY OF JORDAN MECHANICAL ENGINEERING DEPARTMENT.
Karin Erbertseder Ferienakademie 2007
Modeling, Simulating and Rendering Fluids Thanks to Ron Fediw et al, Jos Stam, Henrik Jensen, Ryan.
Simulation and Animation
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
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.
Scientific Computing Partial Differential Equations Poisson Equation.
1 Discretizing The Concentration Equation Mike Grimm Math 1110 March 11, 2002.
Introduction to Scientific Computing II From Gaussian Elimination to Multigrid – A Recapitulation Dr. Miriam Mehl.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
A conservative FE-discretisation of the Navier-Stokes equation JASS 2005, St. Petersburg Thomas Satzger.
GPU-Accelerated Surface Denoising and Morphing with LBM Scheme Ye Zhao Kent State University, Ohio.
Discontinuous Galerkin Methods Li, Yang FerienAkademie 2008.
Parallelization of 2D Lid-Driven Cavity Flow
Solving an elliptic PDE using finite differences Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Introduction: Lattice Boltzmann Method for Non-fluid Applications Ye Zhao.
Engineering Analysis – Computational Fluid Dynamics –
Parallel Solution of the Poisson Problem Using MPI
AE/ME 339 Computational Fluid Dynamics (CFD) K. M. Isaac Professor of Aerospace Engineering Introduction and Scope.
Summer 2010 Susan T. Brown, Ph.D..  The most common form of the Equations of Fluid Dynamics that are solved for practical problems are the Navier-Stokes.
FlowFixer: Using BFECC for Fluid Simulation ByungMoon Kim Yingjie Liu Ignacio Llamas Jarek Rossignac Georgia Institute of Technology.
Introduction to Scientific Computing II Overview Michael Bader.
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.
COMPUTATIONAL FLUID DYNAMICS (AE 2402) Presented by IRISH ANGELIN S AP/AERO.
FALL 2015 Esra Sorgüven Öner
Introduction to Scientific Computing II
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
MULTISCALE COMPUTATIONAL METHODS Achi Brandt The Weizmann Institute of Science UCLA
A Non-iterative Hyperbolic, First-order Conservation Law Approach to Divergence-free Solutions to Maxwell’s Equations Richard J. Thompson 1 and Trevor.
Linear Algebra Operators for GPU Implementation of Numerical Algorithms J. Krüger R. Westermann computer graphics & visualization Technical University.
Scientific Computing Lab Outlook / State of Research Dr. Miriam Mehl Institut für Informatik Scientific Computing in Computer Science.
School of Aerospace Engineering MITE Numerical Simulation of Centrifugal Compressor Stall and Surge Saeid NiaziAlex SteinLakshmi N. Sankar School of Aerospace.
Lab Course CFD Introduction Dr. Miriam Mehl Institut für Informatik Schwerpunkt Wissenschaftliches Rechnen.
Lab Course CFD Introduction Dr. Miriam Mehl. CFD – Applications stirrers.
The Application of the Multigrid Method in a Nonhydrostatic Atmospheric Model Shu-hua Chen MMM/NCAR.
CP502 Advanced Fluid Mechanics Flow of Viscous Fluids and Boundary Layer Flow Lectures 3 and 4.
University of Colorado
An Introduction to Computational Fluids Dynamics Prapared by: Chudasama Gulambhai H ( ) Azhar Damani ( ) Dave Aman ( )
M. Khalili1, M. Larsson2, B. Müller1
Higher Order Runge-Kutta Methods for Fluid Mechanics Problems Abhishek Mishra Graduate Student, Aerospace Engineering Course Presentation MATH 6646.
Finite Difference Methods
Scientific Computing Lab
Scientific Computing Lab
Numerical Simulation of N-S equations in Cylindrical Coordinate
Scientific Computing Lab
Practical Course SC & V Discretization II AVS Dr. Miriam Mehl
topic16_cylinder_flow_relaxation
topic11_shocktube_problem
Spatial Discretisation
Presentation transcript:

Multigrid Methods The Implementation Wei E Universität München. Ferien Akademie 19 th Sep. 2005

Content Introduction Algorithm Results & Performance A Failing Example Conclusion

Content Introduction Algorithm Results & Performance A Failing Example Conclusion

Introduction Fluid Dynamics Solving PDEs Computational Fluid Dynamics Numerical Solution

The Navier-Stokes Equations (1) Non-stationary incompressible viscous fluids 2D Cartesian coordinates system of partial differential equations two momentum equations + continuity equation

The Navier-Stokes Equations (2)

Poisson Equation Where f(x,y) is the right-hand side calculated by the quantities in the previous time step; the unknown u is to be solved in the current time step.

Discretization (1) Finite Difference Scheme:

Discretization (2) The corresponding matrix representation is: where

Content Introduction Algorithm Results & Performance A Failing Example Conclusion

Multigrid Implementation The two classical schemes: V-Cycle Full Multigrid (FMG)

V-Cycle: The Algorithm grid = { double Ddim_array f // the right hand side double Ddim_array v // the current approximation } Grid = array of structure grid. for j = 0 to coarsest - 1 Grid[j].v <- relax(Grid[j].v, Grid[j].f, num_sweeps_down); Grid[j+1].f <- restrict(Grid[j].f- calculate_rhs(Grid[j].v)); endfor Grid[coarsest].v = direct_solve(Grid[coarsest].v, Grid[coarsest].f); for j = coarsest – 1 to 0 Grid[j].v <- Grid[j].v + interpolate(Grid[j+1].v); Grid[j].v <- relax(Grid[j].v, Grid[j].f, num_sweeps_up); endfor

V-Cycle: Comments (1) a) Non-recursive structure; b) Gauss-Seidel is used as the relaxation method; c) calculate_rhs() is a function to calculate the right-hand side based on current approximation; d) Several methods can be used to solve the small-size problem, we choose SOR (successive over relaxation);

V-Cycle: Comments (2) e) For restriction, we take the mean value of the four neighbors as the result f) For interpolation, we use the similar method as restriction: spreading the value into it’s four neighbors. restriction interpolation

FMG: The Algorithm Once we have the V-cycle, FMG would be rather easy to implement : for j = 0 to coarsest - 1 Grid[coarsest-j+1].v <- Grid[coarsest-j+1].v + interpolate_fine(Grid[coarsest-j].v); Grid[coarsest-j+1].v <- V-cycle(Grid[coarsest-j+1].v, Grid[coarsest-j+1].f); endfor

FMG: Comments a) Initialization for all the approximations and right-hand sides should be made before executing the FMG main loop; b) interpolate_fine() stands for a higher order interpolator. In practice, we use the interpolation matrix:

Content Introduction Algorithm Results & Performance A Failing Example Conclusion

Model Problem (1): Hidden Step Fluid flows with a constant velocity through a channel with a hidden obstacle on one side. No-slip conditions are imposed at the upper and lower walls.

Simulation result (1) The Hidden Step:

Model Problem (2): Karman Vortex The flow in a channel can meet a tilted plate. At the left boundary, the fluid inflow has a constant velocity profile, while at the upper and lower boundaries no-slip conditions are imposed.

Simulation result (2) Von Karman Vortex

Performance (1) Size Method 128*32256*64128*128256*128 SOR 18 sec289 sec700 sec1635 sec V-Cycle 10 sec76 sec80 sec172 sec FMG 7 sec33 sec35 sec75 sec Testing platform: P4 2.4GHz, 1GB Memory, SUSE Linux 9.3

Performance (2)

Content Introduction Algorithm Results & Performance A Failing Example Conclusion

A Failing Example Throttle :

Simulation Result

The Reason

Content Introduction Algorithm Results & Performance A Failing Example Conclusion

An Optimal (i.e., O(N)) Solver. Highly Modular Program Structure Advanced Debugging Technique

Reference [1] Practical Course – Scientific Computing and Visualization Worksheet, Lehrstuhl für Informatik mit Schwerpunkt Wissenschaftliches Rechnen, TU-Muenchen, [2] Krzysztof J. Fidkowski, A High-Order Discontinuous Galerkin Multigrid Solver for Aerodynamic Applications, Master Thesis in Aerospace Engineering at the MASSACHUSETTS INSTITUTE OF TECHNOLOGY [3] S. McCormick, B. Briggs, and V. Henson, "A Multigrid Tutorial”, second edition, SIAM,Philadelphia, June 2000.

Thank You!