1
0
Fork 0
mirror of https://github.com/cosmo-sims/MUSIC.git synced 2024-09-19 17:03:46 +02:00
MUSIC/README.md

48 lines
2.8 KiB
Markdown
Raw Normal View History

2024-07-09 16:11:44 +02:00
[![CMake on multiple platforms](https://github.com/cosmo-sims/MUSIC/actions/workflows/cmake-multi-platform.yml/badge.svg)](https://github.com/cosmo-sims/MUSIC/actions/workflows/cmake-multi-platform.yml)
2024-04-19 17:54:39 +02:00
MUSIC v2 - multi-scale cosmological initial conditions
======================================================
2013-08-02 18:05:17 +02:00
2024-04-19 17:54:39 +02:00
MUSIC is a computer program to generate nested grid initial conditions for high-resolution "zoom" cosmological simulations. A detailed description of some of the algorithms can be found in [Hahn & Abel (2011)](http://arxiv.org/abs/1103.6031), but version 2.0 is much improved and has a much lower memory footprint. To learn how to use MUSIC, please [read the Wiki](https://github.com/cosmo-sims/music/wiki).
2013-08-03 06:29:08 +02:00
2024-04-20 21:26:38 +02:00
Current MUSIC key features include:
2013-08-03 06:16:29 +02:00
2024-04-20 21:26:38 +02:00
- Supports output for RAMSES, ENZO, Arepo, Swift, Gadget-2/3, ART, Pkdgrav/Gasoline and NyX via plugins. New codes can be added.
2024-04-19 17:54:39 +02:00
- Support for first (1LPT) and second order (2LPT) Lagrangian perturbation theory.
2024-04-20 21:26:38 +02:00
- Full integration of the [PANPHASIA](https://arxiv.org/abs/1306.5968) hierarchical Gaussian random fields
2024-04-19 17:54:39 +02:00
- 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.
2013-08-03 06:16:29 +02:00
- Parallelized with OpenMP
2024-04-19 17:54:39 +02:00
- Requires FFTW3, GSL (and HDF5 for output for some codes)
2013-08-03 06:16:29 +02:00
2021-12-01 22:12:05 +01:00
## Building MUSIC
2024-04-19 17:54:39 +02:00
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
2021-12-01 22:12:05 +01:00
```
mkdir build
cd build
ccmake ..
make -j
```
2024-04-19 17:54:39 +02:00
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
2021-12-01 22:12:05 +01:00
```
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
```
2024-04-19 17:54:39 +02:00
CC=gcc-13 CXX=g++-13 ccmake ..
2021-12-01 22:12:05 +01:00
```
This is necessary since Apple's compilers haven't supported OpenMP for years.
## Running
2024-04-19 17:54:39 +02:00
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:
2021-12-01 22:12:05 +01:00
```
./MUSIC ../ics_example.conf
```
## Disclaimer
2024-04-19 17:54:39 +02:00
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.
2021-12-01 22:12:51 +01:00