Skip to content

andrearlotta/concept

This branch is 97 commits behind jmd-dk/concept:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8cb84af Β· Sep 21, 2022
Sep 6, 2022
Sep 21, 2022
May 11, 2022
Sep 21, 2022
Sep 21, 2022
Sep 21, 2022
Nov 19, 2021
Nov 1, 2021
Nov 19, 2021
Nov 1, 2021
Feb 23, 2022
Sep 5, 2022
Oct 28, 2021
Apr 30, 2022
Dec 7, 2021
Jun 28, 2022
Jun 28, 2022

Repository files navigation

CONCEPT

  πŸš€   Latest release: 1.0.1
  πŸ“–   Documentation

Introduction

CONCEPT (COsmological N-body CodE in PyThon) is a free and open-source simulation code for cosmological structure formation. The code should run on any Linux system, from massively parallel computer clusters to laptops. The code is written almost exclusively in Python, but achieves C-like performance through code transformation using a custom transpiler/optimizer and Cython. While highly competitive regarding both performance and accuracy, CONCEPT further strives for ease of use.

CONCEPT is capable of simulating matter particles evolving under self-gravity in an expanding background. It has multiple gravitational solvers to choose from, and has adaptive time integration built in. In addition to particles, the code is further able to evolve fluids at various levels of non-linearity, providing the means for the inclusion of more exotic species such as massive neutrinos, as well as for simulations consistent with general relativistic perturbation theory. Various non-standard species β€” such as decaying cold dark matter β€” are fully supported.

CONCEPT comes with a sophisticated initial condition generator built in, and can output snapshots, power spectra and several kinds of renders.

The CLASS code is fully integrated into CONCEPT, supplying the needed information for e.g. initial condition generation and general relativistic corrections.

Code paper

The primary paper on CONCEPT is β€˜The cosmological simulation code CONCEPT 1.0’.
Cite this paper if you make use of CONCEPT in a publication.

Getting Started

To get started with CONCEPT, walking through the tutorial is highly recommended. That said, installation can be as simple as

bash <(wget -O- https://raw.githubusercontent.com/jmd-dk/concept/v1.0.1/install)

which installs CONCEPT along with all of its dependencies into a single directory. The installation takes a couple of hours on modern hardware. Should the installation process end prematurely, simply rerun the installation command and it will pick up from where it was.

To run a small sample simulation, navigate to the directory where CONCEPT is installed and invoke

./concept -p param/example_basic -n 2 --local

This will run the simulation defined by the provided example_basic parameter file using 2 processes.

Consult the tutorial and the rest of the documentation for further guidance.

About

COsmological N-body CodE in PyThon

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 72.8%
  • Shell 25.7%
  • Other 1.5%