针对欧拉流体模型中的一些弊端,提出一种基于物理的流体模拟算法.该算法采用一种改进的网格配置及插值策略减小数值耗散,并引入一种实用的摩擦力机制减少流体在固体墙处的"过度攀爬"效应;求解压力时通过离散化等价模型隐式地嵌入Neumann边界条件,同时修改梯度算子嵌入Dirichlet边界条件,从而消除了速度场的失真现象.最后,通过对比实验展示了算法改进之处,证明了其高效、精确及稳定性.
To address some drawback in the Euler-based fluid models,this paper presents a physically based fluid simulation algorithm.The proposed algorithm reduces the numerical dissipation through an improved grid configuration and interpolation strategy,and introduces a practical friction mechanism to repel the "Excessively Climbing-up" effect of the fluid near the solid walls.Meanwhile,this algorithm discretizes an equivalent model to implicitly embed the Neumann boundary conditions for sovling the pressure,and modifies the gradient operator to embed the Dirichlet boundary condition,which eliminates the artifacts in the velocity field.At last,the experimental results with comparisons are presented to demonstrate the improvements in efficiency,accuracy and stability of the proposed algorithm.