sph-cpp
C++ 中的平滑粒子流体动力学实现
运行代码
使用 make 编译并从 build 目录运行 ./ray 可执行文件
可选参数:
-p: stiffness
-s: surface tension
-u: dynamic viscosity
-r: particle radius
-f: smoothing factor
-m: particle mass
-d: density
-n: number of particles
-q: particle spawning rate
热键:
r: Reset camera
o: Toggle OpenGL mode (non-raytraced spheres)
d: Toggle deferred shading. Deferred shading is needed for the surface splatti
2021-07-12 17:01:44
42KB
C++
1