Probe a stored result field at points or along a line (S1), or answer DX stress probes
curl --request POST \
--url https://api.eddy.engineer/v1/results/{result_key}/probe \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"field": "<string>",
"points": [
[
123
]
],
"probes": [
{
"at": [
123
]
}
]
}
'import requests
url = "https://api.eddy.engineer/v1/results/{result_key}/probe"
payload = {
"field": "<string>",
"points": [[123]],
"probes": [{ "at": [123] }]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({field: '<string>', points: [[123]], probes: [{at: [123]}]})
};
fetch('https://api.eddy.engineer/v1/results/{result_key}/probe', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/results/{result_key}/probe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'field' => '<string>',
'points' => [
[
123
]
],
'probes' => [
[
'at' => [
123
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/results/{result_key}/probe"
payload := strings.NewReader("{\n \"field\": \"<string>\",\n \"points\": [\n [\n 123\n ]\n ],\n \"probes\": [\n {\n \"at\": [\n 123\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/results/{result_key}/probe")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"field\": \"<string>\",\n \"points\": [\n [\n 123\n ]\n ],\n \"probes\": [\n {\n \"at\": [\n 123\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/results/{result_key}/probe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"field\": \"<string>\",\n \"points\": [\n [\n 123\n ]\n ],\n \"probes\": [\n {\n \"at\": [\n 123\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Maps
Probe a stored result field at points or along a line (S1), or answer DX stress probes
Sample a stored result's field at explicit points or along a line a->b -- trilinear in-element interpolation, typed misses for points outside the mesh. Provide `field` with exactly one of `points` or `line`. Or provide `probes` [{at, quantity}] alone (DX stress probes, the same probe /v1/preview.explore answers): von_mises reads the solve's von_mises_extrapolated field (mesh_opts.stress_recovery 'extrapolated': the Gauss-point stress extrapolated to the corners, the tensor averaged at the nodes) or, when the solve has none, the centroid-averaged von_mises (named, with a note); displacement / ux / uy / uz read the displacement field; each is interpolated trilinearly in the element holding the point. A stress component (sxx ... szx) refuses PROBE_QUANTITY_UNAVAILABLE (422): a stored result keeps von Mises only. Response: {result_key, probes [{at, quantity, value (null outside), inside, element?, field, recovery: extrapolated | centroid | fe}], inside, outside, note?}.
POST
/
v1
/
results
/
{result_key}
/
probe
Probe a stored result field at points or along a line (S1), or answer DX stress probes
curl --request POST \
--url https://api.eddy.engineer/v1/results/{result_key}/probe \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"field": "<string>",
"points": [
[
123
]
],
"probes": [
{
"at": [
123
]
}
]
}
'import requests
url = "https://api.eddy.engineer/v1/results/{result_key}/probe"
payload = {
"field": "<string>",
"points": [[123]],
"probes": [{ "at": [123] }]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({field: '<string>', points: [[123]], probes: [{at: [123]}]})
};
fetch('https://api.eddy.engineer/v1/results/{result_key}/probe', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/results/{result_key}/probe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'field' => '<string>',
'points' => [
[
123
]
],
'probes' => [
[
'at' => [
123
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/results/{result_key}/probe"
payload := strings.NewReader("{\n \"field\": \"<string>\",\n \"points\": [\n [\n 123\n ]\n ],\n \"probes\": [\n {\n \"at\": [\n 123\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/results/{result_key}/probe")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"field\": \"<string>\",\n \"points\": [\n [\n 123\n ]\n ],\n \"probes\": [\n {\n \"at\": [\n 123\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/results/{result_key}/probe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"field\": \"<string>\",\n \"points\": [\n [\n 123\n ]\n ],\n \"probes\": [\n {\n \"at\": [\n 123\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
application/json
Response
Per-point values with in/out-of-mesh status