https://www.youtube.com/watc...
My attempt at coding a grid-based fluid simulation to try and achieve some smoky effects!
Support my work (and get early access to new videos and source code) on Patreon or Nebula
* Patreon: https://www.patreon.com/SebastianLague
* Nebula: https://go.nebula.tv/sebastianlague
Source Code:
Currently in early access (see links above), but will be available to everyone on 11 November.
Credits:
Fluid notes: https://www.cs.ubc.ca/~rbridson/fluidsimulation/fluids_notes.pdf
Music: https://raw.githubusercontent.com/SebLague/Misc-Project-Info/refs/heads/main/Coding-Adventures/Smoke
Chapters
00:00 Intro
00:50 Navier-Stokes Equations
02:00 Divergence
05:09 Solving for Pressure
08:26 Gauss-Seidel Iteration
10:36 Solid Cells
12:26 Velocity Interpolation
15:15 Advection (with derivatives)
18:37 Semi-Lagrangian Advection
22:12 Testing
23:43 Successive Over-Relaxation
25:16 Visualizing Speed
26:32 Smoke Map
28:14 Parallel Pressure Solving
31:13 Vortex Shedding
35:48 A Few Little Experiments
37:55 Temperature
39:17 Final Smoke Experiments
40:38 Outro