Overview
Embark on a coding adventure to simulate fluid dynamics using particle-based methods. Learn how to create a realistic water simulation by implementing gravity, collisions, smoothed particles, and density calculations. Explore advanced concepts like interpolation equations, gradient calculations, and pressure forces. Dive into optimization techniques for particle lookups and spatial grid implementation. Discover how to add interactive elements with mouse force and enhance realism through artificial viscosity. Tackle common challenges such as pressure problems and bugs, and explore parallel sorting for improved performance. Conclude the journey by experimenting with various tests and expanding the simulation into the third dimension.
Syllabus
Intro
Gravity and Collisions
Smoothed Particles
Calculating Density
The Interpolation Equation
Gradient Calculations
The Pressure Force
Trying to Make it Work...
Optimizing Particle Lookups
Spatial Grid Code
Position Predictions
Mouse Force
Artificial Viscosity
Pressure Problems
Bugs
Parallel Sorting
Some Tests and Experiments
The Third Dimension
Outro
Taught by
Sebastian Lague