Skip to content

chrislupp/xfoil-applesilicon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XFOIL 6.99 — macOS ARM64 Build

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.

Prerequisites

  • gfortran (via Homebrew): brew install gcc
  • XQuartz (for GUI): brew install --cask xquartz — log out and back in after install

Build

# 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/xfoil

This copies the binaries to INSTALL_DIR/bin/ and osmap.dat to INSTALL_DIR/.

Run

Start XQuartz before launching XFOIL if you want plotting/GUI:

open -a XQuartz
cd bin
./xfoil

By 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.dat

Rebuilding the Orr-Sommerfeld database (optional)

The precomputed database (orrs/osmap.dat) is included. To regenerate it:

cd orrs/bin && make osgen && ./osgen

Documentation

See xfoil_doc.txt for the full user guide.

License

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+).

About

XFOIL 6.99 airfoil analysis code — ready to build on macOS Apple Silicon (M1/M2/M3/M4/M5/etc.) with gfortran and XQuartz. Subsonic airfoil design, panel method, boundary layer analysis.

Topics

Resources

License

Stars

Watchers

Forks

Contributors