系统仿真学报 ›› 2016, Vol. 28 ›› Issue (10): 2467-2475.

• 仿真建模理论与方法 • 上一篇    下一篇

一种基于DirectCompute加速的实时流体仿真框架

刘璐1, 刘箴1, 何高奇2, 陈田3, 刘婷婷1, 刘翠娟1   

  1. 1.宁波大学信息科学与工程学院 宁波 315211;
    2.华东理工大学计算机科学与工程系 上海 200237;
    3.上海电机学院 上海 200000
  • 收稿日期:2016-05-31 修回日期:2016-07-09 出版日期:2016-10-08 发布日期:2020-08-13
  • 作者简介:刘璐(1991-),女,重庆,硕士,研究方向为虚拟现实。
  • 基金资助:
    国家自然科学基金(61373068),宁波市科技计划项目(2015A610128,2015C50053,2015D10011,2016D10016),高等学校博士学科点专项科研基金(20133305110004)

Real Time Fluid Simulation Framework Based on DirectCompute

Liu Lu1, Liu Zhen1, He Gaoqi2, Chen Tian3, Liu Tingting1, Liu Cuijuan1   

  1. 1. Faculty of Electrical Engineering and Computer Science of Ningbo University, Ningbo 315211, China;
    2. Department of Computer Science and Engineering, East China University of Science and Technology, Shanghai 200237, China;
    3. Shanghai Dianji University, Shanghai 200000, China
  • Received:2016-05-31 Revised:2016-07-09 Online:2016-10-08 Published:2020-08-13

摘要: 针对流体仿真中流体粒子规模增大导致的仿真效率较低和较复杂固液边界处理耗时较长的问题,提出了一种基于DirectCompute加速的实时流体仿真框架,仿真中采用一种基于网格的局部碰撞检测方法来加快搜索固液边界,使用DirectCompute技术将流体计算、碰撞检测和流体表面重构部分放入GPU(Graphics Processing Unit)中并行计算来加速SPH(Smoothed Particle Hydrodynamics)流体仿真,并利用其特性优化了SPH流体仿真的存储结构,节省了存储空间。实验结果证明,该框架有效提高了带有较复杂静态场景的流体仿真速度,并能展现出流体水花细节。

关键词: 流体仿真, 光滑流体动力学方法, 碰撞检测, GPU加速

Abstract: A real time fluid simulation framework based on DirectCompute acceleration was proposed to solve problems of low simulation efficiency that caused by the increasing fluid particle size and long processing time that caused by the complex solid-liquid boundary. In the simulation, a grid local collision detection method was adopted to speed up the search for the solid-liquid boundary. Fluid calculation, collision detection and surface reconstruction were computed parallel in the GPU with DirectCompute technology to accelerate the SPH fluid simulation. It could optimize the storage structure of fluid simulation, and save the storage space. Experimental results show that the framework can effectively improve the fluid simulation speed with more complex static scene, and can show the details of the fluid spray.

Key words: fluid simulation, smoothed particle hydrodynamics, collision detection, GPU acceleration

中图分类号: