This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
howto:ansysmechanical [2018/10/18 14:48] ccrosby |
howto:ansysmechanical [2022/03/22 12:20] (current) ccrosby [Example job script] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Ansys Mechanical at the CHPC ====== | ====== Ansys Mechanical at the CHPC ====== | ||
| - | The Ansys Mechanical sofware is installed together with the CFD solvers in the directory ''/ | + | The Ansys Mechanical sofware is installed together with the CFD solvers in the directory ''/ |
| ===== Setting up runs ===== | ===== Setting up runs ===== | ||
| - | The most efficient way of using the cluster is by means of pre-written files for the mechanical solver. | + | The most efficient way of using the cluster is by means of pre-written files for the mechanical solver. |
| The Ansys RSM (Remote Solver Management) method has turned out to be tricky to use with the cluster scheduler, and it is far easier to use the GUI software to write input files for the mechanical solver. | The Ansys RSM (Remote Solver Management) method has turned out to be tricky to use with the cluster scheduler, and it is far easier to use the GUI software to write input files for the mechanical solver. | ||
| Line 9: | Line 9: | ||
| ===== Example job script ===== | ===== Example job script ===== | ||
| - | <file bash runMechanical.qsub> | + | <file bash runMechanical.pbs> |
| #!/bin/bash | #!/bin/bash | ||
| ##### The following line will request 2 (virtual) nodes, each with 24 cores running 24 mpi processes for | ##### The following line will request 2 (virtual) nodes, each with 24 cores running 24 mpi processes for | ||
| Line 21: | Line 21: | ||
| #PBS -P myprojectcode | #PBS -P myprojectcode | ||
| #PBS -l walltime=1: | #PBS -l walltime=1: | ||
| - | #PBS -o /home/username/scratch/ | + | #PBS -o /mnt/lustre/users/ |
| - | #PBS -e /home/username/scratch/ | + | #PBS -e /mnt/lustre/users/ |
| #PBS -m abe | #PBS -m abe | ||
| #PBS -M username@email.co.za | #PBS -M username@email.co.za | ||
| ##### Running commands | ##### Running commands | ||
| - | export LM_LICENSE_FILE=1055@chpclic1 | + | ### Tell it where to find the license |
| - | export ANSYSLMD_LICENSE_FILE=1055@chpclic1 | + | export LM_LICENSE_FILE=1055@login1 |
| + | export ANSYSLMD_LICENSE_FILE=1055@login1 | ||
| + | ### You may need the Intel compiler to be available | ||
| + | module load chpc/ | ||
| + | ### Mesa is needed to provide libGLU.so | ||
| + | module load chpc/ | ||
| #### There is no -d option available under PBS Pro, therefore | #### There is no -d option available under PBS Pro, therefore | ||
| #### explicitly set working directory and change to that. | #### explicitly set working directory and change to that. | ||
| - | export PBS_JOBDIR=/ | + | export PBS_JOBDIR=/ |
| cd $PBS_JOBDIR | cd $PBS_JOBDIR | ||
| ### Count the number of lines in the machinefile | ### Count the number of lines in the machinefile | ||