Ansys Fluent#
Ansys Fluent is the industry-leading fluid simulation software known for its advanced physics modeling capabilities and unmatched accuracy.
Ansys Fluent at NHPCC#
There are three ways to run Ansys Fluent on Panthera cluster:
- Interactive mode
- Using subfluent command
- Using OnDemand web portal
Interactive mode#
First, create an interactive job to connect to one of the compute nodes:
u111112@login1:~/wrkdir> srun -n 4 --mem=1G -p short -t 10 --pty /bin/bash
srun: job 57293 queued and waiting for resources
srun: job 57293 has been allocated resources
u111112@cn-12-1:~/wrkdir>
Then, you have to load the Ansys Fluent module:
u111112@cn-12-1:~/wrkdir> ml fluent
Tip
In order to see all Ansys Fluent versions installed on Panthera you can type fluent and press the Tab key twice. For more information on how to use modules, please visit this page.
Finally, you can use your software:
u111112@cn-12-1:~/wrkdir> fluent ...
Using subfluent command#
This is the fast and easiest method most users prefer to load and run Ansys Fluent on the cluster. Simply on login node press subfluent22.1
command without any options to see it's help:
u111112@login1:~/wrkdir> subfluent22.1
Create and submit job for Ansys Fluent 2022.1
Usage: subfluent22.1 <version> [OPTIONS]
OPTIONS:
-n <np> Number of processors.
-m <mem> Memory required for job (GB).
-t <time> run time of the job. Valid format: M, H:M:S, D-H, D-H:M
-p <part> Partition name to submit the job. (use 'sinfo -s')
-c <case-file> case file name
-d <data-file> data file name, or 'si': Standard initialization. 'hi': hybrid initialization
-i <NI[:NIPT:TS]> Number of Iteration. For unsteady case: <Number_of_time_step:Iteration_per_time_step:time_step>
-a <df:Mf:cf> AutoSave parameters. data_frequency:max_files:case_frequency
-j <journal> The name of the journal file. If this option is used, the previous four options will be ignored.
-N <n1[:n2]> Number of nodes and number of tasks per node.
-l <disk> Disk space required for output files (GB)
-f <I/O format> Output file format. 1 --> CFF , 2 --> Legacy
-pm <part-method> Partitioning method in parallel mode
-so <sopt> Additional slurm options if needed.
-no Only write job file.
-h | --help Print this message and exit.
Example: subfluent22.1 2ddp -n 12 -m 8 -t 2-0 -c Q25.cas.h5 -i 1000:20 -a 100:5
Using OnDemand web portal#
Sometimes you need to take a quick look at your project to make a change or have a graphical view of that and you are running out of time or even do not have an access on your personal pc at the moment. We have prepared an option for you to launch your software in graphical mode and watch your changes quickly.
Warning
We strongly recommend you, not to use this method all the way using Panthera. Having a graphical access to the cluster should be done just in case of emergency or special use cases.
Follow these instructions
- Go to Interactive Apps > Desktop
- Fill out the form according to your needs:
- Wait until your session is being ready and now press on Launch Desktop :
- After a few seconds, A fresh desktop will be opened. Right click on desktop and press Open Terminal Here :
- In order to set all fluent environmet variables properly you have to run these two commands :
- Now load fluent module :
- Then type fluent and hit the enter. The Fluent Launcher should be popoed up. Make your changes and press the start button :
- Finally the Fluent Software will be opened and ready to use :
Tip
for more information about using OnDemand portal please visit this page.