Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

Support:

support email for Idun:

help@hpc.ntnu.no

 

Example jobscripts:

openmpi test
#!/bin/bash
#PBS -N openmpitest
#PBS -A account
#PBS -l select=2:ncpus=20:mpiprocs=20
#PBS -l walltime=0:10:00

module load gcc openmpi
mpirun hostname
openfoam test
#!/bin/bash
###################################################
#
#  OpenFOAM test job
#
###################################################
#
#PBS -N OpenFOAM
#PBS -A account
#PBS -l select=2:ncpus=20:mpiprocs=2
#PBS -l walltime=00:20:00
module load gcc
module load openmpi
module load openfoam

case=damBreak
tutorial=$FOAM_TUTORIALS/multiphase/interFoam/ras/damBreak/damBreak

# Create a unique working directory
workdir=/home/${USER}/${PBS_JOBID}
mkdir -p $workdir

# Copy input files and move to the working directory
cp -r $PBS_O_WORKDIR/$case $workdir
cd $workdir/$case

# Run OpenFOAM in the working directory
blockMesh
setFields
decomposePar
mpirun interFoam -parallel 
reconstructPar

# Create a unique directory in the directory where the job
# was submitted and copy the result files to that directory.
mkdir -p $PBS_O_WORKDIR/$PBS_JOBID

cp -r constant system [0-9]* $PBS_O_WORKDIR/$PBS_JOBID

# OpenFOAM produces a lot of temporary files that must be
# deleted, since they consume file system resources (inodes).
cd /tmp
rm -rf $workdir
  • No labels