Ir al contenido
GET /v1/critical-time

Critical valve-closure time

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/waterhammer-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}