XoptFoil uses the XFoil aerodynamics engine to optimize airfoils. You can get the code here: [ Ссылка ]
This example is an optimization of the well-known Clark-Y airfoil at a Reynolds number of 300,000 for lift coefficients in the range of 0 and 1. Progress seems to stall in the middle, but in reality very small improvements are still occurring. Near the end, the optimizer switches from particle swarm (global optimization) to simplex search (local optimization) and more progress is made. The final design has significantly less drag between Cl of 0 and 0.6, and the same drag as the Clark-Y for 0.8 to 1.
![](https://i.ytimg.com/vi/ZSY_LTt0fBI/maxresdefault.jpg)