Compressibility
Set a Mach number in SetOper and Scirocco corrects the incompressible
pressure for compressibility. The boundary layer also uses
temperature-dependent viscosity. There's nothing else to configure.
foil.SetOper(2.0, -1.0, 3.0e6, 0.5); // Mach 0.5
Kármán–Tsien correction
The panel method gives the incompressible pressure . The Kármán–Tsien rule maps it to a compressible value:
For small this reduces to the Prandtl–Glauert factor . The extra term makes suction peaks grow faster than Prandtl–Glauert predicts, which matches experiment better at higher Mach numbers.
The sonic pressure coefficient is stored in GetState().param.cps. If the
surface drops below it, the flow is locally supersonic and the result
is outside what this model can represent.
Sutherland viscosity
Viscosity in the boundary layer follows Sutherland's law,
with for air (param.Tsrat). Change it only if
you have a reason to model another gas.
Limits
The correction doesn't capture shocks. It's appropriate for subsonic flow where the surface stays below sonic speed. Mach numbers up to just under 1 are accepted as input, but treat results with supersonic pockets as unreliable. For transonic flow, use a solver that resolves shocks.
Source: bl_properties.h,
param.h.