Aller au contenu
GET /v1/wave-speed

Pressure-wave speed in a pipe

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/waterhammer-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "note": "The pressure wave travels at a = √(K/ρ) in a perfectly rigid pipe (≈1,480 m/s for water), but a real elastic pipe slows it: a = √(K/ρ) ÷ √(1 + (K·D)/(E·t)), where K is the fluid bulk modulus, E the pipe's elastic modulus and D/t the diameter-to-wall ratio. A thin or flexible (plastic) pipe gives a much lower wave speed and so a gentler surge — one reason PVC tolerates hammer better than steel.",
        "inputs": {
            "pipe_youngs_gpa": 200,
            "bulk_modulus_gpa": 2.2,
            "pipe_diameter_mm": 100,
            "wall_thickness_mm": 5,
            "fluid_density_kg_m3": 998
        },
        "wave_speed_m_s": 1344.2,
        "rigid_pipe_wave_speed_m_s": 1484.7
    },
    "meta": {
        "timestamp": "2026-06-07T08:18:01.863Z",
        "request_id": "299f0594-2507-4e46-a5b1-a085c555bffa"
    },
    "status": "ok",
    "message": "Wave speed",
    "success": true
}