Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
doku:ansys [2024/04/25 08:12] – [Single node script] amelicdoku:ansys [2024/06/17 09:21] – [Multiple node script] amelic
Line 72: Line 72:
  
 ===== Job script ===== ===== Job script =====
 +When executing Slurm jobs for Fluent, it's essential to consider specific parameters within the command, including:
 +
 +  * 2d: Indicates a job for 2D Fluent simulations.
 +  * 2ddp: Denotes 2D Fluent jobs in double precision.
 +  * 3d: Specifies a job for 3D Fluent simulations.
 +  * 3ddp: Represents 3D Fluent jobs configured for double precision.
 +
 +These parameters play a crucial role in defining the type and precision of the Fluent simulations run through Slurm.
 +
  
 ==== Single node script ==== ==== Single node script ====
  
-When executing Slurm jobs for Fluent, it's essential to consider specific parameters within the command, including: 
- 
-2d: Indicates a job for 2D Fluent simulations. 
-2ddp: Denotes 2D Fluent jobs in double precision. 
-3d: Specifies a job for 3D Fluent simulations. 
-3ddp: Represents 3D Fluent jobs configured for double precision. 
-These parameters play a crucial role in defining the type and precision of the Fluent simulations run through Slurm. 
 A script for running Ansys/Fluent called fluent_run.sh for a 3D case with double precision is shown below.  A script for running Ansys/Fluent called fluent_run.sh for a 3D case with double precision is shown below. 
  
Line 102: Line 104:
 </code> </code>
  
-==== Multiple node script ==== 
-A script for running Ansys/Fluent on multiple nodes on VSC-4: 
- 
-<code> 
-#!/bin/sh 
-#SBATCH -J fluent_1 # Job name 
-#SBATCH -N 2 # Number of nodes 
-#SBATCH --partition=mem_0096 # mem_0096, mem_0384, mem_0768 
-#SBATCH --qos=mem_0096       # devel_0096, mem_0096, mem_0384, mem_0768 
-#SBATCH --ntasks-per-node=48 # number of cores 
-#SBATCH --threads-per-core=1 # disable hyperthreading 
- 
- 
-module purge 
-module load ANSYS/2021R1 # or whichever ANSYS version you prefer 
- 
-unset SLURM_JOBID 
-export FLUENT_AFFINITY=0 
-export SLURM_ENABLED=1 
-export SCHEDULER_TIGHT_COUPLING=1 
-FL_SCHEDULER_HOST_FILE=slurm.${SLURM_JOB_ID}.hosts 
-/bin/rm -rf ${FL_SCHEDULER_HOST_FILE} 
-scontrol show hostnames "$SLURM_JOB_NODELIST" >> $FL_SCHEDULER_HOST_FILE 
- 
-JOURNALFILE=fluent_transient # .jou file 
- 
-if [ $SLURM_NNODES -eq 1 ]; then 
-    # Single node with shared memory 
-    fluent 3ddp -g -t $SLURM_NTASKS -i $JOURNALFILE.jou > $JOURNALFILE.log 
-else 
-    # Multi-node 
-    fluent 3ddp -platform=intel -g -t $SLURM_NTASKS -pib.ofed -mpi=intel -cnf=${FL_SCHEDULER_HOST_FILE} -i $JOURNALFILE.jou > $JOURNALFILE.log 
-fi 
-</code> 
- 
-This job script allows a variable definition of desired configuration. You can manipulate the number of compute nodes very easily and the job script generates the appropriate command to start the calculation with Fluent. 
- 
----- 
  
 ===== License server settings ===== ===== License server settings =====
  • doku/ansys.txt
  • Last modified: 2024/06/17 09:23
  • by amelic