Final project for 50.017 Graphics and Visualization course in Singapore University of Technology and Design (SUTD).
Features:
- Smooth Particle Hydrodynamics (SPH) OpenCL / C++
- Marching Cubes with isovalue and edge caching (~8x faster than default Paul Bourke's version)
- SSE2 operations
- GLSL based reflection and refraction
OSX and XCode.
Change directory into the executable
folder.
cd executable
You may need to set the permissions on the Fluidsim
application to be executable.
sudo chmod +x Fluidsim
Then run
./Fluidsim
Open "GnV FluidSim.xcodeproj" in xCode.
By default, the SPH portion of the simulation uses the CPU.
To toggle between OpenCL and CPU mode, go to fluidSystem.h, and comment/uncomment the following:
#define OPENCL_SPH