Oil Spill – Fluid Dynamics (HTML5)

Oil Water flow (vector) Containment boom
Interactions: Click & drag to add oil. Hold W and drag to add waves/current.
Drag the yellow endpoints to move the boom. Press B to toggle boom lock.
Model notes (simplified):
• Semi-Lagrangian advection, Jacobi pressure projection (incompressible).
• Oil = light immiscible scalar, floats via buoyancy; weak “surface tension” from curvature smoothing.
• Obstacles = shoreline + draggable boom (no-slip).
• This is pedagogical, not a naval-architecture-grade solver. 🛟