Skip to main content
Version: 0.3.0

2. Turn on viscosity

A positive Re turns on the boundary layer and wake. Nothing else about the model changes.

python examples/tutorials/02_viscous_analysis.py

Sweep Reynolds number​

problem.set_val("analysis.alpha", 2.0, units="deg")
problem.set_val("analysis.Ma", 0.0)

print(" Re Cl Cd Cm")
for reynolds in (2.5e5, 5.0e5, 1.0e6, 2.0e6):
problem.set_val("analysis.Re", reynolds)
problem.run_model()
cl = problem.get_val("analysis.cl")[0]
cd = problem.get_val("analysis.cd")[0]
cm = problem.get_val("analysis.cm")[0]
print(f"{reynolds:9.2e} {cl:8.5f} {cd:8.5f} {cm:8.5f}")
Re Cl Cd Cm
2.50e+05 0.27840 0.00967 -0.00665
5.00e+05 0.21612 0.00698 0.00425
1.00e+06 0.20489 0.00565 0.00514
2.00e+06 0.21067 0.00531 0.00320

Drag falls as Reynolds number rises. Lift and moment move too, because the boundary layer's displacement thickness changes the effective shape that the outer flow sees.

Add Mach number​

problem.set_val("analysis.Re", 1.0e6)
for mach in (0.0, 0.2, 0.4, 0.6):
problem.set_val("analysis.Ma", mach)
problem.run_model()
print(mach, problem.get_val("analysis.cl")[0])

The Kármán–Tsien correction is applied inside the server. It doesn't model shocks, so stay below the Mach number at which the surface goes sonic.