Actions

Difference between revisions of "ANSYS"

From Montana Tech High Performance Computing

 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Running ANSYS Desktop GUI==
+
To use ANSYS on HPC, you can either start a GUI session on a compute node or submit batch jobs to the compute nodes. Follow the instructions below or refer to [[Running_Jobs_on_HPC]].
The ANSYS desktop gui can be run on the management node, but long simulations should be executed on the compute nodes.  
+
==Running ANSYS GUI on a compute node==
To start ANSYS workbench GUI on HPC
+
You can start ANSYS GUI on a compute node by creating an interactive job with Slurm.
: <code style=display:block>module load ansys<br>runwb2</code>
+
#Start an interactive job on a compute node
To start FLUENT GUI on HPC you can use : <code>fluent</code> instead of : <code>runwb2</code> above
+
#: <code>srun -N 1 -n 4 -t 01:00:00 --x11 --pty /bin/bash</code>
 +
#: The above command will start an interactive job on 1 node 4 processors in the normal partition for 2 hours. (refer to the following sample script for more details of the options)
 +
#Load the ANSYS module
 +
#: <code>module load ANSYS</code>
 +
#Start the ANSYS workbench or FLUENT
 +
#: <code>runwb2</code> or <code>fluent</code>
  
To start ANSYS/FLUENT GUI on Copper Server
+
==Submitting batch jobs through Slurm==
: <code style=display:block>export PATH=/opt/ansys_inc/v192/ansys/bin:/opt/ansys_inc/v192/fluent/bin:/opt/ansys_inc/v192/Framework/bin/Linux64/:$PATH</code>
+
ANSYS Fluent can also be used in batch mode and jobs can be submitted to the compute nodes through Slurm.
For ANSYS work bench
 
: <code style=display:block>runwb2</code>
 
For FLUENT GUI:
 
: <code style=display:block>fluent</code>
 
 
 
 
 
 
 
==Submitting batch jobs through Moab==
 
To avoid overloading the management node, ANSYS Fluent should be used in batch mode and jobs should be submitted to the compute nodes through torque.
 
 
==== Sample Script (UNDER DEVELOPMENT) ====
 
==== Sample Script (UNDER DEVELOPMENT) ====
 
#Create a job script for using 4 processors (cores) - put the following in a file called fluentjob.sh
 
#Create a job script for using 4 processors (cores) - put the following in a file called fluentjob.sh
#: <code style=display:block>#!/bin/sh<br>PBS -l nodes=1:ppn=4<br>#PBS -j oe<br>#PBS -N Fluent_test<br>#PBS -S /bin/bash<br>#PBS -l walltime=02:00:00<br> <br>module load ansys<br>fluent ### OPTIONS? INPUT FILES? </code>
+
#: <code style=display:block>#!/bin/sh<br>#SBATCH -J JOB_NAME #Name of the computation<br>#SBATCH -N 1 # Total number of nodes requested<br>#SBATCH -n 4 # Total number of tasks per node requested<br>#SBATCH -t 01:00:00 # Total run time requested - 1 hour<br>#SBATCH -p normal # compute nodes partition requested<br> <br>module load ANSYS<br>fluent ### OPTIONS? INPUT FILES? </code>
 
#Submit to Moab
 
#Submit to Moab
#: <code>msub fluentjob.sh</code>
+
#: <code>sbatch fluentjob.sh</code>
#Check status with showq or qstat.
+
#Check status with <code>squeue</code> command
 +
 
 +
 
 +
==Running ANSYS Desktop GUI on copper==
 +
To start ANSYS workbench GUI on Copper Server
 +
: <code style=display:block>module load ANSYS<br>runwb2</code>
 +
To start FLUENT GUI, you can use : <code>fluent</code> instead of : <code>runwb2</code> above

Latest revision as of 12:25, 21 July 2021

To use ANSYS on HPC, you can either start a GUI session on a compute node or submit batch jobs to the compute nodes. Follow the instructions below or refer to Running_Jobs_on_HPC.

Running ANSYS GUI on a compute node

You can start ANSYS GUI on a compute node by creating an interactive job with Slurm.

  1. Start an interactive job on a compute node
    srun -N 1 -n 4 -t 01:00:00 --x11 --pty /bin/bash
    The above command will start an interactive job on 1 node 4 processors in the normal partition for 2 hours. (refer to the following sample script for more details of the options)
  2. Load the ANSYS module
    module load ANSYS
  3. Start the ANSYS workbench or FLUENT
    runwb2 or fluent

Submitting batch jobs through Slurm

ANSYS Fluent can also be used in batch mode and jobs can be submitted to the compute nodes through Slurm.

Sample Script (UNDER DEVELOPMENT)

  1. Create a job script for using 4 processors (cores) - put the following in a file called fluentjob.sh
    #!/bin/sh
    #SBATCH -J JOB_NAME #Name of the computation
    #SBATCH -N 1 # Total number of nodes requested
    #SBATCH -n 4 # Total number of tasks per node requested
    #SBATCH -t 01:00:00 # Total run time requested - 1 hour
    #SBATCH -p normal # compute nodes partition requested

    module load ANSYS
    fluent ### OPTIONS? INPUT FILES?
  2. Submit to Moab
    sbatch fluentjob.sh
  3. Check status with squeue command


Running ANSYS Desktop GUI on copper

To start ANSYS workbench GUI on Copper Server

module load ANSYS
runwb2

To start FLUENT GUI, you can use : fluent instead of : runwb2 above