Naar de inhoud
GET /v1/drain-time

Tank drain time through an orifice

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/torricelli-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/torricelli-api/v1/drain-time" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/torricelli-api/v1/drain-time", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/torricelli-api/v1/drain-time");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/torricelli-api/v1/drain-time",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "formula": "t = (2·A_tank)/(Cd·A_orifice·√(2g)) · (√h0 − √h1).",
        "gravity_ms2": 9.80665,
        "final_head_m": 0,
        "tank_area_m2": 1.002874915,
        "initial_head_m": 2,
        "orifice_area_m2": 0.001963495,
        "drain_time_hours": 0.14614782,
        "drain_time_minutes": 8.768869,
        "drain_time_seconds": 526.1322,
        "discharge_coefficient": 0.62,
        "initial_flow_rate_l_s": 7.62451
    },
    "meta": {
        "timestamp": "2026-06-04T10:18:52.932Z",
        "request_id": "61c00971-e320-48eb-a769-b31fdcdc2a83"
    },
    "status": "ok",
    "message": "Tank drain time",
    "success": true
}