-
Notifications
You must be signed in to change notification settings - Fork 14
Home
kotsoft edited this page Mar 31, 2012
·
5 revisions
FluidCinder is a fast fluid simulator based on the MPM algorithm written in C++. It is currently in the form of a Cinder project for testing purposes but it really has no strange dependencies so you can copy the Simulator.cpp file anywhere.
There are two Simulator files. SimpleSimulator.cpp gives you the most basic single phase simulator. You can simulate either liquid or gas with it. Simulator.cpp will let you do elastic materials too with a slight decrease in performance.
Benefits of this engine
- Fast - It uses a hybrid particle-grid system so it's much faster than SPH
- Accurate - It uses high order interpolation to achieve the same quality as per-particle collision methods like SPH.
- Artifacts - Hybrid particle-grid simulators usually suffer from irregular particle distribution and clustering. This method greatly reduces these artifacts with its unique way of calculating density and pressure.