You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For this tutorial, we return to the classic NACA 0012 test case that was the subject of the [Quick Start](https://github.com/su2code/SU2/wiki/Quick-Start) and perform aerodynamic shape design. Upon completing this tutorial, the user will be familiar with performing an optimal shape design of a 2D geometry. The initial geometry chosen for the tutorial is the NACA 0012 airfoil in transonic, inviscid flow. This tutorial is meant to be an introduction for using the components of SU2 for shape design in the context of a simple, unconstrained optimization problem. Consequently, the following SU2 tools will be showcased in this tutorial:
10
+
For this tutorial, we return to the classic NACA 0012 test case that was the subject of the [Quick Start](/docs/Quick-Start/)) and perform aerodynamic shape design. Upon completing this tutorial, the user will be familiar with performing an optimal shape design of a 2D geometry. The initial geometry chosen for the tutorial is the NACA 0012 airfoil in transonic, inviscid flow. This tutorial is meant to be an introduction for using the components of SU2 for shape design in the context of a simple, unconstrained optimization problem. Consequently, the following SU2 tools will be showcased in this tutorial:
11
11
-**SU2_CFD** - performs the direct and the adjoint flow simulations
12
12
-**SU2_DOT** - projects the adjoint surface sensitivities into the design space to obtain the gradient
13
13
-**SU2_DEF** - deforms the geometry and mesh with changes in the design variables during the shape optimization process
@@ -17,17 +17,17 @@ We will walk through the shape design process and highlight several options rela
17
17
18
18
## Resources
19
19
20
-
You can find the resources for this tutorial in the folder [Inciscid_2D_Unconstrained_NACA0012](https://github.com/su2code/Tutorials/tree/master/Inciscid_2D_Unconstrained_NACA0012) in the [tutorial repository](https://github.com/su2code/Tutorials). You will need the mesh file [mesh_NACA0012_inv.su2](../../Inciscid_2D_Unconstrained_NACA0012/mesh_NACA0012_inv.su2) and the config file [inv_NACA0012_basic.cfg](../../Inciscid_2D_Unconstrained_NACA0012/inv_NACA0012_basic.cfg).
20
+
You can find the resources for this tutorial in the folder [Inciscid_2D_Unconstrained_NACA0012](https://github.com/su2code/su2code.github.io/tree/master/Inciscid_2D_Unconstrained_NACA0012) in the [tutorial repository](https://github.com/su2code/su2code.github.io). You will need the mesh file [mesh_NACA0012_inv.su2](../../Inciscid_2D_Unconstrained_NACA0012/mesh_NACA0012_inv.su2) and the config file [inv_NACA0012_basic.cfg](../../Inciscid_2D_Unconstrained_NACA0012/inv_NACA0012_basic.cfg).
21
21
22
22
## Tutorial
23
23
24
-
The following tutorial will walk you through the steps required when performing shape design for the transonic airfoil using SU2. It is assumed that you have already obtained and compiled SU2_CFD, SU2_DOT, and SU2_DEF. The design loop is driven by the shape_optimization.py script, and thus Python along with the NumPy and SciPy Python modules are required for this tutorial. If you have yet to complete these requirements, please see the [Download](https://github.com/su2code/SU2/wiki/Download) and [Installation](https://github.com/su2code/SU2/wiki/Installation) pages. It may also be helpful to review the [Quick Start](https://github.com/su2code/SU2/wiki/Quick-Start) tutorial to refamiliarize yourself with this problem.
24
+
The following tutorial will walk you through the steps required when performing shape design for the transonic airfoil using SU2. It is assumed that you have already obtained and compiled SU2_CFD, SU2_DOT, and SU2_DEF. The design loop is driven by the shape_optimization.py script, and thus Python along with the NumPy and SciPy Python modules are required for this tutorial. If you have yet to complete these requirements, please see the [Download](/docs/Download/) and [Installation](/docs/Installation/) pages. It may also be helpful to review the [Quick Start](/docs/Quick-Start) tutorial to refamiliarize yourself with this problem.
25
25
26
26
### Background
27
27
28
-
This example uses a 2D airfoil geometry (initially the NACA 0012) in transonic inviscid flow. See the [Quick Start](https://github.com/su2code/SU2/wiki/Quick-Start) for more information on the baseline geometry.
28
+
This example uses a 2D airfoil geometry (initially the NACA 0012) in transonic inviscid flow. See the [Quick Start](/docs/Quick-Start) for more information on the baseline geometry.
29
29
30
-
The general process for performing gradient-based shape optimization with SU2 is given in the flow chart at the top of the page. We start with a baseline geometry and grid as input to our design cycle, along with a chosen objective function (J) and set of design variables (x). For this tutorial, we will use the NACA 0012 and the unstructured mesh from the [Quick Start](https://github.com/su2code/SU2/wiki/Quick-Start) as our inputs with drag as our chosen objective and a set of Hicks-Henne bump functions to parameterize the shape.
30
+
The general process for performing gradient-based shape optimization with SU2 is given in the flow chart at the top of the page. We start with a baseline geometry and grid as input to our design cycle, along with a chosen objective function (J) and set of design variables (x). For this tutorial, we will use the NACA 0012 and the unstructured mesh from the [Quick Start](/docs/Quick-Start) as our inputs with drag as our chosen objective and a set of Hicks-Henne bump functions to parameterize the shape.
31
31
32
32
From there, everything needed for automatic shape design is provided for you in the SU2 framework! By launching the shape_optimization.py script (described below), a gradient-based optimizer will orchestrate the design cycle consisting of the flow solver, adjoint solver, and geometry/mesh deformation tools available in SU2. This iterative design loop will proceed until a minimum is found or until reaching a maximum number of optimizer iterations. Many useful output files will be available to you at the conclusion.
33
33
@@ -163,7 +163,7 @@ To run this design case, follow these steps at a terminal command line:
163
163
164
164
4. Solution files containing the flow and surface data will be written for each flow solution and adjoint solution and can be found in the DESIGNS directory that is created. The flow solutions are in the DESIGNS/DSN_*/DIRECT/ directories. The file named history_project.dat (or history_project.csv for ParaView) will contain the functional values of interest resulting from each evaluation during the optimization.
165
165
166
-
5. To switch between discrete and continuous adjoint (only affect the gradient evaluation) you just need to change `CONTINUOUS_ADJOINT` by `DISCRETE_ADJOINT` when calling the `shape_optimization.py` script (assuming that the software has been compiled with the [adjoint mode capability](https://github.com/su2code/SU2/wiki/AD-Build).**note that by typing python shape_optimization.py -h you will see all the options (including different optimizers)**
166
+
5. To switch between discrete and continuous adjoint (only affect the gradient evaluation) you just need to change `CONTINUOUS_ADJOINT` by `DISCRETE_ADJOINT` when calling the `shape_optimization.py` script (assuming that the software has been compiled with the [adjoint mode capability](/docs/AD-Build/).**note that by typing python shape_optimization.py -h you will see all the options (including different optimizers)**
Copy file name to clipboardExpand all lines: _tutorials/design_features/Turbulent_2D_Constrained_RAE2822.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ We will walk through the shape design process and highlight several options rela
17
17
18
18
## Resources
19
19
20
-
You can find the resources for this tutorial in the folder [Turbulent_Shape_Design](https://github.com/su2code/Tutorials/tree/master/Turbulent_2D_Constrained_RAE2822) in the [tutorial repository](https://github.com/su2code/Tutorials). You will need the mesh file [mesh_RAE2822_turb.su2](../../Turbulent_2D_Constrained_RAE2822/mesh_RAE2822_turb.su2), the config file [turb_SA_RAE2822.cfg](../../Turbulent_2D_Constrained_RAE2822/turb_SA_RAE2822.cfg) and initial solution files for the solver and adjoint [solution_flow.dat](../../Turbulent_2D_Constrained_RAE2822/solution_flow.dat), [solution_adj_cd.dat](../../Turbulent_2D_Constrained_RAE2822/solution_adj_cd.dat), and [solution_adj_cmz.dat](../../Turbulent_2D_Constrained_RAE2822/solution_adj_cmz.dat).
20
+
You can find the resources for this tutorial in the folder [Turbulent_Shape_Design](https://github.com/su2code/su2code.github.io/tree/master/Turbulent_2D_Constrained_RAE2822) in the [tutorial repository](https://github.com/su2code/Tutorials). You will need the mesh file [mesh_RAE2822_turb.su2](../../Turbulent_2D_Constrained_RAE2822/mesh_RAE2822_turb.su2), the config file [turb_SA_RAE2822.cfg](../../Turbulent_2D_Constrained_RAE2822/turb_SA_RAE2822.cfg) and initial solution files for the solver and adjoint [solution_flow.dat](../../Turbulent_2D_Constrained_RAE2822/solution_flow.dat), [solution_adj_cd.dat](../../Turbulent_2D_Constrained_RAE2822/solution_adj_cd.dat), and [solution_adj_cmz.dat](../../Turbulent_2D_Constrained_RAE2822/solution_adj_cmz.dat).
0 commit comments