Back

#orifice

2 APIs with this tag

Orifice Flow Meter API

Differential-pressure flow-meter maths (ISO 5167) as an API, computed locally and deterministically for orifice plates, venturi tubes and flow nozzles. The flow endpoint computes the mass and volumetric flow rate from the measured pressure drop across the meter, qm = Cd·ε·E·A·√(2·ρ·ΔP), where E = 1/√(1−β⁴) is the velocity-of-approach factor, β = d/D the diameter ratio and A the bore area — and it reports the throat velocity and the permanent (unrecovered) pressure loss. The pressure endpoint works the other way: from a known flow it returns the differential pressure the meter will develop, ΔP = (qm/(Cd·ε·E·A))²/(2ρ), and the permanent loss. The sizing endpoint solves the meter geometry: from a target flow and an allowable pressure drop it iterates the required bore diameter and diameter ratio, and flags whether β falls in the ISO-recommended 0.2–0.75 range. Each device type carries its standard discharge coefficient (orifice 0.61, venturi 0.984, nozzle 0.96) which you can override. Everything is computed locally and deterministically, so it is instant and private. Ideal for process, HVAC and instrumentation engineering tools, flow-meter selection and commissioning, and fluid-mechanics education. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is differential-pressure flow metering; for pipe continuity (Q=A·v) use a flow-rate API and for friction pressure drop use a Darcy-Weisbach API.

api.oanor.com/orifice-api

Torricelli Efflux API

Torricelli efflux and orifice-discharge maths as an API, computed locally and deterministically. The velocity endpoint applies Torricelli's law, v = √(2·g·h) — the speed at which fluid jets from an orifice under a head h equals that of a body that has fallen the same height — and returns the ideal and the actual jet velocity (corrected by a coefficient of velocity), and, if you give the orifice diameter or area, the ideal and actual volumetric discharge Q = Cd·A·√(2gh) in litres per second and minute, cubic metres per hour and US gallons per minute. The drain-time endpoint computes how long a vertical cylindrical tank takes to empty through an orifice, t = (2·A_tank)/(Cd·A_orifice·√(2g))·(√h0 − √h1), from the tank and orifice sizes, the starting head and an optional final head, with the initial flow rate. The range endpoint gives the horizontal distance a jet from a side orifice travels before it lands, x = 2·Cv·√(h·y), from the head above the orifice and the orifice's height above the ground, with the jet velocity and time of flight. The discharge and velocity coefficients default to 0.62 and 0.97 and can be overridden, as can gravity. Everything is computed locally and deterministically, so it is instant and private. Ideal for fluid-mechanics and hydraulics tools, tank-drainage, irrigation and process-engineering apps, and physics education. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is orifice efflux and tank drainage; for pipe continuity Q = A·v use a flow-rate API and for tank volume and fill level use a tank API.

api.oanor.com/torricelli-api