Zum Inhalt springen
GET /v1/critical-time

Critical valve-closure time

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/waterhammer-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/waterhammer-api/v1/critical-time" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/waterhammer-api/v1/critical-time", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/waterhammer-api/v1/critical-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/waterhammer-api/v1/critical-time",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "The critical time = 2L/a, the round-trip time for the pressure wave to travel to the far end of the pipe and back. Close the valve faster than this and you get the full Joukowsky surge; close it slower and the returning relief wave eats into the rise, so the surge falls roughly in proportion. Sizing valve-closure times (or fitting a surge tank/air chamber) above the critical time is the standard way to tame water hammer.",
        "inputs": {
            "pipe_length_m": 500,
            "wave_speed_m_s": 1200
        },
        "critical_time_s": 0.8333
    },
    "meta": {
        "timestamp": "2026-06-07T08:18:01.688Z",
        "request_id": "f4d0e2e5-05dd-4dde-8afa-dcbd78865f70"
    },
    "status": "ok",
    "message": "Critical time",
    "success": true
}