HYDRA - AN ADAPTIVE-MESH IMPLEMENTATION OF P(3)M-SPH

被引:281
作者
COUCHMAN, HMP [1 ]
THOMAS, PA [1 ]
PEARCE, FR [1 ]
机构
[1] UNIV SUSSEX,MAPS,CTR ASTRON,BRIGHTON BN1 9QH,E SUSSEX,ENGLAND
关键词
HYDRODYNAMICS; METHODS; NUMERICAL;
D O I
10.1086/176348
中图分类号
P1 [天文学];
学科分类号
0704 ;
摘要
We present an implementation of smoothed particle hydrodynamics (SPH) in an adaptive particle-particle-particle-mesh (AP(3)M) algorithm. The code evolves a mixture of purely gravitational particles and gas particles. SPH gas forces are calculated in the standard way from near neighbors. Gravitational forces are calculated using the mesh refinement scheme described by Couchman (1991). The AP(3)M method used in the code gives rise to highly accurate forces. The maximum pairwise force error is set by an input parameter, For a maximum pairwise force error of 7.7%, the rms error in a distribution of particles is approximate to 0.3%. The refined-mesh approach significantly increases the efficiency with which the neighbor particles required for the SPH forces are located. The code, ''Hydra,'' retains the principal desirable properties of previous P(3)M-SPH implementations; speed under light clustering, naturally periodic boundary conditions, and easy control of the accuracy of the pairwise interparticle forces. Under heavy clustering the cycle time of the new code is only 2-3 times slower than for a uniform particle distribution, overcoming the principle disadvantage of previous implementations-a dramatic loss of efficiency as clustering develops. A 1000 step simulation with 65,536 particles (half dark, half gas) runs in one day on a Sun Sparc10 workstation. The choice of time integration scheme is investigated in detail. We find that a simple single-step predictor-corrector type integrator, which is equivalent to Leapfrog for velocity-independent forces, is the most efficient. A method for generating an initial distribution of particles by allowing a uniform temperature gas of SPH particles to relax within a periodic box is presented. The average SPH density that results varies by approximate to +/-1.3%, This is the fluctuation amplitude on roughly the Nyquist frequency; for smaller wavenumbers the fluctuations have lower amplitudes. We present a modified form of the Layzer-Irvine equation which includes the thermal contribution of the gas together with radiative cooling. The SPH and time integration schemes were tested and compared by running a series of tests of sound waves and shocks. These tests were also used to derive time-step constraints sufficient to ensure both energy and entropy conservation. We have compared the results of simulations of spherical infall and collapse with varying numbers of particles, We show that many thousands of particles are necessary in a halo to correctly model the collapse. As a further test, the cluster simulation of Thomas & Couchman (1992) has been rerun with the new code, which includes a number of improvements in the SPH implementation. We find close agreement except in the core properties of the cluster which are strongly affected by entropy scatter in the older simulation. This demonstrates the crucial importance of conserving entropy in SPH simulations.
引用
收藏
页码:797 / 813
页数:17
相关论文
共 14 条
[1]  
BERTSCHINGER E, 1985, ASTROPHYS J, V268, P17
[2]   MERGERS AND BIAS IN A COLD DARK MATTER COSMOLOGY [J].
CARLBERG, RG ;
COUCHMAN, HMP .
ASTROPHYSICAL JOURNAL, 1989, 340 (01) :47-68
[3]   THE PIECEWISE PARABOLIC METHOD (PPM) FOR GAS-DYNAMICAL SIMULATIONS [J].
COLELLA, P ;
WOODWARD, PR .
JOURNAL OF COMPUTATIONAL PHYSICS, 1984, 54 (01) :174-201
[4]   MESH-REFINED P3M - A FAST ADAPTIVE N-BODY ALGORITHM [J].
COUCHMAN, HMP .
ASTROPHYSICAL JOURNAL, 1991, 368 (02) :L23-&
[5]  
COUCHMAN HMP, 1995, NUMERICAL METHODS AS, V2
[6]   FORMATION AND EVOLUTION OF X-RAY-CLUSTERS - A HYDRODYNAMIC SIMULATION OF THE INTRACLUSTER MEDIUM [J].
EVRARD, AE .
ASTROPHYSICAL JOURNAL, 1990, 363 (02) :349-366
[7]  
Ewald PP, 1921, ANN PHYS-BERLIN, V64, P253
[8]   SMOOTHED PARTICLE HYDRODYNAMICS - THEORY AND APPLICATION TO NON-SPHERICAL STARS [J].
GINGOLD, RA ;
MONAGHAN, JJ .
MONTHLY NOTICES OF THE ROYAL ASTRONOMICAL SOCIETY, 1977, 181 (02) :375-389
[9]   TREESPH - A UNIFICATION OF SPH WITH THE HIERARCHICAL TREE METHOD [J].
HERNQUIST, L ;
KATZ, N .
ASTROPHYSICAL JOURNAL SUPPLEMENT SERIES, 1989, 70 (02) :419-446
[10]  
Hockney R. W., 1988, COMPUTER SIMULATION