Edit me

The following is a field inversion case for the S809 airfoil at a high angle of attack with separated flow, using the density-based DARhoJSTFoam solver.

Case: Airfoil field inversion
Geometry: S809
Objective function: Regulated prediction error for the lift coefficient (CL)
Reference CL: 1.0478
Design variables: betaFINuTilda (SA) or betaFIOmega (SST) in all cells (28,329)
Angle of attack: 14 degrees
Mach number: 0.2 (68 m/s)
Reynolds number: 2.45 million
Mesh cells: ~28,000
Solver: DARhoJSTFoam

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

  • The turbulence model is set by “turbulence_model” in runScript.py: “SA” (Spalart-Allmaras) or “SST” (k-omega SST). The beta field multiplies the production term of the nuTilda (SA) or omega (SST) equation.

  • The objective is the squared CL error plus the variance of beta (regularization).

  • We set “lowMach”: True because the Mach number is 0.2.

  • We use ANK only, and set “secondOrdSwitchTol”: 1e-5 so that ANK switches to the full Jacobian near convergence. This makes the warm-started primal solves for new beta fields converge robustly in the separated flow.

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

./preProcessing.sh

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

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

The results for both models are as follows.

Model Baseline CL Inverted CL Iterations Runtime (8 cores)
SA 1.1403 1.0496 8 ~9 minutes
SST 1.1094 1.0499 5 ~4 minutes

Both baseline models over-predict CL. After field inversion, the CL error is reduced from 0.0925 to 0.0018 for SA and from 0.0616 to 0.0021 for SST. The inverted beta fields are shown below.

Fig. 1. Inverted betaFINuTilda field for the SA model

Fig. 2. Inverted betaFIOmega field for the SST model