Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Coding Adventure: Simulating Fluids

Sebastian Lague via YouTube

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

Reviews

Start your review of Coding Adventure: Simulating Fluids

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.