## MLAPM

swMATH ID: | 18063 |

Software Authors: | Knebe, A., Green, A., Binney, J. |

Description: | Multi-level adaptive particle mesh (MLAPM): a c code for cosmological simulation. 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 ε is of great importance and that ε should be at all points an appropriate multiple of the local interparticle separation. Unlike tree and P3M codes, multigrid codes automatically satisfy this requirement. We show that at early times and low densities in cosmological simulations, ε 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 ΛCDM cosmological simulation for various configurations are compared with the times required to complete the same simulation with the ART, AP3M and GADGET codes. The power spectra, halo mass functions and halo–halo correlation functions of simulations conducted with different codes are compared. |

Homepage: | http://mnras.oxfordjournals.org/content/325/2/845.short |

Related Software: | RAMSES; ScalFMM; CHARMM; tabipb; TABI; NBODY6; GMWB3D-SLC; CYLGYR; QUALIMUWABA; AFEM; TreePM; ColDICE; GADGET; ENZO; FEAPpv; Vador; ParaView; METIS; MPFR; gmp |

Cited in: | 5 Publications |

all
top 5

### Cited by 9 Authors

2 | Hassan, Muhammad |

2 | Stamm, Benjamin |

1 | Bramas, Bérenger |

1 | Colella, Phillip |

1 | Colombi, Stéphane |

1 | Fujimoto, Keizo |

1 | Machida, Shinobu |

1 | Miniati, Francesco |

1 | Sousbie, Thierry |

### Cited in 3 Serials

3 | Journal of Computational Physics |

1 | European Series in Applied and Industrial Mathematics (ESAIM): Mathematical Modelling and Numerical Analysis |

1 | Communications in Computational Physics |

### Cited in 5 Fields

4 | Numerical analysis (65-XX) |

2 | Integral equations (45-XX) |

2 | Fluid mechanics (76-XX) |

2 | Optics, electromagnetic theory (78-XX) |

2 | Astronomy and astrophysics (85-XX) |