A Finite Volume Code for 1D Gas Dynamics

Similar documents
The RAMSES code and related techniques I. Hydro solvers

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

Riemann Solvers and Numerical Methods for Fluid Dynamics

Chapter 1. Introduction

CapSel Roe Roe solver.

Godunov methods in GANDALF

MATHEMATICAL ASPECTS OF NUMERICAL SOLUTION OF HYPERBOLIC SYSTEMS

Comparison of Approximate Riemann Solvers

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

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

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

RESEARCH HIGHLIGHTS. WAF: Weighted Average Flux Method

State of the Art MHD Methods for Astrophysical Applications p.1/32

NUMERICAL SOLUTION OF HYPERBOLIC PARTIAL DIFFERENTIAL EQUATIONS

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

Physical Diffusion Cures the Carbuncle Phenomenon

The Center for Astrophysical Thermonuclear Flashes. FLASH Hydrodynamics

Advection / Hyperbolic PDEs. PHY 604: Computational Methods in Physics and Astrophysics II

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

The PLUTO code for astrophysical gasdynamics

A Central Rankine Hugoniot Solver for Hyperbolic Conservation Laws

Comparison of (Some) Algorithms for Edge Gyrokinetics

Approximate Harten-Lax-Van Leer (HLL) Riemann Solvers for Relativistic hydrodynamics and MHD

Extremum-Preserving Limiters for MUSCL and PPM

Positivity-preserving high order schemes for convection dominated equations

HFVS: An Arbitrary High Order Flux Vector Splitting Method

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

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

Bound-preserving high order schemes in computational fluid dynamics Chi-Wang Shu

Computational Fluid Dynamics. PHY 688: Numerical Methods for (Astro)Physics

Finite Volume Schemes: an introduction

The Discontinuous Galerkin (dg) method is a popular numerical method that has received much attention

Projection Dynamics in Godunov-Type Schemes

Application of a Laser Induced Fluorescence Model to the Numerical Simulation of Detonation Waves in Hydrogen-Oxygen-Diluent Mixtures

Art Checklist. Journal Code: Article No: 6959

The RAMSES code and related techniques 2- MHD solvers

The multi-stage centred-scheme approach applied to a drift-flux two-phase flow model

A Comparative Study of Divergence-Cleaning Techniques for Multi-Dimensional MHD Schemes )

Part 1: Numerical Modeling for Compressible Plasma Flows

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

Adaptive scheme based on entropy production: robustness through severe test cases for hyperbolic conservation laws

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

ENO and WENO schemes. Further topics and time Integration

NUMERICAL METHODS IN ASTROPHYSICS An Introduction

Applying Asymptotic Approximations to the Full Two-Fluid Plasma System to Study Reduced Fluid Models

Computational Astrophysics

Entropy stable high order discontinuous Galerkin methods. for hyperbolic conservation laws

International Engineering Research Journal

Heuristical and numerical considerations for the carbuncle phenomenon

Numerical Methods for Conservation Laws WPI, January 2006 C. Ringhofer C2 b 2

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

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

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

Gas-Kinetic Relaxation (BGK-Type) Schemes for the Compressible Euler Equations

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

arxiv:astro-ph/ v1 17 May 2002

DEVELOPMENT AND APPLICATION OF GENERALIZED MUSTA SCHEMES

A simple robust and accurate a posteriori subcell finite

THE numerical simulation of the creation and evolution

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

arxiv: v4 [astro-ph.im] 27 Apr 2011

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

Shock-capturing Schemes for a Collisionless Two-fluid Plasma Model

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

The RAMSES code and related techniques 4. Source terms

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

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

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

Locally Divergence-Free Central Discontinuous Galerkin Methods for Ideal MHD Equations

Application of the Kurganov Levy semi-discrete numerical scheme to hyperbolic problems with nonlinear source terms

arxiv:astro-ph/ v1 28 Nov 2005

Quest for Osher-Type Riemann Solver

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

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

Conjugate lter approach for shock capturing

A New Class of Gas-Kinetic Relaxation Schemes for the Compressible Euler Equations

A Space-Time Expansion Discontinuous Galerkin Scheme with Local Time-Stepping for the Ideal and Viscous MHD Equations

Finite volumes for complex applications In this paper, we study finite-volume methods for balance laws. In particular, we focus on Godunov-type centra

An efficient implementation of the divergence free constraint in a discontinuous Galerkin method for magnetohydrodynamics on unstructured meshes

An efficient shock-capturing central-type scheme for multidimensional relativistic flows. II. Magnetohydrodynamics

A high order adaptive finite element method for solving nonlinear hyperbolic conservation laws

Second order entropy diminishing scheme for the euler equations

A Central Compact-Reconstruction WENO Method for Hyperbolic Conservation Laws

A NUMERICAL STUDY FOR THE PERFORMANCE OF THE RUNGE-KUTTA FINITE DIFFERENCE METHOD BASED ON DIFFERENT NUMERICAL HAMILTONIANS

Positivity-preserving cell-centered Lagrangian schemes for multi-material compressible flows: From first-order to high-orders

Two-Dimensional Riemann Solver for Euler Equations of Gas Dynamics

Efficient Implementation of Weighted ENO Schemes*

Sub-Cell Shock Capturing for Discontinuous Galerkin Methods

Shock Capturing for Discontinuous Galerkin Methods using Finite Volume Sub-cells

Efficient Low Dissipative High Order Schemes for Multiscale MHD Flows, II: Minimization of B Numerical Error

Improvements of Unsteady Simulations for Compressible Navier Stokes Based on a RK/Implicit Smoother Scheme

Spatial Discretization

Journal of Computational Physics

YINGJIE LIU, CHI-WANG SHU, EITAN TADMOR, AND MENGPING ZHANG

SECOND ORDER ALL SPEED METHOD FOR THE ISENTROPIC EULER EQUATIONS. Min Tang. (Communicated by the associate editor name)

Positivity-preserving Lagrangian scheme for multi-material compressible flow. Abstract

Hyperbolic Divergence Cleaning for the MHD Equations

An interface treating technique for compressible multi-medium flow with. Runge-Kutta discontinuous Galerkin method. Abstract

Various Hydro Solvers in FLASH3

GODUNOV-TYPE SOLUTIONS FOR TWO-PHASE WATER HAMMER FLOWS

Transcription:

A Finite Volume Code for 1D Gas Dynamics Michael Lavell Department of Applied Mathematics and Statistics 1 Introduction A finite volume code is constructed to solve conservative systems, such as Euler s Equations and the ideal magnetohydrodynamic (MHD) equations. Polynomial based reconstruction methods are implemented to obtain accurate spatial reconstruction, and both Runge-Kutta methods and characteristic tracing are implemented for temporal advancement. We consider conservative systems, U t + (F (U)) x = 0, (1) where U are the conservative variables and F (U) is the analytical flux function. For the full Euler s Equations, we have ρ ρu U = ρu, and F (U) = ρu 2 + p. (2) E u(e + p) A simple ideal gas law equation of state is taken with a ratio of specific heat γ = 1.4, where the internal energy is defined as p e = (3) (γ 1)ρ and the total energy per unit mass is a sum of the kinetic energy and internal energy, E = ρ( u2 + e) (4) 2 For the ideal MHD equations, we take the following conservative variables and flux function ρ ρu x ρu x ρu 2 x + p B 2 x ρu y ρu x u y B x B y U = ρu z, and F (U) = ρu x u z B x B z. (5) B y B y u x B x u y B z B z u x B x u z E (E + p )u x B x (B x u x + B y u y + B z u z ) 1

In the MHD system the total pressure is defined as p = p + 1 2 (B2 x + B 2 y + B 2 z). (6) 2 Results In this section the results from four experiments that demonstrate the effectiveness of different slope limiters and approximate Riemann Solvers are presented. The five experiments are the Sod shock tube, the rarefaction problem, the blast problem, the Shu-Osher problem, and the Brio-Wu shock tube. The Sod shock tube demonstrates the codes ability to capture shocks, rarefactions, and contact discontinuities within a single experiment. As illustrated in Figure 1, increasing the order of spatial reconstruction increases a methods ability to maintain sharp profiles. Since lower order methods have larger truncation error, their solutions are more diffusive and produce smoother profiles. For the rarefaction problem, we study several approximate Riemann solvers abilities to capture smooth flow. The HLL and HLLC solvers both accurately capture the dynamics of the experiment, but the Roe solver does not converge to a solution. The Blast2 problem involves strong shocks and narrow features. According to the results depicted in Figure 3, the MC slope limiter produces the sharpest profile, followed by the van Leer and minmod slope limiters. The Shu-Osher problem simulates a right-moving shock front with artificial density fluctuations. As the order of spatial reconstruction and grid resolution is increased, the method captures smaller scale oscillations. Figure 4 compares first order Godunov against the piecewise linear method for varying grid resolution. Figure 5 shows the effect of varying the CFL number. There is little discrepancy as the CFL number changes, but sharper profiles are produced for larger values. The solution did not converge for a CFL number greater than one. The Brio-Wu shock tube is an extension of the Sod shock tube to MHD. Unlike the hydrodynamics experiments, the Brio-Wu shock tube problem produces compound structures (i.e. a shock wave connected to a rarefaction), in addition shocks, rarefactions, and contact discontinuities. In Figure 6, the density and Mach number are plotted for the piecewise linear method and piecewise parabolic method. Mach number is defined as 3 Conclusion M = flow speed speed of sound = u 2 x + u 2 y + u 2 z. (7) ργ p The code constructed accurately models gas dynamics and MHD settings. MPI functions are included to allow parallel computations. The code can easily be extended to model other conservative systems once the appropriate eigensystems and physics are implemented. This requires defining the flux function and conversion between primitive and conservative variables for the new system. 2

Figure 1: The Sod shock tube problem on N x = 128 using HLLC with the minmod slope limiter. The primitive variables are plotted at t = 0.2 for first order Godunov (FOG), the second order piecewise linear method (PLM), and the third order piecewise parabolic method (PPM). 3

Figure 2: The rarefaction problem on N x = 128 using PLM with minmod. The primitive variables are plotted at t = 0.15 for HLL and HLLC. The solutions overlap and the test problem did not converge for the Roe solver. 4

Figure 3: The Blast2 problem on N x = 128 using PLM and FOG with HLLC. The primitive variables are plotted at t = 0.038 for each minmod, van Leer s, and MC slope limiters. 5

Figure 4: The Shu-Osher problem using PLM and FOG with MC and Roe. The primitive variables are plotted at t = 1.8 for grid resolution N x = 32, 64, 128, and 256. 6

Figure 5: The Shu-Osher problem using PLM with minmod and HLLC on N x = 128. The primitive variables are plotted at t = 1.8 for for each CFL number - CFL = 0.2, 0.4, 0.6, 0.8, 1.0. The results for CFL = 1.4 is not plotted because the solution did not converge. 7

Figure 6: The Brio-Wu shock tube problem using PLM and PPM with HLLC and minmod on N x = 400. Density and Mach number are plotted. 8