User Tools

Site Tools


howto:cfx

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howto:cfx [2021/05/05 11:39]
ccrosby [Licensing]
howto:cfx [2025/02/21 12:45] (current)
ccrosby [Running a CFX Job]
Line 9: Line 9:
 ===== 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 exampleSimilarly, IcemCFD is installed under ''/apps/chpc/compmech/CFD/ansys_inc/v???/icemcfd''.
  
  
Line 15: Line 15:
 ===== Licensing ===== ===== Licensing =====
  
-CHPC has academic licenses for AnsysCFD.  There are "solver" processes, available as "cfd_base" and 4096 "HPC" licenses, available as "anshpc".  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 mandatoryits use is strongly recommended.  If you do not use the license resource requests, the job will fail if no licenses are available.  A single cfd_base license is required to start the solver, and includes up to 4 HPC licenses.  Therefore you should request ($nproc-4) ans_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 Fluentbut it is not effective for older CFX versions.  
  
 ===== Running a CFX Job ===== ===== Running a CFX Job =====
Line 26: Line 26:
 #!/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 /mnt/lustre3p/users/username/testCFX/test.out +#PBS -o /mnt/lustre/users/username/testCFX/test.out 
-#PBS -e /mnt/lustre3p/users/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 /mnt/lustre3p/users/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 =====
/app/dokuwiki/data/attic/howto/cfx.1620207580.txt.gz · Last modified: 2021/12/09 16:42 (external edit)