2D Fluid Solver Simulation in c++

I decided to go back to basics and write a simple(ish) 2d fluid solver. I originally started a 3d one but it was hard to work stuff out and debug things as it was slow and seeing things in 2D is a lot easier. This new one is one c file (1k loc so far) and features... - MAC Grid - 3 density advection types, Semi-Lagrangian, Modified MacCormack and BFECC. - Semi-Lagrangian velocity advection - Simple boundary condition as in Robert Bridson’s Book/Course Notes. - Simple Jacobi Solver This is a self educational project to allow me to try out algorithms and see how they work in isolation.
Back to Top