Skip to main content
POST
LBM flow preview (V1) -- unverified, outside the result path

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
force_x
number
default:0.00002

streamwise body force (|f| <= 1e-2)

nx
integer
default:192

lattice cells along the flow (8..=512)

ny
integer
default:96

lattice cells across the channel (8..=256)

obstacle
object

Optional obstacle: {kind:'cylinder', cx, cy, r} or {kind:'box', cx, cy, w, h} -- centers and sizes as fractions of the domain. Omit for an empty channel.

snapshots
integer
default:6

velocity-magnitude frames returned (1..=16)

steps
integer
default:1500

LBM steps; steps x cells is capped for interactivity

tau
number
default:0.56

BGK relaxation time (0.51..=10); nu = (tau - 1/2)/3 lattice units

Response

Preview frames: base64 f32 velocity magnitudes + occupancy, labeled 'preview -- not verified'; no result key, nothing persisted