SU2 Examples
SU2 is a suite of open-source software tools written in C++ for the numerical solution of partial differential equations (PDE) and performing PDE constrained optimizationIn computing, optimization refers to the process of improvin.... The primary applications are computational fluid dynamics and aerodynamic shape optimization but has been extended to treat more general equations such as electrodynamics and chemically reacting flows. SU2 supports continuous and discrete adjoint for calculating the sensitivities/gradients of a scalar field. All examples used below are obtained from the tutorials section of the SU2 GitHub Wiki.
NACA 0012 Angle of Attack Sweep Example
This example performs a inviscid, transonic, angle of attack sweep on a NACA 0012 airfoil using Rescale’s DOE job type. Please refer to the DOE Tutorial for details on how to setup a DOE case. This example is configured on the Parallel Settings page to step through angle of attacks from -4° to +15° in 1° increments. The DOE job type will create and run 20 different cases by modifying the template input file used on the Templates page. This job is configured to use two slots, each with two cores, so four total cores are being used during the job. Each case will be run in an available two-core slot until all the cases in the DOE are completed.
This example job contains also contains a post-processing script that extracts the coefficients of lift, drag and moment. During the job, these results will be dynamically populated on the Results page and plotted on the Charts page as each case is completed.
Simulation Code | Stanford University Unstructured (SU2) |
Analysis Type | CFD DOE |
Description | Inviscid, transonic, angle of attack sweep on NACA 0012 |
Suggested Hardware | Emerald / 2 slots, 2 cores each |
Command |
parallel_computation.py -n $RESCALE_CORES_PER_SLOT -f NACA0012.cfg |
Post-processing Command |
python su2_extract.py forces_breakdown.dat CL CD CMz |
Estimated Run Time | 5 minutes |
Turbulent ONERA M6 Example
A simulation of turbulent viscous flow around a 3D geometry.
Simulation Code | Stanford University Unstructured (SU2) |
Analysis Type | CFD |
Description | A simulation of turbulent flow with SU2 over the classic ONERA M6 wing on Rescale. |
Suggested Hardware | Emerald / 8 cores |
Command |
parallel_computation.py -f turb_ONERAM6.cfg -n $RESCALE_CORES_PER_SLOT |
Estimated Run Time | 22 minutes |