Just for fun project about airfoil shape optimization with OpenFOAM and Bayesian optimization. The code will be updated once in a while. The idea is the following:
- optimize airfoil geometries for subsonic flows (low Re & Ma)
- airfoils are parameterized using CST method
- Bayesian optimization is used to find the best parameters for given flow conditions
- the flow is solved with
simpleFoam
- chord length is kept constant at
$c = 0.15$ within the simulation, however, the chord length defined in the setup is used to compute the Reynolds number accordingly - the airfoil is optimized for a design range, which is specified within the setup dict
- the objective is the minimization of
$c_D$ and$c_M$ (pitching moment) while maximizing$c_L$ for a given AoA$\alpha$
- improvement and generalization of BayesOpt routine
mapFields
not working properly -> revise- transition model not working properly due to grid sensitivity -> deactivated for now
- decrease mesh size to accelerate optimization
- IO via YAML config file
- improvement of convergence behavior -> use DMD for that -> refer to test project steady DMD
- test different objective functions
- replace meshing with airfoil_meshing once that is implemented
- maybe use wall function in case the grid is messed up
- maybe add rounding of LE and TE (in case bayesOpt isn't able to detect unsuitable AF shapes with sharp TE)
- avoid writing surface data for all time steps since steady state simulation -> how to set purgeWrite for surface sampling?
- validation of the numerical setup using NACA0012 standard benchmark case (grid convergence, ...)
- extend for compressible flows and higher Re
- refactoring main script (ongoing)
- add checkpoints, logging, ...
- parallel execution, HPC support etc.
...
- numerical setup adopted from the buffet_oat15 repository
- Bayesian optimization adopted from BayesOpt_solverSettings repository
- execution of OpenFOAM inspired by drlfoam repository
CST method:
- Kulfan, Brenda. (2008). Universal Parametric Geometry Representation Method. Journal of Aircraft - J AIRCRAFT. 45. 142-158. 10.2514/1.29958
computation of camber line & other:
- Schlichting, H. and Truckenbrodt, E.: Aerodynamik des Flugzeuges. 3rd ed. Vol. 1. Berlin, Heidelberg: Springer Berlin Heidelberg, 2001. doi: 10.1007/978-3-642-56911-1