This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
howto:ansys [2024/02/16 14:29] ccrosby [Running a Fluent Job] |
howto:ansys [2026/07/21 09:03] (current) ccrosby [Exporting graphics during a run] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== ANSYS/ | ====== ANSYS/ | ||
| + | |||
| + | ===== Tutorial video - multi-node post-processing ===== | ||
| + | Up to v241 it is straightforward to do post-processing on a compute node, using the Mesa software-rendering library. | ||
| ===== Command line change required from v241 ===== | ===== Command line change required from v241 ===== | ||
| - | The v241 release | + | The v241 and later releases |
| < | < | ||
| fluent 3d -t$nproc -pib -mpi=intel -cnf=$PBS_NODEFILE ..... | fluent 3d -t$nproc -pib -mpi=intel -cnf=$PBS_NODEFILE ..... | ||
| Line 56: | Line 59: | ||
| v232 -> / | v232 -> / | ||
| v241 -> / | v241 -> / | ||
| + | v242 -> / | ||
| </ | </ | ||
| Line 166: | Line 170: | ||
| nproc=`cat $PBS_NODEFILE | wc -l` | nproc=`cat $PBS_NODEFILE | wc -l` | ||
| exe=fluent | exe=fluent | ||
| - | $exe 3d -t$nproc -pinfiniband -ssh -cnf=$PBS_NODEFILE | + | cat $PBS_NODEFILE > hosts.txt |
| + | $exe 3d -t$nproc -pinfiniband -ssh -cnf=hosts.txt | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ===== Exporting graphics during a run ===== | ||
| + | The CHPC gratefully acknowledges Alex Brocco for the following contribution. | ||
| + | |||
| + | For very large parallel simulations, | ||
| + | |||
| + | To bypass this bottleneck, it is recommended to set up Ansys EnSight DVS (Dynamic Visualization Store) export files using the following TUI command: | ||
| + | |||
| + | < | ||
| + | |||
| + | This method is notably more memory‑ and CPU‑efficient than forcing the solver to render and save image files. It also supports real‑time monitoring of the simulation through Ansys EnSight via a live connection (currently untested on this cluster). Once the simulation has completed, scenes and animations can be visualized and saved by loading the DVS files into Ansys EnSight. | ||
| + | |||
| + | Alternatively, | ||
| + | |||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | However, this option is less efficient in terms of storage and I/O performance because data from the entire 3D volume is exported. | ||
| + | |||
| + | **Note:** The trailing arguments of the TUI commands are case-specific. Below is a structurally valid journal execution sequence example for Ansys Fluent 2024 R1: | ||
| + | |||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | **Note:** If the files that are exported during multiple transient simulations are to be used as a set, all simulations must be executed on the same platform and with the same number of solver processes. This ensures that the resulting DVS files are structurally compatible and can be read together without partition mismatches. | ||
| + | |||
| + | |||
| + | |||
| ===== Running Fluent on GPUs (experimental) ===== | ===== Running Fluent on GPUs (experimental) ===== | ||
| Line 216: | Line 252: | ||
| export PBS_JOBDIR=/ | export PBS_JOBDIR=/ | ||
| cd $PBS_JOBDIR | cd $PBS_JOBDIR | ||
| - | fluent 3d -t1 -pinfiniband -ssh -cnf=$PBS_NODEFILE | + | cat $PBS_NODEFILE > hosts.txt |
| + | fluent 3d -t1 -pinfiniband -ssh -cnf=hosts.txt | ||
| </ | </ | ||
| Line 239: | Line 276: | ||
| export PBS_JOBDIR=/ | export PBS_JOBDIR=/ | ||
| cd $PBS_JOBDIR | cd $PBS_JOBDIR | ||
| - | fluent 3d -t3 -pinfiniband -ssh -cnf=$PBS_NODEFILE | + | cat $PBS_NODEFILE > hosts.txt |
| + | fluent 3d -t3 -pinfiniband -ssh -cnf=hosts.txt | ||
| </ | </ | ||
| Line 305: | Line 343: | ||
| cd / | cd / | ||
| nproc=`cat $PBS_NODEFILE | wc -l` | nproc=`cat $PBS_NODEFILE | wc -l` | ||
| - | fluent 3ddp -t$nproc -pinfiniband -ssh -mpi=intel -cnf=$PBS_NODEFILE | + | cat $PBS_NODEFILE > hosts.txt |
| + | fluent 3ddp -t$nproc -pinfiniband -ssh -mpi=intel -cnf=hosts.txt | ||
| </ | </ | ||
| Line 324: | Line 363: | ||
| + | ===== Running coupled fluid / structures models ===== | ||
| + | Alex Brocco of UP has done a tremendous job of not only devising how to run coupled models on the cluster, but has generously agreed to share his workflow in this document {{ : | ||
| + | |||
| + | Here is the example Python script {{ : | ||
| + | |||
| + | <file bash CoupledJobScript.pbs> | ||
| + | #!/bin/bash | ||
| + | #PBS -l select=2: | ||
| + | #PBS -l cfd_base=1 | ||
| + | #PBS -l anshpc=44 | ||
| + | #PBS -q normal | ||
| + | #PBS -P MECH1234 | ||
| + | #PBS -l walltime=0: | ||
| + | #PBS -o / | ||
| + | #PBS -e / | ||
| + | ##### Running commands | ||
| + | export LM_LICENSE_FILE=1055@login1 | ||
| + | export ANSYSLMD_LICENSE_FILE=1055@login1 | ||
| + | export FLUENT_ARCH=lnamd64 | ||
| + | ### You may need the Intel compiler to be available | ||
| + | module load chpc/ | ||
| + | ### Mesa is needed to provide libGLU.so | ||
| + | module load chpc/ | ||
| + | export PBS_JOBDIR=/ | ||
| + | cd $PBS_JOBDIR | ||
| + | nproc=`cat $PBS_NODEFILE | wc -l` | ||
| + | AWP_ROOT232=/ | ||
| + | cat $PBS_NODEFILE > hosts.txt | ||
| + | $AWP_ROOT232/ | ||
| + | </ | ||