Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Oliver Hahn edited this page Oct 22, 2025 · 16 revisions

The monofonIC User Manual

Wiki is work in progress. If you feel that important information is missing, please get in touch or consider contributing (see CONTRIBUTING.md).

Prerequisites

Before using monofonIC, ensure you have:

Required Software

  • Operating System: Linux or macOS
  • Compiler: C++14 compatible (GCC 7+, Clang 5+, or Intel C++)
  • Build System: CMake 3.9 or newer
  • Libraries: FFTW3, GSL (required); HDF5 (strongly recommended)
  • Parallelization: OpenMP (for threading); MPI (optional, for distributed runs)

Recommended Reading

If you're new to cosmological initial conditions or Lagrangian perturbation theory:

Cloning the repository

To clone the repository using git including submodules (currently only CLASS is used as a submodule in order to perform the linear Einstein-Boltzmann evolution), type:

$ git clone [email protected]:cosmo-sims/monofonIC.git

You find instructions for building, configuring, and running monofonIC below.

Workflow Overview

The following diagram shows the typical workflow for generating initial conditions with monofonIC:

graph TB
    A[Build with CMake<br/>configure compile options]
    A --> B[Edit Configuration File<br/>cosmology, resolution, output]
    B --> C[Run monofonIC<br/>./monofonIC config.conf]
    C --> D[Run Simulation<br/>SWIFT/Gadget/RAMSES/etc.]
Loading

Contents of the Manual

Getting Started

Start here if you're new to monofonIC:

User Guide

Essential documentation for generating initial conditions:

Reference

Detailed reference material:

Contributing and Licensing

See file CONTRIBUTING.md on how to contribute to the development.

The software is licensed under GPL v3 (see file LICENSE).

Please note the separate licensing for Panphasia (see external/panphasia/LICENSE).

Citing in scientific publications or presentations

If you use MUSIC2-monofonIC in your scientific work, you are required to acknowledge this by linking to this repository and citing the relevant papers:

  • For total matter sims, or 3LPT/PLT related aspects: Michaux et al. 2020 arXiv:2008.09588

  • For baryon+CDM sims, or PPT numerics related aspects: Hahn et al. 2020 arXiv:2008.09124

Clone this wiki locally