Skip to content

MESA

Overview

MESA (Modules for Experiments in Stellar Astrophysics) is a software package for accurately simulating stellar life cycles. It can optionally be run in an OnDemand desktop environment for a live view of the simulation.

Availability

Cluster Module/Version
BOSE mesa/r24.03.1
mesa/r23051
mesa/r15140
BGSC mesa/r15140

Note: You can simply use module load mesa to activate the most recently installed version of this software.

Environment Variables

The following environment variables are automatically set when you load MESA.

Variable Description
$MESA_DIR Root directory of the MESA installation
$MESA_CACHE_DIR Set to $HOMEDIR/.cache/mesa/<version> to store generated files
$MESASDK_ROOT Root directory of the MESA SDK
$MESASDK_VERSION Version of the currently loaded MESA SDK

Sample Slurm Script

submit.sh
#!/bin/bash
# -- SLURM SETTINGS -- #
# [..] other settings here [..]

# The following settings are for the overall request to Slurm
#SBATCH --ntasks-per-node=32     # How many CPU cores do you want to request
#SBATCH --nodes=1                # How many nodes do you want to request

# -- SCRIPT COMMANDS -- #

# Load the needed modules
module load mesa/r24.03.1    # Load MESA
./mk
./rn # Run MESA simulation

Real Example

Has your research group used MESA in a project? Contact the HPC Team and we'd be glad to feature your work.

Citation

Please be sure to read the "Create An Article for Publication" section in MESA's online documentation to properly cite MESA and support its continued development.

Create An Article for Publication - docs.mesastar.org

Resources