Skip to main content
Version: 0.2.0

Scirocco

Scirocco is a C++17 library for analyzing 2D airfoils. Give it a shape and an operating point, and it returns lift, drag, moment, and the boundary layer. One more call returns the derivatives of those results with respect to every input, which is what a gradient-based optimizer needs.

  • Viscous, Re = 10⁶
  • Inviscid
-1-0.500.511.500.20.40.60.81x/c−Cp
NACA 2412 at α = 4°, 160 panels. Viscous: Cl = 0.720, Cd = 0.00693. The boundary layer lowers the suction peak and relieves the trailing-edge pressure recovery. Section drawn to scale.

What it does​

  • Inviscid and viscous analysis. A linear-vortex panel method, coupled by Newton's method to an integral boundary layer and wake when Re > 0.
  • Transition. amplification, with ncrit = 9 by default.
  • Compressibility. Kármán–Tsien correction for subsonic Mach numbers.
  • Geometry. NACA 4- and 5-digit sections, your own coordinates, flaps, camber changes, and a CST (Kulfan) parameterization.
  • Gradients. A discrete adjoint for , , and with respect to node coordinates, , , and , tested against complex-step reference data.
  • Output and integration. Optional HDF5 history files, and Philote gRPC servers that connect to any MDO framework with a Philote client.

Scirocco is a C++ port of mfoil by Krzysztof J. Fidkowski, extended with analytic adjoints. The Python mfoil implementation is the reference for every result and derivative in the test suite.

Pick your path​

Scirocco is licensed under Apache 2.0. mfoil is MIT-licensed; see NOTICE.