Skip to content

ehwan/SPHOpenCL3D

Repository files navigation

SPHOpenCL3D

3D Smoothed Particle Hydrodynamics with OpenCL

Dependencies

  • OpenCL
  • OpenGL
  • SFML - Windowing and OpenGL context
  • libMC33++ - Marching Cubes
  • ehgl - OpenGL c++ wrapper

Result

YouTube: Dambreak Video

Build & Run

To start the simulation,

$ mkdir build
$ cd build
$ cmake ..
$ make
$ ./sph

This will run the simulation and emit a vertices data file vertices.dat.

To render the simulation data,

$ mkdir build
$ cd build
$ cmake ..
$ make
$ ./sph_render vertices.dat

Pressing 'Q' will play the simulation.

About

3D Smoothed Particle Hydrodynamics with OpenCL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages