Multi-level adaptive particle mesh (MLAPM): a C code for cosmological

被引:126
作者
Knebe, A
Green, A
Binney, J
机构
[1] Theoretical Physics, Oxford OX1 3NP
基金
美国国家科学基金会;
关键词
methods : numerical; galaxies : formation; cosmology : theory;
D O I
10.1046/j.1365-8711.2001.04532.x
中图分类号
P1 [天文学];
学科分类号
0704 ;
摘要
We present a computer code written in c that is designed to simulate structure formation from collisionless matter. The code is purely grid-based and uses a recursively refined Cartesian grid to solve Poisson's equation for the potential, rather than obtaining the potential from a Green's function. Refinements can have arbitrary shapes and in practice closely follow the complex morphology of the density field that evolves. The time-step shortens by a factor of 2 with each successive refinement. Competing approaches to N-body simulation are discussed from the point of view of the basic theory of N-body simulation. It is argued that an appropriate choice of softening length epsilon is of great importance and that e should be at all points an appropriate multiple of the local interparticle separation. Unlike tree and (PM)-M-3 codes, multigrid codes automatically satisfy this requirement. We show that at early times and low densities in cosmological simulations, epsilon needs to be significantly smaller relative to the interparticle separation than in virialized regions. Tests of the ability of the code's Poisson solver to recover the gravitational fields of both virialized haloes and Zel'dovich waves are presented, as are tests of the code's ability to reproduce analytic solutions for plane-wave evolution. The times required to conduct a Lambda CDM cosmological simulation for various configurations are compared with the times required to complete the same simulation with the ART, AP(3)M and GADGET codes. The power spectra, halo mass functions and halo-halo correlation functions of simulations conducted with different codes are compared. The code is available from http://www-thphys.physics.ox.ac.uk/users/MLAPM.
引用
收藏
页码:845 / 864
页数:20
相关论文
共 31 条
[1]   N-BODY SIMULATIONS OF GALAXY CLUSTERING .1. INITIAL CONDITIONS AND GALAXY COLLAPSE TIMES [J].
AARSETH, SJ ;
GOTT, JR ;
TURNER, EL .
ASTROPHYSICAL JOURNAL, 1979, 228 (03) :664-683
[2]  
[Anonymous], 1992, SMR
[3]   AN EFFICIENT PROGRAM FOR MANY-BODY SIMULATION [J].
APPEL, AW .
SIAM JOURNAL ON SCIENTIFIC AND STATISTICAL COMPUTING, 1985, 6 (01) :85-103
[4]   A HIERARCHICAL O(N-LOG-N) FORCE-CALCULATION ALGORITHM [J].
BARNES, J ;
HUT, P .
NATURE, 1986, 324 (6096) :446-449
[5]  
BRANDT A, 1977, MATH COMPUT, V31, P333, DOI 10.1090/S0025-5718-1977-0431719-X
[6]   HYDRA - AN ADAPTIVE-MESH IMPLEMENTATION OF P(3)M-SPH [J].
COUCHMAN, HMP ;
THOMAS, PA ;
PEARCE, FR .
ASTROPHYSICAL JOURNAL, 1995, 452 (02) :797-813
[7]  
COUCHMAN HMP, 1991, AP J, V368, P23
[8]   A very fast and momentum-conserving tree code [J].
Dehnen, W .
ASTROPHYSICAL JOURNAL, 2000, 536 (01) :L39-L42
[9]  
DEHNEN W, 2001, IN PRESS MNRAS
[10]   NUMERICAL TECHNIQUES FOR LARGE COSMOLOGICAL N-BODY SIMULATIONS [J].
EFSTATHIOU, G ;
DAVIS, M ;
FRENK, CS ;
WHITE, SDM .
ASTROPHYSICAL JOURNAL SUPPLEMENT SERIES, 1985, 57 (02) :241-260