Ramses Quickstart
This chapter walks first-time users through a full Conda-based RAMSES setup, ending with a successful 1D hydro test.
Goal Checklist
Section titled “Goal Checklist”- Install Conda for your OS (Miniforge).
- Create and activate a
ramses-labenvironment. - Build
ramses1dand runtube1d.nmlsuccessfully.
Installation
Section titled “Installation”0) Install and verify WSL2 + Ubuntu
Section titled “0) Install and verify WSL2 + Ubuntu”Run PowerShell/Windows Terminal as Administrator first.
wsl --install -d Ubuntuwsl --set-default-version 2wsl -l -vIf wsl --install only prints help text:
wsl --list --onlinewsl --install -d UbuntuIf installation stalls at 0.0%:
wsl --install --web-download -d UbuntuReboot if prompted, then open Ubuntu and create your Linux username/password.
1) Install Miniforge (inside Ubuntu)
Section titled “1) Install Miniforge (inside Ubuntu)”sudo apt updatesudo apt install -y curl bzip2
curl -L -o ~/miniforge.sh \ "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-$(uname -m).sh"bash ~/miniforge.sh -b -p "$HOME/miniforge3"
source "$HOME/miniforge3/etc/profile.d/conda.sh"conda init bash0) Install Miniforge
Section titled “0) Install Miniforge”xcode-select --install
curl -L -o ~/miniforge.sh \ https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-$(uname -m).shbash ~/miniforge.sh -b -p "$HOME/miniforge3"
source "$HOME/miniforge3/etc/profile.d/conda.sh"conda init zsh0) Install Miniforge
Section titled “0) Install Miniforge”sudo apt updatesudo apt install -y curl bzip2
curl -L -o ~/miniforge.sh \ "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-$(uname -m).sh"bash ~/miniforge.sh -b -p "$HOME/miniforge3"
source "$HOME/miniforge3/etc/profile.d/conda.sh"conda init bash1) Create ramses-lab
Section titled “1) Create ramses-lab”conda create -n ramses-lab -c conda-forge \ python=3.11 compilers make cmake git -y
conda activate ramses-labwhich gfortranecho "$CONDA_PREFIX"If you later need MPI/HDF5-enabled builds, add:
conda install -c conda-forge openmpi mpi4py hdf5 -ywhich mpif902) Get source code
Section titled “2) Get source code”cd ~git clone https://github.com/ramses-organisation/ramses.gitcd ramses3) Set minimal bin/Makefile options
Section titled “3) Set minimal bin/Makefile options”cd binIn Makefile, set/check:
- For the first 1D test, keep the default serial setting (
-DWITHOUTMPIinFFLAGSis fine) - 1D hydro startup setup:
NDIM=1,SOLVER=hydro,NVAR=3
For later MPI-parallel runs, switch to F90 = mpif90 and remove -DWITHOUTMPI from FFLAGS.
4) Build
Section titled “4) Build”make cleanmakeThis should create bin/ramses1d.
5) Run the documented startup test
Section titled “5) Run the documented startup test”cd ..bin/ramses1d namelist/tube1d.nmlOptional log capture:
bin/ramses1d namelist/tube1d.nml > tube.log6) Quick validation
Section titled “6) Quick validation”- Run output progresses without fatal errors.
- Final line includes
Run completed. - Output files are generated as expected.