Edit me

The following is an aerodynamic shape optimization case for the Onera M6 wing in transonic conditions using the density-based DARhoJSTFoam solver.

Case: Wing aerodynamic optimization
Geometry: Onera M6 wing
Objective function: Drag coefficient (CD)
Lift coefficient (CL): 0.27
Design variables: 120 FFD points moving in the y direction, five twists, and one angle of attack
Constraints: Volume, thickness, LE/TE, and lift constraints (total number: 114)
Mach number: 0.84 (292 m/s)
Reynolds number: 12 million
Mesh cells: ~100,000
Solver: DARhoJSTFoam

The “runScript.py” is similar to the one used in the airfoil aerodynamic optimization and the Onera M6 wing case with the following exceptions:

  • The twist at the five outboard spanwise FFD sections is added as a design variable. The root twist is fixed because the angle of attack is already a design variable.

  • We use “jst_k4”: 0.04 to damp the high-frequency oscillations on this coarse mesh. With the default value, ANK stalls.

To run this case, first download tutorials and untar it. Then go to tutorials-main/DARhoJSTFoam/Wing_Aero_Opt and run the “preProcessing.sh” script to generate the mesh:

./preProcessing.sh

Then, use the following command to run the optimization with 8 CPU cores:

mpirun -np 8 python runScript.py 2>&1 | tee log_opt.txt

The case ran for 20 iterations and took about 27 minutes using 8 CPU cores. According to “log_opt.txt” and “opt_Uno.txt”, the initial drag is 0.01971 and the optimized drag is 0.01660 with a drag reduction of 15.8%. The optimization removes the shock on the upper surface, and the angle of attack decreases from 3.12 to 2.46 degrees.

The evolution of the upper surface pressure during the optimization is as follows.

Fig. 1. Upper surface pressure evolution during the optimization process