You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Olivier Li edited this page Feb 22, 2014
·
10 revisions
The library comes bundled with an example program.It runs a simulation using the parameters given and outputs the resutls in the folder specified with frames_folder_prefix.
The results can be viewed using HoudiniFX.
NB : The library and the example program are two separate things. The library itself only deals with the simulation. All input validation, configuration and file IO is done separately.
What you need
1. A driver that supports OpenCL for your GPU.
If you have an AMD card head over to this wiki for instructions.
2. A c++ compiler that supports c++11
The oficial compiler for the project is g++ but clang++ also works great.
3. The OpenCL headers
On Ubuntu this can be installed by running sudo apt-get install ocl-icd-opencl-dev.
How to try the example
Clone the repo on your local machine
Compile using make
Go to bin and run a simulation like this: ./example.out <fluid_name> <simulation_properties_name> <scene_name> <frames_folder_prefix>
Please notice that for {fluid_name,simulation_properties_name,scene_name} you only need to enter the base name of the file and not the path.