Zum Inhalt springen
GET /v1/principal

Principal stresses & Mohr circle

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/mohr-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "input": {
            "tau_xy": 30,
            "sigma_x": 100,
            "sigma_y": 20
        },
        "formula": "σ1,2 = (σx+σy)/2 ± √(((σx−σy)/2)² + τxy²); τmax = R; θp = ½·atan2(2τxy, σx−σy).",
        "sigma_1": 110,
        "sigma_2": 10,
        "mohr_circle": {
            "center": 60,
            "radius": 50
        },
        "tresca_stress": 110,
        "von_mises_stress": 105.356538,
        "max_in_plane_shear": 50,
        "max_shear_angle_deg": -26.565051,
        "principal_angle_deg": 18.434949,
        "sigma_3_plane_stress": 0
    },
    "meta": {
        "timestamp": "2026-06-04T10:18:51.236Z",
        "request_id": "e9d498a2-e6ed-4925-bf66-34b53f5c8567"
    },
    "status": "ok",
    "message": "Principal stresses & Mohr circle",
    "success": true
}