Naar de inhoud
GET /v1/principal

Principal stresses & Mohr circle

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/mohr-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}