/v1/safety
Factor of safety vs yield
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/mohr-api/v1/safety" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/mohr-api/v1/safety", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/mohr-api/v1/safety");
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/mohr-api/v1/safety",
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": {
"formula": "FoS = Sy / σvm; σvm = √(σ1² − σ1σ2 + σ2²).",
"sigma_1": 110,
"sigma_2": 10,
"criterion": "von-mises",
"tresca_stress": 110,
"yield_strength": 250,
"factor_of_safety": 2.372895,
"von_mises_stress": 105.356538,
"equivalent_stress": 105.356538
},
"meta": {
"timestamp": "2026-06-04T10:18:51.336Z",
"request_id": "ecacc07f-a5e9-4917-933f-85ceb5e1b5c9"
},
"status": "ok",
"message": "Factor of safety",
"success": true
}