Technical Papers · K Vijay Anand ⬇ PDF (A4)
Technical Paper

Making XFOIL Converge: Accuracy, Optimisation and the Multi-Element Limit

aerodynamicsairfoilXFOILviscous-inviscid interactionintegral boundary layerpanel methodtransitionNewton methodairfoil optimizationNeuralFoilmulti-element airfoilhigh lift

Abstract

XFOIL, written by Mark Drela in 1986 and frozen at version 6.9 in 2000, is still the most widely used tool for subsonic airfoil analysis and design, and its predictions now train machine-learned surrogates. This paper reviews its history and its present family of ports, physics branches, re-implementations and surrogates. It sets out the complete governing equations of version 6.99: the linear-vorticity panel method, mass-defect coupling, the integral momentum, kinetic-energy, shear-lag and amplification equations with all closures, and the global Newton system. It then measures XFOIL’s weaknesses directly, using 13 356 operating-point solutions on six NACA sections between Re=5×104Re = 5\times10^4 and 3×1063\times10^6. With the default iteration limit, 10.7 % of operating points fail to converge; with 100 iterations, 3.8 % still fail. Failures are numerical rather than physical. A stalled point sat within 0.1 % of its answer, locked in a cycle at the transition station. A single failure can corrupt every later point of a sweep, while converged solutions show no hysteresis. Changing the Newton step limiter alone made matters worse, but restoring the last converged state and re-approaching the target in smaller steps cut failures from 72 to 28 of 1908 points. The study further shows that drag varies by ±10 % over a plausible range of the transition parameter NcritN_{crit}, and that the drag slope carries a 20–30 % saw-tooth from discrete transition. XFOIL also keeps returning converged answers above the critical Mach number, and finite-difference gradients through its five-decimal output are wrong by more than 100 % at relative steps of 10−310^{-3} and below. Sixteen improvements are proposed, from state restoration, residual-based globalisation and smooth transition to adjoint sensitivities and a re-entrant library interface. A two-element panel study shows that potential-flow methods capture Smith’s circulation and dumping effects (the flap multiplies the main element’s lift 3.7-fold at 20∘20^\circ). However, they predict ever-rising lift and a zero optimum gap, and they cannot represent confluent boundary layers or wake bursting. Panel methods are therefore suitable for sizing multi-element airfoils but not for their maximum lift, which needs MSES-class or RANS methods.

Index Terms—XFOIL, airfoil analysis, viscous–inviscid interaction, integral boundary layer, panel method, eNe^N transition, Newton method, convergence, continuation, adjoint, airfoil optimization, MSES, RFOIL, mfoil, NeuralFoil, multi-element airfoil, high lift, wake bursting.

Nomenclature

Symbol Meaning
CdC_d, Cd,fC_{d,f}, Cd,pC_{d,p} Section drag; friction and pressure parts
CDC_D Boundary-layer dissipation coefficient
CfC_f Skin-friction coefficient
ClC_l, CmC_m Section lift and moment coefficients
CpC_p, Cp*C_p^* Pressure coefficient; sonic value
CτC_\tau, Cτ,eqC_{\tau,eq} Maximum shear-stress coefficient; equilibrium value
DijD_{ij} Mass-defect influence matrix
HH, HkH_k Shape parameter δ*/θ\delta^*/\theta; kinematic shape parameter
H*H^*, H**H^{**} Kinetic-energy and density-flux shape parameters
MM, MeM_e, McrM_{cr} Free-stream, edge and critical Mach numbers
mm Mass defect ueδ*u_e\delta^*
NN, NcritN_{crit} Number of panel nodes; critical amplification exponent
ñ\tilde n Amplification exponent of Tollmien–Schlichting waves
ReRe, ReθRe_\theta Chord and momentum-thickness Reynolds numbers
𝐑\mathbf R, 𝐔\mathbf U Residual vector; vector of boundary-layer unknowns
TuTu Free-stream turbulence intensity
ueu_e, UsU_s Edge velocity; normalised wall slip velocity
α\alpha Angle of attack
γ\gamma, σ\sigma Panel vortex and source strengths
δ\delta, δ*\delta^*, θ\theta Boundary-layer, displacement and momentum thicknesses
δf\delta_f Flap deflection
ξ\xi Arc length from the stagnation point
Ψ\Psi, Ψ0\Psi_0 Stream function; its surface value
ω\omega Newton under-relaxation factor

1. Introduction

More than 35 years after its first version, XFOIL [1] remains the reference tool for the analysis and design of subsonic airfoils. It is used to design sailplane, model-aircraft, propeller, UAV, wind-turbine and marine-turbine sections [2], [3]. It is taught in aerodynamics courses everywhere. It sits inside XFLR5, QBlade and a family of optimisers, and its outputs are the training data for machine-learned surrogates such as NeuralFoil [4]. Yet its authors declared it frozen in 2000 [5]. Its numerics date from 1987–1996, and its users have long worked around convergence failures, “jagged” polars and an ill-defined transition parameter.

This paper asks three questions.

  1. Where did XFOIL come from, and where does it stand today? Section 2 traces its origin in the ISES code and the MIT Daedalus project and its evolution to version 6.99. Section 4 surveys the current official code and its branches: ports, physics modifications, re-implementations and surrogates.
  2. What exactly limits its results and its convergence, and how can it be improved, including for optimisation? Section 3 sets out the full governing equations, so that each weakness can be traced to a specific term. Section 5 measures those weaknesses with more than 13 000 XFOIL runs: convergence statistics, anatomy of a failure, failure propagation, panel and solver sensitivity, transition-parameter sensitivity, the compressibility limit and the smoothness of the outputs. Section 6 proposes sixteen improvements tied to that evidence.
  3. Can the panel-method approach be extended to multi-element airfoils? Section 7 answers this with the physics of high-lift systems and a two-element panel computation.

Section 8 gives practical guidance for current users, Section 9 a prioritised roadmap and Section 10 the conclusions. The experiments use the unmodified XFOIL 6.99 source, two small instrumented variants and an independent multi-element panel code. All scripts and results are listed in the Appendix so that every number can be reproduced.

2. A Short History of XFOIL

2.1 Before XFOIL

By the early 1980s, airfoil designers had two kinds of tool. Panel methods, descended from the Hess–Smith source method [6], gave accurate inviscid pressure distributions for arbitrary shapes in seconds. Viscous effects were added afterwards by marching a boundary-layer method along the inviscid pressure distribution and, at best, iterating the displacement effect back into the panel solution. Eppler’s code [7] combined conformal-mapping design with integral boundary-layer analysis and became the standard for laminar sections. However, its boundary layer did not feed back into the pressure distribution, so it could not resolve separation bubbles or trailing-edge separation self-consistently. “Direct” coupling (inviscid solution gives ueu_e, boundary layer gives δ*\delta^*) diverges at separation, where the boundary-layer equations become singular in that direction. “Inverse” and “semi-inverse” schemes [8] removed the singularity but converged slowly.

2.2 ISES, Daedalus and XFOIL 1.0

Mark Drela’s doctoral work at MIT produced ISES, a two-dimensional Euler solver on a streamline grid, fully coupled to integral boundary-layer equations and solved by a single global Newton method [9], [10]. The key idea was to treat boundary-layer and inviscid unknowns as one nonlinear system. That removed the direct/inverse distinction and gave quadratic convergence through separation bubbles and mild trailing-edge separation. The ISES boundary-layer formulation introduced the closures, the lag equation and the envelope eNe^N transition model of Section 3. It was published with Giles in 1987 [10].

The immediate application was the MIT Daedalus human-powered aircraft. Its wing operated at chord Reynolds numbers of a few hundred thousand, where laminar separation bubbles dominate drag. Drela designed the DAI series of airfoils for it [11]. In April 1988, Daedalus 88 flew 115 km from Crete to Santorini, a human-powered distance record.

XFOIL 1.0 was written by Drela in 1986. Its stated aim was to combine the speed and accuracy of a high-order panel method with the fully coupled viscous–inviscid method of ISES, inside a fully interactive program rather than a batch CFD code [5]. Inverse design modes were added early. These were a full-inverse mode based on conformal mapping (QDES) and a mixed-inverse mode that modifies the panel solution locally (MDES). A geometry manipulator (GDES) followed, making XFOIL an airfoil development system rather than an analysis code. The method was presented at the 1989 Notre Dame conference on low-Reynolds-number aerodynamics [1], and the blunt-trailing-edge extension followed the same year [12].

2.3 Evolution to Version 6.99

Table 1 lists the documented milestones, taken from the version notes and source comments distributed with the code. Two points stand out. First, the core numerics were essentially complete by 1994–1996: the boundary-layer formulation was aligned with that of MSES in version 6.3, and the second-order transition treatment and low-Reynolds-number limiters arrived in 6.4. Second, the authors declared version 6.9 “frozen” in February 2000. Their user guide states that no further development was planned and that method extensions would go into a completely new code [5]. Version 6.91 (December 2000) was the first web release under the GNU General Public License. Later versions mainly fixed bugs and improved usability. Harold Youngren’s Xplot11 graphics library and polar-plotting work were incorporated along the way.

Table 1. Milestones of XFOIL development (from [5], [13] and source comments).
Date Version Milestone
1985–87 ISES Fully coupled Euler/integral-BL Newton method [9], [10]
1986 1.0 Linear-vorticity panel method + ISES boundary layer; interactive
1988 — Daedalus airfoils (DAI series) designed [11]
1989 — Method paper [1]; blunt trailing edge [12]
Apr 1994 6.1 New plot library; optional second-order amplification equation
Oct 1994 6.3 Viscous formulation brought into line with MSES 2.6 (single-layer wake)
Dec 1994 6.4 Second-order transition (TRCHEK2) made default; low-ReθRe_\theta limiters, valid down to Re≈103Re \approx 10^3
Aug 1996 6.8 Better conditioning for sharp trailing edges with large angles
Nov 1996 — Modified envelope amplification rate (DAMPL2) added as an option
Feb 2000 6.9 “New and final” features; sharp-TE regularity condition; code declared frozen
Dec 2000 6.91 First web release under GPL
2001–08 6.92–6.98 Polar plotting, Windows builds, BL plotting, bug fixes
Jun/Dec 2013 6.99 Drag-to-edit inverse modes; LAG command exposes lag constants
Jan 2026 6.996 Source update for Unix listed on the MIT page [13]

2.4 Why It Endured

Several features explain why XFOIL survived so long. It was free, and from 2000 open. It ran interactively on any machine. It predicted laminar separation bubbles, transition and drag with an accuracy that matched wind-tunnel data closely in the attached and mildly separated regime. And it combined analysis, inverse design and geometry editing in one program. Its global Newton solver was more robust than the alternatives of its day for a difficult, stiff problem [3]. Generations of students learned airfoil aerodynamics with it. Sailplane, model-aircraft, propeller, wind-turbine, UAV and marine-turbine airfoils have been designed with it [2], [3]. Its predictions have even become the training data for machine-learned surrogates [4].

3. The XFOIL Formulation: Governing Equations

This section sets out the complete equation set that XFOIL 6.99 solves. The notation follows [1], [10] and the source code of version 6.99 (files xpanel.f, xblsys.f, xbl.f and xsolve.f), from which every constant below has been checked. Fidkowski’s re-derivation [3] uses the same models and is a useful companion. The equations are needed later, because almost every improvement proposed in Section 6 is a change to one identifiable part of this system.

3.1 Inviscid Flow: Linear-Vorticity Stream-Function Panel Method

The airfoil surface is discretised into NN nodes (xi,yi)(x_i, y_i) ordered from the upper trailing edge, round the leading edge, to the lower trailing edge. Each panel carries a vortex sheet whose strength γ\gamma varies linearly between nodes, and (for the viscous solution) a constant-strength source sheet σ\sigma. The wake is a further NwN_w panels carrying source only. The stream function at any field point is

Ψ(x,y)=u∞y−v∞x+12π∮γ(s)lnr(s;x,y)ds+12π∫σ(s)θ(s;x,y)ds(1)\begin{aligned}\Psi(x,y) ={}& u_\infty y - v_\infty x + \frac{1}{2\pi}\oint \gamma(s)\,\ln r(s;x,y)\,ds\\ &+ \frac{1}{2\pi}\int \sigma(s)\,\theta(s;x,y)\,ds\end{aligned} \qquad\text{(1)}

where u∞=Q∞cosαu_\infty = Q_\infty\cos\alpha, v∞=Q∞sinαv_\infty = Q_\infty\sin\alpha, and rr and θ\theta are the distance and angle from the sheet element to the field point. The surface is made a streamline by requiring the stream function at every node to equal a single unknown constant Ψ0\Psi_0:

∑j=1Naijγj−Ψ0=−u∞yi+v∞xi−∑j=1N+Nw−1bijσj,i=1,…,N(2)\begin{aligned}\sum_{j=1}^{N} a_{ij}\gamma_j - \Psi_0 ={}& -u_\infty y_i + v_\infty x_i - \sum_{j=1}^{N+N_w-1} b_{ij}\sigma_j ,\\ & i = 1,\dots,N\end{aligned} \qquad\text{(2)}

The influence coefficients follow in closed form. For the panel from node jj to node j+1j+1, let the field point have coordinates (x1,y‾)(x_1, \bar y) in a frame aligned with the panel and centred on node jj, and (x2,y‾)(x_2, \bar y) in the same frame centred on node j+1j+1. With rk2=xk2+y‾2r_k^2 = x_k^2 + \bar y^2, gk=lnrk2g_k = \ln r_k^2 and tk=atan2(y‾,xk)t_k = \operatorname{atan2}(\bar y, x_k), the vortex panel contributes

Ψj=14π[(γj+γj+1)Ψ++(γj+1−γj)Ψ−],(3)\Psi_j = \frac{1}{4\pi}\Big[(\gamma_j + \gamma_{j+1})\,\Psi^{+} + (\gamma_{j+1} - \gamma_j)\,\Psi^{-}\Big] , \qquad\text{(3)}

Ψ+=12x1g1−12x2g2+x2−x1+y‾(t1−t2),Ψ−=(x1+x2)Ψ++12(r22g2−r12g1+x12−x22)x1−x2.\begin{aligned}\Psi^{+} &= \tfrac12 x_1 g_1 - \tfrac12 x_2 g_2 + x_2 - x_1 + \bar y\,(t_1 - t_2),\\ \Psi^{-} &= \frac{(x_1 + x_2)\Psi^{+} + \tfrac12\left(r_2^2 g_2 - r_1^2 g_1 + x_1^2 - x_2^2\right)}{x_1 - x_2} .\end{aligned}

Ψ+\Psi^{+} is the stream function of a uniform sheet and Ψ−\Psi^{-} that of the linearly varying part. The source panels have analogous expressions (each split into two half-panels with linear variation), XFOIL also codes the derivatives of these expressions analytically to obtain velocities. Extending that hand-differentiation to the node coordinates is the main step needed for the geometric sensitivities discussed in Section 6.3.

The Kutta condition closes the system:

γ1+γN=0.(4)\gamma_1 + \gamma_N = 0 . \qquad\text{(4)}

For a finite-thickness (blunt) trailing edge, the gap between nodes NN and 11 is closed by a panel carrying both source and vorticity whose strengths are set from γ1\gamma_1 and γN\gamma_N and the bisector geometry. For a sharp trailing edge, the equation at node NN is redundant. Since version 6.9 it has been replaced by the requirement that the velocity component along the bisector vanishes at an internal point one-tenth of the smallest panel length ahead of the trailing edge [5]. That change removed a long-standing source of noise in sharp-trailing-edge solutions.

Because aija_{ij} depends only on geometry, the (N+1)×(N+1)(N+1)\times(N+1) system (2)–(4) is factorised once. Solutions for α=0∘\alpha = 0^\circ and 90∘90^\circ are superposed for any other angle:

γi(α)=γ0,icosα+γ90,isinα.(5)\gamma_i(\alpha) = \gamma_{0,i}\cos\alpha + \gamma_{90,i}\sin\alpha . \qquad\text{(5)}

The surface speed is qi=γiq_i = \gamma_i, and the lift and moment follow by integrating the surface pressure.

3.2 Compressibility Correction

XFOIL applies the Kármán–Tsien correction to the incompressible surface speeds [14]. With β=1−M∞2\beta = \sqrt{1-M_\infty^2} and λ=M∞2/(1+β)2\lambda = M_\infty^2/(1+\beta)^2,

q=qinc(1−λ)1−λ(qinc/Q∞)2,Cp=Cp,incβ+λ(1+β)Cp,inc/2.(6)\begin{aligned} q &= \frac{q_{inc}\,(1-\lambda)}{1-\lambda\left(q_{inc}/Q_\infty\right)^2},\\ C_p &= \frac{C_{p,inc}}{\beta + \lambda(1+\beta)\,C_{p,inc}/2} .\end{aligned} \qquad\text{(6)}

The correction is valid only while the flow is everywhere subsonic. It becomes singular as the local speed approaches sonic, and Section 5.8 quantifies where it breaks down.

3.3 Viscous–Inviscid Coupling Through the Mass Defect

The viscous layer displaces the outer flow. XFOIL represents this by wall transpiration, using source strengths equal to the streamwise gradient of the mass defect

m=ueδ*,σ=dmdξ,(7)m = u_e\,\delta^* , \qquad \sigma = \frac{dm}{d\xi} , \qquad\text{(7)}

where ξ\xi is arc length from the stagnation point and ueu_e the edge velocity. Since (2) is linear in σ\sigma, the edge velocity at every boundary-layer node is an explicit linear function of the mass defect at every node on the airfoil and wake:

ue,i=ue,iinv+∑j=1N+NwDijmj.(8)u_{e,i} = u_{e,i}^{inv} + \sum_{j=1}^{N+N_w} D_{ij}\, m_j . \qquad\text{(8)}

The mass-influence matrix DijD_{ij} is computed once per geometry. Equation (8) is the heart of XFOIL’s robustness. It lets the boundary-layer and inviscid problems be solved simultaneously by a single Newton method, rather than iterated in turn, which converged poorly near separation in earlier “direct” and “inverse” coupling schemes [10], [8].

3.4 Integral Boundary-Layer Equations

Each surface, and the single wake, is described by three ordinary differential equations in ξ\xi. The von Kármán momentum integral equation is

ξθdθdξ+(2+H−Me2)ξueduedξ=ξθCf2.(9)\frac{\xi}{\theta}\frac{d\theta}{d\xi} + \left(2 + H - M_e^2\right)\frac{\xi}{u_e}\frac{du_e}{d\xi} = \frac{\xi}{\theta}\,\frac{C_f}{2} . \qquad\text{(9)}

The kinetic-energy (shape-parameter) equation is obtained by combining the kinetic-energy integral with (9):

ξH*dH*dξ+(2H**H*+1−H)ξueduedξ=ξθ(2CDH*−Cf2).(10)\begin{aligned}\frac{\xi}{H^*}\frac{dH^*}{d\xi} &+ \left(\frac{2H^{**}}{H^*} + 1 - H\right)\frac{\xi}{u_e}\frac{du_e}{d\xi}\\ &= \frac{\xi}{\theta}\left(\frac{2C_D}{H^*} - \frac{C_f}{2}\right) .\end{aligned} \qquad\text{(10)}

Here θ\theta, δ*\delta^* and θ*\theta^* are the momentum, displacement and kinetic-energy thicknesses. H=δ*/θH = \delta^*/\theta and H*=θ*/θH^* = \theta^*/\theta are shape parameters, H**=δ**/θH^{**} = \delta^{**}/\theta is the density-flux shape parameter, CfC_f the skin-friction coefficient and CDC_D the dissipation coefficient. The third equation depends on the state of the layer. In laminar flow it is the amplification equation for the envelope of Tollmien–Schlichting wave growth

dñdξ=dñdξ(Hk,θ,Reθ).(11)\frac{d\tilde n}{d\xi} = \frac{d\tilde n}{d\xi}\left(H_k, \theta, Re_\theta\right) . \qquad\text{(11)}

In turbulent flow and in the wake it is the shear-lag equation, which carries the maximum shear-stress coefficient CτC_\tau as a lagged response to its equilibrium value, after Green’s lag-entrainment method [15]:

2δCτdCτdξ=KCGB(1+Us)(Cτ,eq−λDCτ)+2δ(uq−1ueduedξ).(12)\begin{aligned}\frac{2\delta}{\sqrt{C_\tau}}\frac{d\sqrt{C_\tau}}{d\xi} ={}& \frac{K_C}{G_B\,(1+U_s)}\left(\sqrt{C_{\tau,eq}} - \lambda_D\sqrt{C_\tau}\right)\\ &+ 2\delta\left(u_q - \frac{1}{u_e}\frac{du_e}{d\xi}\right) .\end{aligned} \qquad\text{(12)}

The constants are KC=5.6K_C = 5.6 and GB=0.75G_B = 0.75. The dissipation-length factor is λD=1\lambda_D = 1 on the airfoil and 0.90.9 in the wake. The equilibrium-gradient term is

uq=1GBδ*[Cf2−(Hk−1−GC/ReθGAλDHk)2],(13)u_q = \frac{1}{G_B\,\delta^*}\left[\frac{C_f}{2} - \left(\frac{H_k - 1 - G_C/Re_\theta}{G_A\,\lambda_D\,H_k}\right)^{2}\right] , \qquad\text{(13)}

with GA=6.7G_A = 6.7, and GC=18G_C = 18 on the airfoil and 00 in the wake. XFOIL 6.99 added a LAG command that lets the user change KCK_C and λD\lambda_D [5]. That is the only closure constant exposed to the user.

The equations are discretised between adjacent nodes “1” and “2” with logarithmic differences. For example, the momentum residual is

Rθ=lnθ2θ1+(2+H‾−M‾e2)lnue2ue1−ξ‾θ‾C‾f2lnξ2ξ1=0,(14)\begin{aligned}R_\theta = \ln\frac{\theta_2}{\theta_1} &+ \left(2 + \bar H - \bar M_e^2\right)\ln\frac{u_{e2}}{u_{e1}}\\ &- \frac{\bar\xi}{\bar\theta}\,\frac{\bar C_f}{2}\,\ln\frac{\xi_2}{\xi_1} = 0 ,\end{aligned} \qquad\text{(14)}

where overbars denote interval averages. In regions of rapid change (typically just after transition), XFOIL automatically biases these averages towards the downstream node. This adds the minimum upwinding needed to suppress the oscillations that the second-order trapezoidal scheme otherwise produces [5].

3.5 Closure Relations

The kinematic shape parameter HkH_k removes the density-profile effect from HH, and H**H^{**} follows from it:

Hk=H−0.29Me21+0.113Me2,H**=(0.064Hk−0.8+0.251)Me2.(15)\begin{aligned} H_k &= \frac{H - 0.29M_e^2}{1 + 0.113M_e^2},\\ H^{**} &= \left(\frac{0.064}{H_k - 0.8} + 0.251\right)M_e^2 .\end{aligned} \qquad\text{(15)}

Laminar closures are fits to the Falkner–Skan profile family [10]. With H̃=Hk−4.35\tilde H = H_k - 4.35,

H*=1.528+{0.0111H̃2−0.0278H̃3Hk+1−0.0002(H̃Hk)2,Hk<4.35,0.015H̃2/Hk,Hk≥4.35,(16)H^* = 1.528 + \begin{cases} \dfrac{0.0111\tilde H^2 - 0.0278\tilde H^3}{H_k + 1}\\ \quad - 0.0002\left(\tilde H H_k\right)^2, & H_k < 4.35,\\[2mm] 0.015\,\tilde H^2/H_k, & H_k \ge 4.35, \end{cases} \qquad\text{(16)}

ReθCf={0.0727(5.5−Hk)3Hk+1−0.07,Hk<5.5,0.015(1−1Hk−4.5)2−0.07,Hk≥5.5,(17)Re_\theta\, C_f = \begin{cases} 0.0727\,\dfrac{(5.5 - H_k)^3}{H_k + 1} - 0.07, & H_k < 5.5,\\[2mm] 0.015\left(1 - \dfrac{1}{H_k - 4.5}\right)^2 - 0.07, & H_k \ge 5.5, \end{cases} \qquad\text{(17)}

Reθ2CDH*={0.00205(4−Hk)5.5+0.207,Hk<4,0.207−0.0016(Hk−4)21+0.02(Hk−4)2,Hk≥4.(18)Re_\theta\,\frac{2C_D}{H^*} = \begin{cases} 0.00205\,(4 - H_k)^{5.5} + 0.207, & H_k < 4,\\[2mm] 0.207 - \dfrac{0.0016\,(H_k - 4)^2}{1 + 0.02\,(H_k - 4)^2}, & H_k \ge 4. \end{cases} \qquad\text{(18)}

Turbulent closures are fits to Swafford’s velocity profiles and to equilibrium-layer data. The skin friction is

FcCf=0.3e−1.33Hk(ln(Reθ/Fc)ln10)−1.74−0.31Hk+1.1×10−4[tanh(4−Hk0.875)−1],(19)\begin{aligned} F_c\,C_f ={}& 0.3\,e^{-1.33H_k}\left(\frac{\ln(Re_\theta/F_c)}{\ln 10}\right)^{-1.74 - 0.31H_k}\\ &+ 1.1\times10^{-4}\left[\tanh\!\left(4 - \frac{H_k}{0.875}\right) - 1\right] ,\end{aligned} \qquad\text{(19)}

with Fc=1+12(γ−1)Me2F_c = \sqrt{1 + \tfrac12(\gamma-1)M_e^2}. The kinetic-energy shape parameter is defined about H0=min(3+400/Reθ,4)H_0 = \min(3 + 400/Re_\theta,\ 4), with Rez=max(Reθ,200)Re_z = \max(Re_\theta, 200):

Hinc*=1.5+4Rez+(0.5−4Rez)(H0−HkH0−1)21.5Hk+0.5,Hk<H0,Hinc*=1.5+4Rez+(Hk−H0)2×[0.007lnRez(Hk−H0+4/lnRez)2+0.015Hk],Hk≥H0,(20)\begin{aligned} H^*_{inc} ={}& 1.5 + \frac{4}{Re_z} + \left(0.5 - \frac{4}{Re_z}\right)\left(\frac{H_0 - H_k}{H_0 - 1}\right)^2\frac{1.5}{H_k + 0.5}, && H_k < H_0,\\ H^*_{inc} ={}& 1.5 + \frac{4}{Re_z} + (H_k - H_0)^2\\ &\times\left[\frac{0.007\ln Re_z}{\left(H_k - H_0 + 4/\ln Re_z\right)^2} + \frac{0.015}{H_k}\right], && H_k \ge H_0,\end{aligned} \qquad\text{(20)}

and H*=(Hinc*+0.028Me2)/(1+0.014Me2)H^* = (H^*_{inc} + 0.028M_e^2)/(1 + 0.014M_e^2). The turbulent dissipation is the sum of a wall-layer part, an outer-layer part driven by the lagged shear stress, and a small laminar-stress part:

CD=Cf2Us1+tanh(Hk−1Hmin−1)2+Cτ(0.995−Us)+0.15(0.995−Us)2Reθ,(21)\begin{aligned} C_D ={}& \frac{C_f}{2}U_s\,\frac{1+\tanh\!\left(\frac{H_k-1}{H_{min}-1}\right)}{2}\\ &+ C_\tau\left(0.995 - U_s\right) + \frac{0.15\,(0.995 - U_s)^2}{Re_\theta} ,\end{aligned} \qquad\text{(21)}

with Hmin=1+2.1/lnReθH_{min} = 1 + 2.1/\ln Re_\theta. The wall term is omitted in the wake. In both cases the result is not allowed to fall below the laminar value. The normalised wall slip velocity and the equilibrium shear stress are

Us=H*2(1−Hk−1GBH),Cτ,eq=H*2GA2GB(Hk−1)(Hk−1−GC/Reθ)2(1−Us)HHk2,(22)\begin{aligned} U_s &= \frac{H^*}{2}\left(1 - \frac{H_k - 1}{G_B H}\right),\\ C_{\tau,eq} &= \frac{H^*}{2G_A^2G_B}\,\frac{(H_k - 1)\left(H_k - 1 - G_C/Re_\theta\right)^2}{(1 - U_s)\,H\,H_k^2} ,\end{aligned} \qquad\text{(22)}

with Us≤0.98U_s \le 0.98 on the airfoil and Us≤0.99995U_s \le 0.99995 in the wake. The boundary-layer thickness used in (12) is δ=min[(3.15+1.72/(Hk−1))θ+δ*,12θ]\delta = \min\left[(3.15 + 1.72/(H_k - 1))\,\theta + \delta^*,\ 12\theta\right]. In the wake Cf=0C_f = 0, and the wake thickness includes the trailing-edge gap, decaying downstream over about 2.52.5 gap heights for a blunt trailing edge [12].

3.6 Transition: the Simplified eNe^N Envelope Method

Transition is predicted by integrating (11) from the instability point. XFOIL does not track individual frequencies. Instead, it uses an envelope of the Orr–Sommerfeld amplification curves of the Falkner–Skan family, expressed in terms of HkH_k and ReθRe_\theta only [10]. With ĥ=1/(Hk−1)\hat h = 1/(H_k - 1), the critical (instability) Reynolds number is

log10Reθ,0=2.492ĥ0.43+0.7[tanh(14ĥ−9.24)+1],(23)\log_{10}Re_{\theta,0} = 2.492\,\hat h^{0.43} + 0.7\left[\tanh\left(14\hat h - 9.24\right) + 1\right] , \qquad\text{(23)}

and the amplification rate above it is

dñdξ=rθ[0.028(Hk−1)−0.0345e−(3.87ĥ−2.52)2]×[−0.05+2.7ĥ−5.5ĥ2+3ĥ3],(24)\begin{aligned}\frac{d\tilde n}{d\xi} ={}& \frac{r}{\theta}\left[0.028(H_k - 1) - 0.0345\,e^{-(3.87\hat h - 2.52)^2}\right]\\ &\times\left[-0.05 + 2.7\hat h - 5.5\hat h^2 + 3\hat h^3\right] ,\end{aligned} \qquad\text{(24)}

where rr is a cubic ramp from 0 to 1 across log10Reθ=log10Reθ,0±0.08\log_{10}Re_\theta = \log_{10}Re_{\theta,0} \pm 0.08. The first bracket is the envelope slope dñ/dReθd\tilde n/dRe_\theta and the second is 12θ(dReθ/dξ)\tfrac12\,\theta\,(dRe_\theta/d\xi) re-expressed through the Falkner–Skan relations. Transition occurs where ñ\tilde n reaches the user-set NcritN_{crit}. It is located to sub-interval accuracy, and the transition interval is split into laminar and turbulent parts whose residuals are summed. The shear stress then starts from

Cτ,tr=1.8exp(−3.3Hk−1)Cτ,eq.(25)\sqrt{C_{\tau,tr}} = 1.8\,\exp\!\left(-\frac{3.3}{H_k - 1}\right)\sqrt{C_{\tau,eq}} . \qquad\text{(25)}

Mack’s correlation [16] links NcritN_{crit} to the free-stream turbulence intensity TuTu (as a fraction):

Ncrit=−8.43−2.4lnTu,(26)N_{crit} = -8.43 - 2.4\ln Tu , \qquad\text{(26)}

so Ncrit=9N_{crit} = 9 corresponds to Tu≈0.07%Tu \approx 0.07\,\%. The user guide suggests 12–14 for sailplanes, 10–12 for a clean wind tunnel, 9 for an average tunnel and 4–8 for a “dirty” one [5].

3.7 Drag

Profile drag is taken from the far-wake momentum deficit, extrapolated from the last wake station by the Squire–Young formula [17]:

Cd=2θw(ue,wQ∞)(5+Hw)/2.(27)C_d = 2\,\theta_{w}\left(\frac{u_{e,w}}{Q_\infty}\right)^{(5 + H_w)/2} . \qquad\text{(27)}

Friction drag Cd,fC_{d,f} is integrated from CfC_f, and pressure drag is the difference Cd,p=Cd−Cd,fC_{d,p} = C_d - C_{d,f}.

3.8 The Global Newton System

At each boundary-layer station ii the unknowns are (ñ or Cτ,θ,m)i(\tilde n \text{ or } \sqrt{C_\tau},\ \theta,\ m)_i. The edge velocity is eliminated through (8). The three residuals (9), (10) and (11) or (12) at all NBLN_{BL} stations form a system of 3NBL3N_{BL} nonlinear equations. One more unknown is the angle of attack (when CLC_L is prescribed) or the Reynolds number (for “type 2” fixed-lift polars). Linearising gives

[A1B2A2⋱⋱BnAn]δ𝐔+𝐃δ𝐦=−𝐑,(28)\begin{bmatrix} A_1 & & & \\ B_2 & A_2 & & \\ & \ddots & \ddots & \\ & & B_n & A_n \end{bmatrix}\delta\mathbf{U} + \mathbf{D}\,\delta\mathbf{m} = -\mathbf{R} , \qquad\text{(28)}

where AiA_i and BiB_i are 3×33\times3 blocks from the local differencing, and the dense columns 𝐃\mathbf{D} carry the mass-defect influence of every station on every other. A special block couples the two trailing-edge stations to the first wake station. The custom solver BLSOLV performs block Gaussian elimination that exploits this structure. Mass-influence entries smaller than a threshold VACCEL (default 0.01) are dropped during elimination to save work. That speeds up each iteration but makes the Newton step approximate.

The Newton update is under-relaxed by a single global factor ω≤1\omega \le 1, chosen so that no normalised change exceeds fixed bounds:

ωΔθθ,ωΔδ*δ*,ωΔCτCτ,ωΔñ10,ω|Δue|0.25∈[−0.5,1.5],(29)\omega\,\frac{\Delta\theta}{\theta},\ \omega\,\frac{\Delta\delta^*}{\delta^*},\ \omega\,\frac{\Delta C_\tau}{C_\tau},\ \omega\,\frac{\Delta\tilde n}{10},\ \omega\,\frac{|\Delta u_e|}{0.25} \in [-0.5,\ 1.5] , \qquad\text{(29)}

and with limits of ±0.5\pm0.5 on the change in CLC_L, or ±0.5∘\pm0.5^\circ on the change in α\alpha, per iteration. After the update, HkH_k is clipped to at least 1.02 on the airfoil and 1.00005 in the wake, and “islands” of negative ueu_e are removed. Convergence is declared when the RMS of the normalised changes falls below 10−410^{-4}. If this has not happened within the user’s iteration limit (ITER, default 20), XFOIL reports “Convergence failed” and keeps the unconverged state as the starting point for the next request.

3.9 Design Modes

XFOIL’s two inverse modes reuse the same machinery. In the full-inverse mode (QDES), the airfoil is the conformal image of a circle, and the user prescribes the surface speed qs(ϕ)q_s(\phi) as a function of the circle angle at one angle of attack. A prescribed speed does not in general give a closed airfoil in a uniform stream. Lighthill showed that three integral constraints must hold [18], so XFOIL adds free parameters to qsq_s and solves for them together with the mapping coefficients. In the mixed-inverse mode (MDES), only a segment of the surface is redesigned. On that segment the vortex strength is prescribed,

γi=qs,i+A1f1(si)+A2f2(si),(30)\gamma_i = q_{s,i} + A_1 f_1(s_i) + A_2 f_2(s_i) , \qquad\text{(30)}

and the normal displacements δni\delta n_i of the nodes become the unknowns instead of γi\gamma_i. The two shape functions f1,f2f_1, f_2 with free amplitudes A1,A2A_1, A_2 allow the new contour to join the fixed one with continuous slope at both ends. The stream-function equations (2) are linearised in δni\delta n_i and solved by Newton iteration. Both modes are inviscid. The designer shapes the inviscid speed distribution so that the viscous solution, checked afterwards in OPER, behaves well. This is the “design by pressure distribution” workflow for which XFOIL was built [19]. It is still the fastest way to tailor a laminar bucket or a pressure recovery, and it complements the black-box optimisation discussed in Section 6.3.

Structure of one XFOIL viscous operating point: the panel solution and the mass-influence matrix are formed once per geometry; each Newton iteration assembles t
Figure 1. Structure of one XFOIL viscous operating point: the panel solution and the mass-influence matrix are formed once per geometry; each Newton iteration assembles the boundary-layer residuals, solves the block system by BLSOLV, applies the relaxation rule (29) and updates the edge velocity by (8).Chart by the author

Fig. 1 summarises the solution flow. Two features matter for what follows. First, the method is a pure Newton method with a crude step limiter and no globalisation (line search, trust region or continuation). Robustness therefore depends heavily on the starting guess, which is usually the previous converged point. Second, the Jacobian of all residuals with respect to all unknowns, including α\alpha, is formed exactly at every iteration. Its LU factors are available at convergence, so the sensitivities of ClC_l, CdC_d and CmC_m to any input are almost free. XFOIL itself never exploits this, but MSES does [20].

4. Current Status and Branches

4.1 The Official Code

The MIT XFOIL page still offers version 6.99 (source and a Windows build), the older 6.97, and a 6.996 Unix source update listed in January 2026 [13]. The code remains Fortran 77 with global COMMON blocks. It is interactive by design, driven from a menu at a text prompt, with X11 graphics, and it is distributed under the GPL. Linux distributions package it with small patches. The Debian/Ubuntu package used for this study applies fixes for modern gfortran compilers. Its default build traps floating-point exceptions, which made batch runs abort on the very first viscous point here (Section 5). A user who wants XFOIL as a library (callable from Python, thread-safe, without disk I/O) must therefore turn to a derivative.

4.2 Derivatives and Re-Implementations

Over 35 years, four kinds of descendant have appeared (Table 2, Fig. 2).

  • Ports that keep the solver and add an interface. XFLR5 translated XFOIL’s analysis and inverse-design routines into C++ inside a Qt application, adding wing and aircraft analyses by lifting-line, vortex-lattice and panel methods [21]. Its successor flow5, described by its author as version 7 of XFLR5, became public and open source on 1 January 2026 [22]. QBlade embeds the XFLR5 implementation for wind-turbine work. libxfoil moves XFOIL’s global variables into a structure so that several independent instances can run in parallel, with C, Fortran and Python bindings [23]. Several Python packages link the Fortran routines directly to avoid file I/O [24]. Browser ports compile XFOIL to WebAssembly or re-implement it in Rust or JavaScript. Flexcompute’s Rust core is being released under the GPL with Drela’s approval [25], and Vibefoil describes itself as a numerically faithful JavaScript port.
  • Branches that change the physics. RFOIL, developed at TU Delft with ECN (now TNO) from 1995–96, modified the turbulent closure and shear-lag treatment to improve prediction around maximum lift. It also added a rotational (stall-delay) model for wind-turbine blades [26], [2]. A 2026 extension, RFOILVogue, adds a vortex-generator source term to the integral equations [27]. QFoil, distributed with QBlade, is a modified XFOIL 6.99 [28]. It tightens the Newton relaxation. The global under-relaxation starts at 0.7 instead of 1.0, the bounds in (29) narrow from [−0.5,1.5][-0.5,1.5] to [−0.4,1.0][-0.4,1.0], and the per-iteration lift change is limited to ±0.15\pm0.15 instead of ±0.5\pm0.5. It also makes the lag constant a function of HkH_k, KC=4.65−0.95tanh[0.5(Hk−3.5)]K_C = 4.65 - 0.95\tanh[0.5(H_k - 3.5)], divides the wake dissipation length by four in the RFOIL manner, and adds a post-stall correction to the Squire–Young drag.
  • Independent re-implementations of the same model. Fidkowski’s mfoil (Matlab and Python, MIT licence) re-derives XFOIL’s equations in a single readable class [3], [29]. It changes the solver in instructive ways: an augmented state that includes Ψ0\Psi_0 for better control of the update, a stagnation-point treatment that suppresses leading-edge oscillations of HkH_k, a small positive term that keeps dñ/dξd\tilde n/d\xi from stalling near NcritN_{crit}, re-marching of the transition location after each update, and an angle-of-attack continuation strategy. Viiflow solves the boundary layer in inverse form with a Newton coupling and reports better run times than XFOIL at high panel counts [30]. Xfoil.jl (in FLOWFoil.jl) re-derives the inviscid part in Julia.
  • Surrogates trained on XFOIL. NeuralFoil is a physics-informed neural network trained on millions of XFOIL runs [4]. Its authors report a mean relative drag error of 0.37 % against XFOIL on simple cases and 2.0 % on a harder test set with post-stall and transitional cases. They also report speed-ups of 8 to 1000 times at equal accuracy and, importantly for optimisation, smooth outputs with no convergence failures. It is the aerodynamic engine of AeroSandbox [31]. Section 5.10 compares it with XFOIL on the test matrix of this study.

Optimisation front-ends form a fifth, parallel family. Xoptfoil [32] and its successor Xoptfoil2 [33] wrap XFOIL in particle-swarm, genetic and simplex optimisers with Hicks–Henne or Bézier shape functions. Their features include “retry of unconverged operating points” and “outlier detection of XFOIL results”, which show that the optimisation community has had to engineer around XFOIL’s convergence behaviour (Section 5.9).

Table 2. Main XFOIL descendants and related codes (status November 2026).
Code Language Licence Relation to XFOIL Main change
XFOIL 6.99/6.996 Fortran 77 GPL Original —
XFLR5 / flow5 C++/Qt GPL-3 Port of solver GUI, 3-D wing and plane analyses
QBlade / QFoil C++ / Fortran GPL Port / modified 6.99 Robust relaxation, HkH_k-dependent lag, wake dissipation, post-stall drag
RFOIL / RFOILVogue Fortran In-house Modified XFOIL Stall prediction, rotation, vortex generators
libxfoil, xfoil-python Fortran + C/Python GPL Library wrappers Re-entrant, no disk I/O
Flexcompute Foil, Vibefoil Rust/WASM, JavaScript GPL (core) Faithful ports Browser, real-time visualisation
mfoil Matlab, Python MIT Re-implementation Augmented state, stagnation fix, continuation
Viiflow Python — Independent VII Inverse BL coupling, speed
NeuralFoil / AeroSandbox Python/NumPy MIT Trained on XFOIL Smooth, vectorised, differentiable surrogate
Xoptfoil / Xoptfoil2 Fortran GPL Optimiser around XFOIL PSO/GA, retry and outlier logic
MSES Fortran Licensed Sister code Euler + IBL, multi-element, transonic, sensitivities
Timeline of XFOIL and the main codes derived from, or built around, it. Dates are first public appearance where known.
Figure 2. Timeline of XFOIL and the main codes derived from, or built around, it. Dates are first public appearance where known.Chart by the author

4.3 MSES, the Sister Code

MSES is Drela’s multi-element and transonic system. It couples a streamline-grid Euler solver to the same integral boundary-layer formulation and solves the whole system by Newton’s method [20]. It predicts transitional separation bubbles, shocks and shock-induced separation, and its force predictions are described as accurate to just past stall. It also provides parameter sensitivities, which its LINDOP module uses for single- and multi-point optimisation [20]. MSES is licensed rather than open. It is the reference point for Section 7, because it shows what the XFOIL boundary-layer model can do once the inviscid part is no longer limited to a single panel-method body.

4.4 What Has Not Changed

Despite this activity, the core of every open derivative is still the 1987–1996 boundary-layer formulation of Section 3. Its transition model is still the simplified envelope method with a single NcritN_{crit}, its global solver still uses a fixed-bound step limiter, and no open derivative exposes the analytic sensitivities that the Newton Jacobian makes available. The next section measures the consequences of these choices, and Section 6 proposes remedies.

5. Where XFOIL Falls Short: Numerical Evidence

The weaknesses of XFOIL are often described anecdotally (“it doesn’t converge near stall”, “drag is noisy”). This section measures them with XFOIL 6.99 itself, so that each proposed improvement in Section 6 rests on a reproducible observation.

5.1 Test Set-Up

XFOIL 6.99 was compiled from the Debian source package with gfortran in double precision, with floating-point trapping disabled. (The distribution binary, which traps floating-point exceptions, aborted on its first viscous point.) A Python driver talks to the unmodified program through its text interface, waiting for each prompt, and parses the iteration history, coefficients and transition locations of every point. Two instrumented builds were also made. One prints ClC_l and CdC_d to full double precision; the other offers two alternative relaxation rules, selected by an environment variable. All scripts and data are listed in the Appendix.

The main test matrix comprises six NACA sections of different thickness and camber (0012, 0018, 2412, 4412, 23012 and the thin, highly cambered 6409), six chord Reynolds numbers (5×1045\times10^4, 10510^5, 2×1052\times10^5, 5×1055\times10^5, 10610^6, 3×1063\times10^6), and angles of attack from −6∘-6^\circ to 20∘20^\circ in 0.5∘0.5^\circ steps. That gives 1908 operating points per strategy, with 160 panels, Ncrit=9N_{crit} = 9 and M=0M = 0. A point counts as converged only if XFOIL reports convergence (RMS change <10−4< 10^{-4}) with finite coefficients.

5.2 A Converged Solution in Detail

Before looking at failures, it helps to see what a successful solution contains. Fig. 3 shows NACA 4412 at Re=2×105Re = 2\times10^5 and α=4∘\alpha = 4^\circ (Cl=0.906C_l = 0.906, Cd=0.01266C_d = 0.01266, 200 panels). On the upper surface, the laminar layer separates at x/c≈0.40x/c \approx 0.40 in the adverse pressure gradient behind the suction peak. HH rises to 6.2 inside the separation bubble while CfC_f is negative. The envelope amplification reaches Ncrit=9N_{crit} = 9 at x/c=0.585x/c = 0.585. The newly turbulent layer then reattaches at x/c≈0.60x/c \approx 0.60 and HH falls rapidly to turbulent values. The lower surface stays laminar to the trailing edge. The whole bubble, which spans 20 % of the chord and dominates the drag at this Reynolds number, is captured by the integral equations of Section 3 without any special treatment. That is the main reason XFOIL is so successful at low Reynolds numbers. The figure also shows where the solution is most sensitive: Just after transition, HH falls by up to 1.35 between adjacent stations, beyond the user guide’s limit of 1.0 per station even at 200 panels. This is the region the paneling rule addresses, and it is where the failures examined below originate.

Converged XFOIL solution for NACA 4412, Re = 200 000, α = 4°: pressure distribution (left) and upper-surface shape parameter and skin friction (right), showing
Figure 3. Converged XFOIL solution for NACA 4412, Re = 200 000, α = 4°: pressure distribution (left) and upper-surface shape parameter and skin friction (right), showing laminar separation, transition inside the bubble and turbulent reattachment.Chart by the author

5.3 Convergence Statistics

Seven solution strategies were compared on the same matrix:

  • S0: a cold start at every point (boundary layers re-initialised, INIT), with 100 iterations allowed.
  • S1/20: standard continuation, as performed by ASEQ, marching from 0∘0^\circ upwards and from 0∘0^\circ downwards with XFOIL’s default limit of 20 iterations.
  • S1/100: the same continuation with 100 iterations.
  • S2: S1/100 with an adaptive step bound. The limits in (29) are halved whenever the RMS change fails to fall by 10 %, and are restored gradually otherwise.
  • S2b: S1/100 with fixed tighter limits [−0.4,1.0][-0.4, 1.0], as used in QFoil [28].
  • S3: S1/100 plus a recovery procedure. After a failed point, the solver re-converges at the last good angle (with a cold start there if necessary) and approaches the target again in 2, 4, 8 and 16 sub-steps. As a last resort it tries a cold start at the target.
  • S4: S3 combined with the adaptive bound of S2.
Percentage of the 318 operating points per Reynolds number (six airfoils × 53 angles) that converged, for the seven strategies. The default iteration limit lose
Figure 4. Percentage of the 318 operating points per Reynolds number (six airfoils × 53 angles) that converged, for the seven strategies. The default iteration limit loses up to 15 % of points; continuation with recovery (S3) converges 96.5–99.4 % at every Reynolds number.Chart by the author
Table 3. Convergence over the full matrix (1908 points per strategy).
Strategy Converged Failed Newton iterations per converged point
S0 cold start each point 93.5 % 124 22.0
S1/20 continuation, default ITER 89.3 % 204 8.3
S1/100 continuation 96.2 % 72 11.3
S2 adaptive step bound 91.9 % 155 16.7
S2b fixed tighter bounds 95.0 % 95 12.4
S3 continuation + recovery 98.5 % 28 24.5
S4 = S3 + adaptive bound 96.0 % 76 43.4

Fig. 4 and Table 3 give the results. Five observations follow.

  1. The default iteration limit is too low. With 20 iterations, more than one point in ten fails. At Re=106Re = 10^6 the failure rate reaches 15 %, most likely because transition moves rapidly forward on these sections and the first point after each jump needs more than 20 iterations. Raising the limit to 100 cuts failures from 204 to 72, at only 36 % more iterations per converged point.
  2. Continuation beats cold starts. Re-initialising the boundary layer at every point (S0) is both less reliable (93.5 %) and twice as expensive. The previous solution is a far better initial guess than XFOIL’s own marching initialisation.
  3. Changing the step limiter does not help. The adaptive bound (S2) reduced convergence to 91.9 %, and the fixed QFoil-style bounds (S2b) reduced it slightly, to 95.0 %. The reason is visible in the iteration logs. XFOIL’s RMS change is often non-monotonic during the first few iterations of a successful solve (for example 0.41, 0.42, 0.31, …), so a monotonicity test shrinks the step precisely when the iteration is about to take off. Section 6.1 argues that a proper merit function is needed instead.
  4. State management is what matters. The recovery procedure S3 converts 61 % of the remaining failures into converged points (72 → 28) and is the best strategy at every Reynolds number (Fig. 4). It costs about twice the iterations per converged point. At roughly 0.15 s per point here, that is a few seconds for a complete polar.
  5. Difficulty is concentrated. Fig. 5 shows that failures cluster at the lowest Reynolds numbers near stall and at negative angles, where laminar separation bubbles form or burst. The thin cambered NACA 6409 is the hardest section (92.5 % with S1/100, 98.4 % with S3).
Number of the six airfoils that failed to converge at each Reynolds number and angle of attack, for plain continuation (left) and continuation with recovery (ri
Figure 5. Number of the six airfoils that failed to converge at each Reynolds number and angle of attack, for plain continuation (left) and continuation with recovery (right).Chart by the author
Converged fraction (bars, left axis) and Newton iterations per converged point (hatched bars, right axis) for each strategy.
Figure 6. Converged fraction (bars, left axis) and Newton iterations per converged point (hatched bars, right axis) for each strategy.Chart by the author

5.4 Anatomy of a Failure: the Transition Station

Fig. 7 shows a typical failure in detail. The case is NACA 4412 at Re=2×105Re = 2\times10^5, approached in 0.5∘0.5^\circ steps to α=11∘\alpha = 11^\circ. The RMS change falls from 0.115 to 8.2×10−38.2\times10^{-3} in three iterations and then stays at 8.0×10−38.0\times10^{-3} for the remaining 97. XFOIL’s diagnostic shows that the largest change is always in the shear-stress/amplification variable at station 37 on the upper surface, and station 37 is exactly where transition sits (x/c=0.099x/c = 0.099). The iteration has locked into a cycle in which the transition point and the shear stress of the first turbulent station keep correcting each other. A cold restart at 11∘11^\circ converges in 12 iterations to Cl=1.3657C_l = 1.3657, Cd=0.02976C_d = 0.02976. The “failed” state (Cl=1.365C_l = 1.365, Cd=0.02978C_d = 0.02978) was already within 0.1 % of this answer. The non-smoothness of the transition treatment, not any physical difficulty, prevented convergence. A user, or an optimiser, would have discarded a correct point.

How common is this? All 72 points that failed under S1/100 were re-run while recording their final RMS, and compared with the converged answers that S3 found at the same conditions. Of the 43 failed points with a converged reference and finite coefficients, 14 (one in three) were within 1 % of the correct ClC_l and CdC_d, and 10 were within 0.1 %. Their final RMS distinguishes them well. Of the 15 failed points that ended with an RMS below 10−210^{-2}, 14 were within 1 % of the answer. The median failed point, in contrast, ended with an RMS of 0.15, and those points were genuinely wrong.

Newton RMS change for a failed point (continuation from 10.5°, stalls at 8×10−38\times10^{-3} with the largest change at the transition station) and for a cold
Figure 7. Newton RMS change for a failed point (continuation from 10.5°, stalls at 8×10−38\times10^{-3} with the largest change at the transition station) and for a cold restart at the same angle (converges in 12 iterations).Chart by the author

5.5 Failure Propagation and Path Dependence

When a point fails, XFOIL keeps the unconverged state as the starting guess for the next request. Fig. 8 shows the consequence. Each airfoil was swept up from 0∘0^\circ to 22∘22^\circ in 0.25∘0.25^\circ steps and immediately back down. For NACA 4412 at Re=2×105Re = 2\times10^5, one failure at the top of the upward sweep poisoned the solution so badly (ClC_l values near 80) that all 89 points of the downward sweep failed. For NACA 2412 at Re=5×105Re = 5\times10^5, 23 consecutive points failed before the solution recovered. NACA 0012 and 0018 at Re=106Re = 10^6 were unaffected.

Wherever both sweeps converged, the results were identical to within 10−310^{-3} in ClC_l and 2×10−52\times10^{-5} in CdC_d. XFOIL’s converged steady solutions showed no hysteresis in these cases. The path dependence users experience is therefore numerical, not physical. That is good news, because it can be removed by better state management (S3) rather than requiring a different physical model.

Upward then downward α\alpha sweeps. Converged points (dots) coincide on both sweeps; after a failure at 22°, the stored unconverged state makes every downward
Figure 8. Upward then downward α\alpha sweeps. Converged points (dots) coincide on both sweeps; after a failure at 22°, the stored unconverged state makes every downward point fail for NACA 4412 at Re = 200 000 (left) and 23 points fail for NACA 2412 at Re = 500 000 (right).Chart by the author

5.6 Panel Density and the Mass-Influence Approximation

Fig. 9 shows the sensitivity to the number of panel nodes NN. Lift is converged to 0.1 % by N≈140N \approx 140. Drag at Re=3×106Re = 3\times10^6 is under-predicted by 3.2 % at N=60N = 60, 1.9 % at N=100N = 100 and 0.8 % at N=140N = 140, and comes within 0.3 % of the N=360N = 360 value only for N≥200N \ge 200. The default of 160 nodes is therefore adequate for low Reynolds numbers but marginal for drag at higher ones. This agrees with the user guide’s warning that moderate Reynolds numbers, with small bubbles, need the finest paneling [5]. More striking, N=120N = 120 failed to converge in 200 iterations for two of the three cases, while N=100N = 100 and N=140N = 140 converged in 4–8 iterations. Robustness is not monotonic in resolution. The likely reason is again the discrete position of transition relative to the nodes.

Change in ClC_l and CdC_d relative to N = 360 as the number of panel nodes is varied; crosses mark non-converged results.
Figure 9. Change in ClC_l and CdC_d relative to N = 360 as the number of panel nodes is varied; crosses mark non-converged results.Chart by the author

The VACC parameter, which drops small mass-influence terms in BLSOLV (Section 3.8), behaves similarly. With the default of 0.01, the three hardest low-Reynolds-number sweeps of 45 points converged 45, 43 and 44 points. Exact elimination (00) converged 44, 44 and 43 points. At 0.05 they converged 44, 35 and 28 points with up to four times the iterations. At 0.1–0.2, two sweeps hung outright and the others converged only 25–36 of 45 points. The approximate Newton step buys speed at the cost of robustness, and the default sits at the edge of the safe range.

5.7 Transition Model Sensitivity

The simplified envelope eNe^N method has one free parameter, NcritN_{crit}, and the user must choose it. Fig. 10 shows its influence. For NACA 4412 at Re=2×106Re = 2\times10^6, drag at Cl=0.6C_l = 0.6 falls from 83 counts at Ncrit=1N_{crit} = 1 to 60 at 9 and 49 at 13. Between Ncrit=7N_{crit} = 7 and 11, which by (26) corresponds to free-stream turbulence between 0.16 % and 0.03 %, it varies by ±10 % (66 to 54 counts). For NACA 0012 at Re=106Re = 10^6, Cl,maxC_{l,max} ranges from 1.47 to 1.31 over the same span of NcritN_{crit}. At Re=2×105Re = 2\times10^5 the trend is not even monotonic: drag at Cl=0.6C_l = 0.6 is lowest at Ncrit≈7N_{crit} \approx 7 (103 counts) and rises both for earlier transition (133 counts at Ncrit=1N_{crit} = 1) and for later transition (117 counts at 13), because a later transition lengthens the laminar separation bubble. A single, user-chosen scalar therefore controls drag predictions to ±10 % or more. That is comparable to the differences between competing airfoils that XFOIL is used to rank.

Drag polars of NACA 4412 at Re = 200 000 and 2 000 000 for four values of NcritN_{crit}.
Figure 10. Drag polars of NACA 4412 at Re = 200 000 and 2 000 000 for four values of NcritN_{crit}.Chart by the author

5.8 Compressibility Limit

Fig. 11 shows NACA 0012 at α=2∘\alpha = 2^\circ as the Mach number increases. XFOIL’s minimum pressure coefficient reaches the sonic value Cp*C_p^* at Mcr≈0.63M_{cr} \approx 0.63. Beyond this the Kármán–Tsien correction (6) has no physical basis, because the real flow contains a supersonic pocket and a shock. Yet XFOIL continued to return converged solutions, inviscid and viscous, up to M=0.8M = 0.8 with no warning. The inviscid lift reached 0.50, twice the incompressible value. XFOIL does compute and display the sonic CpC_p, but it neither flags nor refuses supercritical cases, so a batch user can silently obtain meaningless transonic data.

NACA 0012 at α = 2°: lift against Mach number (left) and minimum pressure coefficient against the sonic value (right). XFOIL keeps converging beyond the critica
Figure 11. NACA 0012 at α = 2°: lift against Mach number (left) and minimum pressure coefficient against the sonic value (right). XFOIL keeps converging beyond the critical Mach number of about 0.63.Chart by the author

5.9 Output Smoothness and Gradients

Optimisers need smooth objectives. Fig. 12 shows drag and its derivative for NACA 2412 at Re=106Re = 10^6 and NACA 4412 at Re=2×105Re = 2\times10^5, computed in 0.02∘0.02^\circ steps with the full-precision build. The drag curve looks smooth, but its derivative carries a saw-tooth whose period matches the movement of the transition point from one boundary-layer station to the next. Measured against a 15-point moving average, the oscillation has a standard deviation of 1.8 counts per degree. That is about 30 % of the typical gradient for the 2412 and 20 % for the 4412. Near the drag minimum of the 2412, the local slope changes sign nine times where the smoothed slope changes sign once. The function is continuous but not smooth, because the transition location moves in discrete jumps.

Drag (left) and finite-difference drag slope with Δα = 0.02° (right): the saw-tooth in the slope comes from transition moving between discrete boundary-layer st
Figure 12. Drag (left) and finite-difference drag slope with Δα = 0.02° (right): the saw-tooth in the slope comes from transition moving between discrete boundary-layer stations.Chart by the author

The response to a smooth geometric change is better behaved. Fig. 13 scans the thickness of NACA 2412 from 9.6 % to 15.6 % in 201 steps (using GDES TFAC) at fixed Cl=0.5C_l = 0.5. At full precision the drag rises monotonically, without a single sign change of its slope. However, 11 of the 201 cases at Re=106Re = 10^6 (5.5 %) failed to converge. Fig. 14 shows central finite-difference derivatives against step size. With full-precision output they are stable down to a relative step of 10−510^{-5}, to four digits at Re=3×105Re = 3\times10^5 and to about 2 % at 10610^6. With XFOIL’s printed output of five decimal places, the same derivatives are already wrong by 30 % at a relative step of 5×10−35\times10^{-3} and by more than 100 % at 10−310^{-3} and below, and at Re=3×105Re = 3\times10^5 they become exactly zero for steps of 5×10−45\times10^{-4} or less.

Drag at ClC_l = 0.5 against thickness for NACA 2412 scaled with TFAC: smooth at full precision, but with scattered non-converged cases (missing points).
Figure 13. Drag at ClC_l = 0.5 against thickness for NACA 2412 scaled with TFAC: smooth at full precision, but with scattered non-converged cases (missing points).Chart by the author
Central finite-difference derivative of drag with respect to thickness against relative step size, from full-precision values and from XFOIL’s five-decimal outp
Figure 14. Central finite-difference derivative of drag with respect to thickness against relative step size, from full-precision values and from XFOIL’s five-decimal output.Chart by the author

Fig. 15 extends the scan to two design variables. Thickness and camber of NACA 2412 were scaled together over a 25×2525\times25 grid (9–16 % thickness, 0–5 % camber) at Cl=0.6C_l = 0.6 and Re=3×105Re = 3\times10^5. The converged drag field is smooth, with its minimum at the thin, highly cambered corner. But 17 of the 625 points (2.7 %) failed, and the failures are scattered across the interior of the space, not confined to its edges. A gradient-based optimiser crossing this space would meet a hole roughly every 37 evaluations. A population-based one would see random penalties that are unrelated to aerodynamics.

Drag at ClC_l = 0.6 and Re = 300 000 over a thickness–camber grid of NACA 2412 derivatives (625 XFOIL solutions). Crosses mark the 17 non-converged designs, whi
Figure 15. Drag at ClC_l = 0.6 and Re = 300 000 over a thickness–camber grid of NACA 2412 derivatives (625 XFOIL solutions). Crosses mark the 17 non-converged designs, which lie inside the space; the star marks the grid minimum.Chart by the author

These results separate three sources of “noise” that are often confused. The first is truncated output, which is entirely an interface problem and is solved by passing doubles instead of text. The second is convergence failures, about 5 % of design points, which an optimiser sees as holes or penalties. The third is genuine non-smoothness from discrete transition, which matters most for derivatives with respect to angle of attack or lift coefficient and for points near the ends of a laminar bucket. NeuralFoil’s smooth outputs remove all three by construction [4]. Xoptfoil2’s “retry” and “outlier detection” features address the second and third heuristically [33]. Section 6 proposes remedies at the source.

5.10 Comparison with a Learned Surrogate

Because NeuralFoil is trained on XFOIL [4], it offers a useful check on how much of XFOIL’s behaviour is physics and how much is numerics. Its largest (“xlarge”) model was run over the same matrix and compared with the 1880 points that XFOIL converged with strategy S3 (Fig. 16). Lift agrees to a median of 0.006–0.012, and drag to a median of 1.3–2.5 %, depending on Reynolds number. The 90th-percentile drag difference is 7–11 %, concentrated near stall and at the lowest Reynolds numbers, where XFOIL’s own solutions are least certain. NeuralFoil evaluated the whole matrix in 0.26 s, against roughly 290 s of XFOIL time (more than a thousandfold faster), and returned the 625-point design map of Fig. 15 in 10 s without a single failure. Most telling is the drag slope in the right panel of Fig. 16. NeuralFoil reproduces XFOIL’s mean trend but not its saw-tooth. The surrogate has effectively learned XFOIL’s physics while averaging out its discretisation artefacts, which is exactly what remedies 4 and 7 of Section 6 aim to do inside XFOIL itself.

NeuralFoil (xlarge) against XFOIL 6.99 over the convergence matrix: lift (left) and drag (centre) for all points converged by XFOIL, and the fine-α drag slope f
Figure 16. NeuralFoil (xlarge) against XFOIL 6.99 over the convergence matrix: lift (left) and drag (centre) for all points converged by XFOIL, and the fine-α drag slope for NACA 2412 at Re = 1 000 000 (right).Chart by the author

5.11 Limitations of This Study

The experiments compare XFOIL with itself, with variants of itself and with a surrogate trained on it. They measure numerical behaviour (convergence, smoothness, sensitivity) and say nothing about how close XFOIL is to wind-tunnel data. For that, the extensive published validation of XFOIL and RFOIL should be consulted [1], [2], [34]. The test sections are all NACA four- and five-digit airfoils. Modern laminar and low-Reynolds-number sections with long pressure recoveries may behave differently, although the mechanisms identified (transition-station lock-up, failure propagation) are generic. Only one paneling (160 nodes) was used for the convergence matrix, and Section 5.6 showed that robustness depends on it in a non-monotonic way. Finally, the recovery strategy S3 was implemented outside XFOIL. A built-in version could restore the state exactly rather than by re-solving, and would be cheaper.

6. Proposed Improvements

The improvements below are grouped by goal: robustness and convergence, physical accuracy, optimisation, and software. Each is tied to the evidence of Section 5 and to the equation it changes in Section 3. Table 4 at the end summarises them.

6.1 Robustness and Convergence

1. Never continue from a failed state. The single most effective change is also the simplest. XFOIL already knows whether the current state is converged (its LVCONV flag). It should keep a copy of the last converged boundary-layer state and restore it automatically after a failure, instead of using the unconverged state as the next initial guess. Section 5.5 showed one failure making 89 subsequent points fail. The recovery strategy S3, which does this from outside the code, raised convergence from 96.2 % to 98.5 % (Table 3).

2. Adaptive continuation with step bisection. After a failure, the request should be approached again in progressively smaller steps from the restored state, with a cold start at the target as a last resort. This is the rest of S3, and mfoil uses a similar continuation strategy [3]. Continuation theory gives a sounder basis than ad-hoc halving. Arc-length continuation [35] can follow a polar through its maximum-lift fold, and a lift-prescribed solve (XFOIL’s CL mode) cannot do that.

3. Globalise Newton with a residual merit function. Fixed or adaptive bounds on the step (S2, S2b) did not help, because XFOIL’s step norm is a poor measure of progress. The natural alternative is a backtracking line search, or a dogleg trust region, on the residual norm ϕ(𝐔)=12∥𝐑(𝐔)∥2\phi(\mathbf U) = \tfrac12\|\mathbf R(\mathbf U)\|^2 [36]. A step ωδ𝐔\omega\,\delta\mathbf U is accepted only if

ϕ(𝐔+ωδ𝐔)≤(1−2cω)ϕ(𝐔),c≈10−4,(31)\phi(\mathbf U + \omega\,\delta\mathbf U) \le (1 - 2c\,\omega)\,\phi(\mathbf U), \qquad c \approx 10^{-4} , \qquad\text{(31)}

with ω\omega halved otherwise. Each trial costs one residual evaluation, much cheaper than a Jacobian factorisation. For starts far from the solution, pseudo-transient continuation adds a vanishing time-like diagonal to the Jacobian,

(1Δτk𝐈+∂𝐑∂𝐔)δ𝐔=−𝐑,Δτk+1=Δτk∥𝐑k−1∥∥𝐑k∥,(32)\begin{aligned}&\left(\frac{1}{\Delta\tau_k}\mathbf I + \frac{\partial\mathbf R}{\partial\mathbf U}\right)\delta\mathbf U = -\mathbf R,\\ &\Delta\tau_{k+1} = \Delta\tau_k\,\frac{\|\mathbf R_{k-1}\|}{\|\mathbf R_k\|} ,\end{aligned} \qquad\text{(32)}

and has a convergence theory for exactly this kind of steady problem with poor initial guesses [37]. It would replace both the cold-start initialisation and the step limiter (29).

4. Smooth the transition switch. Section 5.4 traced a stalled iteration to the transition station, and Section 5.9 traced the saw-tooth in dCd/dαdC_d/d\alpha to transition moving between stations. Both come from the discrete switch between (11) and (12). A smooth alternative blends the laminar and turbulent closures over a short distance with an intermittency γtr(ξ)\gamma_{tr}(\xi). For example,

Cf=(1−γtr)Cf,lam+γtrCf,turb,γtr=12[1+tanhξ−ξtrΔtr],(33)\begin{aligned} C_f &= (1 - \gamma_{tr})\,C_{f,lam} + \gamma_{tr}\,C_{f,turb},\\ \gamma_{tr} &= \tfrac12\left[1 + \tanh\frac{\xi - \xi_{tr}}{\Delta_{tr}}\right] ,\end{aligned} \qquad\text{(33)}

with ξtr\xi_{tr} a continuous unknown, located by ñ(ξtr)=Ncrit\tilde n(\xi_{tr}) = N_{crit}, and Δtr\Delta_{tr} a few momentum thicknesses. Then every residual is differentiable in the transition location. mfoil’s re-marching of the transition point after each update and its small positive term ϵñ\epsilon_{\tilde n} that keeps dñ/dξd\tilde n/d\xi from stalling are steps in this direction [3].

5. Detect stagnation and report quality. The point in Fig. 7 sat within 0.1 % of its converged answer for 97 iterations and was then discarded. XFOIL should recognise a stalled RMS (no decrease over several iterations, with the maximum change at the transition station) and either apply remedies 3–4 or return the result flagged as “stalled” with its residual. The user can then decide. Section 5.4 shows that a simple threshold works: failed points that stall with an RMS below 10−210^{-2} were within 1 % of the converged answer in 14 of 15 cases. The default iteration limit should rise from 20 to at least 100, which on its own removed 65 % of failures (Section 5.3).

6. Solve the Newton system exactly. With N≈200N \approx 200 nodes the Newton system has about 600 unknowns. Today it is solved in a few milliseconds by dense LU, so the VACC approximation (Section 5.6) saves little and costs robustness. Exact elimination, or VACC ≤0.01\le 0.01, should be the default.

7. Adaptive paneling. The user guide already states the resolution rule for bubbles: HkH_k should not fall by more than 1.0, and ueu_e should not change by more than 0.05, between nodes after transition [5]. These checks can be automated. After convergence, nodes are added where the rule is violated and the point is re-solved. That also removes the non-monotonic robustness with NN seen in Fig. 9. Adding a stagnation-point formulation like mfoil’s [3] would suppress leading-edge oscillations in HkH_k at fine paneling.

6.2 Physical Accuracy

8. Tie NcritN_{crit} to the environment and quantify its uncertainty. Section 5.7 showed drag changing by ±10 % over a plausible NcritN_{crit} range (7–11), and Cl,maxC_{l,max} by up to ±6 % over NcritN_{crit} = 1–13. XFOIL should accept a turbulence intensity and convert it by (26), and it should report polars as bands over an NcritN_{crit} interval rather than single curves. A bypass-transition criterion for high-turbulence or rough-surface cases, such as wind and marine turbines, propellers in slipstreams and eroded blades, would replace the advice to “set NcritN_{crit} to 1 or less” [5]. The Abu-Ghannam–Shaw correlation [38] is a natural candidate. It gives the transition momentum-thickness Reynolds number from TuTu (in per cent) and the pressure-gradient parameter λθ=(θ2/ν)due/dx\lambda_\theta = (\theta^2/\nu)\,du_e/dx:

Reθ,tr=163+exp[F(λθ)(1−Tu6.91)],F(λθ)={6.91+12.75λθ+63.64λθ2,λθ<0,6.91+2.48λθ−12.27λθ2,λθ≥0.(34)\begin{aligned} Re_{\theta,tr} &= 163 + \exp\!\left[F(\lambda_\theta)\left(1 - \frac{Tu}{6.91}\right)\right],\\ F(\lambda_\theta) &= \begin{cases} 6.91 + 12.75\lambda_\theta + 63.64\lambda_\theta^2, & \lambda_\theta < 0,\\ 6.91 + 2.48\lambda_\theta - 12.27\lambda_\theta^2, & \lambda_\theta \ge 0. \end{cases}\end{aligned} \qquad\text{(34)}

Transition would then be taken at whichever comes first, ñ=Ncrit\tilde n = N_{crit} or Reθ=Reθ,trRe_\theta = Re_{\theta,tr}. Both inputs are already available at every station. The Orr–Sommerfeld database shipped with XFOIL is used only by a post-processing plot of individual-frequency amplification. It could support a frequency-resolved eNe^N option in the solver itself, so that the envelope simplification in (24) becomes a choice rather than a necessity.

9. Better stall and post-stall prediction. XFOIL, like RFOIL, over-predicts lift on thick sections for a wide range of angles, partly because the wake geometry is taken from the inviscid solution [34]. Three established changes address this. The first makes the lag constant in (12) depend on HkH_k (QFoil: KC=4.65−0.95tanh[0.5(Hk−3.5)]K_C = 4.65 - 0.95\tanh[0.5(H_k - 3.5)]). The second strengthens wake dissipation (RFOIL, QFoil). The third displaces the wake trajectory by the viscous displacement thickness [26], [28]. Beyond these, deep stall needs a model that admits large-HkH_k reversed-flow profiles without the clipping of Section 3.8, or an explicit separated-wake (free-streamline) model, and it should be validated against data rather than tuned to it.

10. Respect the compressibility limit. XFOIL should warn when Cp,minC_{p,min} passes Cp*C_p^* (Fig. 11) and refuse to report drag beyond a small supersonic margin. For transonic sections, the coupled Euler formulation of ISES and MSES [10], [20] or a full-potential outer flow is the proper upgrade. The Kármán–Tsien correction cannot be patched to cover shocks.

11. Source terms for real-world effects. Several practical effects can be added as source terms or modified closures in the integral equations. Examples are vortex generators (RFOILVogue [27]), rotational augmentation on rotor blades (RFOIL [26]; Du–Selig-type stall delay [39]), roughness and erosion (modified CfC_f and transition), and suction or blowing (a wall mass-flux term in (9)). Each keeps the cost of the method unchanged.

6.3 Optimisation

12. Analytic sensitivities by the adjoint method. At convergence XFOIL holds the exact Jacobian ∂𝐑/∂𝐔\partial\mathbf R/\partial\mathbf U of (28). For any output ff (such as CdC_d at fixed ClC_l) and design variables 𝐱\mathbf x (shape parameters), one extra linear solve with the transposed Jacobian,

(∂𝐑∂𝐔)T𝛌=(∂f∂𝐔)T,dfd𝐱=∂f∂𝐱−𝛌T∂𝐑∂𝐱,(35)\begin{aligned}\left(\frac{\partial\mathbf R}{\partial\mathbf U}\right)^{\!T}\boldsymbol\lambda &= \left(\frac{\partial f}{\partial\mathbf U}\right)^{\!T},\\ \frac{df}{d\mathbf x} &= \frac{\partial f}{\partial\mathbf x} - \boldsymbol\lambda^T\frac{\partial\mathbf R}{\partial\mathbf x} ,\end{aligned} \qquad\text{(35)}

gives the gradient with respect to all design variables at once [40]. The geometric terms ∂𝐑/∂𝐱\partial\mathbf R/\partial\mathbf x come from differentiating the panel influence coefficients and arc lengths, either by hand or by algorithmic differentiation of the Fortran. MSES already provides such sensitivities to its optimiser [20], and differentiable re-implementations (AeroSandbox, Julia codes) show that the same is practical for XFOIL’s model [31]. Fig. 14 shows why this matters. Finite differences through XFOIL’s text output are unreliable below a relative step of about 10−210^{-2} and useless at 10−310^{-3}, and even full-precision differences need two solves per variable.

13. Make the objective smooth before optimising it. Analytic gradients of a non-smooth function are still unhelpful. Remedy 4 (smooth transition) and remedy 7 (adaptive paneling) remove the saw-tooth of Fig. 12. Returning doubles through an API (remedy 15) removes output quantisation. Point optimisation also tends to produce small bumps that exploit the separation-bubble model [41]. Curvature constraints, as in Xoptfoil2 [33], and multi-point or robust objectives (averaged over NcritN_{crit} and ReRe) counter this.

14. Use surrogates for exploration, XFOIL for verification. Smooth learned surrogates such as NeuralFoil are 8 to 1000 times faster and never fail to converge [4]. A multi-fidelity workflow follows naturally. Global exploration with a surrogate, using CST [42], Bézier or Hicks–Henne [43] parameters, is followed by gradient-based refinement with an adjoint-enabled XFOIL, and then by verification with MSES or RANS. Because the surrogates inherit XFOIL’s physics, improvements 8–11 propagate to them when they are retrained.

6.4 Software

15. A library, not only a program. The global COMMON state should be moved into a structure, as libxfoil has done [23], so that several analyses can run concurrently. A small C/Fortran API should return full-precision coefficients, distributions, convergence diagnostics and error codes, with Python bindings. This removes the disk and text-parsing overheads that wrappers currently pay. The experiments in this paper needed a prompt-synchronised text driver, two instrumented builds and workarounds for three interface traps: INIT is a toggle, VACC lives in a different menu from ITER, and the packaged binary traps floating-point exceptions. A library would avoid all of these.

16. Tests and validation in the open. A public regression suite should cover reference airfoils at several ReRe, MM and NcritN_{crit}, with stored polars and convergence statistics like Table 3, plus a validation set of wind-tunnel data. Then branch developers (RFOIL, QFoil, browser ports) could show that a change improves accuracy or robustness without regressions.

6.5 What the First Improvements Change in Practice

Fig. 17 shows what items 1, 2, 5 and 8 change for a user, using the thin, highly cambered NACA 6409 at Re=105Re = 10^5, α=−4∘\alpha = -4^\circ to 16∘16^\circ in 0.25∘0.25^\circ steps. With default settings (160 nodes, ITER 20, plain continuation), 74 of 81 points converge. The failures cluster at the negative-angle end and near 13∘13^\circ, exactly where a designer wants to know the drag rise and the stall. With 200 nodes, 100 iterations and the recovery procedure, all 81 points converge at Ncrit=9N_{crit} = 9. Repeating the sweep at Ncrit=7N_{crit} = 7 and 11 then gives the band that the environment justifies. Minimum drag ranges from 144 to 238 counts and Cl,maxC_{l,max} from 1.49 to 1.63, compared with 183 counts and 1.54 at the nominal value. The band is far wider than the differences that are often used to choose between low-Reynolds-number sections. Reporting it is the honest output. The Ncrit=11N_{crit} = 11 curve also shows a sudden lift drop near 7∘7^\circ where its bubble changes character, a feature that a single nominal polar would hide.

NACA 6409 at Re = 100 000: default XFOIL settings (dots; crosses mark the angles that failed) against continuation with recovery at three values of NcritN_{crit
Figure 17. NACA 6409 at Re = 100 000: default XFOIL settings (dots; crosses mark the angles that failed) against continuation with recovery at three values of NcritN_{crit} (lines), showing complete polars and the spread due to the transition parameter.Chart by the author
TABLE IV. Summary of proposed improvements.
# Improvement Evidence Changes Effort Expected benefit
1–2 Restore last converged state; bisection continuation Figs. 4, 8 Driver logic Low Failures 72 → 28 of 1908
3 Residual line search / pseudo-transient continuation S2, S2b results (29) Medium Robust cold starts, fewer stalls
4 Smooth transition (intermittency) Figs. 7, 12 (11)–(12), (25) Medium Removes stalls and gradient saw-tooth
5 Stagnation detection; ITER ≥ 100 Fig. 7, Table 3 Driver Low Failures 204 → 72
6 Exact Newton elimination VACC study BLSOLV Low Robustness at no practical cost
7 Adaptive paneling, stagnation fix Fig. 9 Paneling Medium Drag accuracy; fewer anomalies
8 NcritN_{crit} from TuTu; bands; bypass transition Fig. 10 (26) Low–medium Honest ±10 % drag bands
9 Stall/post-stall closure and wake changes [34], [28] (12), (21), wake Medium–high Better Cl,maxC_{l,max}, post-stall
10 Supercritical warning; Euler option Fig. 11 (6) Low / high No silent transonic errors
11 Source terms (VG, rotation, roughness) [27], [26] (9)–(12) Medium Wider applicability
12 Adjoint sensitivities Fig. 14 New solve with (28) Medium Exact gradients for all variables
13–14 Smooth objectives; surrogate + XFOIL workflow Figs. 12, 13 Workflow Low Reliable optimisation
15–16 Re-entrant library API; open tests Section 5.1 Code structure Medium Parallel use, reproducibility

7. Multi-Element Airfoils: Will a Panel Method Do?

XFOIL analyses one closed contour. A slat–main–flap system has two or three, separated by slots in which the flow is accelerated, turned and mixed. Can XFOIL’s approach (a panel method plus integral boundary layers coupled through transpiration) be extended to such configurations? And if so, how far can it be trusted? The answer has two parts, because the inviscid and viscous parts behave very differently.

7.1 Physics of the High-Lift System

Smith’s classic analysis [44] identified five favourable effects of a slotted system. All five are inviscid in origin:

  1. the slat effect: the circulation of an upstream element lowers the velocity peak on the leading edge of the downstream one;
  2. the circulation effect: a downstream element raises the circulation of the element ahead of it, by placing its trailing edge in a region of high velocity;
  3. the dumping effect: the trailing edge of each upstream element discharges at a velocity higher than free stream, which relieves its own pressure recovery;
  4. off-the-surface pressure recovery: the wake of the upstream element completes its deceleration away from the wall, where it is less likely to separate than a wall boundary layer would be;
  5. the fresh-boundary-layer effect: each element starts a new, thin boundary layer that can withstand a strong adverse gradient.

Against these act several viscous phenomena. The wake of an upstream element merges with the boundary layer of the next to form a confluent boundary layer [45]. Slot flows are thin and may be dominated by viscous mixing. Slat and flap coves contain recirculating regions. And the decelerating wakes of the main element and flaps can reverse off the surface even while every wall boundary layer stays attached. This last effect is called wake bursting. It reduces lift and increases drag, depends on Reynolds and Mach number, and has been measured directly behind three-element airfoils [46]. It is now treated as a design constraint in its own right [47]. Maximum lift of a well-designed high-lift system is often set by these off-surface and confluent effects rather than by separation on any one element [48].

7.2 What the Inviscid Part Captures: a Two-Element Study

To test the inviscid half of the question, a multi-element constant-source/constant-vortex panel method of the Hess–Smith type was written for this study [6], [49]. It has a Kutta condition on every element. On a single NACA 4412 it reproduces XFOIL’s inviscid lift to within 0.5 % (Cl=0.512C_l = 0.512 against 0.510 at α=0\alpha = 0). It was then applied to a main element (NACA 4412, chord cc) with an external airfoil flap (NACA 4412, 0.30c0.30c) placed below and behind the main trailing edge. The slot gap, measured as the minimum distance from the main trailing edge to the flap, was 0.5–3.7 % of cc, and flap deflections δf\delta_f ran from 0 to 40∘40^\circ.

Two-element configuration (main NACA 4412 + 30 % chord external NACA 4412 flap, δf=20∘\delta_f = 20^\circ, α=0\alpha = 0) and inviscid pressure distribution fro
Figure 18. Two-element configuration (main NACA 4412 + 30 % chord external NACA 4412 flap, δf=20∘\delta_f = 20^\circ, α=0\alpha = 0) and inviscid pressure distribution from the multi-element panel method, compared with the isolated main element. The circulation and dumping effects are visible as the much larger suction on the main element and the raised trailing-edge velocity.Chart by the author

Fig. 18 shows that the panel method reproduces Smith’s circulation and dumping effects without any special treatment. At δf=20∘\delta_f = 20^\circ the main element carries Cl=1.88C_l = 1.88, compared with 0.510.51 for the same element in isolation. The flap’s influence has multiplied the main element’s lift by 3.7. The main element’s trailing-edge velocity rises well above free stream, so its upper-surface pressure recovery is shortened. These are the effects that make slotted flaps work, and a potential-flow method captures them correctly because they are potential-flow effects.

Inviscid lift of the two-element system and of each element against flap deflection, for three slot gaps. The panel method predicts lift rising almost linearly
Figure 19. Inviscid lift of the two-element system and of each element against flap deflection, for three slot gaps. The panel method predicts lift rising almost linearly to Cl≈3.5C_l \approx 3.5–3.83.8 at 40∘40^\circ and favours the smallest gap.Chart by the author

Fig. 19 shows the limits. The inviscid lift rises almost linearly with flap deflection, reaching Cl=3.55C_l = 3.55–3.793.79 at 40∘40^\circ, and it increases monotonically as the gap closes. A sealed slot is “best” in inviscid theory. Real slotted flaps behave differently. Lift stops rising once the flap boundary layer or the main-element wake can no longer negotiate the flap’s pressure recovery, and every real system has an optimum gap, typically a few per cent of chord. Below it, the main-element wake and the flap boundary layer merge and thicken. Above it, the slot no longer energises the flap [44], [48]. Neither the saturation nor the optimum gap can come from potential flow.

Fig. 20 maps the inviscid lift over flap position at δf=25∘\delta_f = 25^\circ. The whole map spans only Cl=2.45C_l = 2.45–2.662.66, a range of 9 %, and its maximum lies at the smallest gap tested (0.4 % of chord) with about 1 % overlap. In potential flow, positioning the flap is a weak, monotonic optimisation that always favours closing the slot. In real flows the same parameters decide whether the flap stalls. Experiments and RANS find distinct optimum gaps of the order of 1–3 % of chord, with lift falling steeply on either side [44], [48]. Flap positioning is therefore governed by viscous effects that the inviscid method cannot see.

Inviscid lift of the two-element system against flap overlap and vertical offset at δf=25∘\delta_f = 25^\circ; dashed lines are contours of the minimum slot gap
Figure 20. Inviscid lift of the two-element system against flap overlap and vertical offset at δf=25∘\delta_f = 25^\circ; dashed lines are contours of the minimum slot gap. The star marks the inviscid maximum, which lies at the smallest gap.Chart by the author
Velocity along the streamline leaving the main-element trailing edge, from the inviscid two-element solution, for flap deflections of 10∘10^\circ, 20∘20^\circ a
Figure 21. Velocity along the streamline leaving the main-element trailing edge, from the inviscid two-element solution, for flap deflections of 10∘10^\circ, 20∘20^\circ and 30∘30^\circ. The main-element wake is first accelerated over the flap and then decelerated off the surface; the resulting pressure rise is what drives wake bursting in real flows.Chart by the author

Fig. 21 makes the viscous problem concrete. Follow the streamline that leaves the main-element trailing edge (the path of the main wake). The inviscid velocity first rises as the flow is drawn over the flap’s suction side, to peaks of 1.31, 1.49 and 1.70 times free stream at δf=10∘\delta_f = 10^\circ, 20∘20^\circ and 30∘30^\circ. It then falls to about 0.90V∞0.90\,V_\infty near the flap trailing edge, an off-surface pressure rise of ΔCp≈0.9\Delta C_p \approx 0.9, 1.41.4 and 2.12.1. The wake must survive this pressure rise away from any wall, and the required recovery grows rapidly with deflection. An XFOIL-type model treats wakes only as thin shear layers along their own streamline. It has no mechanism for one wake to interact with another body’s boundary layer, and no off-surface reversed-flow state. It cannot predict whether the wake bursts.

7.3 The Slat Effect

The same code was applied to a leading-edge slat: a 15 % chord NACA 4412 element ahead of the main NACA 4412, drooped 25∘25^\circ, with a 2.2 % chord gap between its trailing edge and the main upper surface. Fig. 22 shows the result. At α=12∘\alpha = 12^\circ, the isolated main element has a suction peak of Cp,min=−7.7C_{p,min} = -7.7. With the slat it is only −2.1-2.1, and at α=20∘\alpha = 20^\circ the reduction is from −20.6-20.6 to −3.2-3.2. The slat reduces the main element’s own lift (1.53 against 1.94 at 12∘12^\circ) while carrying 0.50 itself, so the total rises only 5 % at a given angle. Its benefit is the much milder pressure recovery it leaves for the main-element boundary layer, which lets the system reach far higher angles before separation. Here the inviscid method shows the mechanism clearly but cannot show the benefit itself. Stall delay, and therefore Cl,maxC_{l,max}, can only come from a viscous calculation.

Slat effect from the inviscid multi-element panel method: geometry (top left), pressure distribution at α = 12° compared with the isolated main element (top rig
Figure 22. Slat effect from the inviscid multi-element panel method: geometry (top left), pressure distribution at α = 12° compared with the isolated main element (top right), and main-element suction peak and lift against angle of attack with and without the slat (bottom).Chart by the author

7.4 What the Viscous Part Requires

Coupled methods for multi-element airfoils have existed since the 1970s. Olson’s method treated up to four elements with merging confluent boundary layers [50]. Dvorak, Woodward and Maskew extended viscous–potential interaction to three-dimensional multi-element wings with a dedicated confluent-boundary-layer model [51]. Cebeci’s interactive boundary-layer method handled flap wells and co-flowing regions [52]. MSES replaces the panel method by an Euler solver on a streamline grid, so the slot and the wake trajectories are part of the solution. It couples the same integral boundary layers as XFOIL through the global Newton method [20]. NASA’s conceptual-design high-lift methodology uses exactly this hierarchy. It applies a panel method with integral boundary layers to single-element sections and MSES to multi-element ones [53].

Three requirements separate these methods from a simple extension of XFOIL:

  1. Wake trajectories must be solved for. In XFOIL the wake follows the inviscid streamline from the trailing edge. That is adequate for one element, but on a multi-element airfoil the main wake passes close to the flap, and its position determines both the flap’s loading and its own deceleration. A panel method can iterate the wake position (relaxed-wake methods do this), but it is not part of XFOIL’s Newton system.
  2. Confluence needs a different profile family. A wake merging with a wall layer produces a velocity profile with an inner wall layer and an outer wake deficit. That two-parameter shape lies outside the Falkner–Skan/Swafford families behind (16)–(22). Confluent models must either carry extra integral variables or switch to a multi-layer description [50], [51].
  3. Off-surface reversal must be representable. Wake bursting is a separated free shear layer. Integral wake equations with HkH_k clipped near 1 (29) cannot represent it. Volume-grid RANS can, although with known sensitivity to turbulence and transition models [54].

7.5 Verdict

A panel method is sufficient for the inviscid part of the multi-element problem. It is fast, it captures every one of Smith’s favourable effects, and it is the natural engine for early sizing of gap, overlap and deflection. Paired with a simple separation criterion such as Stratford’s, a panel code has been shown to be a fast and reasonably accurate screen for high-lift configurations in preliminary design [55]. A panel method with XFOIL-style integral boundary layers is useful for single-element-like questions on multi-element sections: transition on each element, attached-flow drag, and the onset of trailing-edge separation on the flap. It is not sufficient for maximum lift, optimum gap, or any condition where the main wake approaches the flap surface or bursts. Those require at least an MSES-class method with solved wake trajectories, and for final design and Cl,maxC_{l,max}, RANS validated against wind-tunnel data. Table 5 summarises this hierarchy.

Table 5. Suitability of method classes for multi-element airfoil questions.
Question Panel (inviscid) Panel + IBL (XFOIL-type, extended) Euler + IBL (MSES) RANS
Load split, circulation and dumping effects Good Good Good Good
Gap/overlap trends at moderate δf\delta_f Qualitative Fair Good Good
Transition and attached-flow drag per element No Good Good Model-dependent
Optimum gap (confluence) No Poor Fair Good
Wake bursting, Cl,maxC_{l,max} No No Fair (to just past stall) Fair–good, model-dependent
Cost per point ms 0.1 s seconds minutes–hours

8. Practical Guidance for Current Users

Until such changes reach the code, most of the benefit can be obtained by how XFOIL is used. Table 6 collects the settings and checks that the experiments of Section 5 support.

Table 6. Recommended practice with XFOIL 6.99 and its ports.
Topic Recommendation Basis
Iterations Set ITER to 100–150; the default 20 loses about 10 % of points Table 3
Sweeps Start each sweep near zero lift and march outwards in steps ≤ 0.5°; run separate upward and downward sweeps Fig. 5
After a failure Do not continue from the failed state: re-solve the last good point (or INIT there), then approach the target in smaller steps; try a cold start at the target last Figs. 7, 8
Paneling ≥ 160 nodes at low ReRe; ≥ 200 for drag at Re≳106Re \gtrsim 10^6; refine if HkH_k drops by > 1 per node after transition Figs. 3, 9
VACC Leave at 0.01 or set to 0; never increase it for speed Section 5.6
NcritN_{crit} Choose from the expected turbulence level by (26); report results for a range (for example 7–11), not one value Fig. 10
Mach number Check Cp,minC_{p,min} against Cp*C_p^*; discard results above McrM_{cr} Fig. 11
Wrappers Read full-precision values (or polar files with care); never finite-difference five-decimal output with relative steps below about 10−210^{-2} Fig. 14
Optimisation Treat non-converged points explicitly (retry, then penalise); constrain curvature; use several operating points and NcritN_{crit} values Section 5.9
Multi-element Use panel-type tools only for inviscid load split and early gap/deflection sizing; use MSES or RANS for Cl,maxC_{l,max} Section 7

9. A Prioritised Roadmap

The improvements of Section 6 differ widely in cost. Table 7 orders them into three stages, so that each stage is useful on its own and none needs the next.

Table 7. Suggested order of work.
Stage Contents (Section 6 item) What the user gains
1. Weeks Restore last converged state, bisection continuation, ITER ≥ 100, stagnation flag, exact BLSOLV (1, 2, 5, 6); supercritical warning (10); full-precision API output (15) About 60 % fewer failures; no silent transonic data; usable finite differences
2. Months Residual line search or pseudo-transient continuation (3); smooth transition (4); adaptive paneling (7); NcritN_{crit} from TuTu with uncertainty bands (8); re-entrant library and regression suite (15, 16) Smooth, robust polars; honest drag bands; parallel batch use
3. Longer Adjoint sensitivities (12); stall, wake and source-term physics (9, 11); multi-fidelity optimisation workflow (13, 14); Euler or MSES-class coupling for transonic and multi-element work (10, Section 7) Gradient-based design; better Cl,maxC_{l,max}; wider envelope

Stage 1 needs no change to the physics or to the Newton system. Every item in it can be implemented around the existing routines, as the external driver of this study shows, and the benefits were measured in Section 5. Stage 2 changes the numerics of the boundary-layer system. Its effects must be verified against the regression suite so that drag predictions do not drift. Stage 3 is research. Its value is greatest for optimisation, where XFOIL’s formulation already contains almost everything needed for exact gradients.

10. Conclusions

  1. History. XFOIL combined a high-order panel method with the fully coupled viscous–inviscid Newton method of ISES in an interactive program (1986). Its boundary-layer formulation was aligned with MSES by 1994 and it was frozen in 2000. Since then it has been preserved mainly through ports (XFLR5, flow5, QBlade, browser versions), physics branches (RFOIL, QFoil, RFOILVogue), re-implementations (mfoil, Viiflow), surrogates (NeuralFoil) and optimisers (Xoptfoil, Xoptfoil2). The official code received a source update (6.996) in January 2026.
  2. Convergence. With default settings about one operating point in ten fails, and with 100 iterations about one in 26. The failures are numerical. Converged solutions are path-independent, failed points can lie within 0.1 % of the answer, and the dominant mechanism observed is a lock-up at the transition station. A failed state carried forward can corrupt an entire sweep. Tightening or adapting the step limiter does not help. Restoring the last converged state and re-approaching the target in smaller steps reduces failures by 61 % at twice the iterations per point.
  3. Accuracy. Over a plausible range of NcritN_{crit}, drag varies by ±10 % and Cl,maxC_{l,max} by several per cent, which is comparable to the differences XFOIL is asked to resolve. Drag needs at least 200 panels at Re≈3×106Re \approx 3\times10^6 to come within 0.3 % of the fine-paneling value. XFOIL silently returns converged answers beyond the critical Mach number.
  4. Optimisation. The converged response to shape changes is smooth, and full-precision finite differences are stable down to tiny steps. The practical noise comes from five-decimal output, from roughly 5 % convergence failures and from the saw-tooth caused by discrete transition. The exact Newton Jacobian makes adjoint gradients available at the cost of one extra linear solve.
  5. Multi-element airfoils. A panel method captures the inviscid mechanisms of slotted high-lift systems (slat, circulation and dumping effects), and it is the right tool for early sizing of gaps and deflections. It cannot predict maximum lift, the optimum gap, confluent boundary layers or wake bursting. In the two-element example, inviscid lift rose almost linearly to Cl≈3.7C_l \approx 3.7 at 40∘40^\circ deflection and favoured a sealed slot, while the main-element wake had to recover ΔCp≈2\Delta C_p \approx 2 off the surface at 30∘30^\circ. An XFOIL-type extension is useful for transition and attached-flow drag on each element. Maximum lift requires solved wake trajectories and confluent-layer modelling (MSES) or RANS.

The method in XFOIL is not obsolete. Most of its weaknesses lie in a few identifiable places (state management, the transition switch, the step limiter and the program interface), and they can be fixed without giving up the speed and physical fidelity that made it the standard.

Acknowledgment

The author acknowledges the use of Claude (Anthropic), a large language model, which assisted in the literature survey, the derivation checks against the XFOIL source code, the scripting and running of the numerical experiments, and the drafting of this paper. The author reviewed and takes responsibility for the content. The author also thanks Mark Drela and Harold Youngren for releasing XFOIL under the GNU General Public License, which made the source-level study possible.

Appendix A: Equations and Source Routines

Table 8 maps each equation of Section 3 to the XFOIL 6.99 routine that implements it, as a guide for anyone modifying the code.

Table 8. Equations of Section 3 and the XFOIL 6.99 routines that implement them.
Equation Content Routine (file)
(1)–(5) Panel stream function, Kutta, superposition PSILIN, GGCALC (xpanel.f)
(6) Kármán–Tsien correction CPCALC (xfoil.f)
(7)–(8) Mass defect, wake, influence matrix XYWAKE, QDCALC, UESET, QVFUE (xpanel.f)
(9)–(14) Integral equations, discretisation BLDIF (xblsys.f)
(15)–(22) Closures BLVAR, HKIN, HSL, HST, HCT, CFL, CFT, DIL, DILW (xblsys.f)
(23)–(25) Amplification, transition interval AXSET, DAMPL, DAMPL2, TRCHEK2, TRDIF (xblsys.f)
(27) Squire–Young drag CDCALC (xfoil.f)
(28) Newton assembly and solution SETBL (xbl.f), BLSOLV (xsolve.f), TESYS (xblsys.f)
(29) Under-relaxation, update UPDATE (xbl.f)
— Initial marching, iteration loop MRCHUE, MRCHDU (xbl.f), VISCAL (xoper.f)

Appendix B: Reproducibility

All experiments used XFOIL 6.99 (Debian source package 6.99.dfsg+1-3) compiled with gfortran -O2 -fdefault-real-8 -std=legacy, without floating-point trapping, on Linux. The scripts and raw results are kept with the paper’s source in the site’s GitHub repository (folder papers/_content/xfoil-improvements-src, subfolders experiments/ and data/):

The instrumented changes add no physics. With XF_TRUST unset, the variant builds reproduce the stock results exactly.

References

  1. M. Drela, “XFOIL: An analysis and design system for low Reynolds number airfoils,” in Low Reynolds Number Aerodynamics, T. J. Mueller, Ed., Lecture Notes in Engineering, vol. 54. Berlin, Germany: Springer, 1989, pp. 1–12.
  2. W. A. Timmer and R. P. J. O. M. van Rooij, “Summary of the Delft University wind turbine dedicated airfoils,” AIAA Paper 2003-0352, 2003.
  3. K. J. Fidkowski, “A coupled inviscid–viscous airfoil analysis solver, revisited,” AIAA J., vol. 60, no. 5, pp. 2961–2971, 2022.
  4. P. Sharpe and R. J. Hansman, “NeuralFoil: An airfoil aerodynamics analysis tool using physics-informed machine learning,” arXiv:2503.16323, 2025.
  5. M. Drela and H. Youngren, XFOIL 6.9 User Primer (xfoil_doc.txt) and XFOIL Version Notes (version_notes.txt), distributed with XFOIL 6.99. Cambridge, MA, USA: MIT, 2001–2013.
  6. J. L. Hess and A. M. O. Smith, “Calculation of potential flow about arbitrary bodies,” Prog. Aerosp. Sci., vol. 8, pp. 1–138, 1967.
  7. R. Eppler and D. M. Somers, “A computer program for the design and analysis of low-speed airfoils,” NASA TM-80210, 1980.
  8. A. E. P. Veldman, “New, quasi-simultaneous method to calculate interacting boundary layers,” AIAA J., vol. 19, no. 1, pp. 79–85, 1981.
  9. M. Drela, “Two-dimensional transonic aerodynamic design and analysis using the Euler equations,” Ph.D. dissertation, Dept. Aeronaut. Astronaut., Massachusetts Inst. Technol., Cambridge, MA, USA, 1985.
  10. M. Drela and M. B. Giles, “Viscous-inviscid analysis of transonic and low Reynolds number airfoils,” AIAA J., vol. 25, no. 10, pp. 1347–1355, 1987.
  11. M. Drela, “Low-Reynolds-number airfoil design for the M.I.T. Daedalus prototype: A case study,” J. Aircraft, vol. 25, no. 8, pp. 724–732, 1988.
  12. M. Drela, “Integral boundary layer formulation for blunt trailing edges,” AIAA Paper 89-2166, 1989.
  13. M. Drela, “XFOIL: Subsonic airfoil development system,” MIT. [Online]. Available: https://web.mit.edu/drela/Public/web/xfoil/ (accessed Nov. 2026).
  14. H. S. Tsien, “Two-dimensional subsonic flow of compressible fluids,” J. Aeronaut. Sci., vol. 6, no. 10, pp. 399–407, 1939.
  15. J. E. Green, D. J. Weeks, and J. W. F. Brooman, “Prediction of turbulent boundary layers and wakes in compressible flow by a lag-entrainment method,” Aeronaut. Res. Council, R&M 3791, 1977.
  16. L. M. Mack, “Transition prediction and linear stability theory,” in Laminar-Turbulent Transition, AGARD CP-224, 1977.
  17. H. B. Squire and A. D. Young, “The calculation of the profile drag of aerofoils,” Aeronaut. Res. Council, R&M 1838, 1937.
  18. M. J. Lighthill, “A new method of two-dimensional aerodynamic design,” Aeronaut. Res. Council, R&M 2112, 1945.
  19. M. Drela, “Elements of airfoil design methodology,” in Applied Computational Aerodynamics, P. A. Henne, Ed., Progress in Astronautics and Aeronautics, vol. 125. Washington, DC, USA: AIAA, 1990.
  20. M. Drela, “MSES: Multi-element airfoil design/analysis software,” MIT. [Online]. Available: https://web.mit.edu/drela/Public/web/mses/ (accessed Nov. 2026).
  21. A. Deperrois, XFLR5: Analysis of Foils and Wings Operating at Low Reynolds Numbers, software (GPL-3). [Online]. Available: https://sourceforge.net/projects/xflr5/
  22. A. Deperrois, flow5 (version 7 of XFLR5), open source since 1 Jan. 2026. [Online]. Available: https://github.com/techwinder/flow5
  23. montagdude, libxfoil: re-entrant XFOIL library with C, Fortran and Python bindings. [Online]. Available: https://github.com/montagdude/libxfoil
  24. xfoil-python: XFOIL as a compiled Python module (PyPI package “xfoil”). [Online]. Available: https://github.com/DARcorporation/xfoil-python
  25. H. R. Smith, “Why I built a browser-based XFOIL (and why we’re investing in open source),” Flexcompute blog, 17 Mar. 2026. [Online]. Available: https://hs.flexcompute.com/blog/flexfoil
  26. R. P. J. O. M. van Rooij, “Modification of the boundary layer calculation in RFOIL for improved airfoil stall prediction,” Delft Univ. Technol., Delft, The Netherlands, Rep. IW-96087R, 1996.
  27. A. Sahoo, A. K. Ravishankara, W. Yu, D. Ragni, and C. Simão Ferreira, “Modelling vortex generator effects on turbulent boundary layers with integral boundary layer equations,” Wind Energy Sci., vol. 11, pp. 127ff., 2026.
  28. QBlade documentation, “QFoil airfoil analysis code” (QFoil 0.9, modified XFoil 6.99). [Online]. Available: https://docs.qblade.org/src/theory/aerodynamics/qfoil/qfoil.html (accessed Nov. 2026).
  29. K. J. Fidkowski, “An interactive airfoil analysis and design tool in Matlab,” AIAA paper, 2023; software mfoil (Matlab and Python, MIT licence), Univ. Michigan. [Online]. Available: https://websites.umich.edu/~kfid/codes.html
  30. M. Ranneberg, “Viiflow—A new inverse viscous–inviscid interaction method,” AIAA J., 2019.
  31. P. D. Sharpe, “AeroSandbox: A differentiable framework for aircraft design optimization,” S.M. thesis, Massachusetts Inst. Technol., Cambridge, MA, USA, 2021.
  32. D. Prosser, Xoptfoil: Airfoil Optimization with Xfoil, software (GPL-3), 2014–. [Online]. Available: https://sourceforge.net/projects/xoptfoil/
  33. J. Guenzel, Xoptfoil2: The Airfoil Optimizer, software. [Online]. Available: https://github.com/jxjo/Xoptfoil2
  34. G. Ramanujam and H. Özdemir, “Improving airfoil lift prediction,” in Proc. 35th Wind Energy Symp., AIAA SciTech Forum, Grapevine, TX, USA, 2017, AIAA 2017-1999.
  35. E. L. Allgower and K. Georg, Introduction to Numerical Continuation Methods. Philadelphia, PA, USA: SIAM, 2003.
  36. J. Nocedal and S. J. Wright, Numerical Optimization, 2nd ed. New York, NY, USA: Springer, 2006.
  37. C. T. Kelley and D. E. Keyes, “Convergence analysis of pseudo-transient continuation,” SIAM J. Numer. Anal., vol. 35, no. 2, pp. 508–523, 1998.
  38. M. Abu-Ghannam and R. Shaw, “Natural transition of boundary layers—The effects of turbulence, pressure gradient, and flow history,” J. Mech. Eng. Sci., vol. 22, no. 5, pp. 213–228, 1980.
  39. Z. Du and M. S. Selig, “A 3-D stall-delay model for horizontal axis wind turbine performance prediction,” AIAA Paper 98-0021, 1998.
  40. A. Jameson, “Aerodynamic design via control theory,” J. Sci. Comput., vol. 3, no. 3, pp. 233–260, 1988.
  41. M. Drela, “Pros and cons of airfoil optimization,” in Frontiers of Computational Fluid Dynamics 1998, D. A. Caughey and M. M. Hafez, Eds. Singapore: World Scientific, 1998.
  42. B. M. Kulfan, “Universal parametric geometry representation method,” J. Aircraft, vol. 45, no. 1, pp. 142–158, 2008.
  43. R. M. Hicks and P. A. Henne, “Wing design by numerical optimization,” J. Aircraft, vol. 15, no. 7, pp. 407–412, 1978.
  44. A. M. O. Smith, “High-lift aerodynamics,” J. Aircraft, vol. 12, no. 6, pp. 501–530, 1975.
  45. F. O. Thomas and R. C. Nelson, “An experimental investigation of the confluent boundary layer on a high-lift system,” Final Rep., NASA Grant NAG2-905, Univ. Notre Dame, 1997 (NTRS 19980002796).
  46. B. W. Pomeroy, J. M. Diebold, P. J. Ansell, and M. S. Selig, “Study of burst wakes in a multi-element airfoil flowfield,” AIAA J., 2014, doi: 10.2514/1.J052680.
  47. B. W. Pomeroy and M. S. Selig, “Design of airfoils to mitigate wake bursting,” AIAA Paper 2017-1210, 2017.
  48. C. P. van Dam, “The aerodynamic design of multi-element high-lift systems for transport airplanes,” Prog. Aerosp. Sci., vol. 38, no. 2, pp. 101–144, 2002.
  49. J. Katz and A. Plotkin, Low-Speed Aerodynamics, 2nd ed. Cambridge, U.K.: Cambridge Univ. Press, 2001.
  50. L. E. Olson, “Viscous/potential flow about multi-element two-dimensional and infinite-span swept wings: Theory and experiment,” NASA TM X-62,513, 1976.
  51. F. A. Dvorak, F. A. Woodward, and B. Maskew, “A three-dimensional viscous/potential flow interaction analysis method for multi-element wings,” NASA CR-152012, 1977.
  52. T. Cebeci, “An interactive boundary-layer approach to multielement airfoils at high lift,” NASA Technical Reports Server, doc. 19930018256, 1993.
  53. E. D. Olson, “Semi-empirical prediction of aircraft low-speed aerodynamic characteristics,” in Proc. AIAA SciTech Forum, 2015 (NTRS 20150006019).
  54. R. B. Langtry and F. R. Menter, “Correlation-based transition modeling for unstructured parallelized computational fluid dynamics codes,” AIAA J., vol. 47, no. 12, pp. 2894–2906, 2009.
  55. G. Martinez-Rodriguez and T. T. Takahashi, “Reflections on using potential flow codes to design high-lift systems,” in Proc. AIAA SciTech Forum, San Diego, CA, USA, 2022, AIAA 2022-1155.
← From section drag to mission performance AVL in practice →