Aller au contenu
GET /v1/righting-moment

Righting arm GZ and righting moment

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/shipstability-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/shipstability-api/v1/righting-moment" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/shipstability-api/v1/righting-moment", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/shipstability-api/v1/righting-moment");
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/shipstability-api/v1/righting-moment",
    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": "For small heel angles the righting arm GZ ≈ GM · sin(heel), and the righting moment that pushes the ship back upright = GZ × displacement. This linear relation holds up to roughly 7–10°; beyond that the true GZ curve bends away from it as the deck edge nears the water, so use a full cross-curve (KN) analysis for large angles. A bigger GM gives a steeper initial righting arm.",
        "inputs": {
            "gm_m": 1,
            "heel_deg": 10,
            "displacement_t": 5000
        },
        "righting_arm_gz_m": 0.1736,
        "righting_moment_t_m": 868.2,
        "righting_moment_kn_m": 8514.5
    },
    "meta": {
        "timestamp": "2026-06-06T23:53:54.026Z",
        "request_id": "4202dbb9-2713-4fb6-8d7f-cef349e613dc"
    },
    "status": "ok",
    "message": "Righting moment",
    "success": true
}