https://github.com/sjoerdev/fluid-simulation
this is a smoothed particle hydrodynamics simulation
https://github.com/sjoerdev/fluid-simulation
csharp fluid fluid-dynamics fluid-simulation fluid-solver fluids graphics opengl smoothed-particle-hydrodynamics
Last synced: 4 months ago
JSON representation
this is a smoothed particle hydrodynamics simulation
- Host: GitHub
- URL: https://github.com/sjoerdev/fluid-simulation
- Owner: sjoerdev
- Created: 2025-01-18T16:10:13.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-01-20T16:13:56.000Z (4 months ago)
- Last Synced: 2025-01-20T17:27:12.153Z (4 months ago)
- Topics: csharp, fluid, fluid-dynamics, fluid-simulation, fluid-solver, fluids, graphics, opengl, smoothed-particle-hydrodynamics
- Language: C#
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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
https://github.com/user-attachments/assets/9e318653-5ec1-4dc7-9071-c8a26ff5f471## 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
- https://matthias-research.github.io/pages/publications/sca03.pdf
- https://www.cs.cornell.edu/~bindel/class/cs5220-f11/code/sph.pdf
- https://cg.informatik.uni-freiburg.de/publications/2014_EG_SPH_STAR.pdf
- https://sph-tutorial.physics-simulation.org/pdf/SPH_Tutorial.pdf
- https://lucasschuermann.com/writing/particle-based-fluid-simulation
- https://lucasschuermann.com/writing/implementing-sph-in-2d