| Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
howto:cfx [2019/06/06 14:41] agill [Running a CFX Job] |
howto:cfx [2025/02/21 12:45] (current) ccrosby [Running a CFX Job] |
| ===== Installation ===== | ===== Installation ===== |
| |
| CFX version 5 is installed in ''/apps/chpc/compmech/CFD/ansys_inc/v170/CFX''. IcemCFD is installed under ''/apps/chpc/compmech/CFD/ansys_inc/v170/icemcfd''. | CFX versions are installed in ''/apps/chpc/compmech/CFD/ansys_inc/v???/CFX'', where ??? represents the software release version such as 242, for example. Similarly, IcemCFD is installed under ''/apps/chpc/compmech/CFD/ansys_inc/v???/icemcfd''. |
| |
| |
| ===== Licensing ===== | ===== Licensing ===== |
| |
| CHPC has academic licenses for AnsysCFD. There are 5 "solver" processes, available as aa_r_cfd and 500 "HPC" licenses, available as aa_r_hpc. There is a license resource management system. If you request license resources (as in these example scripts), the scheduler will check for license availability before starting a job. License unavailability will result in the job being held back until the necessary licenses have become available. Although use of the license resource request is not mandatory, its use is strongly recommended. If you do not use the license resource requests, the job will fail if no licenses are available. A single aa_r_cfd license is required to start the solver, and includes up to 4 HPC licenses. Therefore you should request ($nproc-4) aa_r_hpc licenses. | CHPC has academic licenses for AnsysCFD. There are 25 "solver" processes and the license pool is not currently under heavy pressure. There is a license resource management system to be used for Fluent, but it is not effective for older CFX versions. |
| |
| ===== Running a CFX Job ===== | ===== Running a CFX Job ===== |
| #!/bin/bash | #!/bin/bash |
| #PBS -P projectid | #PBS -P projectid |
| #PBS -l select=4:ncpus=24:mpiprocs=24:mem=24GB:nodetype=haswell_reg | #PBS -l select=4:ncpus=24:mpiprocs=24 |
| #PBS -l walltime=2:00:00 | #PBS -l walltime=2:00:00 |
| #PBS -q normal | #PBS -q normal |
| #PBS -m be | |
| #PBS -V | #PBS -V |
| #PBS -o /home/username/testCFX/test.out | #PBS -o /mnt/lustre/users/username/testCFX/test.out |
| #PBS -e /home/username/testCFX/test.err | #PBS -e /mnt/lustre/users/username/testCFX/test.err |
| #### Check for license availability. If insufficient licenses are available, job will be held back until | |
| #### licenses are available. | |
| #PBS -l aa_r_cfd=1 | |
| #PBS -l aa_r_hpc=200 | |
| |
| cd /home/username/testCFX #change to CFX case directory | export LM_LICENSE_FILE=1055@login1 |
| export CFX5RSH=ssh #force CFX to use ssh instead of rsh | export ANSYSLMD_LICENSE_FILE=1055@login1 |
| cfx=/apps/chpc/compmech/CFD/ansys_inc/v190/CFX/bin/cfx5solve #path to cfx5 solver | #change to CFX case directory |
| $cfx -batch -def testCFX.def -par-dist $(tr "\n" "," <$PBS_NODEFILE) > runcfx.log | cd /mnt/lustre/users/username/testCFX |
| | #force CFX to use ssh instead of rsh |
| | export CFX5RSH=ssh |
| | # Select IntelMPI-2018 instead of 2021 |
| | export CFX5_IMPI_DIR=/apps/chpc/compmech/CFD/ansys_inc/v242/commonfiles/MPI/Intel/2018.3.222/linx64 |
| | cfx=/apps/chpc/compmech/CFD/ansys_inc/v242/CFX/bin/cfx5solve #path to cfx5 solver |
| | $cfx -batch -def testCFX.def -par-dist $(tr "\n" "," <$PBS_NODEFILE | rev | cut -c2- | rev) > runcfx.log |
| </file> | </file> |
| ===== Different methods of uploading a simulation ===== | ===== Different methods of uploading a simulation ===== |