Abstract

We compare two cosmological hydrodynamic simulation codes in the context of hierarchical galaxy formation: the Lagrangian smoothed particle hydrodynamics (SPH) code GADGET, and the Eulerian adaptive mesh refinement (AMR) code Enzo. Both codes represent dark matter with the N-body method but use different gravity solvers and fundamentally different approaches for baryonic hydrodynamics. The SPH method in GADGET uses a recently developed conserving formulation of SPH, while for the mesh-based Enzo two different formulations of Eulerian hydrodynamics are employed: the piecewise parabolic method (PPM) extended with a dual energy formulation for cosmology, and the artificial viscosity-based scheme used in the magnetohydrodynamics code ZEUS. In this paper we focus on a comparison of cosmological simulations that follow either only dark matter, or also a nonradiative (adiabatic) hydrodynamic gaseous component. We perform multiple simulations using both codes with varying spatial and mass resolution with identical initial conditions. The dark matter-only runs agree generally quite well provided Enzo is run with a comparatively fine root grid and a low overdensity threshold for mesh refinement, otherwise the abundance of low-mass halos is suppressed. This can be readily understood as a consequence of the hierarchical particle-mesh algorithm used by Enzo to compute gravitational forces, which tends to deliver lower force resolution than the tree-algorithm of GADGET at early times before any adaptive mesh refinement takes place. At comparable force resolution we find that the latter offers substantially better performance and lower memory consumption than the present gravity solver in Enzo. In simulations that include adiabatic gasdynamics we find general agreement in the distribution functions of temperature, entropy, and density for gas of moderate to high overdensity, as found inside dark matter halos. However, there are also some significant differences in the same quantities for gas of lower overdensity. For example, at z = 3 the fraction of cosmic gas that has temperature log T > 0.5 is ~80% for both Enzo ZEUS and GADGET, while it is 40%-60% for Enzo PPM. We argue that these discrepancies are due to differences in the shock-capturing abilities of the different methods. In particular, we find that the ZEUS implementation of artificial viscosity in Enzo leads to some unphysical heating at early times in preshock regions. While this is apparently a significantly weaker effect in GADGET, its use of an artificial viscosity technique may also make it prone to some excess generation of entropy that should be absent in Enzo PPM. Overall, the hydrodynamical results for GADGET are bracketed by those for Enzo ZEUS and Enzo PPM but are closer to Enzo ZEUS.

Highlights

  • Within the currently leading theoretical model for structure formation small fluctuations that were imprinted in the primordial density field are amplified by gravity, eventually leading to nonlinear collapse and the formation of dark matter (DM) halos

  • The primary hydrodynamic method used in Enzo is based on the piecewise parabolic method (PPM) of Woodward & Colella (1984) which has been significantly modified for the study of cosmological fluid flows

  • Given that the Santa Barbara cluster comparison project hinted that there may be a systematic difference between Eulerian codes and smoothed particle hydrodynamics (SPH) codes (Enzo gave slightly higher gas mass fraction compared to SPH runs at the virial radius), we study this property in our set of simulations

Read more

Summary

Introduction

Within the currently leading theoretical model for structure formation small fluctuations that were imprinted in the primordial density field are amplified by gravity, eventually leading to nonlinear collapse and the formation of dark matter (DM) halos. Comparison project (Frenk et al 1999), in which several different groups ran a simulation of the formation of one galaxy cluster, starting from identical initial conditions They compared a few key quantities of the formed cluster, such as radiallyaveraged profiles of baryon and dark matter density, gas temperature and X-ray luminosity. Both Eulerian (fixed grid and AMR) and SPH methods were used in this study. We first compare the dark matter-only runs in Section 4 to test the gravity solver of each code

Code details
Hydrodynamics with the piecewise parabolic method
The ZEUS hydrodynamic algorithm
The Enzo Gravity Solver
Smoothed particle hydrodynamics code
Hydrodynamical method
Gravitational method
The simulation set
Simulations with dark matter only
Dark matter power spectrum
Halo dark matter mass function and halo positions
Halo dark matter substructure
Adiabatic simulations
Unperturbed adiabatic expansion test
Differential distribution functions of gas properties
Cumulative distribution functions of gas properties
Phase diagrams
Mean gas temperature and entropy
Evolution of Kinetic Energy
The gas fraction in halos
The role of artificial viscosity
Initial comparison on a distributed memory machine
More recent comparison on a shared memory machine
Findings
Conclusions
Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call