Use the XFOIL-style command line
fauXFOIL is an interactive program that looks and behaves like XFOIL 6.99:
the same menus, prompts, command abbreviations, iteration printout, plots
and polar file layout. Scirocco does the analysis. If you already drive XFOIL
by hand or from a script, you can use fauXFOIL the same way.
On macOS or Linux, Homebrew installs it with its plot window, and Scirocco with it:
brew install chrislupp/tools/fauxfoil
fauXFOIL
fauXFOIL is a separate program in the repository's fauxfoil/ directory,
next to the library, and uses only Scirocco's public API. To build it
yourself, its build compiles the Scirocco source tree beside it:
cmake -S fauxfoil -B fauxfoil/build -DCMAKE_BUILD_TYPE=Release
cmake --build fauxfoil/build -j
fauxfoil/build/fauXFOIL
To build against an installed Scirocco instead, clear the source path and point CMake at the installation:
cmake -S fauxfoil -B fauxfoil/build -DFAUXFOIL_SCIROCCO_SOURCE= \
-DCMAKE_PREFIX_PATH=/path/to/scirocco/install
| Option | Default | What it does |
|---|---|---|
FAUXFOIL_GRAPHICS | OFF | The plot window; needs Qt 6 Widgets, and configuration fails without it |
FAUXFOIL_BUILD_TESTS | ON | The fauXFOIL tests (needs GoogleTest); run them with ctest --test-dir fauxfoil/build |
FAUXFOIL_SCIROCCO_SOURCE | ../scirocco | Scirocco source tree to build with; empty to use an installed Scirocco |
Scirocco's own options, such as SCIROCCO_NATIVE_ARCH, pass through to the
library build. cmake --install fauxfoil/build installs fauXFOIL.
A session
fauXFOIL c> naca 2412
fauXFOIL c> oper
.OPERi c> visc 1e6
.OPERv c> pacc
...
.OPERva c> aseq 0 2 1
Each Newton iteration of a viscous point prints XFOIL's block as it runs:
Side 1 free transition at x/c = 0.6524 57
Side 2 free transition at x/c = 0.6788 58
6 rms: 0.1015E-08 max: -.1467E-07 D at 59 1
a = 0.000 CL = 0.2353
Cm = -0.0516 CD = 0.00563 => CDf = 0.00442 CDp = 0.00121
The numbers come from Scirocco's own Newton iteration, read through
Glob::iteration_observer (see FoilState). rms
and max are the size of the step just taken, normalized as XFOIL
normalizes them, and RLX is Scirocco's under-relaxation factor when it is
below 1. Scirocco converges on its own residual tolerance, so it often takes
an iteration or two more than XFOIL's rms criterion would. The transition
location solves the same amplification equation as the solver's transition
residual.
Plots
When fauXFOIL is built with its plot window, plots open in a window laid out like
XFOIL's: white lines on black, the same axes, legends and colours. The
window is native, so it needs no X11 on macOS. Resize it freely; plots are
redrawn as vectors at the screen's full resolution. Lettering uses
FauxfoilPlot, fauXFOIL's own plotter-style font
(fauxfoil/fonts/FauxfoilPlot.ttf). The font is compiled into the program,
so nothing needs installing, and hardcopies draw its letters as filled
outlines, so plot.ps needs no fonts either. To change a letter, edit its
strokes in fauxfoil/fonts/make_font.py and run that script to rebuild the
font.

- Cp(x). Drawn after every
ALFA,CLorCLIpoint, and byCPX. Viscous Cp is blue on the upper surface and red on the lower, with the inviscid Cp dashed (CPIOtoggles it) and the displacement surfaces drawn on the airfoil below.CPMIsets the top of the Cp axis andGRIDadds a grid. - Sequences. During
ASEQandCSEQthe Cp curves of all points are overlaid with a table of results.SEQPplots the polar instead whilePACCis on. - Pressure vectors.
CPVdraws the airfoil at its angle of attack with a pressure vector at each node. - Boundary layer.
VPLOopens XFOIL's menu:H,DT,DB,UE,CF,CD,N,CT,RTandRTLplot one variable on both surfaces and the wake;XandYset axis limits,XPLOswitches between x and arc length,RESEresets the limits andGRIDtoggles the grid. - Polars.
PPLOplots the stored polars: CL against CD, CL and CM against α, and CL against transition location. - Geometry.
GDESplots the buffer airfoil with its area, thickness, camber, leading-edge radius and trailing-edge angle, and redraws it after every change.PLOTredraws it;GRID,TICKandGPARtoggle the grid, node ticks and parameters. - Hardcopy.
HARDwrites the current plot toplot.psas a PostScript page, black on white; later hardcopies add pages, as in XFOIL. - Plot size.
SIZEinOPER,VPLOandGDESsets the plot-object size (default 10) for the plots that follow.
Cursor input
Commands that ask XFOIL for cursor input take mouse clicks and key presses
in the plot window. The window takes keyboard focus while it waits, shows a
crosshair, and where XFOIL shows a Done button so does fauXFOIL
(clicking it is the same as typing D).
- Zoom.
Z(any menu) zooms the window onto two clicked corners;Uunzooms. Each corner is printed in plot and page ("abs", inches) coordinates, as XFOIL prints them. - Annotation.
ANNOopens XFOIL's annotation menu: text (C), slanted text (S), Greek "math" characters (M, whereais α,bis β, ...), point symbols (P, 14 types chosen withT), lines (L) and arrows (A), and the character width factor (W). - Velocity profiles.
BL idrawsiboundary-layer velocity profiles (21 by default) equally spaced round the airfoil under the Cp plot and lists δ*, Re_θ and H_k at each;BLCdraws them where you click, andBLWTsets their scale. The profile shapes are textbook families fitted to the solver's shape factor: the Pohlhausen quartic when laminar, a power law when turbulent. - Blowup.
BLOWinVPLOsets the axis limits to a clicked box; inGDESit plots only that region of the airfoil.WINDinGDESmoves the region with the cursor:Izooms in,Oout, andPor a click pans.RESErestores the full view. - Distance.
DISTinGDESprints the distance between two clicked points.
Reference data and plot options
CREFoverlays measured Cp(x) from a file of "x Cp" lines on each Cp plot. As in XFOIL, the file name and a label are asked for each time; an empty answer keeps the previous file.FREFlists measured Mach, Re, α, CL, CD and CM beside the computed values.RGET freads a reference polar in XFOIL's format (CD-CL, α-CL, α-CM and xtr-CL blocks, each ended by a999 999line) and plots it with symbols on the polar plot;RDELdeletes it.PPAXsets the polar plot's axis limits, andAPLOplots the airfoil stored with each polar.- In
VPLO,SYMBmarks the stations,LABEhides the header and titles,CLIPclips curves to the axes,DUMP fwrites the plotted variable to a file andOVER foverlays "x value" data from a file. - In
GDES,TICKandTSIZmark the points,INPLplots the airfoil at one inch per chord,OVER foverlays another airfoil with its parameters, andCPLOplots the surface curvature.

As in XFOIL, PLOP and G turn plotting off. HARD still works then,
because plots are built either way.
Build with plots
The plot window is opt-in and needs Qt 6 (the Widgets module):
brew install qt # macOS
sudo apt install qt6-base-dev # Debian, Ubuntu
cmake -S fauxfoil -B fauxfoil/build -DCMAKE_BUILD_TYPE=Release \
-DFAUXFOIL_GRAPHICS=ON
With FAUXFOIL_GRAPHICS=ON, configuration stops with an error if CMake
cannot find Qt 6; it never falls back to a text-only build. Point
CMAKE_PREFIX_PATH at Qt if it is installed somewhere CMake does not look.
Without the option, fauXFOIL is text-only and says so under its banner,
as it also does when it was built with the window but finds no display to
open it on. On Linux, plots need an X11 or Wayland display. Without one, or
with FAUXFOIL_NOGRAPHICS=1 in the environment, fauXFOIL runs text-only.
FAUXFOIL_SNAPSHOT_DIR=dir saves every plot shown as dir/plotNNN.png.
Scripts
fauXFOIL reads commands from standard input, so XFOIL batch scripts run
unchanged, including the usual PLOP, G, <return> opening that turns
off plotting:
fauXFOIL < polar_script.txt
As with XFOIL, a file name on the command line is loaded at startup
(fauXFOIL myfoil.dat).
Commands
| Menu | Commands |
|---|---|
| Top level | QUIT, OPER, GDES, NACA, LOAD, SAVE, PSAV, REVE, NORM, XYCM, PCOP, PANE, PPAR, PLOP, NAME, NINC |
OPER | VISC, RE, MACH, TYPE (type 1), ITER, INIT, ALFA, CL, CLI, ASEQ, CSEQ, !, VPAR, SEQP, PACC, PGET, PWRT, PSUM, PLIS, PDEL, PPLO, APLO, PPAX, RGET, RDEL, GRID, CPIO, CREF, FREF, CPX, CPV, VPLO, ANNO, HARD, SIZE, CPMI, BL, BLC, BLWT, CPWR, DUMP, CPMN, NAME, NINC |
VPAR | SHOW, N, NT, NB, WAKE, INIT, LAG, GB, CTR, REST |
VPLO | H, DT, DB, UE, CF, CD, N, CT, RT, RTL, DUMP, OVER, X, Y, XPLO, BLOW, RESE, SIZE, ANNO, HARD, GRID, SYMB, LABE, CLIP |
GDES | GSET, EXEC, ADEG, ARAD, TRAN, SCAL, UNIT, DERO, FLAP, DIST, CPLO, PLOT, INPL, BLOW, RESE, WIND, TSIZ, TICK, GRID, GPAR, OVER, SIZE, ANNO, HARD, NAME, NINC |
| Any menu | Z, U |
Abbreviations work as in XFOIL (a for ALFA, as for ASEQ, v for
VISC, and so on). The menus list every XFOIL command; one that fauXFOIL
lacks prints command not available in Scirocco.
VPAR settings map to Scirocco's Param:
N sets ncrit, LAG sets SlagK and Cuq, GB sets GA and GB,
CTR sets CtauC and CtauE, and WAKE sets the wake length. ITER
sets niglob.
Files
SAVEandPSAVwrite coordinates in XFOIL's order (counterclockwise from the upper trailing edge) and number format.LOADreads labeled, plain, ISES and MSES single-element files in either direction.- Polar save files (
PACC,PWRT) use XFOIL's layout column for column, so tools that read XFOIL polars read these. The header line names fauXFOIL and the Scirocco version instead of XFOIL.PACCappends to an existing polar file after checking its Mach, Reynolds number and Ncrit, as XFOIL does. CPWRwrites x and Cp;DUMPwrites s, x, y, Ue, δ*, θ, Cf, H, H*, P, m and K on the surface and wake.
How it differs from XFOIL
- Plots. The
Nplot has no Tollmien-Schlichting frequency lines (FRPL): XFOIL draws them from Orr-Sommerfeld stability data that Scirocco does not have. When no plot window shows the Cp plot, inviscid results are printed instead. - Not yet available. Polar sorting and editing (
PSOR,PREM,PNAM,ASET), Cp-min and hinge-moment columns (CINC,HINC), flap hinge moments and point velocities (FMOM,FNEW,VELS), theGDESgeometry editors other than those listed above, and inverse design (MDES,QDES). - Paneling.
PANEuses Scirocco's curvature-based spacing. Only the node count (PPAR N, default 160) can be changed. As in XFOIL,LOADuses the file's points directly as panel nodes, so runPANEafter loading a coarse file. - One Ncrit, no trips. Scirocco uses one Ncrit for both surfaces and
has no forced transition, so
XTRstays at 1.0. - Polar types. Only type 1 (fixed Mach and Reynolds number).
- No polar dump files. XFOIL's binary dump files are not written.
- Different numbers. Results come from Scirocco, so they are close to XFOIL's but not identical. For example, NACA 2412 at Re = 10⁶ and α = 4° gives CL = 0.7202 and CD = 0.00693, against XFOIL's 0.7146 and 0.00693.