/v1/friction
Darcy friction factor
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/darcy-api/v1/friction" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/darcy-api/v1/friction", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/darcy-api/v1/friction");
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/darcy-api/v1/friction",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"method": "Swamee-Jain (Colebrook-White)",
"formula": "laminar f = 64/Re; turbulent f = 0.25/[log10(ε/3.7D + 5.74/Re^0.9)]².",
"flow_regime": "turbulent",
"friction_factor": 0.0201957,
"reynolds_number": 100000,
"roughness_source": "steel",
"relative_roughness": 0.00045
},
"meta": {
"timestamp": "2026-06-04T10:18:49.971Z",
"request_id": "f75771a8-ac8e-4c3e-9177-f826ee7b1390"
},
"status": "ok",
"message": "Darcy friction factor",
"success": true
}