User Tools

Site Tools


howto:su2

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:su2 [2019/05/27 10:48]
ccrosby [Sample PBS script]
howto:su2 [2022/11/02 16:10] (current)
ccrosby [Sample PBS script]
Line 15: Line 15:
 #PBS -q normal #PBS -q normal
 #PBS -l walltime=01:00:00 #PBS -l walltime=01:00:00
-#PBS -o /home/username/scratch/foamJobs/job01/stdout +#PBS -o /mnt/lustre/users/username/su2Jobs/job01/stdout 
-#PBS -e /home/username/scratch/foamJobs/job01/stderr+#PBS -e /mnt/lustre/users/username/su2Jobs/job01/stderr
 #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 
-module add chpc/compmech/SU2/6. +module add chpc/compmech/SU2/6.2-intel  
-The -d option used with moab no longer works.  Set this environment variable explicitly. +# Set the working directory environment variable explicitly. 
-export PBS_JOBDIR=/export/home/user/SU2/TestCases/euler/oneram6 +export PBS_JOBDIR=/mnt/lustre/users/username/su2Jobs/job01 
-Explicitly change to the job directory+Change to the job directory
 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 -iface ib0 -np $nproc -machinefile $PBS_NODEFILE SU2_CFD inv_ONERAM6_JST.cfg > SU2_CFD.out+### 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.  If it does,  ### Check to see if the solution_flow.dat file exists.  If it does, 
 ###  use it to generate the necessary output files.  If it doesn't,  ###  use it to generate the necessary output files.  If it doesn't, 
Line 41: Line 42:
 </file> </file>
  
-===== Postprocesing =====+===== Postprocessing =====
 By default, the SU2 example cases write Tecplot format output files.  CHPC does not have a license  By default, the SU2 example cases write Tecplot format output files.  CHPC does not have a license 
 for Tecplot, although it is possible to read Tecplot files into Paraview.  However, in the SU2 input file  for Tecplot, although it is possible to read Tecplot files into Paraview.  However, in the SU2 input file 
 it is easy to specify Paraview format output files (VTK) directly.  Refer to [[howto:remote_viz|the instructions on Remote Visualization]] to obtain a graphics environment for post-processing with VirtualGL and [[howto:paraview|Paraview]] or [[howto:visit|VisIt]]. it is easy to specify Paraview format output files (VTK) directly.  Refer to [[howto:remote_viz|the instructions on Remote Visualization]] to obtain a graphics environment for post-processing with VirtualGL and [[howto:paraview|Paraview]] or [[howto:visit|VisIt]].
 +
 +===== 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:
 +
 +{{:howto:su2_scaling_6.2.png|}}
/app/dokuwiki/data/attic/howto/su2.1558946934.txt.gz · Last modified: 2021/12/09 16:42 (external edit)