/v1/wave-speed
Pressure-wave speed in a pipe
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}