A New Way to Conserve Total Energy for Eulerian Hydrodynamic Simulations with Self-Gravity
arXiv:1208.1795 · doi:10.1016/j.newast.2012.08.002
Abstract
We propose a new method to conserve the total energy to round-off error in grid-based codes for hydrodynamic simulations with self-gravity. A formula for the energy flux due to the work done by the the self-gravitational force is given, so the change in total energy can be written in conservative form. Numerical experiments with the code Athena show that the total energy is indeed conserved with our new algorithm and the new algorithm is second order accurate. We have performed a set of tests that show the numerical errors in the traditional, non-conservative algorithm can affect the dynamics of the system. The new algorithm only requires one extra solution of the Poisson equation, as compared to the traditional algorithm which includes self-gravity as a source term. If the Poisson solver takes a negligible fraction of the total simulation time, such as when FFTs are used, the new algorithm is almost as efficient as the original method. This new algorithm is useful in Eulerian hydrodynamic simulations with self-gravity, especially when results are sensitive to small energy errors, as for radiation pressure dominated flow.
19 pages, 8 figures, 2 tables, add journal information in New Astronomy
References in corpus (8)
- Theory of Star Formation
- Athena: A New Code for Astrophysical MHD
- The Formation of Massive Star Systems by Accretion
- Dynamics of Protoplanetary Disks
- Dimension as a Key to the Neutrino Mechanism of Core-Collapse Supernova Explosions
- A test suite for quantitative comparison of hydrodynamics codes in astrophysics
- A High-resolution Adaptive Moving Mesh Hydrodynamic Algorithm
- Star Formation in Quasar Disk
Cited by in corpus (20)
- The Athena++ Adaptive Mesh Refinement Framework: Design and Magnetohydrodynamic Solvers
- Hydrodynamical Simulations to Determine the Feeding Rate of Black Holes by the Tidal Disruption of Stars: The Importance of the Impact Parameter and Stellar Structure
- The Arepo public code release
- Zoom-Simulations of Protoplanetary Disks starting from GMC scales
- GAMER-2: a GPU-accelerated adaptive mesh refinement code -- accuracy, performance, and scalability
- An Improved Multipole Approximation for Self-Gravity and Its Importance for Core-Collapse Supernova Simulations
- Hydrodynamic Simulations of the Interaction between an AGB Star and a Main Sequence Companion in Eccentric Orbits
- High-Temperature Processing of Solids Through Solar Nebular Bow Shocks: 3D Radiation Hydrodynamics Simulations with Particles
- Gravito-Turbulent Disks in 3D: Turbulent Velocities vs. Depth
- White Dwarf Mergers on Adaptive Meshes I. Methodology and Code Verification
- Magnetorotational instability and dynamo action in gravitoturbulent astrophysical discs
- The Athena++ Adaptive Mesh Refinement Framework: Multigrid Solvers for Self-Gravity
- Planet-disc interaction on a freely moving mesh
- An Extension of the Athena++ Framework for Fully Conservative Self-Gravitating Hydrodynamics
- A well-balanced scheme for the simulation tool-kit A-MaZe: implementation, tests, and first applications to stellar structure
- Structure-preserving finite-element schemes for the Euler-Poisson equations
- Energy conserving and well-balanced discontinuous Galerkin methods for the Euler-Poisson equations in spherical symmetry
- A self-gravity module for the PLUTO code
- Towards Higher Order Accuracy in Self-Gravitating Hydrodynamics
- Convective stability analysis of massive neutron stars formed in binary mergers