Bernoulli Flow API
Bernoulli and incompressible-flow maths as an API, computed locally and deterministically. The bernoulli endpoint applies Bernoulli's principle, P + ½ρv² + ρgh = constant along a streamline, taking the pressure, velocity and height at one point and solving the unknown pressure or velocity at a second point, and reporting the total head pressure. The dynamic-pressure endpoint computes the dynamic pressure q = ½ρv² from a velocity, or — the pitot-tube relation — the airspeed v = √(2q/ρ) from a measured dynamic pressure, plus the stagnation (total) pressure when a static pressure is supplied. The venturi endpoint computes the flow rate and inlet and throat velocities of a venturi or contraction from the inlet and throat areas and the pressure drop, Q = Cd·A₂·√(2ΔP/(ρ(1−(A₂/A₁)²))), combining continuity with Bernoulli, with an optional discharge coefficient. Density is taken from a value or a named fluid (air, water, seawater, oil). Everything is computed locally and deterministically, so it is instant and private. Ideal for aerospace, HVAC, plumbing, process and hydraulics app developers, airspeed and flow-meter tools, and fluid-mechanics education. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is Bernoulli/streamline flow; for pipe friction head loss use a Darcy API and for orifice metering an orifice API.
api.oanor.com/bernoulli-api