| Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
howto:ansysmechanical [2021/12/09 16:42] 127.0.0.1 external edit |
howto:ansysmechanical [2022/03/22 12:20] (current) ccrosby [Example job script] |
| ====== Ansys Mechanical at the CHPC ====== | ====== Ansys Mechanical at the CHPC ====== |
| The Ansys Mechanical sofware is installed together with the CFD solvers in the directory ''/apps/chpc/compmech/CFD/ansys_inc''. There is a separate sub-directory for each version: v160, v162, v170, v171, v172, v180, v181, v182, v190, v191 ans v192. | The Ansys Mechanical sofware is installed together with the CFD solvers in the directory ''/apps/chpc/compmech/CFD/ansys_inc''. There is a separate sub-directory for each version up to v221 although some of the older versions have been removed in order to save storage space. |
| |
| ===== 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. However, if you need to use Workbench to set up the runs on Lengau, it will be necessary to use one of the visualisation nodes - chpcviz1 or chpclic1. Please refer to the [[howto:remote_viz|Remote Visualisation Instructions]] for a method of getting a graphics-enabled remote desktop on Lengau. Workbench can be started with the command ''/opt/VirtualGL/bin/vglrun /apps/chpc/compmech/CFD/ansys_inc/v190/Framework/bin/Linux64/runwb2 &'' Please bear in mind that these are shared servers, and computationally intensive tasks are not permitted. | The most efficient way of using the cluster is by means of pre-written files for the mechanical solver. However, if you need to use Workbench to set up the runs on Lengau, it will be necessary to use one of the visualisation nodes - chpcviz1 or chpclic1. Please refer to the [[howto:remote_viz|Remote Visualisation Instructions]] for a method of getting a graphics-enabled remote desktop on Lengau. Workbench can be started with a command like <code> /opt/VirtualGL/bin/vglrun /apps/chpc/compmech/CFD/ansys_inc/v195/Framework/bin/Linux64/runwb2 & </code> Please bear in mind that these are shared servers, and computationally intensive tasks are not permitted. In this example command we have loaded Workbench for version 195. Please use the version that is appropriate to your purpose. |
| |
| 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. This can be done by selecting the appropriate Solver section in the tree in the Mechanical Interface, and then using the menu options ''Tools - Write Input File'' to create a suitably named .dat file in a directory of your choice. Once this has been done, the GUI and Workbench are no longer needed. A PBS script (see below) must then be created in the appropriate directory, and it can be submitted to the cluster with the usual qsub command. On completion of the run, the result files can be loaded into the Mechanical GUI for post-processing. | 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. This can be done by selecting the appropriate Solver section in the tree in the Mechanical Interface, and then using the menu options ''Tools - Write Input File'' to create a suitably named .dat file in a directory of your choice. Once this has been done, the GUI and Workbench are no longer needed. A PBS script (see below) must then be created in the appropriate directory, and it can be submitted to the cluster with the usual qsub command. On completion of the run, the result files can be loaded into the Mechanical GUI for post-processing. |
| #PBS -P myprojectcode | #PBS -P myprojectcode |
| #PBS -l walltime=1:00:00 | #PBS -l walltime=1:00:00 |
| #PBS -o /mnt/lustre3p/users/username/MechTesting/mechJob.out | #PBS -o /mnt/lustre/users/username/MechTesting/mechJob.out |
| #PBS -e /mnt/lustre3p/users/username/MechTesting/mechJob.err | #PBS -e /mnt/lustre/users/username/MechTesting/mechJob.err |
| #PBS -m abe | #PBS -m abe |
| #PBS -M username@email.co.za | #PBS -M username@email.co.za |
| ##### Running commands | ##### Running commands |
| ### Tell it where to find the license | ### Tell it where to find the license |
| export LM_LICENSE_FILE=1055@chpclic1 | export LM_LICENSE_FILE=1055@login1 |
| export ANSYSLMD_LICENSE_FILE=1055@chpclic1 | export ANSYSLMD_LICENSE_FILE=1055@login1 |
| ### You may need the Intel compiler to be available | ### You may need the Intel compiler to be available |
| module load chpc/parallel_studio_xe/18.0.2/2018.2.046 | module load chpc/parallel_studio_xe/18.0.2/2018.2.046 |