All speeds in m/s, altitude in m, dT in K. Mach is dimensionless.
21.0.8crossover_alt(v_cas, mach, dT=0)
Compute crossover altitude for constant CAS and Mach.
v_cas: CAS (m/s)
mach: Mach number
Returns: altitude (m)
Usage note
Functions are available both as module-level (openap.aero.cas2tas(...)) and via class (openap.Aero(backend=...).cas2tas(...)). The class form supports CasADi/JAX backends.
Example:
from openap import aero# Atmosphere at 10000 mp, rho, T = aero.atmos(10000)print(f"Pressure: {p:.0f} Pa, Density: {rho:.4f} kg/m3, Temp: {T:.1f} K")# Convert 250 kt CAS to TAS at 10000 mv_cas =250* aero.kts # convert knots to m/sv_tas = aero.cas2tas(v_cas, 10000)print(f"TAS: {v_tas:.1f} m/s ({v_tas/aero.kts:.1f} kt)")
Pressure: 26430 Pa, Density: 0.4126 kg/m3, Temp: 223.1 K
TAS: 212.0 m/s (412.2 kt)