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.
RAMSES-CPP includes a high-performance Multigrid Poisson solver for computing the self-gravitational potential of the matter distribution.
The solver uses a Geometric Multigrid approach to solve the Poisson equation: \(\nabla^2 \phi = 4 \pi G \rho\)
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.
The Poisson solver is included in the default build. To enable gravity in a simulation, set gravity=.true. in the namelist.
gravity: Boolean to enable/disable self-gravity.niter_smooth: Number of Gauss-Seidel smoothing iterations per level.epsilon_poisson: Convergence threshold for the iterative solver.