Skip to main content
POST
Explore preview (DX2 / DX2.b / DX2.c structural, modal and random vibration, DX3 thermal, DX13 electric / electric_thermal / electrostatic, DX4 flow) -- a cut-cell hex8 solve (flow: a D3Q19 lattice-Boltzmann run) on the live voxel field, unverified, outside the result path

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
geometry
object
required

Exactly one of primitive | csg | mesh_blob | brep_blob | assembly

material
object
required

structural: isotropic linear elastic {e [Pa], nu, rho [kg/m^3], yield [Pa]?, id?} (yield enables fos_max / fos_p99); thermal: {k [W/(m K)] (alias conductivity), id?}; electric: {sigma [S/m]}; electric_thermal: {sigma | sigma_table [[T K, sigma S/m], ...], k}; electrostatic: {epsilon_r}

cells_across_gap
number
default:2

DX1.b cells-across-gap rule, 1..=64: a wall or gap with fewer voxels across is a thin feature (measured by ray from each triangle's centroid); with fidelity_rule 'cells_across_gap' it also drives the voxel size

conditions
object[]

structural (DX2 slice 1), by B-Rep face id: {type: fixed_support, face} | {type: force, face, total: [fx, fy, fz]} | {type: pressure, face, pressure} | {type: gravity, g: [gx, gy, gz]} | {type: symmetry, face}; DX2.b: {type: displacement, face, translation: [ux|null, uy|null, uz|null], rotation?, origin?} | {type: moment, face, moment} | {type: added_mass, face, mass} | {type: bearing_load, face, total} | {type: bolt_preload, face, axial_force | adjustment | torque, k_factor?, diameter?} | {type: acceleration, a} | {type: velocity, omega, origin?} | {type: spring, face, kind, stiffness, preload?, direction?} | {type: remote_force, face, location, force} | {type: remote_displacement, face, location, translation, rotation}; DX2.c: {type: sliding_support, face} | {type: hinged_support, face} | {type: cylindrical_support, face, radial?, axial?, tangential?} | {type: ball_support, face}; supports that hold every rigid-body motion (a fixed_support, a fully prescribed displacement / remote_displacement, or sliding / hinged / ball supports, symmetry planes and springs together); modal takes the supports and added mass (loads only with prestress); random_vibration takes them plus {type: psd, direction, table: [[f, G], ...], unit?, damping?}. thermal (DX3): {type: temperature, face, t} | {type: convection, face, h, t_ext} | {type: heat, face?, total | per_area | per_volume} | {type: insulated, face}; at least one temperature or convection

coverage
enum<string>
default:sdf

DX1.b boundary coverage: 'sdf' = clamp(1/2 - sdf/h, 0, 1) (exact on faces parallel to a voxel face) | 'exact' = the 9-ray fraction (ss_geometry occupancy_coverage) on every voxel within half a diagonal of the surface

Available options:
sdf,
exact
em_region
object

DX13 electrostatic: solve in a box padding [m] beyond the part, the part a conductor hole ({padding})

engine
string
default:cpu

cpu (f64, byte-deterministic referee) | gpu (structural and thermal: the WGSL multigrid with double-single Krylov recurrences and f64 iterative refinement, typed PREVIEW_GPU_UNAVAILABLE without an adapter)

fidelity
integer
default:3

fidelity level 1..=5 (voxel budget 2^15 .. 2^24; the DX1 ladder)

fidelity_rule
enum<string>
default:slider

DX1.b: 'slider' (the level or voxel size stands) | 'cells_across_gap' (refine to the coarsest finer level -- or, past level 5, the explicit size -- that gives the thinnest wall or gap cells_across_gap voxels; never coarser than the slider; PREVIEW_CAP past the WebGPU cap, never a clamp)

Available options:
slider,
cells_across_gap
include_buffers
boolean
default:false

also return buffers {node_index_b64 (u32 LE), displacement_b64 (f32 LE x3), element_index_b64 (u32 LE), von_mises_b64 (f32 LE)}; allowed up to 2^19 voxels (fidelity <= 2); thermal: {node_index_b64, temperature_b64 (f32 LE, K), element_index_b64, heat_flux_b64 (f32 LE, W/m^2)}

include_faces
boolean
default:false

also return all_faces: every B-Rep face's id, triangle count, area, centroid and mean normal, to pick condition faces from

local_fidelity
object[]

DX1.b local fidelity regions: the one uniform grid is refined to the coarsest level whose voxel size resolves every region's size; fidelity_choice reports the cost and what DX1.c nested patches would cost instead (not built)

materials
object

DX2.b multi-material: {part id: {e, nu, rho, yield?}} for an assembly geometry; a part not listed takes material

max_iterations
integer
default:3000

PCG iteration cap

model
string

physics predict: the surrogate to predict with, a field training run id (/v1/train.field); absent or served, the checked-in DX9 model

modes
integer
default:6

DX2.b modal: how many modes (1..=20)

physics
string
default:structural

structural (DX2 / DX2.b / DX2.c) | modal (DX2.b) | random_vibration (alias psd; DX2.c: the modes plus psd conditions) | thermal (DX3) | topology (DX11: SIMP topology optimization, the topology block; sync with a handle or async: GET /v1/preview.explore.topology/{handle}) | electric | electric_thermal | electrostatic (DX13) | flow (alias fluid; DX4: the D3Q19 lattice-Boltzmann preview) | predict (DX9: the trained field surrogate, also engine surrogate: displacement and von Mises at the voxel nodes with a confidence = the distance to the training set; kind preview, never a result; refused typed: PREDICT_CONDITIONS beyond fixed supports + one force, PREDICT_MATERIAL at another Poisson ratio, PREDICT_MODEL_UNAVAILABLE; the referee is /v1/preview.explore.predict.compare)

preconditioner
string
default:multigrid

PCG preconditioner on either engine: multigrid (one geometric V-cycle over the voxel grid, device-resident on the gpu arm) | jacobi (the inverse diagonal); the response's solver block reports which ran, its levels, iterations, refinement_rounds and converged

prestress
boolean
default:false

DX2.b modal: pre-stress with the static solve of the same conditions

probes
object[]

DX stress probes (structural only): the field interpolated at each point -- the voxel-centre stresses (cut cells below coverage 0.5 excluded) recovered to the voxel corners (the mean of eight, or a linear patch fit at the surface), interpolated trilinearly, von Mises of the interpolated tensor; displacement is the FE field at the point. /v1/results/{result_key}/probe answers the same probe on the truth path.

Maximum array length: 1024
segments
integer
default:48

curved-face tessellation segments (8..=256)

session
string

explore-session token: the previous solve under this token warm starts this one (in-memory LRU of 8 sessions / 256 MiB, never persisted); on engine gpu the token also keeps its device session (DX5: hierarchy + buffers, LRU of 8 sessions / 2 GiB of device buffers, released on eviction)

sharp_edges
object

DX1.b sharp-edge capture: flag the voxels a B-Rep edge with a dihedral above angle_deg runs through; subsample gives them a 4^3 sub-cell SDF coverage (sdf coverage only)

stream_buffers
boolean
default:false

Explore app wave 4: the same field buffers as ONE binary blob behind a short-lived handle, at every fidelity level (up to 2^25 voxels): the response's buffer_stream {uri, handle, format 'SSXBUF1', bytes, expires_in_s 120, sections [{name, dtype u32|f32, components, count, offset, bytes}], note}; GET buffer_stream.uri (/v1/preview.buffers/{handle}) for the bytes. Sections: node_index, element_index and the physics' fields (structural displacement x3 + von_mises; thermal temperature + heat_flux; modal mode_shape_1..n x3; random vibration also displacement_1sigma x3 + von_mises_1sigma). In memory only, never persisted, no result key

tolerance
number
default:0.00001

relative residual |r|/|b| at which the solve stops (default 1e-5 structural, 1e-6 thermal); modal: the eigen-residual |K phi - lambda M phi| / (lambda |M phi|) (default 1e-5)

topology
object

DX11 (physics 'topology'): Explore topology optimization on the same voxel operator. objective: 'stiffness' (min compliance) | {type: max_frequency, modes? (2, the bound formulation over the first modes, robust to repeated eigenvalues)} | {type: target_frequency, hz} | {type: balance, weight (0..1 on stiffness)} | 'min_stress' (the p-norm, P 8, of the qp-relaxed von Mises, q 0.5, adaptively normalised; its adjoint solved on the same operator) | {type: remove_material, fos} (minimum volume with that stress measure under yield / fos; needs the material's yield). reduction: {volume_fraction} kept | {percent} removed | {volume} [m^3] kept (default 50 % kept; remove_material ignores it). Manufacturing: min_thickness [m] (the density filter's radius is half of it; default 1.5 voxels), max_thickness [m] (a local-volume constraint: no solid ball of that diameter + 2h; MMA), overhang {angle [deg] (45), direction [axis]} with table_direction [axis] (the build plate's normal; Langelaar's AM filter layer by layer from the table, the support region the voxels of the layer below within h cot(angle)), pull {direction [axis], both? (false)} (the casting / milling filter: one way, nothing hidden from the tool; both ways, one contiguous segment a column, a parting plane anywhere), extrude {direction [axis]} (the density constant along the axis through the whole part, so every void the run leaves runs through it and a cut through the part can take it: after the density filter each column of the part's voxels along the axis -- every voxel with the same two other coordinates, across any gap -- takes its coverage-weighted mean, before the projection; the direction's sign means nothing. A column that holds a protected voxel is solid: frozen_elements in the answer. A pull or an overhang along the same axis is accepted and already met, so its filter is not run; along another axis it would make the density vary along the extrusion and is refused, 422 PREVIEW_EXPLORE_CONDITION. Refused too: filter sensitivity, and a protection that reaches every column. Both engines run it). Directions are grid axes (an oblique one refuses PREVIEW_EXPLORE_CONDITION). protect {faces? [ids], conditions? (true: every condition's face), depth? [m] (0: the face's own voxel layer), face_depths? [{face, depth [m]}] (a depth of its own for a face, in place of depth; a face named here is protected whether or not it is in faces or carries a condition; naming a face twice or a face that is not on the grid refuses)}. Controls: filter density | sensitivity (Sigmund's, OC and stiffness only), filter_radius [m], projection (true: Heaviside, beta 1 -> beta_max 16 doubling every 25 iterations or when settled, eta 0.5), update auto | oc | mma (auto: OC when the problem is min compliance with a linear chain -- no projection, pull, overhang or max thickness -- else MMA, Svanberg's mmasub / subsolv), penalty (3), move (the most a design variable changes an iteration: 0.2; for remove_material 0.05 with a step back -- a step after which the stress measure is above 1.25 times its allowable and 1.25 times its value before the step is redone from the point before it with half the move, at most four times in a row, and the history marks that iteration rejected; a value given is used as is, with no step back), max_iterations (100, at most 400), tolerance (0.01, the largest design change), e_min (1e-9 of E), x_min (0), iso (0.5, the extracted surface's level), smooth (2 Taubin passes on the convert mesh), modal_tolerance (1e-4), mode sync | async. Refusals: multi-body parts, body loads (gravity, acceleration, velocity: design-dependent loads), prescribed displacements and bolt preloads (DX11.b), an objective without the loads, density or yield it needs, a target volume the protected voxels already fill. The answer: kind 'preview', label, topology_handle and uri, objective, reduction, manufacturing (with extrude, when asked: {direction, axis, columns, frozen_elements, frozen_fraction (of the part's voxels), filter}), protected {faces, depth, face_depths [{face, depth}], elements, frozen_elements? (with extrude: the voxels its columns add to the protected ones)}, design_elements (the voxels neither protected nor frozen), update, move, filter, projection, volume {part, target, final, fraction}, iterations, converged, stop, history [{iteration, objective, compliance, frequencies, stress, volume_fraction, change, beta, solver_iterations, warm_start, converged_solve, rejected, solve_ms, iteration_ms}], measured {max_member_thickness, solid_voxels, gray_fraction, overhang? {unsupported_voxels, checked}, pull? {hidden_voids, runs}, extrude? {columns, void_columns, mixed_columns (columns with solid and void voxels at the iso level: 0), density_spread (the largest difference of density within a column: 0)}}, iso {level, smooth_passes, vertices, triangles, volume}, buffer_stream (element_index, density, iso_vertices, iso_triangles), gpu? (the device timings on engine gpu), timings_ms. Async: 202 with topology_handle and uri at once.

voxel_size
number

explicit voxel size (model units) instead of the level; the buffer cap still applies

Response

kind 'preview', label 'preview -- not verified', physics, engine (+ adapter on gpu); the grid (voxel_size, dims, origin, voxels, solid_voxels), elements / nodes / dofs, faces used (quads, area_voxel, mean_displacement? -- structural), unclassified_quads, all_faces?; solver {iterations, max_iterations, tolerance, residual, initial_residual, converged, warm_start, coverage_floor, preconditioner, levels, refinement_rounds, gpu_session? {resumed, kept, hierarchy: built | updated | cached, level_bytes, uploaded_bytes, device_bytes, pool_sessions} (gpu arm)}; timings_ms adds gpu_open (the call that opened the device), gpu_hierarchy, gpu_upload, gpu_device, gpu_verdict on the gpu arm; results {max_displacement(_at), max_von_mises(_at), p99_von_mises, note, fos_max?, fos_p99?}; reactions [{condition, face?, force, nodes, moment?}] (a spring's is its force on the body, a torsional spring's carries its moment); balance {total_applied, total_reaction, imbalance, residual}; bodies? [{id, faces, e, nu, rho, yield?, elements}]; bolts? [{condition, face, force, adjustment, target_force?, torque?, k_factor?, diameter?, radius, section_area, centre, axis, elements}]; thin_features; fidelity_choice, coverage, sharp_edges? (DX1.b, as on /v1/preview.field); timings_ms; buffers?; probes? [{at, quantity, value (null on a miss), voxel_coverage, corners? {mean, fit, constant}, miss?}] with probe_recovery and timings_ms.probes (when probes were asked); modal (physics 'modal'): the same grid blocks, solver {eigensolver, mass, preconditioner, levels, block, iterations, max_iterations, tolerance, converged, applies, preconditioner_applies, coverage_floor}, modes [{mode, frequency, eigenvalue, residual, converged, effective_mass, effective_mass_fraction, max_at}], total_mass, prestress? {iterations, residual, max_displacement, p99_von_mises, note}, loads_ignored?, note, session_note?, buffers? {node_index_b64, mode_shapes_b64}; random vibration (physics 'random_vibration'): the modal body plus random_vibration {damping, combination, inputs, modal_rms, results {displacement_1sigma_max(_at), max_1sigma_displacement(_at), max_von_mises_1sigma(_at), p99_von_mises_1sigma, levels, note}} and buffers {element_index_b64, displacement_1sigma_b64, von_mises_1sigma_b64}; thermal (physics 'thermal'): the same grid / solver blocks, results {max_temperature(_at), min_temperature(_at), p99_temperature, max_heat_flux(_at), p99_heat_flux, note}, heat_flows [{condition, face?, kind, heat_out, nodes}], heat_balance {heat_in, convected_out, fixed_out, imbalance, residual}, adapter? (gpu), buffers?; no result key, nothing persisted; buffer_stream? (with stream_buffers): the field buffers as an SSXBUF1 blob behind GET /v1/preview.buffers/{handle} (in memory, expiring)