Edit me

The following is an aerodynamic shape optimization case for the Rotor37 axial compressor rotor in transonic conditions using the density-based DARhoJSTFoam solver.

Case: Axial compressor aerodynamic optimization at transonic conditions
Geometry: Rotor37 (one blade passage)
Objective function: Torque (CMZ)
Design variables: 30 FFD points moving in the y and z directions (60 in total)
Constraints: Mass flow rate (MFR) equal to the baseline, total pressure ratio (TPR) no less than the baseline
Rotation speed: 1800 rad/s (MRF)
Turbulence model: Spalart-Allmaras
Mesh cells: ~42,000
Solver: DARhoJSTFoam

The “runScript.py” is similar to the one used in the DATurboFoam Rotor37 case with the following exceptions:

  • The inlet uses the total pressure and total temperature boundary conditions “totalPressureDF” and “totalTemperatureDF” (see 0.orig/p and 0.orig/T).

  • We use “jst_k4”: 0.04 to damp the high-frequency oscillations in the small cells at the blade and shroud corners, and we set the velocity bounds in “stateBounds” to [-800, 800] m/s because the absolute velocity near the shroud is high.

  • We use ANK only and set “secondOrdSwitchTol”: 1e-2 so that ANK switches to the full Jacobian near convergence. This makes the warm-started primal solves for new designs converge robustly.

To run this case, first download tutorials and untar it. Then go to tutorials-main/DARhoJSTFoam/Turbo_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 10 iterations and took about 47 minutes using 8 CPU cores. According to “log_opt.txt” and “opt_Uno.txt”, the torque reduces from 17.95 to 16.98 (5.4%). The TPR (1.6156) and MFR (0.5823) are within 0.3% of their baseline values (1.6201 and 0.5842). The optimization weakens the shock on the suction side of the blade, as shown below.

Fig. 1. Relative Mach number on a cylindrical section near the blade tip (r = 0.23 m) for the baseline and optimized designs