Viscoelastic flows play an important role in numerous engineering fields,and the multiscale algorithms for simulating viscoelastic flows have received significant attention in order to deepen our understanding of the ...Viscoelastic flows play an important role in numerous engineering fields,and the multiscale algorithms for simulating viscoelastic flows have received significant attention in order to deepen our understanding of the nonlinear dynamic behaviors of viscoelastic fluids.However,traditional grid-based multiscale methods are confined to simple viscoelastic flows with short relaxation time,and there is a lack of uniform multiscale scheme available for coupling different solvers in the simulations of viscoelastic fluids.In this paper,a universal multiscale method coupling an improved smoothed particle hydrodynamics(SPH)and multiscale universal interface(MUI)library is presented for viscoelastic flows.The proposed multiscale method builds on an improved SPH method and leverages the MUI library to facilitate the exchange of information among different solvers in the overlapping domain.We test the capability and flexibility of the presented multiscale method to deal with complex viscoelastic flows by solving different multiscale problems of viscoelastic flows.In the first example,the simulation of a viscoelastic Poiseuille flow is carried out by two coupled improved SPH methods with different spatial resolutions.The effects of exchanging different physical quantities on the numerical results in both the upper and lower domains are also investigated as well as the absolute errors in the overlapping domain.In the second example,the complex Wannier flow with different Weissenberg numbers is further simulated by two improved SPH methods and coupling the improved SPH method and the dissipative particle dynamics(DPD)method.The numerical results show that the physical quantities for viscoelastic flows obtained by the presented multiscale method are in consistence with those obtained by a single solver in the overlapping domain.Moreover,transferring different physical quantities has an important effect on the numerical results.展开更多
In this study,a common-node DEM-SPH coupling model based on the shared node method is proposed,and a fluid–structure coupling method using the common-node discrete element method-smoothed particle hydrodynamics(DS-SP...In this study,a common-node DEM-SPH coupling model based on the shared node method is proposed,and a fluid–structure coupling method using the common-node discrete element method-smoothed particle hydrodynamics(DS-SPH)method is developed using LS-DYNA software.The DEM and SPH are established on the same node to create common-node DEM-SPH particles,allowing for fluid–structure interactions.Numerical simulations of various scenarios,including water entry of a rigid sphere,dam-break propagation over wet beds,impact on an ice plate floating on water and ice accumulation on offshore structures,are conducted.The interaction between DS particles and SPH fluid and the crack generation mechanism and expansion characteristics of the ice plate under the interaction of structure and fluid are also studied.The results are compared with available data to verify the proposed coupling method.Notably,the simulation results demonstrated that controlling the cutoff pressure of internal SPH particles could effectively control particle splashing during ice crushing failure.展开更多
Predicting the response of liquefied natural gas(LNG)contained in vessels subjected to external waves is extremely important to ensure the safety of the transportation process.In this study,the coupled behavior due to...Predicting the response of liquefied natural gas(LNG)contained in vessels subjected to external waves is extremely important to ensure the safety of the transportation process.In this study,the coupled behavior due to ship motion and liquid tank sloshing has been simulated by the Smoothed-Particle Hydrodynamics(SPH)method.Firstly,the sloshing flow in a rectangular tank was simulated and the related loads were analyzed to verify and validate the accuracy of the present SPH solver.Then,a three-dimensional simplified LNG carrier model,including two prismatic liquid tanks and a wave tank,was introduced.Different conditions were examined corresponding to different wave lengths,wave heights,wave heading angles,and tank loading rates.Finally,the effects of liquid tank loading rate on LNG ship motions and sloshing loading were analyzed,thereby showing that the SPH method can effectively provide useful indications for the design of liquid cargo ships.展开更多
A coupled method describing gas–solid two-phase flow has been proposed to numerically study the bubble formation at a single orifice in gas-fluidized beds.Solid particles are traced with smoothed particle hydrodynami...A coupled method describing gas–solid two-phase flow has been proposed to numerically study the bubble formation at a single orifice in gas-fluidized beds.Solid particles are traced with smoothed particle hydrodynamics,whereas gas phase is discretized by finite volume method.Drag force,gas pressure gradient,and volume fraction are used to couple the two methods.The effect of injection velocities,particle sizes,and particle densities on bubble growth is analyzed using the coupled method.The simulation results,obtained for two-dimensional geometries,include the shape and diameter size of a bubble as a function of time;such results are compared with experimental data,previous numerical results,and other approximate model predictions reported in the literature.Moreover,the flow profiles of gas and particle phases and the temperature distribution by the heat transfer model around the forming bubble are also discussed.All results show that the coupled method efficiently describes of the bubble formation in fluidized beds.The proposed method is applicable for solving gas–solid two-phase flow in fluidization.展开更多
Particle based methods can be used for both the simulations of solid and fluid phases in multiphase medium, such as the discrete-element method for solid phase and the smoothed particle hydrodynamics for fluid phase. ...Particle based methods can be used for both the simulations of solid and fluid phases in multiphase medium, such as the discrete-element method for solid phase and the smoothed particle hydrodynamics for fluid phase. This paper presents a computational method combining these two methods for solid-liquid medium. The two phases are coupled by using an improved model from a reported Lagrangian-Eulerian method. The technique is verified by simulating liquid-solid flows in a two-dimensional lid-driven cavity.展开更多
The implementation of high pressure die casting (HPDC) filling process modeling based on smoothed particle hydrodynamics (SPH) was discussed. A new treatment of inlet boundary was established by discriminating flu...The implementation of high pressure die casting (HPDC) filling process modeling based on smoothed particle hydrodynamics (SPH) was discussed. A new treatment of inlet boundary was established by discriminating fluid particles from inlet particles. The roles of artificial viscosity and moving least squares method in the present model were compared in the handling pressure oscillation. The final model was substantiated by simulating filling process in HPDC in both two and three dimensions. The simulated results from SPH and finite difference method (FDM) were compared with the experiments. The results show the former is in a better agreement with experiments. It demonstrates the efficiency and precision of this SPH model in describing flow pattern in filling process.展开更多
随着电子设备日益微型化和集成化,热仿真已成为其设计中的关键因素。电子封装模块的热仿真通常使用传统的有限元法FEM(finite element method),存在计算效率和精度之间的矛盾,在处理大变形问题和网格畸变方面也容易造成计算不收敛,从而...随着电子设备日益微型化和集成化,热仿真已成为其设计中的关键因素。电子封装模块的热仿真通常使用传统的有限元法FEM(finite element method),存在计算效率和精度之间的矛盾,在处理大变形问题和网格畸变方面也容易造成计算不收敛,从而导致结果错误。针对该问题,提出一种基于光滑粒子动力学SPH(smoothed particle hydrodynamics)算法的电子封装模块热仿真系统。该算法基于无网格拉格朗日数值方法,通过将热仿真对象离散为1组粒子的方式求解热传导方程,从而准确地预测电子封装模块的传热与散热,无需生成并处理大量的微小网格,不用担心网格失真等问题。SPH相对于FEM,仿真精度误差保持在1%~2%,仿真效率可提升近30倍,适合用于复杂和动态系统的模拟仿真。展开更多
Numerical simulation of the morphology of a droplet deposited on a solid surface requires an efficient description of the three-phase contact line. In this study, a simple method of implementing the contact angle is p...Numerical simulation of the morphology of a droplet deposited on a solid surface requires an efficient description of the three-phase contact line. In this study, a simple method of implementing the contact angle is proposed, combined with a robust smoothed particle hydrodynamics multiphase algorithm (Zhang 2015). The first step of the method is the creation of the virtual liquid-gas interface across the solid surface by means of dummy particles, thus the calculated surface tension near the triple point serves to automatically modulate the dynarnic contact line towards the equilibrium state. We simulate the evolution process of initially square liquid lumps on fiat and curved surfaces. The predictions of droplet profiles are in good agreement with the analytical solutions provided that the macroscopic contact angle is accurately implemented. Compared to the normal correction method, the present method is straightforward without the need to manually alter the normal vectors. This study presents a robust algorithm capable of capturing the physics of the static welling. It may hold great potentials in bio-inspired superhydrophobic surfaces, oil displacement, microfluidics, ore floatation, etc.展开更多
Smoothed particle hydrodynamics (SPH) is a Lagrangian meshless particle method. It is one of the best method for simulating violent free surface flows in fluids and solving large fluid deformations. Dam breaking is a ...Smoothed particle hydrodynamics (SPH) is a Lagrangian meshless particle method. It is one of the best method for simulating violent free surface flows in fluids and solving large fluid deformations. Dam breaking is a typical example of these problems. The basis of SPH was reviewed, including some techniques for governing equation resolution, such as the stepping method and the boundary handling method. Then numerical results of a dam breaking simulation were discussed, and the benefits of concepts like artificial viscosity and position correction were analyzed in detail. When compared with dam breaking simulated by the volume of fluid (VOF) method, the wave profile generated by SPH had good agreement, but the pressure had only reasonable agreement. Improving pressure results is clearly an important next step for research.展开更多
The faults in welding design and process every so often yield defective parts during friction stir welding(FSW).The development of numerical approaches including the finite element method(FEM)provides a way to draw a ...The faults in welding design and process every so often yield defective parts during friction stir welding(FSW).The development of numerical approaches including the finite element method(FEM)provides a way to draw a process paradigm before any physical implementation.It is not practical to simulate all possible designs to identify the optimal FSW practice due to the inefficiency associated with concurrent modeling of material flow and heat dissipation throughout the FSW.This study intends to develop a computational workflow based on the mesh-free FEM framework named smoothed particle hydrodynamics(SPH)which was integrated with adaptive neuro-fiizzy inference system(ANFIS)to evaluate the residual stress in the FSW process.An integrated SPH and ANFIS methodology was established and the well-trained ANIS was then used to predict how the FSW process depends on its parameters.To verify the SPH calculation,an itemized FSW case was performed on AZ91 Mg alloy and the induced residual stress was measured by ultrasonic testing.The suggested methodology can efficiently predict the residual stress distribution throughout friction stir welding of AZ91 alloy.展开更多
Submarine landslides can cause severe damage to marine engineering structures. Their sliding velocity and runout distance are two major parameters for quantifying and analyzing the risk of submarine landslides.Current...Submarine landslides can cause severe damage to marine engineering structures. Their sliding velocity and runout distance are two major parameters for quantifying and analyzing the risk of submarine landslides.Currently, commercial calculation programs such as BING have limitations in simulating underwater soil movements. All of these processes can be consistently simulated through a smoothed particle hydrodynamics(SPH) depth integrated model. The basis of the model is a control equation that was developed to take into account the effects of soil consolidation and erosion. In this work, the frictional rheological mode has been used to perform a simulation study of submarine landslides. Time-history curves of the sliding body's velocity, height,and length under various conditions of water depth, slope gradient, contact friction coefficient, and erosion rate are compared; the maximum sliding distance and velocity are calculated; and patterns of variation are discussed.The findings of this study can provide a reference for disaster warnings and pipeline route selection.展开更多
A numerical study based on a two-dimensional two-phase SPH(Smoothed Particle Hydrodynamics)model to analyze the action of water waves on open-type sea access roads is presented.The study is a continuation of the analy...A numerical study based on a two-dimensional two-phase SPH(Smoothed Particle Hydrodynamics)model to analyze the action of water waves on open-type sea access roads is presented.The study is a continuation of the analyses presented by Chen et al.(2022),in which the sea access roads are semi-immersed.In this new configuration,the sea access roads are placed above the still water level,therefore the presence of the air phase becomes a relevant issue in the determination of the wave forces acting on the structures.Indeed,the comparison of wave forces on the open-type sea access roads obtained from the single and two-phase SPH models with the experimental results shows that the latter are in much better agreement.So in the numerical simulations,a two-phaseδ-SPH model is adopted to investigate the dynamical problems.Based on the numerical results,the maximum horizontal and uplifting wave forces acting on the sea access roads are analyzed by considering different wave conditions and geometries of the structures.In particular,the presence of the girder is analyzed and the differences in the wave forces due to the air cushion effects which are created below the structure are highlighted.展开更多
This paper extends the SPH method to gas simulation. The SPH (Smoothed Particles Hydrodynamics) method is the most popular method of flow simulation, which is widely used in large-scale liquid simulation. However, i...This paper extends the SPH method to gas simulation. The SPH (Smoothed Particles Hydrodynamics) method is the most popular method of flow simulation, which is widely used in large-scale liquid simulation. However, it is not found to apply to gas simulation, since those methods based on SPH can't be used in real-time simulation due to their enormous particles and huge computation. This paper proposes a method for gas simulation based on SPH with a small number of particles. Firstly, the method computes the position and density of each particle in each point-in-time, and outlines the shape of the simulated gas based on those particles. Secondly the method uses the grid technique to refine the shape with the diffusion of particle's density under the control of grid, and get more lifelike simulation result. Each grid will be assigned density according to the particles in it. The density determines the final appearance of the grid. For ensuring the natural transition of the color between adjacent grids, we give a diffuse process of density between these grids and assign appropriate values to vertexes of these grids. The experimental results show that the proposed method can give better gas simulation and meet the request of real-time.展开更多
基金Project supported by the National Natural Science Foundation of China(No.52109068)the Water Conservancy Technology Project of Jiangsu Province of China(No.2022060)。
文摘Viscoelastic flows play an important role in numerous engineering fields,and the multiscale algorithms for simulating viscoelastic flows have received significant attention in order to deepen our understanding of the nonlinear dynamic behaviors of viscoelastic fluids.However,traditional grid-based multiscale methods are confined to simple viscoelastic flows with short relaxation time,and there is a lack of uniform multiscale scheme available for coupling different solvers in the simulations of viscoelastic fluids.In this paper,a universal multiscale method coupling an improved smoothed particle hydrodynamics(SPH)and multiscale universal interface(MUI)library is presented for viscoelastic flows.The proposed multiscale method builds on an improved SPH method and leverages the MUI library to facilitate the exchange of information among different solvers in the overlapping domain.We test the capability and flexibility of the presented multiscale method to deal with complex viscoelastic flows by solving different multiscale problems of viscoelastic flows.In the first example,the simulation of a viscoelastic Poiseuille flow is carried out by two coupled improved SPH methods with different spatial resolutions.The effects of exchanging different physical quantities on the numerical results in both the upper and lower domains are also investigated as well as the absolute errors in the overlapping domain.In the second example,the complex Wannier flow with different Weissenberg numbers is further simulated by two improved SPH methods and coupling the improved SPH method and the dissipative particle dynamics(DPD)method.The numerical results show that the physical quantities for viscoelastic flows obtained by the presented multiscale method are in consistence with those obtained by a single solver in the overlapping domain.Moreover,transferring different physical quantities has an important effect on the numerical results.
基金supported by the National Natural Science Foundation of China(Grant No.52201323).
文摘In this study,a common-node DEM-SPH coupling model based on the shared node method is proposed,and a fluid–structure coupling method using the common-node discrete element method-smoothed particle hydrodynamics(DS-SPH)method is developed using LS-DYNA software.The DEM and SPH are established on the same node to create common-node DEM-SPH particles,allowing for fluid–structure interactions.Numerical simulations of various scenarios,including water entry of a rigid sphere,dam-break propagation over wet beds,impact on an ice plate floating on water and ice accumulation on offshore structures,are conducted.The interaction between DS particles and SPH fluid and the crack generation mechanism and expansion characteristics of the ice plate under the interaction of structure and fluid are also studied.The results are compared with available data to verify the proposed coupling method.Notably,the simulation results demonstrated that controlling the cutoff pressure of internal SPH particles could effectively control particle splashing during ice crushing failure.
基金the National Natural Science Foundation of China(No.52271316)the Guangdong Basic and Applied Basic Research Foundation(No.2023A1515030262).
文摘Predicting the response of liquefied natural gas(LNG)contained in vessels subjected to external waves is extremely important to ensure the safety of the transportation process.In this study,the coupled behavior due to ship motion and liquid tank sloshing has been simulated by the Smoothed-Particle Hydrodynamics(SPH)method.Firstly,the sloshing flow in a rectangular tank was simulated and the related loads were analyzed to verify and validate the accuracy of the present SPH solver.Then,a three-dimensional simplified LNG carrier model,including two prismatic liquid tanks and a wave tank,was introduced.Different conditions were examined corresponding to different wave lengths,wave heights,wave heading angles,and tank loading rates.Finally,the effects of liquid tank loading rate on LNG ship motions and sloshing loading were analyzed,thereby showing that the SPH method can effectively provide useful indications for the design of liquid cargo ships.
基金The support of National Nature Science Foundation of China(No.51276192)No.61338 for the National Basic Research Program of Chinathe Innovative Research Project of Xi’an Hi-tech Institute(EPXY0806)are gratefully acknowledged.
文摘A coupled method describing gas–solid two-phase flow has been proposed to numerically study the bubble formation at a single orifice in gas-fluidized beds.Solid particles are traced with smoothed particle hydrodynamics,whereas gas phase is discretized by finite volume method.Drag force,gas pressure gradient,and volume fraction are used to couple the two methods.The effect of injection velocities,particle sizes,and particle densities on bubble growth is analyzed using the coupled method.The simulation results,obtained for two-dimensional geometries,include the shape and diameter size of a bubble as a function of time;such results are compared with experimental data,previous numerical results,and other approximate model predictions reported in the literature.Moreover,the flow profiles of gas and particle phases and the temperature distribution by the heat transfer model around the forming bubble are also discussed.All results show that the coupled method efficiently describes of the bubble formation in fluidized beds.The proposed method is applicable for solving gas–solid two-phase flow in fluidization.
基金supported by Department of Energy and Process Engineering,Norwegian University of Science and TechnologyInstitute for Energy Technology and SINTEF through the FACE(Multiphase Flow Assurance Innovation Center) Project
文摘Particle based methods can be used for both the simulations of solid and fluid phases in multiphase medium, such as the discrete-element method for solid phase and the smoothed particle hydrodynamics for fluid phase. This paper presents a computational method combining these two methods for solid-liquid medium. The two phases are coupled by using an improved model from a reported Lagrangian-Eulerian method. The technique is verified by simulating liquid-solid flows in a two-dimensional lid-driven cavity.
基金Project (2009Z001) supported by the Important Item in Guangdong-Hong Kong Key Project, ChinaProject (2010B090400297) supported by the Cooperation Project in Industry, Education and Research of Guangdong Province and Ministry of Education of China
文摘The implementation of high pressure die casting (HPDC) filling process modeling based on smoothed particle hydrodynamics (SPH) was discussed. A new treatment of inlet boundary was established by discriminating fluid particles from inlet particles. The roles of artificial viscosity and moving least squares method in the present model were compared in the handling pressure oscillation. The final model was substantiated by simulating filling process in HPDC in both two and three dimensions. The simulated results from SPH and finite difference method (FDM) were compared with the experiments. The results show the former is in a better agreement with experiments. It demonstrates the efficiency and precision of this SPH model in describing flow pattern in filling process.
文摘随着电子设备日益微型化和集成化,热仿真已成为其设计中的关键因素。电子封装模块的热仿真通常使用传统的有限元法FEM(finite element method),存在计算效率和精度之间的矛盾,在处理大变形问题和网格畸变方面也容易造成计算不收敛,从而导致结果错误。针对该问题,提出一种基于光滑粒子动力学SPH(smoothed particle hydrodynamics)算法的电子封装模块热仿真系统。该算法基于无网格拉格朗日数值方法,通过将热仿真对象离散为1组粒子的方式求解热传导方程,从而准确地预测电子封装模块的传热与散热,无需生成并处理大量的微小网格,不用担心网格失真等问题。SPH相对于FEM,仿真精度误差保持在1%~2%,仿真效率可提升近30倍,适合用于复杂和动态系统的模拟仿真。
基金by the National NaturalScience Foundation of China (Grants 11672335 and 11611530541)China Postdoctoral Science Foundation (Grant 2017M622307)+2 种基金ShandongNatural Science Foundation (Grant ZR201709210320)FundamentalResearch Funds for the Central Universities (Grant18CX0213A)the Endeavour Australia Cheung Kong ResearchFellowship Scholarship from the Australian government.
文摘Numerical simulation of the morphology of a droplet deposited on a solid surface requires an efficient description of the three-phase contact line. In this study, a simple method of implementing the contact angle is proposed, combined with a robust smoothed particle hydrodynamics multiphase algorithm (Zhang 2015). The first step of the method is the creation of the virtual liquid-gas interface across the solid surface by means of dummy particles, thus the calculated surface tension near the triple point serves to automatically modulate the dynarnic contact line towards the equilibrium state. We simulate the evolution process of initially square liquid lumps on fiat and curved surfaces. The predictions of droplet profiles are in good agreement with the analytical solutions provided that the macroscopic contact angle is accurately implemented. Compared to the normal correction method, the present method is straightforward without the need to manually alter the normal vectors. This study presents a robust algorithm capable of capturing the physics of the static welling. It may hold great potentials in bio-inspired superhydrophobic surfaces, oil displacement, microfluidics, ore floatation, etc.
基金Supported by the National Natural Science Foundation of China under Grant No. 10572041 and 50779008
文摘Smoothed particle hydrodynamics (SPH) is a Lagrangian meshless particle method. It is one of the best method for simulating violent free surface flows in fluids and solving large fluid deformations. Dam breaking is a typical example of these problems. The basis of SPH was reviewed, including some techniques for governing equation resolution, such as the stepping method and the boundary handling method. Then numerical results of a dam breaking simulation were discussed, and the benefits of concepts like artificial viscosity and position correction were analyzed in detail. When compared with dam breaking simulated by the volume of fluid (VOF) method, the wave profile generated by SPH had good agreement, but the pressure had only reasonable agreement. Improving pressure results is clearly an important next step for research.
文摘The faults in welding design and process every so often yield defective parts during friction stir welding(FSW).The development of numerical approaches including the finite element method(FEM)provides a way to draw a process paradigm before any physical implementation.It is not practical to simulate all possible designs to identify the optimal FSW practice due to the inefficiency associated with concurrent modeling of material flow and heat dissipation throughout the FSW.This study intends to develop a computational workflow based on the mesh-free FEM framework named smoothed particle hydrodynamics(SPH)which was integrated with adaptive neuro-fiizzy inference system(ANFIS)to evaluate the residual stress in the FSW process.An integrated SPH and ANFIS methodology was established and the well-trained ANIS was then used to predict how the FSW process depends on its parameters.To verify the SPH calculation,an itemized FSW case was performed on AZ91 Mg alloy and the induced residual stress was measured by ultrasonic testing.The suggested methodology can efficiently predict the residual stress distribution throughout friction stir welding of AZ91 alloy.
基金The Specialized Research Fund for the Doctoral Program of Higher Education under contract No.20120041130002the National Key Project of Science and Technology under contract No.2011ZX 05056-001-02the Fundamental Research Funds for the Central Universities under contract No.DUT14ZD220
文摘Submarine landslides can cause severe damage to marine engineering structures. Their sliding velocity and runout distance are two major parameters for quantifying and analyzing the risk of submarine landslides.Currently, commercial calculation programs such as BING have limitations in simulating underwater soil movements. All of these processes can be consistently simulated through a smoothed particle hydrodynamics(SPH) depth integrated model. The basis of the model is a control equation that was developed to take into account the effects of soil consolidation and erosion. In this work, the frictional rheological mode has been used to perform a simulation study of submarine landslides. Time-history curves of the sliding body's velocity, height,and length under various conditions of water depth, slope gradient, contact friction coefficient, and erosion rate are compared; the maximum sliding distance and velocity are calculated; and patterns of variation are discussed.The findings of this study can provide a reference for disaster warnings and pipeline route selection.
基金supported by the New Cornerstone Science Foundation through the XPLORER PRIZE and the National Natural Science Foundation of China(Grant No.52088102).
文摘A numerical study based on a two-dimensional two-phase SPH(Smoothed Particle Hydrodynamics)model to analyze the action of water waves on open-type sea access roads is presented.The study is a continuation of the analyses presented by Chen et al.(2022),in which the sea access roads are semi-immersed.In this new configuration,the sea access roads are placed above the still water level,therefore the presence of the air phase becomes a relevant issue in the determination of the wave forces acting on the structures.Indeed,the comparison of wave forces on the open-type sea access roads obtained from the single and two-phase SPH models with the experimental results shows that the latter are in much better agreement.So in the numerical simulations,a two-phaseδ-SPH model is adopted to investigate the dynamical problems.Based on the numerical results,the maximum horizontal and uplifting wave forces acting on the sea access roads are analyzed by considering different wave conditions and geometries of the structures.In particular,the presence of the girder is analyzed and the differences in the wave forces due to the air cushion effects which are created below the structure are highlighted.
基金Supported by National Natural Science Foundation of China(No.61272024)
文摘This paper extends the SPH method to gas simulation. The SPH (Smoothed Particles Hydrodynamics) method is the most popular method of flow simulation, which is widely used in large-scale liquid simulation. However, it is not found to apply to gas simulation, since those methods based on SPH can't be used in real-time simulation due to their enormous particles and huge computation. This paper proposes a method for gas simulation based on SPH with a small number of particles. Firstly, the method computes the position and density of each particle in each point-in-time, and outlines the shape of the simulated gas based on those particles. Secondly the method uses the grid technique to refine the shape with the diffusion of particle's density under the control of grid, and get more lifelike simulation result. Each grid will be assigned density according to the particles in it. The density determines the final appearance of the grid. For ensuring the natural transition of the color between adjacent grids, we give a diffuse process of density between these grids and assign appropriate values to vertexes of these grids. The experimental results show that the proposed method can give better gas simulation and meet the request of real-time.