摘要
基于光滑粒子流体力学SPH的流体仿真是虚拟现实技术的重要研究内容,但SPH流体仿真需要大量的计算资源,采用一般计算方法难以实现流体仿真的实时性。流体仿真通常由物理计算、碰撞检测和渲染等部分组成,借助GPU并行加速粒子的物理属性计算和碰撞过程使SPH方法的实时流体仿真成为可能。为了满足流体仿真应用中的真实性和实时性需求,提出一种基于CPU-GPU混合加速的SPH流体仿真方法,流体计算部分采用GPU并行加速,流体渲染部分采用基于CPU的OpenMP加速。实验结果表明,基于CPU-GPU混合加速的SPH流体仿真方法与CPU实现相比,能显著地减少流体仿真单帧计算时间且能更快速地完成渲染任务。
Fluid simulation based on the Smoothed Particle Hydrodynamics (SPH) plays an impor- tant role in the virtual reality, but it requires a lot of computing resources. The general methods are difficult to achieve the real-time requirement of fluid simulation based on SPH. The simulation of fluid consists of physical computing, collision detection and rendering and so on. The parallel computing based on GPU can speed up the computing and collision of particles and simulate the motion of fluid in real- time. In order to satisfy lhe realistic and real-time requirements, a novel fluid simulation method based on CPU-GPU hybrid acceleration is proposed, which consists of computing and rendering. The compu- ting part of fluid simulation is accelerated by GPU, and the rendering part is accelerated by OpenMP running on CPU. The experiments show that the proposed hybrid acceleration method can significantly reduce the computing time in a fluid time step and complete rendering tasks more quickly.
出处
《计算机工程与科学》
CSCD
北大核心
2014年第7期1231-1237,共7页
Computer Engineering & Science
基金
国家自然科学基金资助项目(61372107
61272276
61190125)
国家973计划资助项目(2011CB707904)
北航虚拟现实技术与系统国家重点实验室开放课题基金资助项目(BUAA-VR-13KF-15)