A High-Order Accurate Unstructured GMRES Solver for Poisson s Equation

Similar documents
Limiters for Unstructured Higher-Order Accurate Solutions of the Euler Equations

A Higher-Order Accurate Unstructured Finite Volume Newton-Krylov Algorithm for Inviscid Compressible Flows

Solution of 2D Euler Equations and Application to Airfoil Design

On Obtaining High-Order Finite-Volume Solutions to the Euler Equations on Unstructured Meshes

PROGRESS IN NEWTON-KRYLOV METHODS FOR AERODYNAMIC CALCULATIONS. University of Toronto Institute for Aerospace Studies

NIA CFD Seminar, October 4, 2011 Hyperbolic Seminar, NASA Langley, October 17, 2011

Comparison of parallel preconditioners for a Newton-Krylov flow solver

Studies of the Continuous and Discrete Adjoint Approaches to Viscous Automatic Aerodynamic Shape Optimization

An Investigation of Directional-Coarsening And Line-Implicit Smoothing Applied to Agglomeration Multigrid

EFFICIENT SOLUTION ALGORITHMS FOR HIGH-ACCURACY CENTRAL DIFFERENCE CFD SCHEMES

On the high order FV schemes for compressible flows

SELECTIVE ALGEBRAIC MULTIGRID IN FOAM-EXTEND

A high-order accurate unstructured finite volume Newton Krylov algorithm for inviscid compressible flows

ERCODO2004_238. ERCOFTAC Design Optimization: Methods & Applications. Sequential Progressive Optimization Using Evolutionary and Gradient Algorithms

Implicit/Multigrid Algorithms for Incompressible Turbulent Flows on Unstructured Grids

High-Order Navier-Stokes Simulations using a Sparse Line-Based Discontinuous Galerkin Method

Contents. I The Basic Framework for Stationary Problems 1

Case C3.1: Turbulent Flow over a Multi-Element MDA Airfoil

THE ISSUES OF SOLUTION APPROXIMATION IN HIGHER-ORDER SCHEMES ON DISTORTED GRIDS

The Development of a Navier-Stokes Flow Solver with Preconditioning Method on Unstructured Grids

1.2 Numerical Solutions of Flow Problems

Optimization with Gradient and Hessian Information Calculated Using Hyper-Dual Numbers

Recent developments for the multigrid scheme of the DLR TAU-Code

Journal of Engineering Research and Studies E-ISSN

A NEW MIXED PRECONDITIONING METHOD BASED ON THE CLUSTERED ELEMENT -BY -ELEMENT PRECONDITIONERS

Case C1.3: Flow Over the NACA 0012 Airfoil: Subsonic Inviscid, Transonic Inviscid, and Subsonic Laminar Flows

What is Multigrid? They have been extended to solve a wide variety of other problems, linear and nonlinear.

Simulation of Turbulent Flow in an Asymmetric Diffuser

Driven Cavity Example

Unstructured Mesh Solution Techniques using the NSU3D Solver

Efficient Implicit Time-Marching Methods Using a Newton-Krylov Algorithm

Improvements to a Newton-Krylov Adjoint Algorithm for Aerodynamic Optimization

1 Exercise: Heat equation in 2-D with FE

On Convergence Acceleration Techniques for Unstructured Meshes

Multigrid Solvers in CFD. David Emerson. Scientific Computing Department STFC Daresbury Laboratory Daresbury, Warrington, WA4 4AD, UK

Numerical and theoretical analysis of shock waves interaction and reflection

Unstructured-Grid Third-Order Finite Volume Discretization Using a Multistep Quadratic Data-Reconstruction Method

A DRAG PREDICTION VALIDATION STUDY FOR AIRCRAFT AERODYNAMIC ANALYSIS

The WENO Method in the Context of Earlier Methods To approximate, in a physically correct way, [3] the solution to a conservation law of the form u t

EXPLICIT AND IMPLICIT TVD AND ENO HIGH RESOLUTION ALGORITHMS APPLIED TO THE EULER AND NAVIER-STOKES EQUATIONS IN THREE-DIMENSIONS RESULTS

ABOUT THE GENERATION OF UNSTRUCTURED MESH FAMILIES FOR GRID CONVERGENCE ASSESSMENT BY MIXED MESHES

Fluent User Services Center

Compressible Flow in a Nozzle

cuibm A GPU Accelerated Immersed Boundary Method

Verification of Moving Mesh Discretizations

Development of a Consistent Discrete Adjoint Solver for the SU 2 Framework

An Implicit Hermite WENO Reconstruction-Based Discontinuous Galerkin Method on Tetrahedral Grids

Parallel High-Order Geometric Multigrid Methods on Adaptive Meshes for Highly Heterogeneous Nonlinear Stokes Flow Simulations of Earth s Mantle

Computational Fluid Dynamics for Engineers

Debojyoti Ghosh. Adviser: Dr. James Baeder Alfred Gessow Rotorcraft Center Department of Aerospace Engineering

Axisymmetric Viscous Flow Modeling for Meridional Flow Calculation in Aerodynamic Design of Half-Ducted Blade Rows

Interface and Boundary Schemes for High-Order Methods

Development of an Integrated Computational Simulation Method for Fluid Driven Structure Movement and Acoustics

Three Dimensional Numerical Simulation of Turbulent Flow Over Spillways

Higher Order Multigrid Algorithms for a 2D and 3D RANS-kω DG-Solver

Multi-Mesh CFD. Chris Roy Chip Jackson (1 st year PhD student) Aerospace and Ocean Engineering Department Virginia Tech

ANALYSIS AND IMPLEMENTATION OF A HIGH-ORDER RECONSTRUCTION ALGORITHM FOR AN UNSTRUCTURED FINITE VOLUME FLOW SOLVER. Shane Edmond Sawyer

Application of Finite Volume Method for Structural Analysis

Multigrid Third-Order Least-Squares Solution of Cauchy-Riemann Equations on Unstructured Triangular Grids

A parallel Newton-Krylov-Schur flow solver for the Navier-Stokes equations using the SBP-SAT approach

Development of a Maxwell Equation Solver for Application to Two Fluid Plasma Models. C. Aberle, A. Hakim, and U. Shumlak

Curved Mesh Generation and Mesh Refinement using Lagrangian Solid Mechanics

A fully implicit Navier-Stokes algorithm for unstructured grids incorporating a two-equation turbulence model

Verification and Validation of Turbulent Flow around a Clark-Y Airfoil

Seed Point. Agglomerated Points

Introduction to ANSYS CFX

Mid-Year Report. Discontinuous Galerkin Euler Equation Solver. Friday, December 14, Andrey Andreyev. Advisor: Dr.

Aerodynamic Shape Optimization in Three-Dimensional Turbulent Flows Using a Newton-Krylov Approach

The Immersed Interface Method

Techniques for Using the Method of Manufactured Solutions for Verification and Uncertainty Quantification of CFD Simulations Having Discontinuities

NUMERICAL SIMULATIONS OF FLOW THROUGH AN S-DUCT

Accelerating Double Precision FEM Simulations with GPUs

Final Report. Discontinuous Galerkin Compressible Euler Equation Solver. May 14, Andrey Andreyev. Adviser: Dr. James Baeder

Lab 9: FLUENT: Transient Natural Convection Between Concentric Cylinders

Adaptive Mesh Refinement Based on a Posteriori Error Estimation. Martin Juhas

A higher-order finite volume method with collocated grid arrangement for incompressible flows

An Investigation into Iterative Methods for Solving Elliptic PDE s Andrew M Brown Computer Science/Maths Session (2000/2001)

Control Volume Finite Difference On Adaptive Meshes

A STUDY ON THE UNSTEADY AERODYNAMICS OF PROJECTILES IN OVERTAKING BLAST FLOWFIELDS

Chapter 6 Visualization Techniques for Vector Fields

Adaptive-Mesh-Refinement Pattern

A 3D VOF model in cylindrical coordinates

Numerical Simulations of Fluid-Structure Interaction Problems using MpCCI

Simulation of unsteady incompressible flows using temporal adaptation and dynamic remeshing

Practical aspects of running EH3D E. Haber Λ June 4, 2001 Abstract This document discuss of practical aspects of running the program EH3D. The goal of

Boundary/Contour Fitted Grid Generation for Effective Visualizations in a Digital Library of Mathematical Functions

From Hyperbolic Diffusion Scheme to Gradient Method: Implicit Green-Gauss Gradients for Unstructured Grids

Homogenization and numerical Upscaling. Unsaturated flow and two-phase flow

Modeling External Compressible Flow

Validation of an Unstructured Overset Mesh Method for CFD Analysis of Store Separation D. Snyder presented by R. Fitzsimmons

A new multidimensional-type reconstruction and limiting procedure for unstructured (cell-centered) FVs solving hyperbolic conservation laws

Metafor FE Software. 2. Operator split. 4. Rezoning methods 5. Contact with friction

Case C2.2: Turbulent, Transonic Flow over an RAE 2822 Airfoil

7 宇宙航空研究開発機構特別資料 JAXA-SP-7- Background APC-I, II Lift curve slope obtained by CFD did not agree with * test despite taking wing deformation into accou

High-order methods for the next generation of computational engineering software

Introduction to Multigrid and its Parallelization

Semi-automatic domain decomposition based on potential theory

NUMERICAL VISCOSITY. Convergent Science White Paper. COPYRIGHT 2017 CONVERGENT SCIENCE. All rights reserved.

Adjoint Solver Workshop

Stream Function-Vorticity CFD Solver MAE 6263

Transcription:

A High-Order Accurate Unstructured GMRES Solver for Poisson s Equation Amir Nejat * and Carl Ollivier-Gooch Department of Mechanical Engineering, The University of British Columbia, BC V6T 1Z4, Canada Email: nejat@mech.ubc.ca, cfog@mech.ubc.ca ABSTRACT In this paper, we present a fast higher-order accurate unstructured solver for Poisson s equation as a model problem for diffusive phenomena. The Krylov GMRES technique in matrix free form has been used to achieve the efficient convergence rate. By computing the solution over a series of coarse and fine meshes with different orders of accuracy, we show the possibility of reducing computational cost required for a given level of solution accuracy using higher-order methods. Numerical experiments also demonstrate dramatic improvement in convergence CPU-time with increasing size of the Krylovsubspace. 1. INTRODUCTION Recent structured mesh flow solver research shows that for practical levels of accuracy using a higherorder accurate method can be more efficient both in terms of solution time and memory usage than a second-order scheme [15]. With higher-order accurate methods, the cost of flux computation, integration schemes and the other associated numerical calculation increase per control volume, but as we can use a coarser mesh, computation time and memory are saved overall and accuracy can be increased as well. To extend this favorable behavior, we want to apply high-order accurate methods on unstructured meshes to take advantage of welldocumented flexibility in mesh generation and adaptation for unstructured meshes. High-order accurate method development for unstructured mesh finite-volume computations has historically focused on advective fluxes and are reasonably well established [2, 3, 4, 8]. For diffusive fluxes a new approach has been implemented successfully in Ref [9] by computing the solution gradients required for flux calculation from the solution reconstruction. * Graduate Research Assistant. Assistant Professor. In spite of considerable progress in high-order unstructured algorithms, application of these methods for physically complicated flows is still a challenge due to slow rate of convergence. Degradation in convergence rate could increase the solution time noticeably and eliminate the efficiency benefits of higher-order unstructured discretization. Therefore convergence acceleration becomes the key issue for enabling practical use of higher-order discretizations of the fluid flow equations over unstructured topology. Regardless of discretization technique, finding steady solutions for fluid flow problems requires the solution of a large system of non-linear algebraic equations. An important iterative technique for solving such systems of equations is the Newton family of methods. They have been used in CFD since the late 80 s [1, 14] and are considered an attractive approach for solution convergence of steady flows due to their property of quadratic convergence, which is quite desirable. However, the cost of each iteration in terms of CPU-time and memory usage for pure Newton method is relatively high. Approximate or inexact Newton method can have satisfactory convergence behavior and lower cost per iteration [10]. In this type of the method the linear system of equations is solved approximately at each iteration. The formation and linearization of the Jacobian and the choice of preconditioner in iterative methods all affect the convergence rate. As a result there are a vast variety of approximate Newton or Quasi-Newton methods. The most common method especially for unstructured meshes is Newton-Krylov which uses the Krylov family of iterative solvers (mostly GMRES[13]). For structured meshes, Pueyo and Zingg [11] presented an efficient matrix-free Newton-GMRES solver using multi-grid for steady aerodynamic flows and conducted some parametric studies. In a followup study [12] they investigated the efficiency of different strategies for Jacobian approximation and preconditioning for a variety of compressible

inviscid, laminar and turbulent flows using GMRES. Barth and Linton [5] successfully applied both fullmatrix and matrix-free GMRES iteration for computing compressible fluid flow over unstructured meshes. Blanco and Zingg [6] compared the use of two variations on quasi- and full-newton method for solution of the Euler equations on unstructured grids. Standard (full-matrix) and matrix-free version of GMRES technique both were used in full Newton scheme and finally they proposed an hybrid strategy which combines the strengths of both full- and quasi- Newton implementations. In this paper, we focus on efficient convergence for the Poisson equation for high-order accurate unstructured mesh discretizations using the matrixfree GMRES technique. Our expectation is that experience with this model problem will be useful in improving convergence for higher-order accurate unstructured mesh viscous flow solutions. Also we discuss the benefits of higher-order accurate solution both in terms of accuracy and efficiency. In the next section the theory and numerical procedure are described briefly. The following sections introduce test cases and present their results, focusing on the performance of our approach. Finally, we summarize the benefits and limitations of our approach and provide a prospective for future work. 2. THEORY Poisson s equation, which is a model equation for diffusion problems, can be written for each control volume as eq.(1) : 1 A [ T.nˆ ds S( x, y )da] R(T) = 0 - (1) In our discretization scheme, a higher-order accurate least-square reconstruction procedure [8] has been used in the interior of the domain. Eq. (1) includes diffusive fluxes which requires the gradient of the reconstructed solution. We compute these fluxes at control volume boundaries by averaging the gradients computed in each control volume. Having computed the fluxes, we integrate along each control volume boundary using Gauss quadrature integration technique with the proper number of points to get the required order of accuracy for the flux integral. Imposing the boundary conditions also has been done to high-order accuracy [9]. Because the Poisson equation is linear and intrinsically steady, solution of the problem requires, in principle, forming and solving a single system of linear equations. Since the flux integral is linear in T, discretization of eq.(1) over an unstructured domain results in a system of linear equation in the form of : Ø R ø Œ œ T º T ß = Ł 1 A S( x, y )da ł (2) where R/ T is the Jacobian matrix. Making an initial guess at the solution T 0 and defining D T = T - T 0, we get: Ø R ø Œ T œ º ß D T = -R( T ) (3) We turn to iterative methods to solve this linear system. The linear system is asymmetric both in fill and in values making GMRES [13] the obvious first choice in iterative solvers. GMRES(k) minimises the norm of the residual vector over a Krylov subspace of size k. Increasing the number of search directions (increasing k) gives a more accurate update for each GMRES iteration. However, memory usage increases linearly and computation time quadratically with k. Also maintaining the orthogonality of the vectors in the Krylov subspace becomes more difficult with increasing k. So, there is a practical limit for increasing subspace size; we will discuss this issue in the result section. The linear systems arising from third- and fourthorder accurate discretizations of the Laplacian have relatively large numbers of non-zero entries, 15-20 per row for 2D fourth-order discretizations. Because of the size of these matrices and the difficulty in computing their entries analytically, we have elected to use an entirely matrix-free implementation of GMRES. Since the GMRES algorithm only needs matrix-vector products and these products can be computed by matrix-free approach, matrix-free GMRES is a very attractive technique for dealing with the complicated Jacobian matrices resulting from higher-order discretization. Furthermore, this approach saves memory usage and in some cases even computation time. To obtain the matrix-vector product we take the directional derivative with respect to a nomalized vector V using numerical forward difference approximation [5]. Ø R ø R( T + e V ) R(T ).V» - Œ T œ º ß e 0 (4) In eq.(4) e is a small scalar value, typically chosen equal to the square root of machine precision. Thus we can calculate the required matrix-vector products simply by evaluating the residual based on a perturbed solution.

3. TEST CASES To investigate the convergence characteristics and performance of the GMRES solver with a higherorder unstructured discretization, a series of numerical experiments has been conducted. The geometry is an annular segment and we use four different unstructured meshes with 62, 246, 987 and 3846 control volumes (Figure 1). The meshes for these test cases were generated using a guaranteedquality meshing scheme [6]; all triangles had angles between 30º and 120º. To obtain a higher-order accurate solution, we must consider the curvature of curved domain boundaries instead of modelling them as linear segments. The grid generator provides the solver with necessary curvature information for implementation of boundary conditions and related integration over boundary cells. For all meshes, numerical solutions of Poisson equation have been computed using second, third and fourth order accurate reconstruction. 4. RESULTS To assess solution accuracy, we plot the error in the computed solution with respect to the exact solution versus mesh size. Figure 2 shows the L2 norm of error in solution for all meshes. Second and fourth order results both demonstrate the expected behaviour. For the third-order solution the actual order of accuracy that we get is about second-order. This result is not unexpected; Ollivier-Gooch and Van Altena showed that a second order term appears in the truncation error for the discrete Laplacian, despite using a third-order accurate quadratic reconstruction [9]. Figure 3 shows the convergence history of the solution versus the number of GMRES outer iterations for the finest mesh (3846CV) and Krylov subspace size of 60. As expected, more iterations are needed for convergence when we use higher-order methods reflecting higher condition number for higher order of accuracy. This is added to the extra computational cost which reconstruction and integration techniques take for higher-order methods. Nevertheless, high-order methods are still more efficient for a given accuracy, as shown in Figure 4. To give insight into relative efficiency in getting accurate solutions, Figure 4 plots the L2 norm of error versus the CPU-time for all meshes and orders of accuracy. This Figure indicates clearly the advantage of higher-order accurate solution with respect to the second-order cases for the Poisson equation. Using fourth-order method we can get better accuracy with considerable savings in time using a coarser mesh. For example, we compare 246CV-fourth-order with 987CV-third-order and 3846CV-second-order cases. The third-order case has nearly the same error that the second-order one has, but it has converged about three times faster. The fourth-order case gives us more accurate solution with more than one order of magnitude faster convergence than second-order. Likewise for a given CPU time, the fourth-order scheme is always most accurate. The fourth-order trend line has the maximum slope indicating that the advantage of the fourth-order scheme will grow with the mesh refinement. Finally we want to study the effect of size of the Krylov subspace, k, on the efficiency of the GMRES solver. As we use a larger subspace size, we expect a more accurate update in each outer iteration. So the number of GMRES iterations should decrease, but the expense of each iteration will increase with increase in k. So there is trade-off issue based on the number of residual evaluations for increasing the Krylov subspace. In Figure 5 convergence history has been compared for different subspace sizes. Computational cost is compared on the basis of the number of residual evaluations required. Figure 5 shows that an increase in k decreases the total number of residual evaluations. Increasing k from 20 to 60 reduced the number of residual evaluations by half. However, we are still below the aforementioned trade-off point. As subspace size increases, eventually the number of residual evaluations should increase by increasing k. In addition, using large subspaces needs more memory, which finally would be a limiting factor as well. Figure 6 compares the run-time for different order of accuracy versus the size of the Krylov subspace. Using larger k decreases the CPU-time, but this effect diminishes with the size of the subspace. The effect of increasing k is more noticeable for higher-order method especially for the fourth-order case, which seems to benefit from a more accurate update per GMRES iteration. 5. CONCLUDING REMARKS A matrix-free GMRES algorithm has been successfully used for higher-order computation of solution of Poisson s equation. Accuracy-Run time diagram showed the advantage of high-order computation both in terms of accuracy and efficiency. The effect of Krylov subspace size was investigated: using a larger subspace size can reduce the comp utation cost especially for higher-order computations. As Poisson s equation is simple and linear and we have used simple geometry, the resultant Jacobian

matrix should be well-conditioned; the convergence rate of our GMRES solver confirms this. However as GMRES convergence is sensitive to condition number of the Jacobian matrix, and in applied problems (especially for nonlinear equations) we are dealing with ill-conditioned Jacobians, using a preconditioner for GMRES becomes necessary. As we extend this research to inviscid and viscous fluid flows, we will concentrate on developing effective preconditioners for GMRES with high-order accurate unstructured mesh discretizations. ACKNOWLEDGEMENTS This research was supported in part by the Canadian Natural Science and Engineering Research Council under Grant OPG-0194467and in part by a University Graduate Fellowship from the University of British Columbia. REFERENCES 1. Bailey, H. E. and Beam R. M., Newton s Method Applied to Finite Difference Approximations for Steady State Compressible Navier-Stokes Equations, Journal of Computational Physics, Vol. 108, pp. 108-127, 1991. 2. Barth, T. J. and Fredrickson, P. O., Higher-Order Solution of the Euler Equations on Unstructured Grids Using Quadratic Reconstruction, AIAA conference paper 90-0013, 1990. 3. Barth, T. J., Aspects of Unstructured Grids and Finite-Volume Solvers for the Euler and Navier- Stokes Equations, in Unstructured Grid Methods for Advection-Dominated Flows, AGARD- R787, 1992. 4. Barth, T. J., Recent Development in High-Order K-Exact Reconstruction on Unstructured Meshes, AIAA conference paper 93-0668, 1994. 5. Barth, T. J. and Linton S.W., An Unstructured Mesh Newton Solver for Compressible Fluid Flow and Its Parallel Implementation, AIAA conference paper 95-0221, 1995. 7. Boivin, C., and Ollivier-Gooch C., Guranteedquality Triangular Mesh Generation for Domains with Curved Boundaries, International Journal for Numerical Methods in Engineering, Vol. 55, pp.1185-1213, 2002 8. Ollivier-Gooch, C., Quasi-ENO Schemes for Unstructured Meshes Based on Unlimited Data- Dependent Least Squares Reconstruction., Journal of Computational Physics, Vol. 133, pp. 6-17, 1997. 9. Ollivier-Gooch, C., and Van Altena, M., A Higher-Order Accurate Unstructured Mesh Finite-Volume Scheme for the Advection- Diffusion Equation, Journal of Computational Physics, Vol. 181, pp. 729-752, 2002. 10. Orkwis, P. D., Comparison of Newton s and Quasi-Newton s Method Solvers for Navier- Stokes Equations, AIAA Journal, Vol.31, pp. 832-836, 1993. 11. Pueyo, A., and Zingg, D. W., An Efficient Newton-GMRES Solver for Aerodynamic Computations, AIAA conference paper 97-1955, 1997. 12. Pueyo, A., and Zingg, D. W., Improvement to a Newton-Krylov Solver for Aerodynamic Flows, AIAA conference paper 98-0619, 1998. 13. Saad, Y. and Schultz, M. H., A Generalized Minimal Residual Algorithm for Solving Non- Symmetric Linear Systems, SIAM J. Sci., Stat. Comp. Vol. 7, pp. 856-869, 1986. 14. Venkatakrishnan, V., Newton Solution of Inviscid and Viscous Problems, AIAA conference paper 88-0413, 1988. 15. Zingg, D. W., De Rango, S., Nemec, M. and Pulliam T. H., Comparison of Several Spatial Discretizations for the Navier-Stokes Equations, Journal of Computational Physics, Vol.160, pp.683-704, 2000. 6. Blanco, M., and Zingg D. W., A Fast Solver for the Euler Equations on Unstructured Grids Using a Newton-GMRES Method, AIAA conference paper 97-0331, 1997.

Figure 1. Different meshes for annulus geometry with 62, 246, 987, 3846 control volumes. 10 0 2nd 10-1 L2 error in solution 10-3 Maximum Residual 10-8 10-10 2nd 10-5 10-12 1000 3000 Number of control volumes 10-14 5 10 15 GMRES outer iterations Figure 2. Accuracy assessment versus number of control volumes. Figure 3. Convergence history for the finest mesh.

10-1 62 2nd 62 246 L2 error in solution 10-3 62 246 246 987 987 987 3846 3846 10-5 3846 10-3 10-1 10 0 10 1 10 2 CPU-Time (s) Figure 4. Accuracy-Run time diagram for different meshes. Maximum Residual 10 0 10-8 10-10 10-12 10-14 K-20 K-30 K-40 K-50 K-60 500 1000 1500 2000 Residual Evaluations CPU-Time (s) 1400 1300 1200 1100 1000 900 800 700 600 500 400 300 200 100 2nd 0 10 20 30 40 50 60 70 Sizeof thekrylovsub-space Figure 5. Comparison of convergence history based on size of the Krylov-subspace for the finest mesh and fourth-order of accuracy. Figure 6. Run time versus Krylov subspace size for the finest mesh.