| In recent years,with the rapid development of computer hardware technology,computer graphics technology based on it has become hot.Fluid simulation,as an important research field,has been paid more and more attention by researchers.According to the knowledge of hydrodynamics,the equations of motion applicable to different scenarios are derived for the simulation of common phenomena such as ocean and foam.On this basis,the large-scale water body simulation,large-scale drying particle flow simulation and the one-way coupling between solid and water body and particle flow are studied and discussed in this paper.Aiming at the problem that the Navier-Stokes equation can not simulate water body in real time,we propose a new semi-Lagrangian implicit solution based on shallow water equation.The improved semi-Lagrangian advection method is used to ensure the volume conservation before and after advection,and the volume correction step is added to keep the volume unchanged during the whole solution process,thus achieving a large volume.Largescale real-time water simulation with volume conservation under time step.In addition,a method of interaction between wind and water surface is proposed based on the conservation of wind stress and momentum.The experimental results show that the proposed method achieves a more realistic water body simulation.For the simulation of dry granular flow,by observing the hourglass,the hypothesis of twolayer model composed of sparse layer and dense layer is put forward.Combined with shallow water equation and S-H model,the deep sand equation is deduced for the simulation of dry granular flow such as sand.This method guarantees the real-time performance of the simulation,and can be applied to a wider range of scenarios,and is closer to the real effect.To solve the one-way coupling problem between solid and water and particle flow,an algorithm for obtaining a three-dimensional interaction region in a two-dimensional height field is proposed based on momentum conservation.We adopt the assumption of uniform diffusion to deal with the angular and vertical velocities,and convert them into horizontal velocities for interaction.The whole interaction can still run in real time.Based on this,a real-time sand painting system is developed.The method proposed in this paper has the characteristics of high efficiency and good effect.It plays an important role in engineering simulation,cultural education and navigation simulation. |