This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
howto:cfx [2014/05/08 14:52] agill created |
howto:cfx [2025/02/21 12:45] (current) ccrosby [Running a CFX Job] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== ANSYS/Fluent | + | ====== ANSYS/CFX ====== |
| The CHPC has an installation of Ansys-CFD along with a limited license for academic use only. The license covers use of the Fluent and CFX solvers, as well as the IcemCFD meshing code. | The CHPC has an installation of Ansys-CFD along with a limited license for academic use only. The license covers use of the Fluent and CFX solvers, as well as the IcemCFD meshing code. | ||
| Line 5: | Line 5: | ||
| ===== Application Process ===== | ===== Application Process ===== | ||
| - | If you are a **full time** student or staff at an **academic** institution then you may request access to use Ansys-CFD on the CHPC clusters. | + | If you are a **full time** student or staff at an **academic** institution then you may request access to use Ansys-CFD on the CHPC clusters. |
| ===== Installation ===== | ===== Installation ===== | ||
| - | Fluent version | + | CFX versions are installed in ''/ |
| - | Version 15.0 editions of the Ansys software are installed under '''/ | ||
| ===== Licensing ===== | ===== Licensing ===== | ||
| - | CHPC has academic licenses for AnsysCFD. | + | CHPC has academic licenses for AnsysCFD. |
| + | ===== Running a CFX Job ===== | ||
| + | |||
| + | On the CHPC clusters all simulations are submitted as jobs to the PBS Pro job scheduler which will assign your job to the appropriate queue and machine. | ||
| + | |||
| + | Example job script: | ||
| + | |||
| + | <file bash runCFX.qsub> | ||
| + | #!/bin/bash | ||
| + | #PBS -P projectid | ||
| + | #PBS -l select=4: | ||
| + | #PBS -l walltime=2: | ||
| + | #PBS -q normal | ||
| + | #PBS -V | ||
| + | #PBS -o / | ||
| + | #PBS -e / | ||
| + | |||
| + | export LM_LICENSE_FILE=1055@login1 | ||
| + | export ANSYSLMD_LICENSE_FILE=1055@login1 | ||
| + | #change to CFX case directory | ||
| + | cd / | ||
| + | #force CFX to use ssh instead of rsh | ||
| + | export CFX5RSH=ssh | ||
| + | # Select IntelMPI-2018 instead of 2021 | ||
| + | export CFX5_IMPI_DIR=/ | ||
| + | cfx=/ | ||
| + | $cfx -batch -def testCFX.def -par-dist $(tr " | ||
| + | </ | ||
| + | ===== Different methods of uploading a simulation ===== | ||
| + | |||
| + | ==== Build and test locally, upload .def file ==== | ||
| + | The " | ||
| + | * Mesh and pre-process the simulation as usual for a local simulation. | ||
| + | * Test it locally to ensure that everything works properly. Be cautious about absolute path file names. | ||
| + | * Compress the def file with gzip. | ||
| + | * Upload to CHPC using either scp or rsync. | ||
| + | |||
| + | ==== Build and test locally, upload geometry and script files only, mesh and pre-process remotely ==== | ||
| + | If your simulations files are too large, or your internet connection too slow, consider transferring geometry and script files only. This will require careful scripting and testing, but is certainly practical. | ||
| + | * Neither ANSYS-Mesh nor Gambit is available on the CHPC system, but ICEMCFD is. | ||
| + | * If using IcemCFD, transfer the Icem .prj, .tin, .fbc and .blk (if using hexa) files, along with a recorded Icem script file for generating the mesh and exporting the file in CFX format. | ||
| + | * If your internet connection is too slow to permit easy case uploading, it will also be far too slow for downloading the results files. | ||
| + | |||
| + | ===== General tips and advice ===== | ||
| + | * Give some thought to the resources being requested. | ||
| + | * A request for a smaller number of cores may result in the job launching earlier, resulting in reduced turn-around time, even if the job takes longer to run. | ||
| + | * Monitoring convergence of batch jobs can be painful but necessary. | ||
| + | * Monitor files (such as cd or cl files) can be plotted with gnuplot even if no GUI is available. | ||
| + | | ||