FZzzz / FluidSimulation

Postion-based Fluid Simulation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FluidSimulation

Postion-based Fluid Simulation

Introduction

This project implemented Position-ased Fluid(PBF) simulation with referencing to Unified Particle Physics for Real-time Applications published by Macklin and his fellow. Comparing with traditional particle-based fluid simulation, PBF has better stability over different timesteps and faster computation speed.

Result

OpenMP

10k fluid particles, 8 threads, 2 solver iterations

20 fps in average

CUDA

  • 64000 fluid particles
  • 70 fps in average

License

License: MIT

About

Postion-based Fluid Simulation


Languages

Language:C++ 64.7%Language:C 34.1%Language:Cuda 0.9%Language:GLSL 0.2%Language:Objective-C 0.2%Language:CMake 0.0%