Liquids, Smoke and Fire
Solvers
| Solver | What it is | Use it for |
|---|---|---|
| SPH | particle liquid: DFSPH (divergence-free, the default) or WCSPH (weakly compressible, with δ-SPH density diffusion); boundary particles on walls and on every rigid collider; viscosity, surface tension, adhesion, emitters, nozzles and sinks | splashes around moving machinery, sloshing tanks, floating and sinking debris, pouring |
| APIC / FLIP | hybrid particle–grid liquid; cut-cell pressure solve with a multigrid preconditioner (MGPCG); solids moving with rigid bodies | large volumes at low cost: pools, waves in tanks, flooding interiors |
| Smoke and fire | incompressible gas on a MAC grid: MacCormack / BFECC advection, buoyancy, vorticity confinement, combustion with expansion, moving obstacles, wind and blast fields | smoke, fire, fireballs, exhaust, dust clouds |
| Particle surfacing | anisotropic implicit surface, marching cubes, smoothing | meshes for rendering from any particle liquid |
Position-based fluids live with cloth in the XPBD world; landscape-scale water is on the Ocean page.
In Divooka
| Available in Divooka | Planned |
|---|---|
SPH water: AddWaterTank, AddWater (any block, for a dam break), particle radius and viscosity; WaterParticles, WaterParticleCount, WaterSurface; WaterInRegion triggers; PLY export |
solver choice (DFSPH / WCSPH); FLIP liquids; surfacing options |
On a graphics card (Vulkan): liquid tanks with taps and drains (ContinuumLiquid, LiquidSession), their surfaces exported per frame; smoke and fire with embers and sparks (ContinuumSmoke, SmokeSession), as flipbooks and OpenVDB volumes; bodies from the scene nodes float and are pushed in both |
Validation
| Test | Result |
|---|---|
| 3-D dam break against SPHinXsys | surge fronts within 0.04 in t√(g/H); energy left at t√(g/H) = 8: 0.54 (DFSPH), 0.53 (WCSPH), 0.57 (SPHinXsys) |
| Impact pressure on the far wall | peaks within 2–15 % of Lobovský's experimental medians |
| Water at rest | holds its height (0.999 H in 3-D with DFSPH) |
| Floating box (WCSPH), lifted and released | settles at −0.1686 m against Archimedes' −0.1667 m |
| Dam-break front against Martin and Moyce (1952) | mean error 14 % with 1 000 particles, 12 % with 8 000, always ahead of the experiment (inviscid SPH without wall friction or a gate) |
| FLIP | divergence-free to 1e-5; volume kept within about 1 % by particle-density correction |
| SPH, FLIP and smoke on 1 and N threads | bit-identical |
Against SPHinXsys on the same machine, Continuum is 2.4–6× faster in 3-D; SPHinXsys is 3.5× faster in 2-D.
Cost
SPH costs about 2.6 µs per particle and sub-step on two cores; a 10 000-particle dam break about 90 ms per step on two threads. FLIP at 64³ about 440 ms per step on two threads; smoke at 64³ about 54 ms. The catalog's dam break runs at about 31 ms per frame at preview quality and 400 ms at full quality.
Limits
- DFSPH breaks a run-up jet into more spray than SPHinXsys and keeps less energy late in a violent run (2-D dam break at t√(g/H) = 8: 0.61 against 0.76); the single-layer wall model carries about 1.6 times the local pressure next to a wall.
- FLIP bodies float about 0.8 of a cell high; details below a grid cell are lost.
- Smoke is a visual model (incompressible, Boussinesq), not a combustion chemistry code.
- Halving the SPH particle radius costs about sixteen times as much.
Sample scenes
dam-break-crates, flip-splash, smoke-obstacle, campfire, xpbd-liquids, sph-fountain, blast-wall, harbor-blast.