Solving the Euler Equations!

Similar documents
HFVS: An Arbitrary High Order Flux Vector Splitting Method

Numerical Solutions for Hyperbolic Systems of Conservation Laws: from Godunov Method to Adaptive Mesh Refinement

The RAMSES code and related techniques I. Hydro solvers

A method for avoiding the acoustic time step restriction in compressible flow

The Euler Equations! Advection! λ 1. λ 2. λ 3. ρ ρu. c 2 = γp/ρ. E = e + u 2 /2 H = h + u 2 /2; h = e + p/ρ. 0 u 1/ρ. u p. t + A f.

A New Fourth-Order Non-Oscillatory Central Scheme For Hyperbolic Conservation Laws

Projection Dynamics in Godunov-Type Schemes

ICES REPORT A Multilevel-WENO Technique for Solving Nonlinear Conservation Laws

Conservation of Mass. Computational Fluid Dynamics. The Equations Governing Fluid Motion

Art Checklist. Journal Code: Article No: 6959

A class of the fourth order finite volume Hermite weighted essentially non-oscillatory schemes

DEVELOPMENT AND APPLICATION OF GENERALIZED MUSTA SCHEMES

International Engineering Research Journal

Riemann Solvers and Numerical Methods for Fluid Dynamics

A General Technique for Eliminating Spurious Oscillations in Conservative Schemes for Multiphase and Multispecies Euler Equations

Extremum-Preserving Limiters for MUSCL and PPM

CapSel Roe Roe solver.

ALGEBRAIC FLUX CORRECTION FOR FINITE ELEMENT DISCRETIZATIONS OF COUPLED SYSTEMS

Improvement of convergence to steady state solutions of Euler equations with. the WENO schemes. Abstract

AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS

A Bound-Preserving Fourth Order Compact Finite Difference Scheme for Scalar Convection Diffusion Equations

Inverse Lax-Wendroff Procedure for Numerical Boundary Conditions of. Conservation Laws 1. Abstract

Chp 4: Non-linear Conservation Laws; the Scalar Case. By Prof. Dinshaw S. Balsara

An Improved Non-linear Weights for Seventh-Order WENO Scheme

Comparison of (Some) Algorithms for Edge Gyrokinetics

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

( ) A i,j. Appendices. A. Sensitivity of the Van Leer Fluxes The flux Jacobians of the inviscid flux vector in Eq.(3.2), and the Van Leer fluxes in

AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS

A numerical study of SSP time integration methods for hyperbolic conservation laws

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

Experimental and numerical study of the initial stages in the interaction process between a planar shock wave and a water column

CapSel Euler The Euler equations. conservation laws for 1D dynamics of compressible gas. = 0 m t + (m v + p) x

Divergence Formulation of Source Term

High Order Accurate Runge Kutta Nodal Discontinuous Galerkin Method for Numerical Solution of Linear Convection Equation

Research Article A New Flux Splitting Scheme Based on Toro-Vazquez and HLL Schemes for the Euler Equations

A Central Compact-Reconstruction WENO Method for Hyperbolic Conservation Laws

AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS

Due Tuesday, November 23 nd, 12:00 midnight

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

A Fourth-Order Central Runge-Kutta Scheme for Hyperbolic Conservation Laws

Semi-Lagrangian Formulations for Linear Advection Equations and Applications to Kinetic Equations

Hierarchical Reconstruction with up to Second Degree Remainder for Solving Nonlinear Conservation Laws

A finite-volume algorithm for all speed flows

Antony Jameson. AIAA 18 th Computational Fluid Dynamics Conference

Sub-Cell Shock Capturing for Discontinuous Galerkin Methods

A Speed-Up Strategy for Finite Volume WENO Schemes for Hyperbolic Conservation Laws

Finite Volume Method

Computational Fluid Dynamics-1(CFDI)

Active Flux for Advection Diffusion

Effect of Applied Magnetic Field on Shock Boundary Layer Interaction

A Multi-Dimensional Limiter for Hybrid Grid

Sung-Ik Sohn and Jun Yong Shin

Affordable, entropy-consistent, Euler flux functions

Numerical Solution Techniques in Mechanical and Aerospace Engineering

A Finite Volume Code for 1D Gas Dynamics

EINDHOVEN UNIVERSITY OF TECHNOLOGY Department of Mathematics and Computer Science. CASA-Report March2008

Gas Dynamics Equations: Computation

The RAMSES code and related techniques 2- MHD solvers

Department of Mathematics University of California Santa Barbara, Santa Barbara, California,

Chapter 17. Finite Volume Method The partial differential equation

Low-Dissipative High-Order Shock-Capturing Methods Using Characteristic-Based Filters

arxiv: v4 [physics.flu-dyn] 23 Mar 2019

HIGH ORDER FINITE VOLUME SCHEMES

The one-dimensional equations for the fluid dynamics of a gas can be written in conservation form as follows:

Solution of Two-Dimensional Riemann Problems for Gas Dynamics without Riemann Problem Solvers

POSITIVITY PROPERTY OF SECOND-ORDER FLUX-SPLITTING SCHEMES FOR THE COMPRESSIBLE EULER EQUATIONS. Cheng Wang. Jian-Guo Liu

Hydraulic Modelling for Drilling Automation

AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS

A Fifth Order Flux Implicit WENO Method

Chapter 2 Finite-Difference Discretization of the Advection-Diffusion Equation

Chapter 1. Introduction

Finite Volume Schemes: an introduction

Eulerian interface-sharpening methods for hyperbolic problems

VISCOUS FLUX LIMITERS

Hyperbolic Systems of Conservation Laws. in One Space Dimension. I - Basic concepts. Alberto Bressan. Department of Mathematics, Penn State University

On limiting for higher order discontinuous Galerkin method for 2D Euler equations

Well-balanced DG scheme for Euler equations with gravity

Simple waves and a characteristic decomposition of the two dimensional compressible Euler equations

A Very Brief Introduction to Conservation Laws

Math 660-Lecture 23: Gudonov s method and some theories for FVM schemes

The Penultimate Scheme for Systems of Conservation Laws: Finite Difference ENO with Marquina s Flux Splitting 1

Entropic Schemes for Conservation Laws

Hierarchical Reconstruction with up to Second Degree Remainder for Solving Nonlinear Conservation Laws

A Scalable, Parallel Implementation of Weighted, Non-Linear Compact Schemes

A Comparison of Artificial Viscosity Sensors for the Discontinuous Galerkin Method. Joshua Favors

ENO and WENO schemes. Further topics and time Integration

An Improved Ghost-cell Immersed Boundary Method for Compressible Inviscid Flow Simulations. Thesis by Cheng Chi

Spectral Difference Method for Unstructured Grids II: Extension to the Euler Equations

Detonation Simulations with a Fifth-Order TENO Scheme

Numerical Hydraulics

3.4. Monotonicity of Advection Schemes

arxiv: v2 [math.na] 24 Mar 2016

ON THE BENEFIT OF THE SUMMATION-BY-PARTS PROPERTY ON INTERIOR NODAL SETS

CENTRAL DISCONTINUOUS GALERKIN METHODS ON OVERLAPPING CELLS WITH A NON-OSCILLATORY HIERARCHICAL RECONSTRUCTION

Introduction to Physical Acoustics

Level Set and Phase Field Methods: Application to Moving Interfaces and Two-Phase Fluid Flows

3. FORMS OF GOVERNING EQUATIONS IN CFD

Comparison of Approximate Riemann Solvers

Eulerian Vortex Motion in Two and Three Dimensions

What is a flux? The Things We Does Know

Transcription:

http://www.nd.edu/~gtryggva/cfd-course/! Solving the Euler Equations! Grétar Tryggvason! Spring 0! The Euler equations for D flow:! where! Define! Ideal Gas:! ρ ρu ρu + ρu + p = 0 t x ( / ) ρe ρu E + p ρ E = e + u / h = e + p / ρ; H = h + u / = E + p / ρ; p = ρt; e = e( T ); c v = de /dt h = h( T); c p = dh /dt = c p c v ; γ = c p /c v ; p = ( γ )ρe The Euler equations for D flow:! or! where! ρ ρu ρu + ρu + p = 0 t x ( / ) ρe ρu E + p ρ t f + x F = 0 ρ ρu f = ρu ; F = ρu + p ρe ρu(e + p / ρ) Predictor step! Variables! f j +/ Predictor-corrector method: imiting the variables! Find:! Final step! n +/ f j = f n j Δt h F n n j +/ F j / n +/ = f j + Ψ n +/ f n +/ ( j f j ) n +/ f j +/ = f j + Ψ n +/ f n +/ j + f j F j +/ n +/ = F ( f ) n +/, f n +/ ( j +/ j +/ ) n f + j = f n j Δt h F n +/ n +/ ( j +/ F j / ) 5! 6! The Euler equations can be solved using the flux limited high order methods described earlier by finding the fluxes using solutions to the iemann problem! F j +/ n +/ = F ( f ) n +/, f n +/ ( j +/ j +/ ) In principle we can solve this problem, the iemann problem, exactly by assuming constant states and then integrate the fluxes over the time step. In the last lecture we did so for the case when the fluids are initially at rest.! Although the iemann problem can be solved for the general case when the fluids are not stationary, the solution is expensive (involving solving a nonlinear equation for the pressure ratio across the shock) and the only information that we need from the solution is the flux across the cell boundary.! Therefore, usually we use approximate iemann solvers. Different approximations are possible but generally the result is a complex process. Here we will only outline it briefly!

7! 8! The oe approximate iemann solver was one of the first method to compute the fluxes in a simpler way.! It is based on approximating the Euler equation by a linear equation! f t + A f x = 0 whose fluxes can be found analytically. The linearization is done in such a way that the correct wave speed is preserved. The jump in the solution across a shock can be written in terms of the eigenvectors:! 3 f f = α p p p= oe introduced the following matrix A! A = 0 0 γ 3 u ( 3 γ )u γ γ u 3 uh H ( γ )u γ u where the average variables are defined by! u = ρ u + ρ u ; H = ρ H + ρ H ρ + ρ ρ + ρ 9! The fluxes are given by! 3 F i+/ = F + F λ p α p where the eigenvalues are the same as for the original! and the scaled eigenvectors are given by! = u c H u c ; = p= u u p λ = u c ; λ = c ; λ 3 = u + c ; ; = u + c H + u c ; α α α 3 0! The alphas are given by! = u 4c + ( γ ) u c c + ( γ ) u c γ u γ c u 4c ( γ ) u c c ( γ ) u c Δρ j+/ = ρ j+/ ρ j+/ ; Δρu j+/ = ρu j+/ γ c u ( γ ) u c c ρu j+/ γ c Where the jumps across the cell boundary are:! and (again)! u = ρ u + ρ u ; H = ρ H + ρ H ; c = γ ρ + ρ ρ + ρ H u Δρ j+/ Δρu j+/ ΔρE j+/ ; ΔρE j+/ = ρe j+/ ρe j+/! The fluxes are given by! F i+/ F i+/ 3 F i+/ = ρu ( + ( ρu) j+/ j+/ ) λ α λ α λ α 3 3 ( j+/ ) = ( γ ) ( ρe) j+/ ( γ 3) ( ρu) ( ρ) j+/ j+/ + ( γ ) ( ρe) j+/ = ρu ρu γ 3 ( ρ) j+/ λ α ( u c ) λ α u λ α ( u + c ) 3 3 H ( + ( ρu) j+/ j+/ H ) λ α ( h u c ) λ α u λ α ( h + u c ) 3 3! rd order unge-kutta! f () = f n + Δt f n f () = f () + Δt f () f n+ = f n + f () 3 rd order unge-kutta! f () = f n + Δt f n f () = 3 4 f n + 4 f () + () Δt f 4 f n+ = 3 f n + 3 f () + () Δt( f ) 3 Time Integration! 4 rd order unge-kutta! f (0) = f n f () = f (0) + 4 Δt f n f () = f (0) + () Δt( f ) 3 f (3) = f (0) + () Δt f f n+ = f (0) + Δt f ()

3! 4! esults from:! PINCIPES OF COMPUTATIONA! FUID DYNAMICS by P. Wesseling,! Delft University of Technology,! The Netherlands! 48 gridpoints! Matlab codes available at the website! http://ta.twi.tudelft.nl/users/wesselin/cfdbook.html! 5! 6! 48 gridpoints! The oe approximate iemann solver generally gives well behaved results but it does allow for expansion shocks in some cases. This can be corrected by the so-called entropy fix (see Wesseling)! 7! 8! The TVD property gives monotonic behavior for D scalar conservation laws but generally not for nonlinear systems or multidimensional flows. However, generally it is found that schemes that satisfy the TVD property when applied to D scalar equation do well for systems. When used for multidimensional flows by splitting, they are also generally found to be well behaved.! Several variants of similar methods have been proposed.! One of the better known is the AUSM (Advection Upstream Splitting Method) family of methods, originally due to iou and Steffen (993), where the fluxes are split into convective and a pressure part. The method and its derivatives have been used widely for many aerospace and other applications, including multiphase flows.!

The Euler Equations in twodimensions! For the Euler equations:! ρ ρu ρv ρu + ρu + p + ρuv = 0 t ρv x ρuv y ρv + p ρe ρu(e + p /ρ) ρv(e + p/ρ) where! E = e + (u + v ) /; p = (γ )ρe In vector form! f t + F x + G y = 0 Two-dimensional problems are almost always solved by splitting where we apply one-dimensional methods to each direction in sequence! Flux vector splitting! F ± = ± ρ 4c u ± c ( γ )u ± c γ v v [ + ( γ )u ± c ] ( γ ) f t + F + x + F x + G + y + G y = 0 G ± = ± ρ 4c v ± c u ( γ )v ± c γ u [ + ( γ )v ± c ] ( γ ) esults from a review paper:! P. Woodward and P. Colella:! Computational domain! Shock! h=/30 h The Numerical Simulation of two- Dimensional Fluid Flow with Strong Shocks.! J. Comput. Phys. 54 (984), 5-73.! Given inflow! 3! wall!! Outflow! h=/60 h=/0 0 Godunovʼs method! MacCormacʼs method!

6! h=/30 h=/60 h Higher Order and more recent methods! h=/0 0 MUSC! PPM! 7! 8! Beyond linear: econstruction of higher order approximations for the function in each cell (ENO and WENO).! The critical step in the methods discussed so far is the construction of a linear slope in each cell and the limitation of this slope to prevent oscillations. For higher order methods, a higher order profile needs to be constructed! Constructing an interpolation polynomial from the cell averages: For anything higher than second order (linear) the problem is that the average value in the cell is not equal to the value at the center.! To get around this we look at the primitive function:! x v( ξ) V x The lower bound is arbitrary and can be replaced! dξ j- j- j j+ j+ j-3/ j-/ j+/ j+3/ 9! 30! Since this is the integral over the cells, the discrete version is exact at the cell boundaries! i x j+/ = v( ξ) V x i+/ dξ = f i Δx j= x j / j- j- j j+ j+ j-3/ j-/ j+/ j+3/ i j= V ( x i 3/ ); V ( x i / ); V ( x i+/ ); V ( x i+3/ ); A polynomial interpolating the edge values is given by P(x) and we denote its derivative by p(x) Then it can be shown that! x j+/ p(x) = P'(x) p ξ dξ = P' ξ dξ = P(x j+/ ) P(x j / ) x j / x j+/ x j / x j+/ = V (x j+/ ) V (x j / ) = v ξ dξ = f i Δx x j / That is, the integral of p(x) over the cell is equal to the cell average f i

3! 3! Thus, p(x) gives the correct average value in each cell and the integrated value gives the exact values of the primitive function at the cell boundaries.! We need to write down a polynomial P(x) that interpolates the values of the primitive function of the cell boundaries and then differentiate this polynomial to get p(x), which lets us compute the variables at the cell boundary! j- j- j j+ j+ j-3/ j-/ j+/ j+3/ The interpolation polynomial is often taken to be the agrangian Polynomial! k P(x) = V (x i r + m / ) m=0 k l =0 l m x x i r +l / x i r / x i r +l / Where r determines where we start and k is the order! 33! Example: Second order ENO! j- j- j j+ j+ j-3/ j-/ j+/ j+3/ The question is now which point we select. We start by interpolating over one cell (linear). To add one point we can add either the point to the left or the right. In ENO we select the points based on the minimum absolute value of the divided differences of the function values!. Construct left and right slopes by connecting the average values in adjacent cells!. Select the downstream flux by using the smaller slope! Δf + j = f j + f j Δf j-! j! j+! j = f j f j f j +/ = U>0! f j f j f j + amin Δf + ( j, Δf j ), if u j + u j + f j amin Δf + ( j +, Δf j + ), if u + u j j + f j / f j +/ > 0 < 0 f j+ f t + u f x = 0 f * j = f n j Δt h u n j f j n+ = f j n Δt h Second order ENO scheme for the linear advection equation! f n n ( j +/ f j / ) f n j +/ f n * * * ( ( j / ) + u j ( f j +/ f j / )) u n j f j +/ = = amin a,b a, a < b b, b a f j + amin Δf + ( j,δf j ), if u + u j j + f j amin Δf + ( j +,Δf j + ), if u + u j j + > 0 < 0 Second order ENO scheme for the linear advection equation! f t + u f x = 0 Blue: nd order ENO! ed: st Upwind! Δf j + = f j + f j Δf j = f j f j

37! 38! j- j- j j+ j+ j-3/ j-/ j+/ j+3/ In the WENO (weighted essentially non-oscillating) scheme we use all the points but weigh the contribution of each according to a smoothness criteria. High-order WENO represents the current state-of-the-art in computing of flows with sharp interfaces! Increasingly we see methods developed for the inviscid Euler equation with shocks being used for the advection part of the Navier-Stokes solvers.! For a recent reference on WENO see, for example:! C-W Shu. High Order Weighted Essential Nonoscillatory Schemes for Convection Dominated Problems. SIAM eview, Vol. 5 (009), 8-6.! 39! 40! CIP-gradient augmentation! Other Approaches! The CIP (Constrained Interpolation Polynomial)! Method (Yabe)! In addition to advecting the marker function f, its derivative is advected by fitting a third order polynomial through the function and its derivatives.! Start with! Introduce! In D, the advection of the derivative is given by! f and g given! Therefore, the derivative is translated with velocity u, just as the function. In D splitting is used to separate translation and deformation! New f and g! 4! CIP-gradient augmentation! The CIP method results in very accurate advection and for a sharp interface it greatly reduces overshoots, but does not eliminate them completely! Enormous progress has been made in solution techniques for hyperbolic systems with shocks in the last twenty years. Advanced methods are now able to resolve complex shocks within a grid space or two, even in multidimensional situations for a large range of governing parameters and physical complexity.! Here, we have only examined relatively elementary aspects of methods for hyperbolic systems, but this short introduction should have taught you methods to solve such systems and introduced you to literature.!

43! A few words about the project:! I asked you to select your own parameters. In doing so keep in mind that while Nature usually presents us with problems that have multiphysics problems with a large range of scales and extreme values of the physical properties, in CFD we prefer single physics, small range of scales and O() values for the physical properties. In the project you are simply showing that the code works and looking at trends. Using Matlab you are limited to modest resolution and run-time so you should select you parameters commensurate with the resolution you are using!!