The Center for Astrophysical Thermonuclear Flashes. FLASH Hydrodynamics

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

Computational Astrophysics

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

Various Hydro Solvers in FLASH3

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

The RAMSES code and related techniques 2- MHD solvers

Multi-D MHD and B = 0

Part 1: Numerical Modeling for Compressible Plasma Flows

Riemann Solvers and Numerical Methods for Fluid Dynamics

Chapter 1. Introduction

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

A Finite Volume Code for 1D Gas Dynamics

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

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

Godunov methods in GANDALF

NUMERICAL SOLUTION OF HYPERBOLIC PARTIAL DIFFERENTIAL EQUATIONS

CapSel Roe Roe solver.

Recent Progress in FLASH: High-Energy- Density Physics Applications

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

Finite Volume Schemes: an introduction

MATHEMATICAL ASPECTS OF NUMERICAL SOLUTION OF HYPERBOLIC SYSTEMS

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

X i t react. ~min i max i. R ij smallest. X j. Physical processes by characteristic timescale. largest. t diff ~ L2 D. t sound. ~ L a. t flow.

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

High-resolution finite volume methods for hyperbolic PDEs on manifolds

The PLUTO code for astrophysical gasdynamics

Projection Dynamics in Godunov-Type Schemes

2 Introduction Standard conservative schemes will admit non-physical oscillations near material interfaces, which can be avoided by the application of

A Central Rankine Hugoniot Solver for Hyperbolic Conservation Laws

Computational Physics & Validation

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

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

NUMERICAL METHODS IN ASTROPHYSICS An Introduction

Comparison of Approximate Riemann Solvers

The Deflagration Phase of Type Ia SNe

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

Computations with Discontinuous Basis Functions

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

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

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

Outline of lectures. Adding more physics. Doing Better: source terms in CTU unsplit integrator

Recapitulation: Questions on Chaps. 1 and 2 #A

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

Positivity-preserving high order schemes for convection dominated equations

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

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

Notes: Outline. Shock formation. Notes: Notes: Shocks in traffic flow

Lecture 5.7 Compressible Euler Equations

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

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

Finite volume approximation of the relativistic Burgers equation on a Schwarzschild (anti-)de Sitter spacetime

Chapter 4: Non-Linear Conservation Laws; the Scalar Case. The conservation law in eqn. (4.1) will be hyperbolic if its eigenvalue ( ) ( )

Waves in a Shock Tube

Using Numerical Simulations to explore a Mixing Mechanisms for Nova Enrichment Jonathan Dursi

c 2003 Society for Industrial and Applied Mathematics

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

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

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

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

VISCOUS FLUX LIMITERS

RESEARCH HIGHLIGHTS. WAF: Weighted Average Flux Method

Two-scale numerical solution of the electromagnetic two-fluid plasma-maxwell equations: Shock and soliton simulation

Comparison of (Some) Algorithms for Edge Gyrokinetics

Numerical Hydrodynamics in Special Relativity

Last time: Diffusion - Numerical scheme (FD) Heat equation is dissipative, so why not try Forward Euler:

Physical Diffusion Cures the Carbuncle Phenomenon

A Divergence-Free Upwind Code for Multidimensional Magnetohydrodynamic Flows 4

Affordable, entropy-consistent, Euler flux functions

Implicit Solution of Viscous Aerodynamic Flows using the Discontinuous Galerkin Method

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

Numerically Solving Partial Differential Equations

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

c 1999 Society for Industrial and Applied Mathematics

Info. No lecture on Thursday in a week (March 17) PSet back tonight

An Accurate Deterministic Projection Method for Hyperbolic Systems with Stiff Source Term

Non-Oscillatory Central Schemes for a Traffic Flow Model with Arrhenius Look-Ahead Dynamics

International Engineering Research Journal

Journal of Computational Physics

Computational Fluid Dynamics-1(CFDI)

Computational Astrophysics 7 Hydrodynamics with source terms

What is a flux? The Things We Does Know

Core-Collapse Supernovae and Neutrino Transport

2.2. Methods for Obtaining FD Expressions. There are several methods, and we will look at a few:

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

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

Hyperbolic Divergence Cleaning for the MHD Equations

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

Extremum-Preserving Limiters for MUSCL and PPM

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

Advection algorithms II. Flux conservation, subgrid models and flux limiters

An Assessment of Semi-Discrete Central Schemes for Hyperbolic Conservation Laws

Numerical Simulations. Duncan Christie

Numerical Methods for Modern Traffic Flow Models. Alexander Kurganov

Part 1. The diffusion equation

Gas Dynamics Equations: Computation

The RAMSES code and related techniques 4. Source terms

AMath 574 February 11, 2011

On a class of numerical schemes. for compressible flows

Non-linear Scalar Equations

Transcription:

The Center for Astrophysical Thermonuclear Flashes FLASH Hydrodynamics Jonathan Dursi (CITA), Alan Calder (FLASH) B. Fryxell, T. Linde, A. Mignone, G. Wiers Many others! Mar 23, 2005 An Advanced Simulation and Computing (ASC) Academic Strategic Alliances Program (ASAP) Center at

What does the FLASH Centre Study?

What does the FLASH Centre Study? 1992, Bill Waterson

The Three Kablooies Supernovae Ia Courtesy Hubble STScI Novae X ray burst Courtesy Chandra X Ray Observatory Courtesy Hubble STScI

FLASH Hydrodynamics Original FLASH problems: Classical Novae X-Ray Burst Type Ia Supernovae FLASH hydrodynamics solvers chosen for flows which are Highly compressible Complex EOS Solvers selected that are Robust Well-tested

FLASH Hydrodynamics FLASH contains a number of hydrodynamic solvers (and can plug in more) Approach of existing solvers: Operator Split Finite Volume Godunov Central Explicit Dimensionally Split `Hydro' physics includes Classical hydro MHD (Special) Relativistic Hydro

Hydrodynamics: Equations Solved Operator Split

Operator Splitting If have operators H for hydro and B for burning, second-order accurate in time, H 1/2 B 1/2 B 1/2 H 1/2 also second-order. Strang splitting (1968) Much easier (possible!) to have general multi-physics code Higher-order time accuracy very hard

Finite Difference Solution discretized as point values Build approximation to PDEs based on divided difference approximation to differentials Can be made very highorder Higher accuracy Faster convergence to PDEs as go to lower resolution

Finite Volume Solution discretized on control volumes Value is cell average For conservation eqn, t Q F Q =0 equation is updated as fluxes through interfaces. FU FL FR FD Guaranteed conservation!

Finite Volume Slightly harder to make very high order Conservation may mean more than naïve order of accuracy Shock speed wrong with non-conservative discretization; can alter simulation results That one converges faster with resolution not a good indicator of accuracy with a given resolution

Explicit New value of solution requires only value at neighboring cells at current time Very efficient Parallelizes very well Very accurate for high- speed flows Limits timestep Neighbors must contain all regions causally connected within that timestep Extremely distant `neighbors' not so efficient, doesn't parallelize so well Or small timestep

Guard Cells Because only require current values at neighboring cells, communication with other processors / boundaries done through guardcells Values outside computational domain filled in to represent boundary conditions Larger block size better communication / computation ratio

Directional Splitting Like Operator Splitting If have operators X for xhydro and Y for y-hydro, second-order accurate in time, X 1/2 Y 1/2 Y 1/2 X 1/2 also second-order accurate. Directional sweeps Vectorizable Easier, smaller codes Higher-order time, space accuracy much harder Can be problematic for some areas (flame instability)

Solving the Euler Equations Low-order simple methods of solving the Euler equations result in substantial numerical diffusion of flow features. Higher-order simple methods can result in numerical dispersion of flow features 1st order upwind 2nd order Lax-Wendroff Particularly a problem around sharp features But hydro equations allow discontinuities (shocks, contacts) LeVeque, http://www.amath.washington.edu/~claw/

Discretizing the Euler Equations Artificial `viscosity' can stabilize (not eliminate) oscillations, but not general solution 2nd order Lax-Wendroff Great improvement can be made by limiting slopes implied by methods disallow new min/max Best handling of shocks numerical methods that `know' detailed structure of hydro solutions LeVeque, http://www.amath.washington.edu/~claw/

Riemann Problem Simplest non-trivial hydrodynamics problem. `Shock tube' Infinite 1d domain Initial conditions discontinuous at x=0,t=0 What happens?

Hydrodynamic Waves Consider 1d Euler equation in nonconservative form `Eigenvalue' problem Look at structure of matrix Jumps in density and nothing else propagate with fluid Coherent variations in pressure, density propagate with the sound speed w/rt the fluid Any jump can be expressed in terms of `r' basis

Riemann Problem Waves propagate outwards from discontinuity Wave strengths given by decomposition of jump Problem completely solved once know states on interior of Riemann fan. Self-similar Fewer Riemann invariants across each wave than state variables. Need jump conditions

Riemann Problem Jump conditions come from how neighboring characteristics behave Characteristics pile up Shock Shock jump condition completes problem. Characteristics diverge Rarefaction wave Rarefaction `jump' condition completes problem. Can have RCR SCS RCS/SCR

Riemann Solvers Given invariants, jump conditions, can find an intermediate state which connects left, right states In (p,u) plane, intersection of two curves gives (p*,u*), because contact discontinuity supports arbitrary density jump Even for ideal gas, correct solution an iterative process Dai & Woodward, (1994)

Godunov Method Conservative, FV method Assumes data piecewise constant in cells Solves Riemann problem at cell interfaces Riemann problem used to calculate fluxes.

Approximate Riemann Solvers Riemann solver is expensive, particularly for general EOS Detailed structure unnecessary for fluxes Several approximate approaches: Two-shock HLL(E) Roe Dai & Woodward, (1994)

Two shock solver Assumes shocks on both sides If a wave is a rarefaction wave, ends up using shock jump across a rarefaction Poor for determining structure, not bad for determining fluxes Main Riemann solver for hydro in FLASH

HLL Solver Assumes only one interior state Uses estimates for minimum and maximum wave speeds Very fast, less accurate Diffusive (esp. contact discontinuities) Results very robust Used only in very specific situations where diffusion is a benefit (near-aligned shock instability)

Roe Solver Not used in FLASH classical hydro Instead of approximate solution to exact problem, exact solution to approximate problem Linearized Riemann problem Linearized around weighted average (`Roe average') of left and right states Inexpensive, works very well except in extremely strong shocks/rarefactions

Higher Order Godunov Methods Godunov method very robust, but expensive, and not very accurate (diffusive) Only 1st order accurate! (piecewise constant) Can achieve much higher accuracy for little extra cost by using higher-order (conservative) interpolants

Higher Order Godunov Methods Diffusive vs. Dispersive Cost of higher-order interpolants is that they behave badly near discontinuities Unphysical max/min oscillations Slopes must be limited to prevent new extrema. Reduces to Godunov at shocks

PPM Piecewise Parabolic Method Defines an upwinded parabola at each point with correct cell average Very aggressive `flattening' to enforce a very strict measure of monotonicity Also flattens at contact discontinuities Long history in compressible astrophysical flows

PPM Parabolas improve space accuracy To improve time accuracy, must modify how left,right states are chosen for Riemann solve Estimate characteristic speeds in cell and find region which is connected to interface in timestep Average over reconstruction in that region Those are left, right states for Riemann solve

PPM Construct interpolant Detect shocks, contacts Flatten for monotonicity Construct left, right states for Riemann Solve Find domain of dependance of interface over timestep Integrate reconstruction polynomial over doman of dependance Perform Riemann Solve Update cells with Fluxes from Riemann Solve States, Riemann solve similar cost

Central Methods PPM Very good shock resolution Very expensive If resolution of shock less important, many nonriemann-solve methods available Recent series of methods based on very simple approach Lax-Friedrichs with staggered mesh Avoids solving detailed Riemann problem by notionally integrating over entire Riemann fan. Nessyahu & Tadmor (1990)

Central Methods Only very recently that examined extending this to higher order Same caveats must limit slopes but results in very simple, inexpensive scheme Very accurate, smears out shocks more than Riemann-based methods Nessyahu & Tadmor (1990)

Central Methods Staggered mesh not very handy Method very diffusive at small timesteps Kurganov began developing methods with fixed mesh Fiendishly difficult derivations Result in very simple semidiscrete schemes Kurganov & Tadmor (2000) Building the accurate interpolation much more complicated than the actual flux calculation/update

Central Methods 2nd order dimensionally split Kurganov method implemented in FLASH Not yet integrated with other operators because of different update approach Accurate, fast Kurganov & Tadmor (2000)

Relativistic Hydro SR hydrodynamics has same structure as classical hydro Equations shown: 1d Cartesian co-ordinates Minkowski space Lab frame Ideal gas Conversion between primitive and conserved variables much more complicated: Lorentz factor

Relativistic Hydro Riemann problem maintains same structure as classical hydro 3 waves shocks, rarefactions Biggest change: tangential velocity now plays dynamic role in 1d Riemann solution Couples through W Makes full Riemann solution more difficult, much more costly, even for ideal gas http://relativity.livingreviews.org/articles/lrr-2003-7/

Relativistic Hydro FLASH implements a PPM for SR hydro Based on Marti & Muller (1995), Mignone & Bodo (2003) Riemann Solvers: Two-shock HLLE Requires ideal gas Time scaled to `c', so limits interaction with other physics modules for now Mignone & Bodo (2003)

MHD FLASH implements a MHD solver of the same general nature as non-magnetic hydro Explicit Dimensionally Split Finite Volume Godunov-type method

MHD Method by Powell et al (1999) Use MHD equations in slightly unusual form Symmetrized (Godunov) Gallilean invariance 8 eqns, 8 waves with non-zero velocities One is the `div-b' wave; divb advected with the flow. Cannot pile up in one place and begin to grow

MHD 8 waves: u +/- C, where C is speed of: Alfven wave (incompressible magnetic wave) Fast magnetosonic wave (compressible, magnetic field & pressure coupled) Slow magnetosonic wave (ditto) u ( two waves ) Contact discontinuity Magnetic flux jump Makes Riemann solver much harder

MHD Riemann solver much harder with 8 waves Even with only ideal gas Roe-type Riemann solver (requires ideal gas) Harder to compute a unique `Roe average', but same approach can be used

Divergence Constraint Difficult to maintain divergence constraint on adaptive mesh This method doesn't attempt to `divb' wave prevents pileup Divergence cleaning every user-settable number of timesteps Diffusion Projection (via multigrid solver)

FLASH hydrodynamcs Questions?