RAMSES-CPP

RAMSES-CPP aims to provide a functional and physically consistent alternative to the original Fortran implementation while maintaining strict bit-perfect parity in data structures and I/O.

View the Project on GitHub SinsuSquid/RAMSES-CPP

Poisson Solver (Self-Gravity)

RAMSES-CPP includes a high-performance Multigrid Poisson solver for computing the self-gravitational potential of the matter distribution.

Algorithm

The solver uses a Geometric Multigrid approach to solve the Poisson equation: \(\nabla^2 \phi = 4 \pi G \rho\)

Components:

AMR Integration

The Poisson solver is fully integrated with the AMR engine. It solves the equation on the hierarchy of levels, using the potential from coarser levels as boundary conditions for finer levels.

Configuration

The Poisson solver is included in the default build. To enable gravity in a simulation, set gravity=.true. in the namelist.

Namelist Parameters