Skip to main content
POST
Run an incompressible CFD solve - steady or transient, laminar or RANS (synchronous)

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

Must carry nu_fluid > 0 (kinematic viscosity, m^2/s).

adjoint
object

O17.b: the continuous adjoint of the steady laminar duct flow (additive tag 31) - Othmer's formulation as adjointShapeOptimizationFoam carries it: the adjoint momentum convected by the reversed primal flux with the transpose convection, the adjoint continuity, the inlet u_a = -u_hat, the walls u_a = 0, the outlet's adjointOutletVelocity / adjointOutletPressure; the results carry cell_adjoint_velocity, cell_adjoint_pressure, cell_sensitivity (u_a.u), cell_design_alpha, objective_history and the metrics adjoint_iters / adjoint_converged / objective_power_loss / design_change_last. Anchor: the plug flow's adjoint is the plug u_a = -u_hat with p_a = -3U, climbing at alpha U through a porous slab, to 1e-8; the straight duct is left open by the iteration. Structured core, steady laminar single-phase; the polyhedral core, RANS, the force objectives and the page's Design tab are named.

compute
object

Per-solve compute placement: a region and a machine class. Unset fields inherit the gateway default (/admin/environment). Requires a distributed deployment and forces async execution; placement never changes result bytes. A placement the deployment runs no pool for is refused (NO_POOL).

controls
object

O14: the solver controls (tag 17; absent = the pinned engineering-grade schedule: under-relaxation 0.7 / 0.3, residual targets 1e-6 / 1e-5, the cap 5000). A zero keeps the pinned value; stop_at_limit returns the state at the cap with the metric converged = 0 instead of the typed refusal. Every steady solve adds the field residual_history (4 components per outer iteration: u_x, u_y, u_z, p) and the metric converged. Anchor: two relaxations meet within the Rhie-Chow dissipation's relaxation dependence (8e-3 of u_max; O1.b removes it), a tighter target ends below it, a capped run stops at the cap.

core
enum<string>
default:auto

O4: the finite-volume core. auto runs the structured core on a full box grid (the pre-O4 bytes and keys) and the POLYHEDRAL core on every other mesh - a snapped primitive (mesh_opts.mesh_conform: "snap" on a cylinder / sphere / cone / prism), a perturbed or imported mesh; polyhedral forces the polyhedral core on the box too (the referee of the two cores: on an orthogonal grid they agree to 3e-6 of u_max). The polyhedral core: face-based SIMPLE on the owner / neighbour topology with the over-relaxed non-orthogonal correction, one skewness-correction pass, least-squares velocity gradients, the polyhedral Rhie-Chow, aggregation-AMG PCG for pressure and ILU(0)-BiCGStab for momentum (the shared sparse module), the recursive-bisection solve numbering, byte-identical across SS_THREADS. The result adds the metrics mesh_faces, mesh_internal_faces, mesh_ortho_min, mesh_nonortho_max_deg, mesh_skewness_max, mesh_aspect_max, mesh_warp_max, mesh_volume, mesh_quality_warning (1 when a metric leaves the recommended band - orthogonal quality < 0.1, non-orthogonality > 70 deg, skewness > 2, aspect > 100, warp > 0.5), amg_levels, inner_u_iters, inner_p_iters and the field cell_ortho_quality; a mesh past the pinned limits (orthogonal quality < 0.01, non-orthogonality > 85 deg, skewness > 4, a non-positive cell volume) is INVALID_GEOMETRY naming the metric. Slice 1 is the steady laminar rung: turbulence, transient, periodic and initial fields on the polyhedral core refuse typed naming O4 slice 2 (they run on the structured box). Hashed into the model - forks the result key when set.

Available options:
auto,
polyhedral
coupling
object

O5: the steady pressure-velocity coupling (additive tag 19): simple (the default - the segregated SIMPLE, every earlier rung's bytes) or coupled (one block system for p and U per outer iteration, the pressure gradient and the Rhie-Chow continuity row implicit, ILU(0)-BiCGStab; the same discrete fixed point as SIMPLE in 3-10x fewer outer iterations). Steady only - the transient march is PISO / PIMPLE under time.coupling. O5 slice 2: density_based - the density-based solver for the ideal gas on the polyhedral core (a box case routes there): the conservative Euler / Navier-Stokes equations marched explicitly with Roe's flux or AUSM+ (flux), MUSCL second order under Venkatakrishnan's limiter, precondition for the low-Mach regime, local time stepping under cfl to a steady state or the transient gas under time (dt, n_steps). Supersonic inflow and shocks are this solver's; far_field gives the free stream of the inlet / outlet faces, initial: {kind: cells, u, p, t} the state of a shock tube (ABSOLUTE p [Pa], T [K]); gas.mu may be 0 (inviscid). Adds cell_density, cell_mach, cell_temperature and the metrics rho_min/max, mach_max, mass_flow_in/out, residual_rho.

energy
object

O2: the energy equation. Temperature transport on the flow with the material's k / cp / rho (all required > 0): the SIMPLE fluxes carry the convection with the momentum scheme, central diffusion, implicit under-relaxation 0.8, the residual target 1e-6; the transient march carries it with the same Euler / BDF2 time term. Adds the field cell_temperature and the metrics res_t, t_min, t_max, heat_rate_ [W, into the domain] and heat_flux_ [W/m^2] per thermal wall, heat_rate_walls. An enclosed case with energy needs no moving wall (buoyancy or conduction drives it). Anchors: the developed linear profile between two wall temperatures, the Brinkman viscous-heating profile, the Graetz Nusselt number 7.541, the de Vahl Davis cavity (Nu 1.118 / 2.243 at Ra 1e3 / 1e4), transient conduction vs the Fourier series. Slice 2 named: energy with a RANS model (the thermal law of the wall), on a periodic axis, the incompressible ideal gas. Hashed into the model - forks the result key.

fans
object[]

O7.2: fan faces (additive tag 28) - Fluent's fan: a plane of faces imposing the curve's pressure rise, explicit where the curve rises with v and a face resistance where it falls (the pressure-velocity coupling sees the slope), the adjacent cells' gradient excluding the rise like the porous jump's drop. Anchors: the rise across the plane is the curve at the plug velocity to 1e-9; the fan-system operating point against a radiator loss from a total-pressure inlet is the balance quadratic's root. The OpenFOAM referee writes the fan as a fan baffle with the curve as a jump table. Structured core, steady single-phase; the polyhedral core, the transient march, the gas and the second phase are named (O7.2 slice 2).

far_field
object

O5: the pressure far-field boundary (additive tag 20) - the free stream classified against the face's outward normal: an inflow face is a velocity inlet at M a(T) along the direction (energy.t_inlet must be the free-stream temperature), an outflow or tangential face a pressure boundary at p. Needs the gas; with no velocity inlet the far field is the inflow and the outlet the other face.

gas
object

O5: the ideal gas p = rho R T (additive tag 18) - compressible flow on the pressure-based coupled solver: needs coupling: {kind: coupled} and the energy equation (energy.t_inlet the inflow temperature); p_ref is the outlet's ABSOLUTE static pressure. The momentum operator is assembled on the mass fluxes, the continuity row carries the compressibility implicitly (F = rho phi + phi psi dp, psi = 1/(R T)), the energy equation is the total-enthalpy form. Slice 1 is subsonic and laminar: a supersonic inlet, RANS, periodic axes, buoyancy and the total-pressure inlet with the gas are typed O5.2; the polyhedral core is O5 slice 2. The result carries cell_density and cell_mach and the metrics rho_min / rho_max / mach_max / mass_flow_in / mass_flow_out.

init_from
string

S6: the warm start - the result_id of an earlier CFD run whose cell fields (cell_velocity, cell_pressure, cell_temperature, face_flux_box) become this solve's initial: cells (Fluent's read-data / interpolate). The cell count must be this case's; the fields are hashed into the case, so the key forks - never a silent byte fork. Not with initial.

initial
object

O1: the initial field - {"kind": "uniform", "u": {"x", "y", "z"}} or {"kind": "taylor_green", "u0", "k"} (u = u0 cos(kx) sin(ky), v = -u0 sin(kx) cos(ky), the exact decaying solution on a periodic box whose side is a multiple of 2 pi / k). Absent = at rest. The initial velocity is projected onto the discretely divergence-free space before the march.

inlet
object

Duct family: inlet face + uniform velocity. Omit together with outlet for an enclosed moving-wall flow (then walls is required).

inlet_profile
object

O13: the velocity inlet's profile - the speed piecewise-linear in one face-centre coordinate (a Fluent point / line profile, OpenFOAM's fixedProfile); inlet.velocity's magnitude is ignored while set. Anchor: the developed discrete profile fed back makes every column of the duct identical from the first cell. Hashed (tag 14).

mesh_motion
object

O18.b slice 2: the mesh motion of one time step (the ALE march on the polyhedral core) — the mesh blob holds the positions after the step; the convection runs relative to the mesh flux the swept face volumes give; one Euler step per request

mesh_opts
object
mode
enum<string>
Available options:
auto,
sync,
async
mrf
object

O7: the rotating reference frame (additive tag 23) over the WHOLE domain - the relative-velocity formulation: the momentum gains the Coriolis term -2 Omega x u, the centrifugal potential 1/2 |Omega x r|^2 is carried by a reduced pressure and restored on the result; the walls are at rest in the frame. Steady, single-phase, incompressible in slice 1; an MRF sub-zone with its frozen-rotor interface and the sliding mesh name O7.2. Anchor: the closed rotating box is at rest with the exact centrifugal pressure.

outlet
object

Duct family: outlet face + reference pressure. Required iff inlet is present.

periodic
enum<string>[]

O1: periodic axes - the two faces of the axis are one interior face (>= 2 cells; no inlet / outlet / moving wall on them). An enclosed periodic box with an initial field is a valid case (the Taylor-Green vortex).

Available options:
x,
y,
z
porous
object[]

O7: porous zones (additive tag 22) - the Darcy-Forchheimer sink S_i = -(mu D_i + 1/2 rho C_i |u|) u_i on the cells whose centre lies in the box, implicit on the momentum diagonal (the anisotropic remainder deferred; the Rhie-Chow d sees the resistance). Anchor: Ergun's plane channel carries dp/dx = nu D U + 1/2 C U^2 to 1e-6. The porous-jump face and the polyhedral core name O7.2 / O7 slice 2.

porous_jumps
object[]

O7 slice 7: porous jumps (Fluent's porous jump) - a plane of interior faces with the pressure drop dp = (mu / alpha v + 1/2 C2 rho v^2) thickness on the face's normal velocity, applied as a face resistance in the pressure-velocity coupling (the adjacent cells' pressure gradients exclude it). The structured core's SIMPLE and transient march carry it; the polyhedral core, the coupled solver, the gas, the VOF march, the lattice arm and both oracles refuse it typed. Hashed into the model (additive tag 27).

pressure_inlet
object

O13: a TOTAL-pressure inlet replacing inlet (needs outlet, u_in zero). The face static pressure follows Bernoulli from the current face-mean inflow (p_f = p0 - 1/2 u^2), the inflow velocity is the flux's normal component (OpenFOAM's totalPressure + pressureInletOutletVelocity), the flow rate is what the pressure difference drives; both cores. Anchor: the velocity-inlet duct's measured inlet total pressure fed back reproduces its flow rate within 2 %. Hashed into the model (tag 13).

quality
enum<string>

Mesh-density preset along the longest edge (draft L/5, standard L/8 = default, fine L/16). An explicit mesh_opts.element_size wins. Primitive/csg geometry only.

Available options:
draft,
standard,
fine
radiation
object

O7: the P1 radiation model (additive tag 25) on the steady energy solve - the incident radiation G from div(Gamma grad G) - a G = -4 a sigma T^4 with Marshak's wall condition, the energy source a (G - 4 sigma T^4) linearised (16 a sigma T^3 implicit); the result carries cell_incident_radiation and the radiative wall heat rates rad_heat_rate_. Anchor: the gray slab between black plates at radiative equilibrium carries q / sigma (T1^4 - T2^4) = 1 / (1 + 3 tau / 4). S2S and discrete ordinates name O7.2; Rosseland, DTRM, Monte Carlo and the solar load O7.b.

radiators
object[]

O7.2: radiator faces (additive tag 29) - Fluent's radiator: the pressure drop 1/2 rho k_L(v) v^2 as a face resistance and the heat h(v) (t_rad - T_up) [W/m^2] into the downstream cell (explicit). Anchors: the drop and the temperature lift h (t_rad - T_up) / (rho c_p U) in plug flow to 1e-9. The OpenFOAM referee writes the loss as a fan baffle with negative powers 2-4; the heat has no stock baffle condition and is named there. Structured core, steady single-phase.

reactions
object[]

O7.2: one-step reactions fuel (+ s oxidizer) -> (1 + s) product among the scalars (additive tag 30) - Fluent's finite-rate / eddy-dissipation model: the smaller of the Arrhenius and the eddy-dissipation rate when both are given, the fuel's consumption implicit per cell (the CSTR-in-series form of the upwind march), the oxidizer's likewise, the product's explicit, the heat release rho dH R into the energy equation. Anchors: the isothermal Arrhenius chain in plug flow is the CSTR series to 1e-9; the adiabatic chain reaches the coupled fixed point to 1e-6; the eddy-dissipation rate follows the solver's own decaying k-epsilon cell by cell. Structured core, steady single-phase; the polyhedral core, the transient march, the gas, the second phase and the OpenFOAM referee (reactingFoam) are named (O7.2 slice 2).

scalars
object[]

O7: passive scalars / species (additive tag 24) transported by the converged flow: upwind convection, diffusion, first-order reactions, fixed at the inlet, zero-flux at walls; the results carry cell_scalar_<name> and cell_uds_<index> with the metrics res_ / _min / _max. Anchor: the A -> B chain in plug flow is geometric on the upwind march and tracks e^(-k x / U). Mixture properties, multi-step / Arrhenius / eddy-dissipation reactions and inlet diffusion name O7.2.

scheme
enum<string>
default:upwind

Native momentum discretization: upwind (first-order, the pinned slice-1 default - existing result bytes unchanged) or linear_upwind (the oracle-matching arm: second-order linearUpwind grad(U) convection + simpleFoam's laminar dev2 transpose stress term). Hashed into the model - forks the result key. O1 adds limited_linear_upwind: the linearUpwind deferred correction under the van Leer TVD limiter (bounded second order) with the dev2 term. O1 slice 3 adds quick (the kappa = 1/2 quadratic upwind face value, unlimited; the OpenFOAM oracle's QUICK, the seat's quick) and bounded_central (central differencing inside the NVD monotone band, upwind outside - the LES scheme; the OpenFOAM oracle twins it with the plain central linear, the Fluent referee refuses it outside LES). O1 slice 4 adds barth_jespersen and venkatakrishnan (second-order upwind under the gradient limiter per cell and component - monotone; the OpenFOAM oracle's cellLimited / cellLimited on grad(U); the seat's standard limiter for the first, the differentiable one refused) and muscl (Fluent's third-order MUSCL blend, theta = 1/8 central + 7/8 second-order upwind; the OpenFOAM oracle's TVD MUSCL, the seat's third-order-muscl).

Available options:
upwind,
linear_upwind,
limited_linear_upwind,
quick,
bounded_central,
barth_jespersen,
venkatakrishnan,
muscl
solid_zones
object[]

O2: conjugate heat transfer - solid zones inside the domain (materials 1.. with box: material_regions; the fluid is the remainder). Needs energy; the case solves on the POLYHEDRAL core: the solid cells are blocked for the flow (u = 0, p = 0, every fluid-solid face a no-slip wall) and ordinary cells for the energy equation with the harmonic face conductivity (the implicit coupled wall). Adds the metric solid_cells. Anchor: the channel under a conducting slab - the series-resistance profile and interface temperature exact. The OpenFOAM oracle names chtMultiRegionFoam as slice 2.

solver
object

SC1: the solver block — HOW the equations are solved, never what the problem is. Absent, preset: reference, or a block equal to the domain's reference hashes as ABSENT (every pre-existing result key untouched); any keyed field forks the result key and the response names the reference_key the same body produces under preset: reference. A preset expands at request time to concrete fields (versioned: balanced@1, fast@1 …); explicit fields override the expansion field by field; two bodies that expand to the same block share a key (the preset NAME never enters the bytes). device and reference never enter the bytes. An arm this build or domain cannot serve is a typed 400 SOLVER_REFUSED naming its unit — never a silent fallback. preview is a setting, not a result: the same body routes to the V tier and answers kind: preview with result_id: null.

solver_version
string

Pin a solver id: default empty = the pinned OpenFOAM v2412 oracle (env-gated WSL install); "native-cfd" = the native deterministic FVM+SIMPLE stack (required for moving-wall / enclosed cases).

sources
object[]

O13: volumetric sources (tag 15). A momentum source drives a periodic channel (plane Poiseuille u_max = S H^2 / 8 nu, second order under refinement); a heat source in a fluid at rest gives T - T0 = q z (H - z) / 2k with the wall heat balancing q V exactly; both cores.

storage
object

Per-solve storage placement, beside compute: where this solve's blobs (the model document, the mesh, the fields, the log, the trace) are written. Placement never changes result bytes or the result_key; the run record and the provenance carry the instance id, and a verify re-solve writes to the same place. A read by key (GET /v1/blobs/{id}) finds the bytes in whichever instance holds them.

symmetry
string[]

O13: symmetry planes (axis face names, tag 16): zero normal velocity with its diffusion, zero normal gradient of everything else, no flux - never the inlet / outlet, a moving or thermal wall, or a periodic axis. Anchor: the half channel with a symmetry plane at the centreline is the full channel's lower half to 5e-4; both cores.

time
object

O1: a transient solve (PISO / PIMPLE on the SIMPLE core; the inner solves converged tightly per step). Absent = the steady solve. Adds the field time_history (4 components per step: t, mean kinetic energy per unit mass, max speed, max CFL) and the metrics steps, t_end, cfl_max, dt_min, dt_max, kinetic_energy; the final fields are the state at t_end. Hashed into the model (forks the result key). Measured on Taylor-Green: second order in space, the coupled time order 1.9 (the consistent transient momentum interpolation is O1.b); the linear integrator second order (BDF2 Richardson ratio 3.9).

turbulence
object

O3: a RANS turbulence model on the case. Lifts the laminar Reynolds gate (Re_Dh <= 2000 without it); hashed into the model, so it forks the result key. Adds the fields cell_k, cell_epsilon | cell_omega, cell_nut, cell_yplus (y* of each wall-adjacent cell, 0 elsewhere), cell_wall_shear (kinematic tau_w of wall-adjacent cells) and the metrics res_k, res_w, yplus_min/max/mean, wall_shear_mean, yplus_warning (1 when any wall-adjacent y* leaves the standard wall function's validity [11.53, 300] - the result stands, the warning is typed). Native solver only in this release (solver_version: "native-cfd"); the OpenFOAM oracle adapter generates the matching simpleFoam RAS case.

vof
object

O6: the volume-of-fluid two-phase flow (additive tag 21) on the transient march (time required): one velocity and pressure, the secondary phase's volume fraction alpha transported by an explicit sub-cycled (CFL 0.25) upwind + interface-compression flux bounded by Zalesak's FCT, the mixture density / viscosity in the mass-form momentum, gravity and the CSF surface tension as balanced face forces (a fluid at rest stays at rest with the exact hydrostatic pressure). Slice 1 is the enclosed box (walls / symmetry planes), laminar, isothermal, the neutral contact angle; open-channel inlets / outlets, a contact angle, turbulence, the energy equation and periodic axes name O6.2, the mixture / Eulerian / wet-steam models O6.b. The result carries cell_alpha and cell_density, the metrics alpha_volume0 / alpha_volume / alpha_min / alpha_max / vof_subcycles and the vof_extent_history blob (t, volume, the min / max x, y, z of the secondary phase per step).

walls
object[]

P11 slice 2 moving-wall BCs (the cavity lid). Each wall's lid Reynolds |u|*L/nu must stay <= 2000. Enclosed cases (no inlet/outlet) need at least one nonzero entry. Native solver only (solver_version: "native-cfd") - the OpenFOAM oracle refuses moving walls typed.

webhook
object

SD5: a signed webhook on an async job's completion — one POST of the finished job record to url with x-eddy-signature: blake3=<hex> (a keyed BLAKE3 MAC over the body, the key derived from secret), x-eddy-job and x-eddy-event (done | error); three attempts with backoff, logged on the job record under webhook. A sync solve answers inline and carries no webhook.

Response

CFD result with provenance (cell_velocity, cell_pressure fields). With solver.preset = preview the body is the PreviewKindResponse (kind: preview, result_id: null).

cached
boolean

True when served from the result_key cache

fields
object

Field name -> blob id. displacement: 3 components/node; von_mises: 1/node. Fetch via /v1/blobs/{id}

kind
enum<string>

SC1: result on every preset but preview; a preview answers the PreviewKindResponse shape (result_id null)

Available options:
result,
preview
metrics
object

max_von_mises [Pa], max_displacement [m], min_fos [-]

provenance
object
result_id
string

= result_key (b3:<64-hex>); null (a present null) when kind = preview

warnings
object[]

RC1.F1: typed warnings about the solve's inputs that did not stop it, e.g. MESH_QUALITY (degenerate or inverted elements in a snapped mesh; see mesh_opts.mesh_pillow). Absent when empty.