ANSYS Fluent documentation update
Build and deploy documentation / build-and-deploy-docs (push) Successful in 46s

This commit is contained in:
caubet_m committed 2026-09-09 10:00:51 +02:00
1 parent 8f420ce2fe
commit eb316cf03f
1 file changed
+62 -78
@@ -14,12 +14,17 @@ following flags:
### PModules
Is strongly recommended the use of the latest ANSYS software available in PModules.
In addition, for Slingshot (Merlin7's interconnect) compatibility, loading any
of the `libfabric` modules is necessary for inter-node communication, when using
more than one node. In general, try to update a recent version of it.
```bash
module purge
module use unstable
module load Pmodules/2.0.4
module use merlin
module load ANSYS/2024R2
module load ANSYS/2025R2
# Load the libfabric module
module load libfabric/2.5.1-oss
```
### Interactive: RSM from remote PSI Workstations
@@ -30,6 +35,10 @@ that, please refer to the [ANSYS RSM](ansys-rsm.md) in the Merlin
documentation for further information of how to setup a RSM client for
submitting jobs to Merlin.
!!! warning
Slingshot compatibility for RSM-based submitted workflows is not guaranteed.
For proper interconnect compatibility, please submit regular batch jobs instead with `sbatch`.
### Non-interactive: sbatch
Running jobs with `sbatch` is always the recommended method. This makes the use
@@ -42,22 +51,30 @@ This example shows a very basic serial job.
```bash
#!/bin/bash
#SBATCH --job-name=Fluent # Job Name
#SBATCH --partition=hourly # Using 'daily' will grant higher priority than 'general'
#SBATCH --time=0-01:00:00 # Time needed for running the job. Must match with 'partition' limits.
#SBATCH --cpus-per-task=1 # Double if hyperthreading enabled
#SBATCH --hint=nomultithread # Disable Hyperthreading
#SBATCH --error=slurm-%j.err # Define your error file
#SBATCH --job-name=flu-serial
#SBATCH --cluster=merlin7
#SBATCH --partition=hourly
#SBATCH --time=00:50:00
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --hint=nomultithread
#SBATCH --ntasks-per-node=128
#SBATCH --error=slurm-%j.out
#SBATCH --error=slurm-%j.err
# Load the proper ANSYS version
module purge
module use unstable
module load Pmodules/2.0.4
module use merlin
module load ANSYS/2024R2
module load ANSYS/2025R2
# Load libfabric module
module load libfabric/2.5.1-oss
# [Optional:BEGIN] Specify your license server if this is not 'lic-ansys.psi.ch'
LICENSE_SERVER=<your_license_server>
export ANSYSLMD_LICENSE_FILE=1055@$LICENSE_SERVER
export ANSYSLI_SERVERS=2325@$LICENSE_SERVER
# LICENSE_SERVER=<your_license_server>
# export ANSYSLMD_LICENSE_FILE=1055@$LICENSE_SERVER
# export ANSYSLI_SERVERS=2325@$LICENSE_SERVER
# [Optional:END]
JOURNAL_FILE=/data/user/caubet_m/Fluent/myjournal.in
@@ -73,51 +90,54 @@ An example for running Fluent using a Slurm batch script is the following:
```bash
#!/bin/bash
#SBATCH --job-name=Fluent # Job Name
#SBATCH --partition=hourly # Using 'daily' will grant higher priority than 'general'
#SBATCH --time=0-01:00:00 # Time needed for running the job. Must match with 'partition' limits.
#SBATCH --nodes=1 # Number of nodes
#SBATCH --ntasks=44 # Number of tasks
#SBATCH --cpus-per-task=1 # Double if hyperthreading enabled
#SBATCH --ntasks-per-core=1 # Run one task per core
#SBATCH --hint=nomultithread # Disable Hyperthreading
#SBATCH --error=slurm-%j.err # Define a file for standard error messages
##SBATCH --exclusive # Uncomment if you want exclusive usage of the nodes
#SBATCH --job-name=flu-mpi
#SBATCH --cluster=merlin7
#SBATCH --partition=hourly
#SBATCH --time=00:50:00
#SBATCH --nodes=2
#SBATCH --ntasks=256
#SBATCH --ntasks-per-node=128
#SBATCH --error=slurm-%j.out
#SBATCH --error=slurm-%j.err
# Load the proper ANSYS version
module purge
module use unstable
module load Pmodules/2.0.4
module use merlin
module load ANSYS/2024R2
module load ANSYS/2025R2
# Load libfabric module
module load libfabric/2.5.1-oss
# Export libfabric library location to Intel MPI
export I_MPI_OFI_LIBRARY=${LIBFABRIC_LIBRARY_DIR}/libfabric.so.1
# [Optional:BEGIN] Specify your license server if this is not 'lic-ansys.psi.ch'
LICENSE_SERVER=<your_license_server>
export ANSYSLMD_LICENSE_FILE=1055@$LICENSE_SERVER
export ANSYSLI_SERVERS=2325@$LICENSE_SERVER
# LICENSE_SERVER=<your_license_server>
# export ANSYSLMD_LICENSE_FILE=1055@$LICENSE_SERVER
# export ANSYSLI_SERVERS=2325@$LICENSE_SERVER
# [Optional:END]
JOURNAL_FILE=/data/user/caubet_m/Fluent/myjournal.in
fluent 3ddp -g -t ${SLURM_NTASKS} -i ${JOURNAL_FILE}
scontrol show node ${SLURM_JOB_NODELIST} | awk '/NodeName=/ {print $1}' | cut -f2 -d= | paste -sd '\n' - > hosts.txt
JOURNAL_FILE=fluent.jou
fluent 3ddp -g -t ${SLURM_NTASKS} -mpi=intel -i ${JOURNAL_FILE} -cnf=hosts.txt -mpiopt=" -genv I_MPI_FABRICS ofi -genv I_MPI_DEBUG 10 -genv I_MPI_OFI_LIBRARY ${I_MPI_OFI_LIBRARY}"
```
In the above example, one can increase the number of *nodes* and/or *ntasks* if needed. One can remove
`--nodes` for running on multiple nodes, but may lead to communication overhead. In general, **no
hyperthreading** is recommended for MPI based jobs. Also, one can combine it with `--exclusive` when necessary.
Add `--mem=0` if the memory is not entirely available.
## Interactive: salloc
Running Fluent interactively is strongly not recommended and one should
whenever possible use `sbatch`. However, sometimes interactive runs are
needed. For jobs requiring only few CPUs (in example, 2 CPUs) **and** for a
needed. For jobs requiring only few CPUs (e.g. 2 CPUs) **and** for a
short period of time, one can use the login nodes. Otherwise, one must use the
Slurm batch system using allocations:
Slurm batch system using allocations, ideally by using [Slurm interactive sessions](https://hpce.pages.psi.ch/merlin7/04-slurm-general-documentation/interactive-sessions/#interactive-slurm-sessions).
* For short jobs requiring more CPUs, one can use the Merlin shortest partitions (`hourly`).
* For longer jobs, one can use longer partitions, however, interactive access
is not always possible (depending on the usage of the cluster).
Please refer to the documentation **[Running Interactive
Jobs](../04-slurm-general-documentation/interactive-jobs.md)** for firther information about different
ways for running interactive jobs in the Merlin6 cluster.
For multi-node allocations, please remember to load the libfabric module.
### Requirements
@@ -129,39 +149,3 @@ have a **passphrase protected** SSH Key. If the user does not have SSH Keys yet
(simply run **`ls $HOME/.ssh/`** to check whether **`id_rsa`** files exist or
not). For deploying SSH Keys for running Fluent interactively, one should
follow this documentation: **[Configuring SSH Keys](../02-connecting-to-merlin/ssh-keys.md)**
#### List of hosts
For running Fluent using Slurm computing nodes, one needs to get the list of
the reserved nodes. For getting that list, once you have the allocation, one
can run the following command:
```bash
scontrol show hostname
```
This list must be included in the settings as the list of hosts where to run
Fluent. Alternatively, one can give that list as parameter (`-cnf` option) when
running `fluent`, as follows:
??? example "Running Fluent with 'salloc'"
```console
$ salloc --nodes=2 --ntasks=88 --hint=nomultithread --time=0-01:00:00 --partition=test $SHELL
salloc: Pending job allocation 135030174
salloc: job 135030174 queued and waiting for resources
salloc: job 135030174 has been allocated resources
salloc: Granted job allocation 135030174
$ module use unstable
$ module load Pmodules/2.0.4
$ module use merlin
$ module load ANSYS/2024R2
module load: unstable module has been loaded -- ANSYS/2024R2
$ fluent 3ddp -t$SLURM_NPROCS -cnf=$(scontrol show hostname | tr '\n' ',')
$ exit
exit
salloc: Relinquishing job allocation 135030174
salloc: Job allocation 135030174 has been revoked.
```