Fire Dynamics Simulator

Fire Dynamics Simulator (FDS) is a large-scale simulation code (LES) for low-speed flows, focusing on the transport of smoke and heat from fires.

Smokeview (SMV) is a visualization program used to display the results of FDS simulations.

For more information

Running the App

Module Version Notes
fds oneapi-2023.0.0/FDS/6.9.1 FDS
fds oneapi-2023.0.0/SMV/6.9.1 SmokeView

To see the available versions when you are logged into eXplor, run the command:

module spider fds

To use FDS or SmokeView, type:

module load fds/<version>

specifying one of the available versions.

Example of a Slurm Job Script for FDS

#!/bin/bash -x 

#SBATCH --account=<project>
#SBATCH --partition=std
#SBATCH --job-name=test_fds
#SBATCH --output=SLURM-%x.%N.%j.out 
#SBATCH --error=SLURM-%x.%N.%j.err 
#SBATCH --nodes=1
#SBATCH --ntasks=8
#SBATCH --cpus-per-task=1
#SBATCH --time=0-00:05:00

env | grep -i slurm 

echo ""
echo "  JOB started: $(date) "
echo ""

cd $SLURM_SUBMIT_DIR

echo "Submission Directory: $SLURM_SUBMIT_DIR"

# Creating temporary directory
WORKDIR="$SCRATCHDIR/job.$SLURM_JOB_ID.$USER"
mkdir -p $WORKDIR

echo ""
echo "Working Directory: $WORKDIR"
echo ""

module purge
module load fds/oneapi-2023.0.0/FDS/6.9.1
ulimit -s unlimited

# Copying files to $WORKDIR
cp $SLURM_SUBMIT_DIR/job2.fds $WORKDIR/
cd $WORKDIR

# Run the program with the working directory
mpiexec -np $SLURM_NTASKS fds job2.fds > job2_fds.out

# Copying all files to the output directory
OUTDIR="$SLURM_SUBMIT_DIR/outdir.$SLURM_JOB_ID"
if [ ! -e $OUTDIR ]; then 
  mkdir $OUTDIR
fi

mv $WORKDIR/* $OUTDIR

# Going back to the submission directory
cd $SLURM_SUBMIT_DIR

# Removing the $WORKDIR 
rmdir $WORKDIR

echo ""
echo "  JOB finished: $(date) "
echo ""