Download and source-code can be found on this website

Fluid Simulation

This is a smoothed particle hydrodynamics simulation

  • It heavily uses multithreading
  • It uses spatial hasing for fast performance
  • The C# code is optimized and readable
  • It can smoothly handle up to 20k particles

Showcase

Building:

Download .NET 9: https://dotnet.microsoft.com/en-us/download

Windows: dotnet publish -o ./build/windows --sc true -r win-x64 -c release

Linux: dotnet publish -o ./build/linux --sc true -r linux-x64 -c release

Resources