IMPLEMENTATION OF A PARALLEL AMG SOLVER

Similar documents
Multigrid Methods and their application in CFD

Algebraic Multigrid as Solvers and as Preconditioner

Solving PDEs with Multigrid Methods p.1

Transient, Source Terms and Relaxation

The Finite Volume Mesh

5. FVM discretization and Solution Procedure

Robust solution of Poisson-like problems with aggregation-based AMG

1. Fast Iterative Solvers of SLE

Numerical Solution Techniques in Mechanical and Aerospace Engineering

FEniCS Course. Lecture 6: Incompressible Navier Stokes. Contributors Anders Logg André Massing

OUTLINE ffl CFD: elliptic pde's! Ax = b ffl Basic iterative methods ffl Krylov subspace methods ffl Preconditioning techniques: Iterative methods ILU

A STUDY OF MULTIGRID SMOOTHERS USED IN COMPRESSIBLE CFD BASED ON THE CONVECTION DIFFUSION EQUATION

Finite Volume Method

Draft Notes ME 608 Numerical Methods in Heat, Mass, and Momentum Transfer

Partial Differential Equations

Preface to the Second Edition. Preface to the First Edition

New Multigrid Solver Advances in TOPS

The Finite Volume Method in

Sparse Linear Systems. Iterative Methods for Sparse Linear Systems. Motivation for Studying Sparse Linear Systems. Partial Differential Equations

Spatial discretization scheme for incompressible viscous flows

CFD Analysis of Mixing in Polymerization Reactor. By Haresh Patel Supervisors: Dr. R. Dhib & Dr. F. Ein-Mozaffari IPR 2007

Spectral element agglomerate AMGe

Solution Methods. Steady State Diffusion Equation. Lecture 04

Scientific Computing II

A Finite-Element based Navier-Stokes Solver for LES

An Introduction of Multigrid Methods for Large-Scale Computation

Poisson Equation in 2D

Review: From problem to parallel algorithm

Preconditioners for the incompressible Navier Stokes equations

Simulating Solid Tumor Growth using Multigrid Algorithms

Multipole-Based Preconditioners for Sparse Linear Systems.

An efficient multigrid solver based on aggregation

A Linear Multigrid Preconditioner for the solution of the Navier-Stokes Equations using a Discontinuous Galerkin Discretization. Laslo Tibor Diosady

Aggregation-based algebraic multigrid

Active Flux for Advection Diffusion

Numerical modelling of phase change processes in clouds. Challenges and Approaches. Martin Reitzle Bernard Weigand

Chapter 7 Iterative Techniques in Matrix Algebra

Solving the Navier-Stokes Equations

NumAn2014 Conference Proceedings

Pressure-velocity correction method Finite Volume solution of Navier-Stokes equations Exercise: Finish solving the Navier Stokes equations

Elliptic Problems / Multigrid. PHY 604: Computational Methods for Physics and Astrophysics II

AMG for a Peta-scale Navier Stokes Code

Aspects of Multigrid

Implementation of Implicit Solution Techniques for Non-equilibrium Hypersonic Flows

Discrete Projection Methods for Incompressible Fluid Flow Problems and Application to a Fluid-Structure Interaction

Numerical Programming I (for CSE)

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 9

On the Development of Implicit Solvers for Time-Dependent Systems

Diffusion / Parabolic Equations. PHY 688: Numerical Methods for (Astro)Physics

PALADINS: Scalable Time-Adaptive Algebraic Splitting and Preconditioners for the Navier-Stokes Equations

AMS526: Numerical Analysis I (Numerical Linear Algebra)

Numerical Methods for Partial Differential Equations: an Overview.

Stabilization and Acceleration of Algebraic Multigrid Method

- Part 4 - Multicore and Manycore Technology: Chances and Challenges. Vincent Heuveline

Kasetsart University Workshop. Multigrid methods: An introduction

CFD with OpenSource software

Parallel sparse linear solvers and applications in CFD

Solving Ax = b, an overview. Program

A finite-volume algorithm for all speed flows

FEniCS Course. Lecture 0: Introduction to FEM. Contributors Anders Logg, Kent-Andre Mardal

Zonal modelling approach in aerodynamic simulation

Two-Dimensional Unsteady Flow in a Lid Driven Cavity with Constant Density and Viscosity ME 412 Project 5

DELFT UNIVERSITY OF TECHNOLOGY

6. Iterative Methods for Linear Systems. The stepwise approach to the solution...

Fast solvers for steady incompressible flow

Multigrid Algorithms for High-Order Discontinuous Galerkin Discretizations of the Compressible Navier-Stokes Equations

Efficient Augmented Lagrangian-type Preconditioning for the Oseen Problem using Grad-Div Stabilization

NAVIER STOKES EQS. SOLVER LAPLACE EQ. SOLVER 1D COOLANT FLOW SOLVER OUTER LOOP INNER LOOP YES CONVERGENCE

Solution Methods. Steady convection-diffusion equation. Lecture 05

AMS Mathematics Subject Classification : 65F10,65F50. Key words and phrases: ILUS factorization, preconditioning, Schur complement, 1.

Simulating Solid Tumor Growth Using Multigrid Algorithms

Fine-grained Parallel Incomplete LU Factorization

Recent Developments in Overture

Algebraic multigrid within defect correction for the linearized Euler equations

Direct numerical simulation of interfacial instability in gas-liquid flows

Adaptive algebraic multigrid methods in lattice computations

Direct Modeling for Computational Fluid Dynamics

arxiv: v1 [math.na] 6 Nov 2017

An advanced ILU preconditioner for the incompressible Navier-Stokes equations

Splitting Iteration Methods for Positive Definite Linear Systems

Optimizing Runge-Kutta smoothers for unsteady flow problems

An Efficient Low Memory Implicit DG Algorithm for Time Dependent Problems

Introduction to numerical simulation of fluid flows

An Introduction to the Discontinuous Galerkin Method

Acceleration of a Domain Decomposition Method for Advection-Diffusion Problems

High Performance Multigrid Software

Bootstrap AMG. Kailai Xu. July 12, Stanford University

A Numerical Study of Some Parallel Algebraic Preconditioners

Local Time Step for a Finite Volume Scheme I.Faille F.Nataf*, F.Willien, S.Wolf**

MULTIGRID METHODS FOR NONLINEAR PROBLEMS: AN OVERVIEW

High performance mantle convection modeling

Chapter 9: Differential Analysis

A Multilevel Method for Solution Verification

Project 4: Navier-Stokes Solution to Driven Cavity and Channel Flow Conditions

The behaviour of high Reynolds flows in a driven cavity

Approach Curve COMSOL Report File

FEM-Level Set Techniques for Multiphase Flow --- Some recent results

Solving PDEs with CUDA Jonathan Cohen

Scalable Domain Decomposition Preconditioners For Heterogeneous Elliptic Problems

Basic Aspects of Discretization

Transcription:

IMPLEMENTATION OF A PARALLEL AMG SOLVER Tony Saad May 2005 http://tsaad.utsi.edu - tsaad@utsi.edu

PLAN INTRODUCTION 2 min. MULTIGRID METHODS.. 3 min. PARALLEL IMPLEMENTATION PARTITIONING. 1 min. RENUMBERING... 1 min. THE SOLVER... 3 min. RESULTS... 3 min. CONCLUSION. 2 min.

INTRODUCTION Computational Fluid Dynamics (CFD) is an advanced computing technology developed from traditional fluid mechanics. It uses a set of numerical methods for the solution of PDEs arising from general transport phenomena CFD is being used to model several applications

Aerospace INTRODUCTION

INTRODUCTION Aerospace Appliances

INTRODUCTION Aerospace Appliances Sports

INTRODUCTION Aerospace Appliances Sports Environment

INTRODUCTION The Finite Volume Method is a very popular method used in CFD It is based on conservation princinples

INTRODUCTION ρφ ( ) ( ) t Transient Term + ρuφ = Γ φ + Convection Term Diffusion Term S φ Source Term

ρφ ( ) ( ) t Transient Term + ρuφ = Γ φ + Convection Term Diffusion Term INTRODUCTION S φ Source Term a P t CD + a P urf φ + P i= NB( P) a CD φ Ni Ni = Q P V P + a Pt φ P 0 + 1 urf urf t CD * ( a P + a P )φ P a p φ P + i= NB( P) a Ni φ Ni = b P a Ni = Γ f E f d PNi &m f,0 b P = Q P V P + a Pt φ 0 P + 1 urf urf t a P = a P a Ni + &m fi i= NB( P) i= nb( P) t CD ( a P + a P )φ * P + Γ φ i= nb( P) ( ) fi T fi

INTRODUCTION Discretization yields a linear system of equations a P φ P + a Ni φ Ni = b P i= NB( P) A φ = b The solution of this system requires an iterative procedure as the coefficient matrix is non-linear Famous solvers: SOR, ILU Convergence rate slows down as error becomes smooth

SOR Starts with a Gauss-Seidl Iterate k b P a Ni φ Ni ( * φ ) k P = i= NB( P) a P Relax and update the value (k φ ) P = ω( * φ ) k P + ( (k 1) 1 ω)φ P φ P (k ) = ω b P i= NB( P) a P k a Ni φ Ni + ( (k 1) 1 ω)φ P

MULTIGRID METHODS Multigrid Methods are designed to overcome this problem by deriving a set of coarse grids from the original grid on which the solution is not smooth Algebraic Multigrid (AMG) is suitable for unstructured grids and FV formulation

MULTIGRID METHODS

MULTIGRID METHODS At each level, a linear system of equations is solved The coarse grid linear systems are derived from the finer grids using an agglomeration of the coefficients i G I j G J (l A +1) l I,J = A i, j b I (l +1) = i G I r i (l) r k = b A x k

PARALLEL IMPLEMENTATION Why think parallel? CFD models are becoming computationally expensive Parallel computing is the future of scientific computing Parallelization requires several steps: Partitioning Partition Renumbering Iterative Solver

PARTITIONING Partitioning Divides domain into partitions of equal size Each partition is then assigned to a different processor

PARTITIONING

PARTITIONING Partitioning Divides domain into partitions of equal size Each partition is then assigned to a different processor

PARTITION RENUMBERING Partition Renumbering Each partition is renumbered locally so as to have an independent problem on each process Each processor solves the same set of equations but on its own partition Coupling between processors is done by defining shadow and sender elements at the interface

PARTITIONG RENUMBERING

SOLVER SYNCHRONIZATION As each processor iterates on its system of equations, updates at the interface need to be made

SOLVER SYNCHRONIZATION As each processor iterates on its system of equations, updates at the interface need to be made =

AMG SYNCHRONIZATION Linear solver synchronization affects the number of outer iterations and thus scalability degenerates Solution is to parallelize AMG solver Each processor performs agglomeration while enforcing same number of levels across the domain Shadow and sender elements are defined for each level Updates at the interface are made at each level

RESULTS Non-linear Diffusion problem is a square domain ( Γ φ)= 0 Γ = φ 0.1

RESULTS Speedup Solution Time Shadow-to-core Ratio Efficiency 1.40 180.04 10000 16 0.035 1.20 14 0.03 1.00 12 0.025 0.80 10 0.02 0.60 1000 8 0.015 6 0.40 0.01 4 0.20 0.005 2 Solution Time Ideal 99454 99,454 99,454 199,222 99,454 199222 199,222 199,222 298,154 298,154 298,154 397,393 397,393 397,393 0.000 100 0 00 0 2 2 444 6 6 0.01 88 8 10 10 10 12 12 1214 14 14 0.02 16 16 16 18 18 20 18 Maximum Number shadow/core Processors of Partitions elements ratio

CONCLUSION A Parallel AMG solver has been implemented and tested using available resources Good scalability was achieved Improvement by using better network switch Future plans included implementation of the solution of the Navier-Stokes equations

THANK YOU FOR ATTENDING