This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
howto:su2 [2017/09/11 14:01] 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:// |
| ===== Sample PBS script ===== | ===== Sample PBS script ===== | ||
| Line 12: | Line 12: | ||
| # This example script requests 3 nodes of the cluster, each with 24 processor cores | # This example script requests 3 nodes of the cluster, each with 24 processor cores | ||
| #PBS -P projectid | #PBS -P projectid | ||
| - | #PBS -l select=3: | + | #PBS -l select=3: |
| #PBS -q normal | #PBS -q normal | ||
| #PBS -l walltime=01: | #PBS -l walltime=01: | ||
| - | #PBS -o /home/username/scratch/foamJobs/ | + | #PBS -o /mnt/lustre/users/username/ |
| - | #PBS -e /home/username/scratch/foamJobs/ | + | #PBS -e /mnt/lustre/users/ |
| #PBS -m abe | #PBS -m abe | ||
| #PBS -M user@wherever.co.za | #PBS -M user@wherever.co.za | ||
| - | #### Setup environment for SU2 | + | #### Set up environment for SU2 |
| - | . /apps/chpc/ | + | module add chpc/ |
| - | # The -d option used with moab no longer works. | + | # Set the working directory |
| - | export PBS_JOBDIR=/ | + | export PBS_JOBDIR=/ |
| - | # Explicitly change | + | # Change |
| cd $PBS_JOBDIR | cd $PBS_JOBDIR | ||
| nproc=`cat $PBS_NODEFILE | wc -l` | nproc=`cat $PBS_NODEFILE | wc -l` | ||
| ### Run the SU2_CFD solver | ### Run the SU2_CFD solver | ||
| - | mpirun -np $nproc | + | ### 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. | ### Check to see if the solution_flow.dat file exists. | ||
| ### use it to generate the necessary output files. | ### use it to generate the necessary output files. | ||
| Line 38: | Line 39: | ||
| fi | fi | ||
| ### Build the specified format output files | ### Build the specified format output files | ||
| - | mpirun -np 1 -machinefile $PBS_NODEFILE | + | SU2_SOL inv_ONERAM6_JST.cfg > SU2_SOL.out |
| </ | </ | ||
| - | ===== Postprocesing | + | ===== Postprocessing |
| By default, the SU2 example cases write Tecplot format output files. | By default, the SU2 example cases write Tecplot format output files. | ||
| for Tecplot, although it is possible to read Tecplot files into Paraview. | for Tecplot, although it is possible to read Tecplot files into Paraview. | ||
| it is easy to specify Paraview format output files (VTK) directly. | 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: | ||
| + | |||
| + | {{: | ||