BwUniCluster2.0/Software/Ansys: Difference between revisions

From bwHPC Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(48 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Softwarepage|cae/ansys}}
<!--{| align="right" {{Table|width=40%}} -->

{|{{Softwarebox}}
{| width=600px class="wikitable"
|-
|-
! Description !! Content
! colspan="2" style="text-align:center" | Name
|-
|-
| module load
| module load
| cae/ansys
| cae/ansys
|-
| Availability
| [[bwUniCluster]]
|-
|-
| License
| License
| Academic. See: [http://www.ansys.com/Academic/educator-tools/Licensing+&+Terms+of+Use Licensing and Terms-of-Use].
| academic
|-
|-
|Citing
| Citing
| [http://www.ansys.com/academic/educator-tools/ Citations]
|
|-
|-
| Links
| Links
| [http://www.ansys.com/ Homepage]
| [http://www.ansys.com/ Ansys Homepage] &#124; [http://www.ansys.com/Academic/educator-tools/Support+Resources Support and Resources]
|-
|-
| Graphical Interface
| Graphical Interface
| Yes
| Yes
|-
| User Forum
|
|}
|}


Line 32: Line 27:


= Versions and Availability =
= Versions and Availability =
A current list of the versions available on the bwUniCluster and bwForclusters can be obtained from the Cluster Information System: [http://cis-hpc.uni-konstanz.de/prod.cis/ CIS Information on ANSYS]


On the command line interface (CLI) of a particular bwHPC cluster a list of all available ANSYS versions can be inquired as followed
<pre>
$ module avail cae/ansys
</pre>
</pre>
The cae/ansys modules are using the KIT license server and are reserved for members of the KIT only.
<br>
<br>


= Usage =
= Usage =
== Loading the Module ==
== ANSYS Fluent batch jobs ==
The execution of FLUENT can also be carried out using a shell script. Below is an example of a shell script named <code>run_fluent.sh</code> that starts a FLUENT calculation in parallel on two nodes with 40 processors each on the bwUniCluster:
You can load the default version of ''ANSYS'' with the command:

1. Using IntelMPI:

<pre>
<pre>
#!/bin/bash
$ module load cae/ansys
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=96
#SBATCH --time=2:00:00
#SBATCH --mem=90gb
#SBATCH --partition=cpu

module load cae/ansys/2025R2

source fluentinit

scontrol show hostname ${SLURM_JOB_NODELIST} > fluent.hosts
time fluent 3d -mpi=intel -pib -g -t80 -cnf=fluent.hosts -i test.inp
</pre>
</pre>


2. Using OpenMPI:
If you wish to load a specific (older) version of "ANSYS" you can do so by executing e.g.:
<pre>
$ module load cae/ansys/15.0
</pre>
to load the version 15.0
<br>


== Start commands ==
To start an ANSYS session enter
<pre>
<pre>
#!/bin/bash
$ ansys150
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=96
#SBATCH --time=2:00:00
#SBATCH --mem=90gb
#SBATCH --partition=cpu

module load cae/ansys/2025R2

source fluentinit

scontrol show hostname ${SLURM_JOB_NODELIST} > fluent.hosts
time fluent 3d -mpi=openmpi -g -t80 -cnf=fluent.hosts -i test.inp
</pre>
</pre>

To launch an ANSYS FLUENT session enter
To submit the script to the job management system, run:

<pre>
<pre>
sbatch run_fluent.sh
$ fluent
</pre>
</pre>
The following command is to run the ANSYS Workbench
<pre>
$ runwb2
</pre>
Online documention is available from the help menu or by using the command
<pre>
$ anshelp150
</pre>
As with all processes that require more than a few minutes to run, non-trivial ANSYS solver jobs must be submitted to the cluster queueing system.
<br>



= Examples =
== ANSYS Fluent batch jobs ==
== ANSYS CFX batch jobs ==
The execution of CFX can also be carried out using a script. Below is an example script <code>run_cfx.sh</code> to start CFX with the start method 'Intel MPI Distributed Parallel':
The following script "run_fluent.sh" could be submitted to the queueing system to run an ANSYS Fluent job in parallel using 4 cores on a single node:

<pre>
<pre>
#!/bin/sh
#!/bin/sh
#MSUB -l nodes=1:ppn=4
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=96
#MSUB -l walltime=0:10:00
#SBATCH --partition=cpu
#MSUB -l mem=16000mb
#SBATCH --time=0:30:00
export MPI_USESRUN=1
#SBATCH --mem=90gb
export run_nodes=`srun hostname`

echo $run_nodes | sed "s/ /\n/g" > fluent.hosts
module load cae/ansys/2025R2
echo "" >> fluent.hosts

time fluent 3d -g -t4 -pib -cnf=fluent.hosts -i test.inp
source cfxinit

cfx5solve -def test.def -par-dist $hostlist -start-method 'Intel MPI Distributed Parallel'
</pre>
</pre>

To submit the example script to the queueing system execute the following:
To submit the script to the job management system, run:

<pre>
<pre>
sbatch run_cfx.sh
$ module load cae/ansys/15.0
$ msub run_fluent.sh
</pre>
</pre>
<br>


== ANSYS CFX batch jobs ==
== ANSYS Rocky batch jobs ==

With the script "run_cfx.sh" you can submit a CFX job to the queueing system to run in parallel using 8 cores on two node with the start-method 'Platform MPI Parallel':
The execution of Rocky DEM can also be carried out using a script. Below is an example script <code>run_rocky.sh</code> to run a Rocky DEM simulation on a GPU node:

<pre>
<pre>
#!/bin/sh
#!/bin/bash
#SBATCH --output=rocky_job_%j.out
#MSUB -l nodes=2:ppn=4
#SBATCH --job-name=rocky_job
#MSUB -l walltime=0:10:00
#SBATCH --partition=gpu_a100_short # GPU patition
#MSUB -l mem=32000mb
#SBATCH --nodes=1
export MPI_USESRUN=1
#SBATCH --gpus-per-node=1
export PATH=/software/bwhpc/kit/cae/ansys_inc15/v150/CFX/bin:$PATH
#SBATCH --mem=30000 # Total memory (MB)
cfx5solve -def test.def -part 8 -start-method 'Platform MPI Parallel'
#SBATCH --time=00:30:00 # Time limit (hh:mm:ss)


module load cae/ansys/2025R2

# Run Rocky DEM
Rocky --simulate "/path/to/Test.rocky"
</pre>
</pre>

To submit the example script to the queueing system execute:
To submit the script to the job management system, run:

<pre>
<pre>
sbatch run_rocky.sh
$ module load cae/ansys/15.0
$ msub run_cfx.sh
</pre>
</pre>
<br>

----
[[Category:Engineering software]][[Category:bwUniCluster]]

Latest revision as of 16:36, 19 August 2025

The main documentation is available on the cluster via module help cae/ansys. Most software modules for applications provide working example batch scripts.


Description Content
module load cae/ansys
License Academic. See: Licensing and Terms-of-Use.
Citing Citations
Links Ansys Homepage | Support and Resources
Graphical Interface Yes

Description

ANSYS is a general purpose software to simulate interactions of all disciplines of physics, structural, fluid dynamics, heat transfer, electromagnetic etc. For more information about ANSYS products please visit http://www.ansys.com/Industries/Academic/

Versions and Availability

The cae/ansys modules are using the KIT license server and are reserved for members of the KIT only.

Usage

ANSYS Fluent batch jobs

The execution of FLUENT can also be carried out using a shell script. Below is an example of a shell script named run_fluent.sh that starts a FLUENT calculation in parallel on two nodes with 40 processors each on the bwUniCluster:

1. Using IntelMPI:

#!/bin/bash
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=96
#SBATCH --time=2:00:00
#SBATCH --mem=90gb
#SBATCH --partition=cpu

module load cae/ansys/2025R2

source fluentinit

scontrol show hostname ${SLURM_JOB_NODELIST} > fluent.hosts
time fluent 3d -mpi=intel -pib -g -t80 -cnf=fluent.hosts -i test.inp

2. Using OpenMPI:

#!/bin/bash
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=96
#SBATCH --time=2:00:00
#SBATCH --mem=90gb
#SBATCH --partition=cpu

module load cae/ansys/2025R2

source fluentinit

scontrol show hostname ${SLURM_JOB_NODELIST} > fluent.hosts
time fluent 3d -mpi=openmpi -g -t80 -cnf=fluent.hosts -i test.inp

To submit the script to the job management system, run:

sbatch run_fluent.sh


ANSYS CFX batch jobs

The execution of CFX can also be carried out using a script. Below is an example script run_cfx.sh to start CFX with the start method 'Intel MPI Distributed Parallel':

#!/bin/sh
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=96
#SBATCH --partition=cpu
#SBATCH --time=0:30:00
#SBATCH --mem=90gb

module load cae/ansys/2025R2

source cfxinit

cfx5solve -def test.def -par-dist $hostlist -start-method 'Intel MPI Distributed Parallel'

To submit the script to the job management system, run:

sbatch run_cfx.sh

ANSYS Rocky batch jobs

The execution of Rocky DEM can also be carried out using a script. Below is an example script run_rocky.sh to run a Rocky DEM simulation on a GPU node:

#!/bin/bash
#SBATCH --output=rocky_job_%j.out          
#SBATCH --job-name=rocky_job               
#SBATCH --partition=gpu_a100_short          # GPU patition
#SBATCH --nodes=1                           
#SBATCH --gpus-per-node=1                   
#SBATCH --mem=30000                         # Total memory (MB)
#SBATCH --time=00:30:00                     # Time limit (hh:mm:ss)

module load cae/ansys/2025R2

# Run Rocky DEM
Rocky --simulate "/path/to/Test.rocky"

To submit the script to the job management system, run:

sbatch run_rocky.sh