Refine an Explore setup (DX6 / DX6.b) -- the same setup through the ordinary content-addressed truth pipeline (structural, modal, random vibration, thermal, flow)
curl --request POST \
--url https://api.eddy.engineer/v1/preview.explore.refine \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"geometry": {
"assembly": [
{
"box": {
"lx": 123,
"ly": 123,
"lz": 123
},
"id": "<string>",
"at": [
0,
0,
0
]
}
],
"brep_blob": "<string>",
"csg": {
"prim": {}
},
"mesh_blob": "<string>",
"primitive": {}
},
"material": {},
"compare": true,
"conditions": [
{}
],
"element_size": 123,
"fidelity": 3,
"include_shapes": false,
"mode": "<string>",
"physics": "structural",
"segments": 48,
"voxel_size": 123
}
'import requests
url = "https://api.eddy.engineer/v1/preview.explore.refine"
payload = {
"geometry": {
"assembly": [
{
"box": {
"lx": 123,
"ly": 123,
"lz": 123
},
"id": "<string>",
"at": [0, 0, 0]
}
],
"brep_blob": "<string>",
"csg": { "prim": {} },
"mesh_blob": "<string>",
"primitive": {}
},
"material": {},
"compare": True,
"conditions": [{}],
"element_size": 123,
"fidelity": 3,
"include_shapes": False,
"mode": "<string>",
"physics": "structural",
"segments": 48,
"voxel_size": 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({
geometry: {
assembly: [{box: {lx: 123, ly: 123, lz: 123}, id: '<string>', at: [0, 0, 0]}],
brep_blob: '<string>',
csg: {prim: {}},
mesh_blob: '<string>',
primitive: {}
},
material: {},
compare: true,
conditions: [{}],
element_size: 123,
fidelity: 3,
include_shapes: false,
mode: '<string>',
physics: 'structural',
segments: 48,
voxel_size: 123
})
};
fetch('https://api.eddy.engineer/v1/preview.explore.refine', 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/preview.explore.refine",
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([
'geometry' => [
'assembly' => [
[
'box' => [
'lx' => 123,
'ly' => 123,
'lz' => 123
],
'id' => '<string>',
'at' => [
0,
0,
0
]
]
],
'brep_blob' => '<string>',
'csg' => [
'prim' => [
]
],
'mesh_blob' => '<string>',
'primitive' => [
]
],
'material' => [
],
'compare' => true,
'conditions' => [
[
]
],
'element_size' => 123,
'fidelity' => 3,
'include_shapes' => false,
'mode' => '<string>',
'physics' => 'structural',
'segments' => 48,
'voxel_size' => 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/preview.explore.refine"
payload := strings.NewReader("{\n \"geometry\": {\n \"assembly\": [\n {\n \"box\": {\n \"lx\": 123,\n \"ly\": 123,\n \"lz\": 123\n },\n \"id\": \"<string>\",\n \"at\": [\n 0,\n 0,\n 0\n ]\n }\n ],\n \"brep_blob\": \"<string>\",\n \"csg\": {\n \"prim\": {}\n },\n \"mesh_blob\": \"<string>\",\n \"primitive\": {}\n },\n \"material\": {},\n \"compare\": true,\n \"conditions\": [\n {}\n ],\n \"element_size\": 123,\n \"fidelity\": 3,\n \"include_shapes\": false,\n \"mode\": \"<string>\",\n \"physics\": \"structural\",\n \"segments\": 48,\n \"voxel_size\": 123\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/preview.explore.refine")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"geometry\": {\n \"assembly\": [\n {\n \"box\": {\n \"lx\": 123,\n \"ly\": 123,\n \"lz\": 123\n },\n \"id\": \"<string>\",\n \"at\": [\n 0,\n 0,\n 0\n ]\n }\n ],\n \"brep_blob\": \"<string>\",\n \"csg\": {\n \"prim\": {}\n },\n \"mesh_blob\": \"<string>\",\n \"primitive\": {}\n },\n \"material\": {},\n \"compare\": true,\n \"conditions\": [\n {}\n ],\n \"element_size\": 123,\n \"fidelity\": 3,\n \"include_shapes\": false,\n \"mode\": \"<string>\",\n \"physics\": \"structural\",\n \"segments\": 48,\n \"voxel_size\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/preview.explore.refine")
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 \"geometry\": {\n \"assembly\": [\n {\n \"box\": {\n \"lx\": 123,\n \"ly\": 123,\n \"lz\": 123\n },\n \"id\": \"<string>\",\n \"at\": [\n 0,\n 0,\n 0\n ]\n }\n ],\n \"brep_blob\": \"<string>\",\n \"csg\": {\n \"prim\": {}\n },\n \"mesh_blob\": \"<string>\",\n \"primitive\": {}\n },\n \"material\": {},\n \"compare\": true,\n \"conditions\": [\n {}\n ],\n \"element_size\": 123,\n \"fidelity\": 3,\n \"include_shapes\": false,\n \"mode\": \"<string>\",\n \"physics\": \"structural\",\n \"segments\": 48,\n \"voxel_size\": 123\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}QuickFlow
Refine an Explore setup (DX6 / DX6.b) -- the same setup through the ordinary content-addressed truth pipeline (structural, modal, random vibration, thermal, flow)
Discovery's stage switch: the SAME body /v1/preview.explore took (geometry, fidelity, material, conditions by B-Rep face id, physics) is mapped onto the truth route's request -- physics structural onto /v1/solve.structural, modal onto /v1/solve.modal, random_vibration onto /v1/solve.random_vibration, thermal onto /v1/solve.thermal -- and run through the ordinary solve lifecycle with the same builders, so the answer IS that route's result for the mapped body (a cache hit when it already exists; POST the echoed `refine.solve` to refine.pipeline and the result_id is the same). The structural map (DX6, DX6.b): fixed_support -> constraints {region face:<id>, fixed all}; symmetry and a sliding support on an axis-aligned plane -> {fixed normal}; a sliding cylinder -> cylindrical {radial held}; hinged_support / cylindrical_support -> cylindrical {axis_origin, axis_dir from the fitted cylinder, radial, axial, tangential}; ball_support -> a rigid remote point at the face's B-rep centroid with remote_displacements {u 0, rot free}; force -> loads {region, force}; pressure -> loads {region, pressure}; gravity -> body_loads {accel: g}; acceleration a -> body_loads {accel: -a}; velocity -> body_loads {omega, axis_origin, axis_dir}; displacement -> fixed axes (0) and prescribed {dof, value}, with a rotation a rigid remote point at the origin (default the B-rep centroid) and its six prescribed components; remote_displacement -> a rigid remote point; moment and remote_force -> a deformable (RBE3) remote point's remote_loads; added_mass -> a deformable remote point's point_masses (under the body accelerations); bearing_load -> surface_loads {bearing}; spring -> a rigid remote point's point_springs on its global axis (preload as its remote load; the truth's spring holds the face rigid, Explore's couples its mean motion -- the map entry says so). An assembly (box parts) maps onto the truth's welded box assembly with extra_materials + material_regions part:<id>: supports name the merged box faces x_min ... z_max, forces may scope part:<id>@box:. Modal and random vibration map the Dirichlet supports (fixed, axis-aligned symmetry / sliding, held displacement components) and list the loads as ignored (as the Explore modal does without prestress); the psd conditions become direction, table (in (m/s^2)^2/Hz), damping_ratio and extra_inputs (the truth sums the modal variances, Explore keeps the cross terms -- they agree where the modes are apart). The thermal map (wave 5): temperature -> fixed_temps {region face:<id>, t}; convection -> convection {region, h, t_amb}; heat per_area -> heat_loads {flux}; heat total on a face -> heat_loads {power}; heat per_volume -> generation; a body heat total -> generation = total / the B-rep volume (noted); insulated -> the natural boundary (listed with to: natural, no row); the material's k (the truth validates e > 0 and 0 <= nu < 0.5 even for conduction, so the material needs them). A modal Refine also pairs the truth modes with Explore's by MAC (refine.modal_comparison: the Explore modal solved again; both read at the truth mesh's nodes inside Explore's active voxels; mac [Explore mode][truth mode] = (phi_e . phi_r)^2 / ((phi_e . phi_e)(phi_r . phi_r)), unweighted; pairs [{explore_mode, refine_mode, mac, sign, explore_frequency, refine_frequency, gap}] greedy from the largest MAC, so modes that swap order pair right; order_swaps; paired_mac_min_first3; `include_shapes` adds both stages' shapes at <= 4096 of those points as f32 base64). It sits beside the result, never in it (the address is the truth solve's); a queued (202) Refine carries refine.modal_comparison_note instead (POST again once done, a cache hit), a failed comparison refine.modal_comparison_error. The truth mesh is the boundary-snapped hex20 voxel mesh with face node sets (mesh_conform snap2, element_order 2, mesh_face_sets: the plain voxel mesh reads 14-21 % soft on CSG parts -- DX0.b's L-bracket comes out a whole number of cells thick -- and on that part hex8 snap still moves 5 % between 2.5 and 1.25 mm where hex20 snap2 moves 0.36 %; an assembly takes the welded box mesh; the response names it in refine.mesh_conform and refine.mesh_note) at element_size = 2 x the Explore voxel size at that fidelity (the one slider drives both stages) unless `element_size` [m] is given; a structural Refine also asks for mesh_opts.stress_recovery 'extrapolated' (point stresses on the truth side interpolate the extrapolated nodal stress -- the centroid field reads 4-22 % low at surface points). Refusals, typed and naming why (never a silently dropped condition): physics without a Refine mapping (PREVIEW_EXPLORE_PHYSICS: flow, em), a condition with no truth equivalent (PREVIEW_EXPLORE_CONDITION: bolt_preload -- no pretension section; an inclined symmetry or sliding plane -- the truth's normal support is axis-aligned; a sliding face neither plane nor cylinder; a spring off the global axes; an added mass under a spin; in a modal or random vibration any support but the Dirichlet ones, an added mass or a pre-stress; an assembly face the welded mesh does not name), a recipe assembly or a curved assembly part or an assembly on a modal route (PREVIEW_EXPLORE_MULTIBODY), a face the part does not have, no support the truth path holds, the Explore route's own condition refusals (a thermal setup's structural or radiation condition: PREVIEW_EXPLORE_CONDITION), a thermal setup without k, e or nu, without a temperature or convection, or with an insulated face that carries heat (INVALID_PREVIEW), a thermal assembly (PREVIEW_EXPLORE_MULTIBODY). The response is the truth solve's own (result_id, cached, kind 'result', fields, metrics, provenance) plus `stage: refine` and `refine {pipeline, solve, conditions [{condition, type, to (the rows' places, joined with ' + '), row (one row, or the list), note?}], element_size, element_size_rule, mesh_conform, mesh_note, note, modal_comparison?}`. DX4: physics flow maps onto /v1/solve.cfd (native-cfd) for an internal flow whose openings are the body's bounding faces (inlet plug -> inlet, outlet pressure -> outlet p_ref = p / rho, moving walls -> walls, slip / symmetry -> symmetry; the LES maps to laminar up to Re 2000 and to k_omega_sst above it), with refine.flow_comparison (both stages' pressure drop read the same way); external flows and openings off the six bounding faces refuse typed (PREVIEW_EXPLORE_NO_TRUTH).
POST
/
v1
/
preview.explore.refine
Refine an Explore setup (DX6 / DX6.b) -- the same setup through the ordinary content-addressed truth pipeline (structural, modal, random vibration, thermal, flow)
curl --request POST \
--url https://api.eddy.engineer/v1/preview.explore.refine \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"geometry": {
"assembly": [
{
"box": {
"lx": 123,
"ly": 123,
"lz": 123
},
"id": "<string>",
"at": [
0,
0,
0
]
}
],
"brep_blob": "<string>",
"csg": {
"prim": {}
},
"mesh_blob": "<string>",
"primitive": {}
},
"material": {},
"compare": true,
"conditions": [
{}
],
"element_size": 123,
"fidelity": 3,
"include_shapes": false,
"mode": "<string>",
"physics": "structural",
"segments": 48,
"voxel_size": 123
}
'import requests
url = "https://api.eddy.engineer/v1/preview.explore.refine"
payload = {
"geometry": {
"assembly": [
{
"box": {
"lx": 123,
"ly": 123,
"lz": 123
},
"id": "<string>",
"at": [0, 0, 0]
}
],
"brep_blob": "<string>",
"csg": { "prim": {} },
"mesh_blob": "<string>",
"primitive": {}
},
"material": {},
"compare": True,
"conditions": [{}],
"element_size": 123,
"fidelity": 3,
"include_shapes": False,
"mode": "<string>",
"physics": "structural",
"segments": 48,
"voxel_size": 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({
geometry: {
assembly: [{box: {lx: 123, ly: 123, lz: 123}, id: '<string>', at: [0, 0, 0]}],
brep_blob: '<string>',
csg: {prim: {}},
mesh_blob: '<string>',
primitive: {}
},
material: {},
compare: true,
conditions: [{}],
element_size: 123,
fidelity: 3,
include_shapes: false,
mode: '<string>',
physics: 'structural',
segments: 48,
voxel_size: 123
})
};
fetch('https://api.eddy.engineer/v1/preview.explore.refine', 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/preview.explore.refine",
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([
'geometry' => [
'assembly' => [
[
'box' => [
'lx' => 123,
'ly' => 123,
'lz' => 123
],
'id' => '<string>',
'at' => [
0,
0,
0
]
]
],
'brep_blob' => '<string>',
'csg' => [
'prim' => [
]
],
'mesh_blob' => '<string>',
'primitive' => [
]
],
'material' => [
],
'compare' => true,
'conditions' => [
[
]
],
'element_size' => 123,
'fidelity' => 3,
'include_shapes' => false,
'mode' => '<string>',
'physics' => 'structural',
'segments' => 48,
'voxel_size' => 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/preview.explore.refine"
payload := strings.NewReader("{\n \"geometry\": {\n \"assembly\": [\n {\n \"box\": {\n \"lx\": 123,\n \"ly\": 123,\n \"lz\": 123\n },\n \"id\": \"<string>\",\n \"at\": [\n 0,\n 0,\n 0\n ]\n }\n ],\n \"brep_blob\": \"<string>\",\n \"csg\": {\n \"prim\": {}\n },\n \"mesh_blob\": \"<string>\",\n \"primitive\": {}\n },\n \"material\": {},\n \"compare\": true,\n \"conditions\": [\n {}\n ],\n \"element_size\": 123,\n \"fidelity\": 3,\n \"include_shapes\": false,\n \"mode\": \"<string>\",\n \"physics\": \"structural\",\n \"segments\": 48,\n \"voxel_size\": 123\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/preview.explore.refine")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"geometry\": {\n \"assembly\": [\n {\n \"box\": {\n \"lx\": 123,\n \"ly\": 123,\n \"lz\": 123\n },\n \"id\": \"<string>\",\n \"at\": [\n 0,\n 0,\n 0\n ]\n }\n ],\n \"brep_blob\": \"<string>\",\n \"csg\": {\n \"prim\": {}\n },\n \"mesh_blob\": \"<string>\",\n \"primitive\": {}\n },\n \"material\": {},\n \"compare\": true,\n \"conditions\": [\n {}\n ],\n \"element_size\": 123,\n \"fidelity\": 3,\n \"include_shapes\": false,\n \"mode\": \"<string>\",\n \"physics\": \"structural\",\n \"segments\": 48,\n \"voxel_size\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/preview.explore.refine")
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 \"geometry\": {\n \"assembly\": [\n {\n \"box\": {\n \"lx\": 123,\n \"ly\": 123,\n \"lz\": 123\n },\n \"id\": \"<string>\",\n \"at\": [\n 0,\n 0,\n 0\n ]\n }\n ],\n \"brep_blob\": \"<string>\",\n \"csg\": {\n \"prim\": {}\n },\n \"mesh_blob\": \"<string>\",\n \"primitive\": {}\n },\n \"material\": {},\n \"compare\": true,\n \"conditions\": [\n {}\n ],\n \"element_size\": 123,\n \"fidelity\": 3,\n \"include_shapes\": false,\n \"mode\": \"<string>\",\n \"physics\": \"structural\",\n \"segments\": 48,\n \"voxel_size\": 123\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
application/json
Response
the truth route's response for the mapped body (/v1/solve.structural | /v1/solve.modal | /v1/solve.random_vibration | /v1/solve.thermal) + stage 'refine' + refine {pipeline, solve, conditions, element_size, element_size_rule, mesh_conform, mesh_note, note, modal_comparison?}