Fire Dynamics Simulator

Fire Dynamics Simulator (FDS) est un code de simulation à grande échelle (LES) pour les flux à basse vitesse, mettant l'accent sur le transport de la fumée et de la chaleur provenant des incendies.

Smokeview (SMV) est un programme de visualisation utilisé pour afficher les résultats des simulations FDS.

Pour plus d'information

Exécution de App

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

Exemple de Script slurm de Job FDS

#!/bin/bash -x 

#SBATCH --account=<projet>
#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 the all files to the outdir
  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 ""