Overview
This porject is for learning how to implement Smoothed-particle hydrodynamics (SPH) for liquid simulation in C language. Let's fill in the code at TODO.
Command Key - when main window is active
q:quit
r:Start simulation
i:Reset paticle position
s:Save simulation result
n:Stop saving
- LIB: math, glut, OpenGL, OpenMP
- SPH Parameter Data PATH: ../data/param.ini
- SPH Initial Particle Data PATH: ../data/bunny.stl
- SPH Container Data PATH: ../data/container.stl
- Export Data PATH: ../data/dst
$ gcc main.c SPH.c Mesh.c GLTool.c MathTool.c -fopenmp -lglut -lGL -lGLU -lm -o sph
$ ./sph ../data/bunny.stl