Airfoil optimization using Xfoil and PARSEC geometric parameterization

Version (8.72 KB) by Sean Wu
Includes all files necessary for the optimization of an airfoil using an Xfoil interface.


Updated 22 Mar 2015

View License

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:
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:
*** Requires a Windows OS

Cite As

Sean Wu (2023). Airfoil optimization using Xfoil and PARSEC geometric parameterization (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Airfoil tools in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes




Included Xfoil plot display on/off instructions



Fixed title in cdmin.m

Description typo