Tomenol / realtime_2d_viscous_fluid_simulation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Real-time 2D viscous flow simulation

The purpose of this small code is to simulate fluid-like motion by solving simplified 2D low-resolution Navier-Stoke equations for incompressible/viscous fluids in real-time. The solver is greatly inspired from Jos Stam's paper : "Real-Time Fluid Dynamics for Games".

By taking advantage of the semi Lagrangian method, we can easily visualize the motion of virtual test particles in the fluid.

Results

image

image

image

About

License:GNU General Public License v3.0


Languages

Language:C++ 91.4%Language:C 8.6%