Airfoil optimization using Xfoil and PARSEC geometric parameterization
Includes all files necessary for the aerodynamic shape optimization of an airfoil at a constant CL and Reynolds number using a MATLAB-Xfoil interface and a custom conjugate gradient optimizer, using the PARSEC method for airfoil geometry parameterization. The optimization is run from conjugate.m, with the necessary inputs for the optimization of a NACA 0012 airfoil commented out. Reynolds number and lift coefficient are specified in cdmin.m at line 55, but may be modified using global variable definitions. The Xfoil plot display is currently disabled, but may be enabled by commenting out lines 117 and 118 in xfoil.m.
Requires a windows executable of Xfoil, which may be downloaded at: http://web.mit.edu/drela/Public/web/xfoil/.
Note that the standard xfoil.exe output is single precision and thus limits the airfoil optimization. For better results, an Xfoil executable should be compiled for double precision.
Information on the PARSEC airfoil geometry parameterization method may be obtained at: http://www.as.dlr.de/hs/h-pdf/H141.pdf
*** Requires a Windows OS
Cite As
Sean Wu (2024). Airfoil optimization using Xfoil and PARSEC geometric parameterization (https://www.mathworks.com/matlabcentral/fileexchange/50142-airfoil-optimization-using-xfoil-and-parsec-geometric-parameterization), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by: Xfoil Interface, PARSEC airfoil polynomial coefficient solver, Central Difference Gradient Approximator, Forward difference gradient approximator, Conjugate gradient optimizer
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.