This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
howto:su2 [2015/03/03 15:40] ccrosby |
howto:su2 [2022/11/02 16:10] (current) ccrosby [Sample PBS script] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Running the open-source code SU2 on the CHPC system ====== | ====== Running the open-source code SU2 on the CHPC system ====== | ||
| ===== Introduction ===== | ===== Introduction ===== | ||
| - | Please refer to [[http:// | + | Please refer to [[http:// |
| - | ===== Environment | + | ===== Sample PBS script |
| - | To set up a suitable environment for running SU2, add the following lines to your .bashrc file and ensure that they are sourced: | + | When running |
| + | tasks. | ||
| + | Onera M6 transonic wing example from the TestCases/ | ||
| - | <code> | + | <file bash runSU2.qsub> |
| - | #### Setup environment for SU2, uses some OpenFOAM stuff, | + | #!/bin/bash |
| - | #### therefore start by setting up OpenFOAM-2.3.0 environment | + | # This example script requests 3 nodes of the cluster, each with 24 processor cores |
| - | . /opt/gridware/applications/OpenFOAM/OF230_fhm | + | #PBS -P projectid |
| - | module load /opt/gridware/bioinformatics/modules/python/2.7.5 | + | #PBS -l select=3: |
| - | export SU2_RUN="/ | + | #PBS -q normal |
| - | export | + | #PBS -l walltime=01: |
| - | export PATH=$PATH: | + | #PBS -o /mnt/lustre/users/username/su2Jobs/ |
| - | export PYTHONPATH=$PYTHONPATH:$SU2_RUN | + | #PBS -e /mnt/lustre/users/username/su2Jobs/job01/ |
| - | </code> | + | #PBS -m abe |
| + | #PBS -M user@wherever.co.za | ||
| + | #### Set up environment for SU2 | ||
| + | module add chpc/compmech/SU2/6.2-intel | ||
| + | # Set the working directory environment variable explicitly. | ||
| + | export | ||
| + | # Change to the job directory | ||
| + | cd $PBS_JOBDIR | ||
| + | nproc=`cat $PBS_NODEFILE | wc -l` | ||
| + | ### Run the SU2_CFD solver | ||
| + | ### For the gcc/mpich and PGI/mpich versions, use mpirun -iface ib0 .... | ||
| + | mpirun -np $nproc SU2_CFD inv_ONERAM6_JST.cfg > SU2_CFD.out | ||
| + | ### Check to see if the solution_flow.dat file exists. | ||
| + | ### use it to generate the necessary output files. | ||
| + | ### copy the restart file to solution_flow.dat and generate the output. | ||
| + | ### Make sure that these two file names are consistent with what you have | ||
| + | ### used in the .cfg file for the run. | ||
| + | if [ ! -e solution_flow.dat ] ; | ||
| + | | ||
| + | cp restart_flow.dat solution_flow.dat | ||
| + | fi | ||
| + | ### Build the specified format output files | ||
| + | SU2_SOL inv_ONERAM6_JST.cfg > SU2_SOL.out | ||
| + | </file> | ||
| - | The OpenFOAM settings are merely there to ensure that some more recent libraries and utilities that were compiled | + | ===== Postprocessing ===== |
| + | By default, the SU2 example cases write Tecplot format output files. | ||
| + | for Tecplot, although it is possible to read Tecplot files into Paraview. | ||
| + | it is easy to specify Paraview format output files (VTK) directly. | ||
| + | ===== Scaling ===== | ||
| + | SU2 scales reasonably well, down to about 50 000 cells per core. Performance with the Intel compiler is better than GCC or PGI. Refer to the following graph: | ||
| + | |||
| + | {{: | ||