1
0
Fork 0
mirror of https://github.com/cosmo-sims/MUSIC.git synced 2024-09-19 17:03:46 +02:00
Multi-scale initial conditions for cosmological simulations
Find a file
2023-02-08 11:49:28 -08:00
src minor cleanup 2023-02-08 11:49:04 -08:00
tools updated testing script 2023-02-08 11:49:28 -08:00
.gitignore added .gitignore 2023-02-03 11:35:06 -08:00
bitbucket-pipelines.yml Initial Bitbucket Pipelines configuration 2021-12-01 21:00:20 +00:00
CMakeLists.txt updated RPC/XDR routines to compile against TIRPC library since RPC is missing from modern glibc 2021-11-30 22:47:40 +01:00
FindFFTW3.cmake added rudimentary CMake support 2020-02-13 14:06:30 +01:00
FindTIRPC.cmake updated RPC/XDR routines to compile against TIRPC library since RPC is missing from modern glibc 2021-11-30 22:47:40 +01:00
ics_example.conf enabled dark energy EOS in public version. cosmology/wa and cosmology/w0 can be set in config file 2015-06-24 11:46:18 +02:00
LICENSE added copyright and license stuff 2013-08-02 18:05:17 +02:00
Makefile changed CC back to default to g++ 2020-02-13 13:45:31 +01:00
README.md README.md edited 2021-12-01 21:12:51 +00:00
version.cmake added rudimentary CMake support 2020-02-13 14:06:30 +01:00

MUSIC - multi-scale cosmological initial conditions

MUSIC is a computer program to generate nested grid initial conditions for high-resolution "zoom" cosmological simulations. A detailed description of the algorithms can be found in Hahn & Abel (2011). You can download the user's guide here, or read the Wiki instead. Please consider joining the user mailing list.

Current MUSIC key features are:

  • Supports output for RAMSES, ENZO, Arepo, Gadget-2/3, ART, Pkdgrav/Gasoline and NyX via plugins. New codes can be added.

  • Support for first (1LPT) and second order (2LPT) Lagrangian perturbation theory, local Lagrangian approximation (LLA) for baryons with grid codes.

  • Pluggable transfer functions, currently CAMB, Eisenstein&Hu, BBKS, Warm Dark Matter variants. Distinct baryon+CDM fields.

  • Minimum bounding ellipsoid and convex hull shaped high-res regions supported with most codes, supports refinement mask generation for RAMSES.

  • Parallelized with OpenMP

  • Requires FFTW (v2 or v3), GSL (and HDF5 for output for some codes)

Building MUSIC

While we still supply the old Makefile, using CMake is now the preferred way of building. CMake use out-of-source build, i.e. you create a build directory, and then configure the code using CMake. Inside the music directory, do

  mkdir build
  cd build
  ccmake ..
  make -j

to configure the code (you will se a menu), and then start a parallel compilation. If CMake has trouble finding your FFTW or HDF5 installation, you can add hints as follows

  FFTW3_ROOT=<path> HDF5_ROOT=<path> ccmake ..

If you want to build on macOS, then it is strongly recommended to use GNU (or Intel) compilers instead of Apple's Clang. Install them e.g. via homebrew and then configure cmake to use them instead of the macOS default compiler via

  CC=gcc-9 CXX=g++-9 ccmake ..

This is necessary since Apple's compilers haven't supported OpenMP for years.

Running

There is an example parameter file 'example.conf' in the main directory. Possible options are explained in it, it can be run as a simple argument, e.g. from within the build directory:

  ./MUSIC ../ics_example.conf

Disclaimer

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. By downloading and using MUSIC, you agree to the LICENSE, distributed with the source code in a text file of the same name.