Difference between revisions of "Fluent Guide"
(Rewrite interactive job commands. Remove unnecessary instructions line for connecting with SSH and running a serial job.) |
(Explain how to access the User Guide) |
||
Line 1: | Line 1: | ||
− | + | ==Module File== | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | =Module File= | ||
First check the available fluent modules | First check the available fluent modules | ||
module avail fluent | module avail fluent | ||
Line 52: | Line 44: | ||
Type "exit" to end the session. | Type "exit" to end the session. | ||
+ | |||
+ | == User Guide == | ||
+ | |||
+ | The command-line help usage actually provides very limited information: | ||
+ | |||
+ | fluent -help | ||
+ | |||
+ | The only place Ansys supplies to read more documentation is from the "Help" inside the Fluent GUI. | ||
+ | Open a terminal in [[X|X2Go]], load the fluent module, and then run `fluent` from the command-line to launch the GUI. | ||
+ | Click on the Help button > Help on Starting and Executing Fluent | ||
[[Category:Software]] | [[Category:Software]] |
Revision as of 13:36, 2 March 2016
Module File
First check the available fluent modules
module avail fluent
To load fluent version 16.2:
module load fluent/16.2
Parallel Job
To run several tasks in parallel on one or more nodes, here is an example fluentP.sh batch script:
#!/bin/bash #SBATCH -N 2 # allocate 2 nodes for the job #SBATCH --ntasks-per-node=20 #SBATCH --exclusive # no other jobs on the nodes while job is running #SBATCH -o fluentP_$J.out # the file to write stdout for fluent job #SBATCH -e fluentP_%J.err # the file to write stderr for fluent job if [ -z "$SLURM_NPROCS" ]; then N=$(( $(echo $SLURM_TASKS_PER_NODE | sed -r 's/([0-9]+)\(x([0-9]+)\)/\1 * \2/') )) else N=$SLURM_NPROCS fi echo -e "N: $N\n"; # run fluent in batch on the allocated node(s) fluent 2ddp -g -slurm -t$N -pnmpi -ssh -i foo.txt
Make sure to replace foo.txt in the last line with the name of your job file.
Then, submit your job with:
sbatch fluentP.sh
Interactive Job
Start the interactive session on 1 node with 12 CPUs with fisbatch:
fisbatch -N 1 -n 12 -p Westmere
The first parameter to fluent is the version (namely, 2ddp below). The version can be either 2d, 3d, 2ddp, or 3ddp; change it to whatever you need. The "dp" stands for "double precision".
Run fluent with:
fluent 2ddp -g -t $SLURM_NTASKS
Type "exit" to end the session.
User Guide
The command-line help usage actually provides very limited information:
fluent -help
The only place Ansys supplies to read more documentation is from the "Help" inside the Fluent GUI. Open a terminal in X2Go, load the fluent module, and then run `fluent` from the command-line to launch the GUI. Click on the Help button > Help on Starting and Executing Fluent