Ansys: Difference between revisions

Jump to navigation Jump to search
434 bytes added ,  2 months ago
m
no edit summary
(Marked this version for translation)
mNo edit summary
Line 445: Line 445:


<!--T:224-->
<!--T:224-->
The slurm scripts in this section are suitable for Fluent jobs that thoroughly tested but typically require multiple requeue attempts to checkout licenses.  They are not recommended for Fluent jobs that may 1) run for a long time before crashing 2) run to completion but contain unresolved journal file warnings, since in both cases the simulations will be repeated from the beginning until the maximum number of requeue attempts specified by the <code>array</code> value is reached.  For these types of jobs the general purpose scripts above should be used instead.
The scripts in this section should only be used with Fluent jobs that are known to complete normally without generating any errors in the output however typically require multiple requeue attempts to checkout licenses.  They are not recommended for Fluent jobs that may 1) run for a long time before crashing 2) run to completion but contain unresolved journal file warnings, since in both cases the simulations will be repeated from the beginning until the maximum number of requeue attempts specified by the <code>array</code> value is reached.  For these types of jobs the general purpose scripts above should be used instead.


<!--T:2400-->
<!--T:2400-->
Line 459: Line 459:
#SBATCH --account=def-group  # Specify account
#SBATCH --account=def-group  # Specify account
#SBATCH --time=00-03:00      # Specify time limit dd-hh:mm
#SBATCH --time=00-03:00      # Specify time limit dd-hh:mm
#SBATCH --nodes=1            # Specify number of compute nodes
#SBATCH --nodes=1            # Specify number of compute nodes (narval 1 node max)
#SBATCH --ntasks-per-node=32  # Specify number of cores per node (graham 32 or 44, cedar 48, beluga 40, or less)
#SBATCH --ntasks-per-node=32  # Specify number of cores per node (graham 32 or 44, cedar 48, beluga 40, or less)
#SBATCH --mem=0              # Do not change (allocates all memory per compute node)
#SBATCH --mem=0              # Do not change (allocates all memory per compute node)
#SBATCH --cpus-per-task=1    # Do not change
#SBATCH --cpus-per-task=1    # Do not change
#SBATCH --array=1-5%1        # Specify number of requeue attempts (2 or more, 5 is shown)
#SBATCH --array=1-5%1        # Specify number of requeue attempts (2 or more, 5 is shown)
rm -f core*


<!--T:4739-->
<!--T:4739-->
rm -f cleanup* core*
MYJOURNALFILE=sample.jou      # Specify your journal file name
MYVERSION=3d                  # Specify 2d, 2ddp, 3d or 3ddp
 
<!--T:2406-->
module load StdEnv/2023      # Do not change
module load ansys/2023R2      # Specify version (beluga, cedar, graham, narval)


<!--T:2405-->
<!--T:2405-->
#module load StdEnv/2020
#module load StdEnv/2020     # no longer supported (uayor)
#module load ansys/2019R3    # or newer versions (narval only)
#module load ansys/2019R3    # or newer versions (narval only)
#module load ansys/2021R2    # or newer versions (beluga, cedar, graham)
#module load ansys/2021R2    # or newer versions (beluga, cedar, graham)


<!--T:2406-->
# ------- do not change any lines below --------
module load StdEnv/2023
module load ansys/2023R2      # or newer versions (beluga, cedar, graham, narval)


<!--T:4740-->
<!--T:4740-->
Line 496: Line 501:


<!--T:2410-->
<!--T:2410-->
# Specify 2d, 2ddp, 3d or 3ddp and replace sample with your journal filename …
if [ "$SLURM_NNODES" == 1 ]; then
if [ "$SLURM_NNODES" == 1 ]; then
  fluent -g 2ddp -t $NCORES -affinity=0 -i sample.jou
  fluent -g $MYVERSION -t $NCORES -affinity=0 -mpi=intelmpi -pshmem -i $MYJOURNALFILE
else  
else
  fluent -g 2ddp -t $NCORES -affinity=0 -cnf=/tmp/machinefile-$SLURM_JOB_ID -mpi=intel -ssh -i sample.jou
  fluent -g $MYVERSION -t $NCORES -affinity=0 -mpi=intelmpi -pib -cnf=/tmp/machinefile-$SLURM_JOB_ID -i $MYJOURNALFILE
fi
fi
if [ $? -eq 0 ]; then
if [ $? -eq 0 ]; then
Line 527: Line 531:
#SBATCH --account=def-group  # Specify account
#SBATCH --account=def-group  # Specify account
#SBATCH --time=00-03:00      # Specify time limit dd-hh:mm
#SBATCH --time=00-03:00      # Specify time limit dd-hh:mm
##SBATCH --nodes=1            # Uncomment to specify number of compute nodes (optional)  
##SBATCH --nodes=1            # Uncomment to specify (narval 1 node max)  
#SBATCH --ntasks=16          # Specify total number of cores
#SBATCH --ntasks=16          # Specify total number of cores
#SBATCH --mem-per-cpu=4G      # Specify memory per core
#SBATCH --mem-per-cpu=4G      # Specify memory per core
#SBATCH --cpus-per-task=1    # Do not change
#SBATCH --cpus-per-task=1    # Do not change
#SBATCH --array=1-5%1        # Specify number of requeue attempts (2 or more, 5 is shown)
#SBATCH --array=1-5%1        # Specify number of requeue attempts (2 or more, 5 is shown)
rm -f core*


<!--T:4742-->
<!--T:4742-->
rm -f cleanup* core*
MYJOURNALFILE=sample.jou      # Specify your journal file name
MYVERSION=3d                  # Specify 2d, 2ddp, 3d or 3ddp
 
<!--T:2906-->
module load StdEnv/2023      # Do not change
module load ansys/2023R2      # Specify version (beluga, cedar, graham, narval)


<!--T:2905-->
<!--T:2905-->
#module load StdEnv/2020
#module load StdEnv/2020     # no longer supported (uayor)
#module load ansys/2019R3    # or newer versions (narval only)
#module load ansys/2019R3    # or newer versions (narval only)
#module load ansys/2021R2    # or newer versions (beluga, cedar, graham)
#module load ansys/2021R2    # or newer versions (beluga, cedar, graham)


<!--T:2906-->
# ------- do not change any lines below --------
module load StdEnv/2023
module load ansys/2023R2      # or newer versions (beluga, cedar, graham, narval)


<!--T:4743-->
<!--T:4743-->
Line 564: Line 573:


<!--T:2910-->
<!--T:2910-->
# Specify 2d, 2ddp, 3d or 3ddp and replace sample with your journal filename …
if [ "$SLURM_NNODES" == 1 ]; then
if [ "$SLURM_NNODES" == 1 ]; then
  fluent -g 2ddp -t $NCORES -affinity=0 -i sample.jou
  fluent -g $MYVERSION -t $NCORES -affinity=0 -mpi=intelmpi -pshmem -i $MYJOURNALFILE
else  
else
  fluent -g 2ddp -t $NCORES -affinity=0 -cnf=/tmp/machinefile-$SLURM_JOB_ID -mpi=intel -ssh -i sample.jou
  fluent -g $MYVERSION -t $NCORES -affinity=0 -mpi=intelmpi -pib -cnf=/tmp/machinefile-$SLURM_JOB_ID -i $MYJOURNALFILE
fi
fi
if [ $? -eq 0 ]; then
if [ $? -eq 0 ]; then
cc_staff
1,894

edits

Navigation menu