Skip to main content
Version: Next

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.

Supersonic surface flow​

After every solve Scirocco checks the speed on the airfoil surface:

GetterReturns
GetMachMax()Peak local Mach number on the surface, from the lowest through the isentropic relation; 0 at
IsSupersonic()true when GetMachMax() > 1, that is, when the lowest is below the sonic value GetState().param.cps
IsCompressibilityValid()false when the surface speed is past the limit of the correction (below)
scirocco::Scirocco foil("0012", 160);
for (double alpha : {2.0, 6.0}) {
foil.SetOper(alpha, -1.0, 1.0e6, 0.7);
if (foil.Solve() && foil.IsSupersonic())
std::printf("alpha %.0f: supersonic, peak Mach %.2f\n", alpha,
foil.GetMachMax());
else if (!foil.IsCompressibilityValid())
std::printf("alpha %.0f: past the Karman-Tsien limit\n", alpha);
}
alpha 2: supersonic, peak Mach 1.18
alpha 6: past the Karman-Tsien limit

Locally supersonic flow is only reported. The solve converges and the results are returned, but the correction doesn't model the shock that ends a supersonic pocket, so treat them as approximate. With param.verb >= 1, Solve() also prints a warning.

Past the limit of the correction the solve fails. The denominator of the Kármán–Tsien rule vanishes at a finite surface speed. As the speed approaches it, falls without bound and first passes the vacuum value , a negative absolute pressure. Near this limit the coupled equations have several solutions, so a cold and a warm start can converge to different ones; none of them describes the real flow. When the lowest surface is at or below vacuum , or the denominator is not positive anywhere on the surface, Solve() returns false, IsCompressibilityValid() is false and GetMachMax() is infinite. A warm start that lands there falls back to a cold start. NACA 0012 at reaches the limit between and at .

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 (IsSupersonic()) as unreliable. For transonic flow, use a solver that resolves shocks.

Source: bl_properties.h, forces.cpp, param.h.