OpenFOAM
OpenFOAM is the free, open source CFD software developed primarily by OpenCFD Ltd since 2004. It has a large user base across most areas of engineering and science, from both commercial and academic organisations. OpenFOAM has an extensive range of features to solve anything from complex fluid flows involving chemical reactions, turbulence and heat transfer, to acoustics, solid mechanics and electromagnetics. The availbale version is OpenFOAM v2206.
Usage
Example script : test-openfoam.sh
#!/bin/bash
#SBATCH --job-name=test-of
#SBATCH -o test-of_out%j.out
#SBATCH -e test-of_err%j.err
#SBATCH -N 1
#SBATCH -p agustina_thin
module load openfoam/2206
echo "OPENFOAM BIN:"
of_exec "ls -al $OPENFOAM_BIN"
echo "OpenFOAM v2206 HOME:"
of_exec "ls -al $OPENFOAM_HOME"
# base path for custom libraries and models
BASE_COMPILE=/fs/agustina/$(whoami)/base_data_of
BASE_COMPILE_LIB=$BASE_COMPILE/libraries
BASE_COMPILE_SOLV=$BASE_COMPILE/solvers
of_exec "cd $BASE_COMPILE_LIB/myNewLibrary && wclean && wmake"
of_exec "cd $BASE_COMPILE_SOLV/myNewModel && wclean && wmake"
of_exec "mpirun -n 4 myNewModel -parallel"
echo "done!"
Submit with :
sbatch --account=your_project_ID test-openfoam.sh
More info :