系统仿真学报 ›› 2015, Vol. 27 ›› Issue (4): 803-809.

• 虚拟现实与可视化 • 上一篇    下一篇

基于OpenCL加速的SPH流体仿真

肖苗苗, 刘箴, 史佳宾, 刘婷婷, 刘翠娟, 刘邦权   

  1. 宁波大学信息科学与工程学院, 宁波 315211
  • 收稿日期:2014-01-03 修回日期:2014-04-11 发布日期:2020-08-20
  • 作者简介:肖苗苗(1988-),女,湖北潜江人,硕士生,研究方向为流体动画;刘箴(1965-),男,辽宁省铁岭市人,博士,研究员,研究方向为计算机图形学、虚拟现实、情感计算。
  • 基金资助:
    国家自然科学基金(61373068);浙江省自然科学基金(LY13F020037);宁波市科技计划项目(2013D10011,2014C50018);高等学校博士学科点专项科研基金(No.20133305110004);浙江省教育厅科研项目(Y201431792)

Fluid Simulation of SPH Based on OpenCL

Xiao Miaomiao, Liu Zhen, Shi Jiabin, Liu Tingting, Liu Cuijuan, Liu Bangquan   

  1. Faculty of Information Science and Technology, Ningbo University, Ningbo 315211, China
  • Received:2014-01-03 Revised:2014-04-11 Published:2020-08-20

摘要: 流体在虚拟现实场景中扮演重要角色,基于物理模型的流体动画可以增强数值仿真的真实感。但通常的基于物理模型的流体动画渲染,如果没有采用并行计算,不能达到实时模拟的效果。使用异构计算平台OpenCL对SPH (smoothed particle hydrodynamics)方法进行加速,充分利用了OpenCL与图形渲染API的数据互通性,并采用了CPU和GPU的协同工作的技术,能够发挥硬件潜力;同时,采用库伦定律和SPH方法计算表面张力和粒子法线,初步的实验结果表明该方法有希望用于大规模流体仿真。

关键词: 流体仿真, 并行计算, OpenCL, SPH

Abstract: Fluid plays an important role in the Virtual Reality Scene. Physics-based fluid animation can enhance the reality of numerical simulation. The efficiency of fluid animation based on physical computing usually is not real-time rendering without parallel computing. Fluid simulation was proposed based on SPH using OpenCL, which could make full use of the data interoperability of OpenCL and the graphics API, and use the coordination work of CPU and GPU to increase the potential of the hardware; when physics computing, the surface particles and normals based on the Coulomb's law were solved out. The preliminary experiment shows that the method is hopeful in simulation a large scale fluid simulation.

Key words: fluid simulation, parallel computing, OpenCL, SPH

中图分类号: