Granular Media and Particles

Three particle solvers share the engine's conventions and plug into the same scene.

Solver What it is Use it for
DEM discrete element granular dynamics: Hertz–Mindlin spheres, rolling resistance, cohesion, two-way rigid coupling sand, gravel, beads and moist soil; loads on blades and bins
VFX particles emitters (line, disc, point, mesh), update modules, curl noise, continuous collisions, events and sub-emitters sparks, debris, dust, spray, leaves
N-body self-gravitating bodies in double precision: direct SIMD and Barnes–Hut forces, leapfrog, Yoshida 4 and Hermite 4 integrators galaxies, planetary systems, clusters

In Divooka

VFX particles run on a graphics card that supports Vulkan: emitters, spark fountains, snowfall and bursts, with obstacles, as a scene (ContinuumParticles) or a session (ParticleSession), rendered to pictures and flipbooks. DEM granular media and N-body gravity are planned.

Validation

Test Result
Hertz normal force, sphere–plane and sphere–sphere within 3.6e-4 of 4/3 E*√R* δ^{3/2}
Restitution of a dropped grain requested e reproduced to within 2.5 %
Poured pile, μ = 0.5, rolling 0.3 angle of repose 24.3°
Grain bed on a dynamic floor force on the floor equals the weight to 0.00 %
VFX bounce on a plane h₁/h₀ = e² exactly (0.3600 for e = 0.6)
VFX two-way momentum the body receives exactly the particles' momentum
Kepler orbit e = 0.5, Yoshida 4, 100 periods energy error 2e-9
Solar system, one sidereal year Earth returns within 2.8e-5 AU
Barnes–Hut against direct, 2 000 bodies median force error 5.3e-5
All three on 1 and 2 threads bit-identical

Cost

20 000 DEM grains cost about 240 ms per step on one core; 100 000 Barnes–Hut bodies about 680 ms. The catalog's bulldozer (7 700 grains) runs at about 14 ms per frame at preview quality.

Limits

  • DEM grains are spheres; angular grains are approximated by rolling resistance.
  • Grains trapped under an infinitely strong kinematic blade are crushed by the geometry; keep a small gap.
  • VFX particles do not interact with each other (use DEM or a liquid for that).
  • Hermite integration needs direct summation; there are no individual time steps.

Sample scenes

sand-bulldozer, sand-materials, sparks, vfx-lab, force-fields, galaxy-collision, solar-system.