Isentropic Flow API
Isentropic compressible-flow (gas-dynamics) maths as an API, computed locally and deterministically. The isentropic endpoint gives the stagnation-to-static ratios of a perfect gas from a Mach number and the heat-capacity ratio γ (1.4 for air): the temperature ratio T0/T = 1 + (γ−1)/2·M², the pressure ratio p0/p = (T0/T)^(γ/(γ−1)), the density ratio and the area ratio A/A* relative to the sonic throat, and classifies the flow as subsonic, sonic or supersonic. The stagnation endpoint turns a static temperature and pressure plus a Mach number into the stagnation (total) conditions, the speed of sound a = √(γRT) and the flow velocity. The mach endpoint inverts the relations, solving the Mach number from a pressure, temperature or area ratio — an area ratio gives both the subsonic and supersonic roots — or from a velocity and temperature. Everything is computed locally and deterministically, so it is instant and private. Ideal for aerospace, propulsion, nozzle-design and wind-tunnel app developers, supersonic-flow and ducting tools, and engineering education. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is compressible isentropic flow; for the standard atmosphere use an atmosphere API and for incompressible Bernoulli flow a Bernoulli API.
api.oanor.com/isentropic-api