Skip to main content
Version: Next

Panel method

Every solve starts with potential flow around the airfoil. Scirocco covers the surface with straight panels and places a vortex sheet on them whose strength varies linearly from node to node.

NACA 2412 with 60 panels (61 nodes). The paneler clusters nodes where curvature is high, at the leading and trailing edges.

The equations​

An airfoil with npanel panels has nodes, numbered from the lower trailing edge, around the leading edge, to the upper trailing edge. The unknowns are the nodal vortex strengths and one constant, the streamfunction value on the surface.

Flow can't cross the surface, so the streamfunction must equal at every node. That gives equations. The Kutta condition closes the system by making the flow leave the trailing edge smoothly:

A finite trailing-edge gap is modelled with an extra source and vortex panel across the gap. Scirocco factors the dense system once and solves it for freestream at 0° and 90°. Any angle of attack is then a weighted sum of the two, which is why an inviscid solve takes about a millisecond once the airfoil is paneled.

From vortex strength to forces​

On the surface, the edge velocity equals the vortex strength, so the pressure coefficient is

At nonzero Mach number, the Kármán–Tsien correction is applied to this. Integrating pressure around the surface gives and ; the moment is taken about the quarter chord, .

In potential flow, the drag of a 2D body is zero (d'Alembert's paradox), so inviscid Cd is reported as exactly zero. A separate near-field pressure drag, cdpi, is available in GetState().post and contains only discretization error.

Limits​

Potential flow knows nothing about the boundary layer, so it can't predict drag, separation, or stall. An inviscid lift curve stays straight long after the real airfoil has stalled. Use a viscous solve for anything that depends on the boundary layer.

Source: inviscid.cpp, panel_influence.cpp.