sph-cpp:C++ 中的平滑粒子流体动力学实现-源码

上传者: 42110469 | 上传时间: 2021-07-12 17:01:44 | 文件大小: 42KB | 文件类型: ZIP
C++
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

文件下载

资源详情

[{"title":"( 53 个子文件 42KB ) sph-cpp:C++ 中的平滑粒子流体动力学实现-源码","children":[{"title":"sph-cpp-master","children":[{"title":"cmake","children":[{"title":"FindCg.cmake <span style='color:#111;'> 3.90KB </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"performance.cpp <span style='color:#111;'> 964B </span>","children":null,"spread":false},{"title":"timer.h <span style='color:#111;'> 792B </span>","children":null,"spread":false}],"spread":true},{"title":"bucket.h <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"particlesource.h <span style='color:#111;'> 816B </span>","children":null,"spread":false},{"title":"particle.h <span style='color:#111;'> 2.41KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 13.01KB </span>","children":null,"spread":false},{"title":"graphics","children":[{"title":"base","children":[{"title":"scene.cpp <span style='color:#111;'> 2.59KB </span>","children":null,"spread":false},{"title":"plane.h <span style='color:#111;'> 822B </span>","children":null,"spread":false},{"title":"surface.cpp <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"object.h <span style='color:#111;'> 576B </span>","children":null,"spread":false},{"title":"particle.h <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"shader.h <span style='color:#111;'> 510B </span>","children":null,"spread":false},{"title":"scene.h <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"surface.h <span style='color:#111;'> 693B </span>","children":null,"spread":false}],"spread":true},{"title":"opengl","children":[{"title":"scene.cpp <span style='color:#111;'> 530B </span>","children":null,"spread":false},{"title":"plane.h <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"particle.h <span style='color:#111;'> 568B </span>","children":null,"spread":false},{"title":"plane.cpp <span style='color:#111;'> 572B </span>","children":null,"spread":false},{"title":"scene.h <span style='color:#111;'> 310B </span>","children":null,"spread":false},{"title":"particle.cpp <span style='color:#111;'> 827B </span>","children":null,"spread":false}],"spread":true},{"title":"cg","children":[{"title":"plane_old_f.cg <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"scene.cpp <span style='color:#111;'> 16.45KB </span>","children":null,"spread":false},{"title":"plane_shadows_f.cg <span style='color:#111;'> 613B </span>","children":null,"spread":false},{"title":"plane.h <span style='color:#111;'> 534B </span>","children":null,"spread":false},{"title":"plane_v.cg <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"normals_f.cg <span style='color:#111;'> 394B </span>","children":null,"spread":false},{"title":"sphere_f.cg <span style='color:#111;'> 959B </span>","children":null,"spread":false},{"title":"shader.cpp <span style='color:#111;'> 3.60KB </span>","children":null,"spread":false},{"title":"object.h <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"sphere_old_f.cg <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"particle.h <span style='color:#111;'> 533B </span>","children":null,"spread":false},{"title":"particle_v.cg <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"plane.cpp <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false},{"title":"deferred_f.cg <span style='color:#111;'> 892B </span>","children":null,"spread":false},{"title":"shader.h <span style='color:#111;'> 963B </span>","children":null,"spread":false},{"title":"scene.h <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"particle_f.cg <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"plane_f.cg <span style='color:#111;'> 950B </span>","children":null,"spread":false},{"title":"sphere_shadows_f.cg <span style='color:#111;'> 613B </span>","children":null,"spread":false},{"title":"contour_f.cg <span style='color:#111;'> 2.47KB </span>","children":null,"spread":false},{"title":"particle.cpp <span style='color:#111;'> 2.10KB </span>","children":null,"spread":false},{"title":"particle_shadows_f.cg <span style='color:#111;'> 613B </span>","children":null,"spread":false},{"title":"sphere_v.cg <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":"shading_f.cg <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 242B </span>","children":null,"spread":false},{"title":"utils.h <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"CMakeLists.txt <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"bucket.cpp <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false},{"title":"particle.cpp <span style='color:#111;'> 14.38KB </span>","children":null,"spread":false},{"title":"particlesource.cpp <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false},{"title":"particleiterator.cpp <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明