XFOIL is a subsonic airfoil analysis and design program by Mark Drela and Harold Youngren (MIT). This is the official 6.99 source patched to build on macOS Apple Silicon with gfortran and XQuartz.
Original source: https://web.mit.edu/drela/Public/web/xfoil/
This repository is not affiliated with or endorsed by the original authors or MIT.
- gfortran (via Homebrew):
brew install gcc - XQuartz (for GUI):
brew install --cask xquartz— log out and back in after install
# 1. Build the plot library
cd plotlib && make && cd ..
# 2. Build XFOIL and plotting tools
cd bin && make xfoil pplot pxplot && cd ..Binaries are built in bin/. To install:
cd bin && make install INSTALL_DIR=~/tools/installed/xfoilThis copies the binaries to INSTALL_DIR/bin/ and osmap.dat to INSTALL_DIR/.
Start XQuartz before launching XFOIL if you want plotting/GUI:
open -a XQuartz
cd bin
./xfoilBy default, XFOIL builds without the Orr-Sommerfeld database dependency, so the binary is fully self-contained. To enable TS-wave frequency plotting, rebuild with the OS map support and set the OSMAP environment variable:
make xfoil OSOBJ="frplot.o ntcalc.o osmap.o getosfile.o"
export OSMAP=/path/to/orrs/osmap.datThe precomputed database (orrs/osmap.dat) is included. To regenerate it:
cd orrs/bin && make osgen && ./osgenSee xfoil_doc.txt for the full user guide.
XFOIL is Copyright (C) 2000 Mark Drela, Harold Youngren, and is licensed under the GNU General Public License v3 (originally distributed as GPL v2+). The Xplot11 plot library (plotlib/) is licensed under the GNU Lesser General Public License v3 (originally distributed as LGPL v2+).