Block-Structured Adaptive Mesh Refinement

Similar documents
Open boundary conditions in numerical simulations of unsteady incompressible flow

PDE Solvers for Fluid Flow

Partial Differential Equations

Computational Fluid Dynamics-1(CFDI)

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

AMR Applications in Astrophysics

On a class of numerical schemes. for compressible flows

Spatial discretization scheme for incompressible viscous flows

Earth System Modeling Domain decomposition

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

AMS 529: Finite Element Methods: Fundamentals, Applications, and New Trends

Finite Difference Methods for

Acceleration of a Domain Decomposition Method for Advection-Diffusion Problems

A note on accurate and efficient higher order Galerkin time stepping schemes for the nonstationary Stokes equations

Remarks on the analysis of finite element methods on a Shishkin mesh: are Scott-Zhang interpolants applicable?

NumAn2014 Conference Proceedings

A Study on Numerical Solution to the Incompressible Navier-Stokes Equation

The Lattice Boltzmann method for hyperbolic systems. Benjamin Graille. October 19, 2016

Finite Volume Method

Divergence Formulation of Source Term

Divergence-conforming multigrid methods for incompressible flow problems

Investigation of an implicit solver for the simulation of bubble oscillations using Basilisk

Finite volume element method for analysis of unsteady reaction diffusion problems

Multigrid solvers for equations arising in implicit MHD simulations

On the relationship of local projection stabilization to other stabilized methods for one-dimensional advection-diffusion equations

Finite difference methods for the diffusion equation

5. FVM discretization and Solution Procedure

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

A Central Compact-Reconstruction WENO Method for Hyperbolic Conservation Laws

An Introduction to the Discontinuous Galerkin Method

Numerical Methods for Problems with Moving Fronts Orthogonal Collocation on Finite Elements

Math background. Physics. Simulation. Related phenomena. Frontiers in graphics. Rigid fluids

Computation Fluid Dynamics

Numerical Solutions to Partial Differential Equations

On Multigrid for Phase Field

Scientific Computing: An Introductory Survey

Chapter Two: Numerical Methods for Elliptic PDEs. 1 Finite Difference Methods for Elliptic PDEs

Implicit kinetic relaxation schemes. Application to the plasma physic

First, Second, and Third Order Finite-Volume Schemes for Diffusion

The RAMSES code and related techniques 2- MHD solvers

Navier-Stokes equations

Modeling of two-phase flow in fractured porous media on unstructured non-uniform coarse grids

DUE: WEDS MARCH 26TH 2018

Numerical Analysis of Differential Equations Numerical Solution of Parabolic Equations

Multigrid Methods and their application in CFD

Finite Differences for Differential Equations 28 PART II. Finite Difference Methods for Differential Equations

Efficient wave propagation on complex domains

Multi-Factor Finite Differences

Aspects of Multigrid

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

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

AMS 529: Finite Element Methods: Fundamentals, Applications, and New Trends

1 Discretizing BVP with Finite Element Methods.

.u= 0 ρ( u t +(u. )u)= ρ g p+.[µ( u+ t u)]

Convergence of the MAC scheme for incompressible flows

Domain decomposition schemes with high-order accuracy and unconditional stability

Basic Aspects of Discretization

Fluid Dynamics. Part 2. Massimo Ricotti. University of Maryland. Fluid Dynamics p.1/17

Partial Differential Equations

Advanced numerical methods for nonlinear advectiondiffusion-reaction. Peter Frolkovič, University of Heidelberg

Scientific Computing I

Divorcing pressure from viscosity in incompressible Navier-Stokes dynamics

AProofoftheStabilityoftheSpectral Difference Method For All Orders of Accuracy

Lehrstuhl Informatik V. Lehrstuhl Informatik V. 1. solve weak form of PDE to reduce regularity properties. Lehrstuhl Informatik V

Numerical methods for PDEs FEM convergence, error estimates, piecewise polynomials

MASSACHUSETTS INSTITUTE OF TECHNOLOGY DEPARTMENT OF MECHANICAL ENGINEERING CAMBRIDGE, MASSACHUSETTS NUMERICAL FLUID MECHANICS FALL 2011

Numerical methods for the Navier- Stokes equations

Simulating Solid Tumor Growth Using Multigrid Algorithms

A finite difference Poisson solver for irregular geometries

Fluid Animation. Christopher Batty November 17, 2011

Numerical Analysis of Higher Order Discontinuous Galerkin Finite Element Methods

Optimal Left and Right Additive Schwarz Preconditioning for Minimal Residual Methods with Euclidean and Energy Norms

Space-time XFEM for two-phase mass transport

Game Physics. Game and Media Technology Master Program - Utrecht University. Dr. Nicolas Pronost

Partial Differential Equations II

A very short introduction to the Finite Element Method

Time-dependent variational forms

Index. higher order methods, 52 nonlinear, 36 with variable coefficients, 34 Burgers equation, 234 BVP, see boundary value problems

An evaluation of a conservative fourth order DNS code in turbulent channel flow

ALGEBRAIC FLUX CORRECTION FOR FINITE ELEMENT DISCRETIZATIONS OF COUPLED SYSTEMS

Finite Elements. Colin Cotter. January 15, Colin Cotter FEM

Applied Mathematics 205. Unit III: Numerical Calculus. Lecturer: Dr. David Knezevic

A recovery-assisted DG code for the compressible Navier-Stokes equations

Zonal modelling approach in aerodynamic simulation

7 Hyperbolic Differential Equations

Numerical Solutions to Partial Differential Equations

High-Order Finite-Volume Methods! Phillip Colella! Computational Research Division! Lawrence Berkeley National Laboratory!

Weighted Essentially Non-Oscillatory limiters for Runge-Kutta Discontinuous Galerkin Methods

Model adaptation in hierarchies of hyperbolic systems

Universität des Saarlandes. Fachrichtung 6.1 Mathematik

Numerical Solutions to Partial Differential Equations

C e n t r u m v o o r W i s k u n d e e n I n f o r m a t i c a

Introduction to PDEs and Numerical Methods: Exam 1

Courant Institute of Mathematical Sciences, New York University, New York, NY 10012,

Numerical Solutions of Partial Differential Equations

Advanced numerical methods for transport and reaction in porous media. Peter Frolkovič University of Heidelberg

Introduction to Finite Volume projection methods. On Interfaces with non-zero mass flux

Soft Bodies. Good approximation for hard ones. approximation breaks when objects break, or deform. Generalization: soft (deformable) bodies

Local discontinuous Galerkin methods for elliptic problems

Finite Difference Method for PDE. Y V S S Sanyasiraju Professor, Department of Mathematics IIT Madras, Chennai 36

Transcription:

Block-Structured Adaptive Mesh Refinement Lecture 2 Incompressible Navier-Stokes Equations Fractional Step Scheme 1-D AMR for classical PDE s hyperbolic elliptic parabolic Accuracy considerations Bell Lecture 2 p. 1/27

Extension to More General Systems How do we generalize the basic AMR ideas to more general systems? Incompressible Navier-Stokes equations as a prototype U t + U U + p = ɛ U U = 0 Advective transport Diffusive transport Evolution subject to a constraint Bell Lecture 2 p. 2/27

Vector field decomposition Hodge decomposition: Any vector field V can be written as V = U d + φ where U d = 0 and U n = 0 on the boundary The two components, U d and φ are orthogonal U φ dx = 0 With these properties we can define a projection P P = I ( 1 ) such that U d = PV with P 2 = P and P = 1 Bell Lecture 2 p. 3/27

Projection form of Navier-Stokes Incompressible Navier-Stokes equations U t + U U + p = ɛ U U = 0 Applying the projection to the momentum equation recasts the system as an initial value problem U t + P(U U ɛ U) = 0 Develop a fractional step scheme based on the projection form of equations Design of the fractional step scheme takes into account issues that will arise in generalizing the methodology to More general Low Mach number models AMR Bell Lecture 2 p. 4/27

Discrete projection Projection separates vector fields into orthogonal components V = U d + φ Orthogonality from integration by parts (with U n = 0 at boundaries) U p dx = U p dx = 0 Discretely mimic the summation by parts: U GP = (DU) p In matrix form D = G T Discrete projection V = U d + Gp DV = DGp U d = V Gp P = I G(DG) 1 D Bell Lecture 2 p. 5/27

Spatial discretization Define discrete variables so that U, Gp defined at the same locations and DU, p defined at the same locations. D : V space p space G : p space V space Candidate variable definitions: v p p u u,v u,v,p Bell Lecture 2 p. 6/27

Projection discretizations What is the DG stencil corresponding to the different discretization choices Non-compact stencils decoupling in matrix Decoupling is not a problem for incompressible Navier-Stokes with homogeneous boundary conditions but it causes difficulties for Nontrivial boundary conditions Low Mach number generalizations AMR Fully staggered MAC discretization is problematic for AMR Proliferation of solvers Algorithm and discretization design issues Bell Lecture 2 p. 7/27

Approximate projection methods Based on AMR considerations, we will define velocities at cell-centers Discrete projection V = U d + Gp DV = DGp U d = V Gp P = I G(DG) 1 D Avoid decoupling by replacing inversion of DG in definition of P by a standard elliptic discretization. Bell Lecture 2 p. 8/27

Approximate projection methods Analysis of projection options indicates staggered pressure has "best" approximate projection properties in terms of stability and accuracy. DU i+ 1 / 2,j+ 1 / 2 = u i+1,j+1 + u i+1,j u i,j+1 u i,j 2 x + v i+1,j+1 + v i,j+1 u i+1,j u i,j 2 y Gp ij = p i+1/2,j+1/2 +p i+1/2,j 1/2 p i 1/2,j+1/2 p i 1/2,j 1/2 2 x p i+1/2,j+1/2 +p i 1/2,j+1/2 p i+1/2,j 1/2 p i 1/2,j 1/2 2 y Projection is given by P = I G(L) 1 D where L is given by bilinear finite element basis ( p, χ) = (V, χ) Nine point discretization Bell Lecture 2 p. 9/27

2nd Order Fractional Step Scheme First Step: Construct an intermediate velocity field U : Second Step: U U n t = [U ADV U] n+ 1 2 p n 1 2 + ɛ U n + U 2 Project U onto constraint and update p. Form Solve Set V = U t + Gpn 1 2 Lp n+ 1 2 = DV U n+1 = t(v Gp n+ 1 2 ) Bell Lecture 2 p. 10/27

Computation of Advective Derivatives Start with U n at cell centers Predict normal velocities at cell edges using variation of second-order Godunov methodology u n+1/2 i+1/2,j, vn+1/2 i,j+1/2 MAC-project the edge-based normal velocities, i.e. solve D MAC (G MAC ψ) = D MAC U n+1/2 and define normal advection velocities u ADV i+1/2,j = un+1/2 i+1/2,j Gx ψ, v ADV i,j+1/2 = vn+1/2 i,j+1/2 Gy ψ Use these advection velocities to define [U ADV U] n+1/2. : u : v : ψ Bell Lecture 2 p. 11/27

Second-order projection algorithm Properties Second-order in space and time Robust discretization of advection terms using modern upwind methodology Approximate projection formulation Algorithm components Explicit advection Semi-implicit diffusion Elliptic projections 5-point cell-centered 9-point node-centered How do we generalize AMR to work for projection algorithm? Look at discretization details in one dimension Revisit hyperbolic Elliptic Parabolic Spatial discretizations Bell Lecture 2 p. 12/27

Hyperbolic 1d Consider scheme: U t + F x = 0 discretized with an explicit finite difference U n+1 i U n i t = F n+ 1 2 i 1/2 F n+ 1 2 i+1/2 x In order to advance the composite solution we must specify how to compute the fluxes: x f x c t f j 1 j J J+1 Away from coarse/fine interface the coarse grid sees the average of fine grid values onto the coarse grid Fine grid uses interpolated coarse grid data The fine flux is used at the coarse/fine interface Bell Lecture 2 p. 13/27

Hyperbolic composite One can advance the coarse grid t f (J 1) J J+1 then advance the fine grid t f j 1 j (j+1) using ghost cell data at the fine level interpolated from the coarse grid data. This results in a flux mismatch at the coarse/fine interface, which creates an error in U n+1 J. The error can be corrected by refluxing, i.e. setting x c U n+1 J := x c U n+1 J t f F c J 1/2 + tf F f j+1/2 Before the next step one must average the fine grid solution onto the coarse grid. Bell Lecture 2 p. 14/27

Hyperbolic subcycling To subcycle in time we advance the coarse grid with t c t c (J 1) J J+1 and advance the fine grid multiple times with t f. t f t f The refluxing correction now must be summed over the fine grid time steps: t f t f j 1 j (j+1) x c U n+1 J := x c U n+1 J t c F c J 1/2 + t f F f j+1/2 Bell Lecture 2 p. 15/27

AMR Discretization algorithms Design Principles: Define what is meant by the solution on the grid hierarchy. Identify the errors that result from solving the equations on each level of the hierarchy independently (motivated by subcycling in time). Solve correction equation(s) to fix the solution. For subcycling, average the correction in time. Coarse grid supplies Dirichlet data as boundary conditions for the fine grids. Errors take the form of flux mismatches at the coarse/fine interface. Bell Lecture 2 p. 16/27

Elliptic Consider φ xx = ρ on a locally refined grid: x f x c j 1 j J J + 1 We discretize with standard centered differences except at j and J. We then define a flux, φ c f x, at the coarse / fine boundary in terms of φ f and φ c and discretize in flux form with 1 x f ( φ c f x (φ ) j φ j 1 ) x f = ρ j at i = j and 1 x c ( (φj+1 φ J ) x c φ c f x ) = ρ J at I = J. This defines a perfectly reasonable linear system but... Bell Lecture 2 p. 17/27

Elliptic composite Suppose we solve 1 x c ( (φi+1 φ I ) (φ ) I φ I 1 ) x c x c = ρ I at all coarse grid points I and then solve 1 x f ( (φi+1 φ i ) (φ i φ i 1 ) ) x f x f = ρ i at all fine grid points i j and use the correct stencil at i = j, holding the coarse grid values fixed. j 1 j J J + 1 Bell Lecture 2 p. 18/27

Elliptic synchronization The composite solution defined by φ c and φ f satisfies the composite equations everywhere except at J. The error is manifest in the difference between φ c f x and (φ J φ J 1 ) x c. Let e = φ φ. Then h e = 0 except at I = J where h e = 1 x c ( (φj φ J 1 ) x c φ c f x ) Solve the composite for e and correct φ c = φ c + e c φ f = φ f + e f The resulting solution is the same as solving the composite operator Bell Lecture 2 p. 19/27

Parabolic composite Consider u t + f x = εu xx and the semi-implicit time-advance algorithm: u n+1 i u n i t + f n+ 1 2 i+1/2 f n+ 1 2 i 1/2 x = ε 2 (( h u n+1 ) i + ( h u n ) i ) t x f x c j 1 j J J+1 Again if one advances the coarse and fine levels separately, a mismatch in the flux at the coarse-fine interface results. Let u c f be the initial solution from separate evolution Bell Lecture 2 p. 20/27

Parabolic synchronization The difference e n+1 between the exact composite solution u n+1 and the solution u n+1 found by advancing each level separately satisfies (I ε t 2 h ) e n+1 = t x c (δf + δd) t δf = t ( f J 1/2 + f j+1/2 ) t δd = ε t 2 ( (u c,n x,j 1/2 + uc,n+1 x,j 1/2 ) (uc f,n x ) + u c f,n+1 x ) Source term is localized to to coarse cell at coarse / fine boundary Updating u n+1 = u n+1 + e again recovers the exact composite solution Bell Lecture 2 p. 21/27

Parabolic subcycling Advance coarse grid Advance fine grid r times t c (J 1) J J+1 t f t f t f t f j 1 j (j+1) The refluxing correction now must be summed over the fine grid time steps: (I ε tc 2 h ) e n+1 = tc x c (δf + δd) t c δf = t c f J 1/2 + t f f j+1/2 t c δd = ε tc 2 (uc,n x,j 1/2 + uc,n+1 x,j 1/2 ) ε t f 2 (uc f,n x + u c f,n+1 x ) Bell Lecture 2 p. 22/27

Spatial accuracy cell-centered Modified equation gives ψ comp = ψ exact + 1 τ comp where τ is a local function of the solution derivatives. Simple interpolation formulae are not sufficiently accurate for second-order operators ϕ y c ϕ x c-f ϕ x c-f ϕ y c ϕ x c Bell Lecture 2 p. 23/27

Convergence results Local Truncation Error D Norm x L(U e ) ρ h L(U e ) ρ 2h R P 2 L 1/32 1.57048e-02 2.80285e-02 1.78 0.84 2 L 1/64 8.08953e-03 1.57048e-02 1.94 0.96 3 L 1/16 2.72830e-02 5.60392e-02 2.05 1.04 3 L 1/32 1.35965e-02 2.72830e-02 2.00 1.00 3 L 1 1/32 8.35122e-05 3.93200e-04 4.70 2.23 Solution Error D Norm x U h U e U 2h U e R P 2 L 1/32 5.13610e-06 1.94903e-05 3.79 1.92 2 L 1/64 1.28449e-06 5.13610e-06 3.99 2.00 3 L 1/16 3.53146e-05 1.37142e-04 3.88 1.96 3 L 1/32 8.88339e-06 3.53146e-05 3.97 1.99 Solution operator smooths the error ψ computed = ψ exact + L 1 τ Bell Lecture 2 p. 24/27

Spatial accuracy nodal Node-based solvers: Symmetric self-adjoint matrix Accuracy properties given by approximation theory Bell Lecture 2 p. 25/27

Recap Solving coarse grid then solving fine grid with interpolated Dirichlet boundary conditions leads to a flux mismatch at boundary Synchronization corrects mismatch in fluxes at coarse / fine boundaries. Correction equations match the structure of the process they are correcting. For explicit discretizations of hyperbolic PDE s the correction is an explicit flux correction localized at the coarse/fine interface. For an elliptic equation (e.g., the projection) the source is localized on the coarse/fine interface but an elliptic equation is solved to distribute the correction through the domain. Discrete analog of a layer potential problem. For Crank-Nicolson discretization of parabolic PDE s, the correction source is localized on the coarse/fine interface but the correction equation diffuses the correction throughout the domain. Bell Lecture 2 p. 26/27

Efficiency considerations For the elliptic solves, we can substitute the following for a full composite solve with no loss of accuracy Solve ψ c = g c on coarse grid Solve ψ f = g f on fine grid using interpolated Dirichlet boundary conditions Evaluate composite residual on the coarse cells adjacent to the fine grids Solve for correction to coarse and fine solutions on the composite hierarchy Because of the smoothing properties of the elliptic operator, we can, in some cases, substitute either a two-level solve or a coarse level solve for the full composite operator to compute the correction to the solution. Source is localized at coarse cells at coares / fine boundary Solution is a discrete harmonic function in interior of fine grid This correction is exact in 1-D Bell Lecture 2 p. 27/27