Real-time Fire Simulation Based on N-S Equation
|Course||Applied Computer Technology|
|Keywords||Navier-Stokes equations flame simulation texture mapping real-time mathematical model|
In normal life, the burning flame, the white clouds, the rising smoke, the flowing river,the boundless sea and so on, are ruleless fluids. They do not have fixed appearance, and there is no fixed forms of exercise, so using computer to simulate the movement of these fluids has always been a major problem in computer graphics.In recent years more and more computer scientists turn to study how to use the computer to simulate these fluid movement and put forward a variety of simulation methods. With the rapid development of computer technology and computer software and hardware, the computer calculation speed became more quickly so that the effect of computer simulation of the fluid became more realistic.Due to the use of computers to simulate fluid can achieve the expected results with lower cost, avoided some unreliable factor generated from shooting real objects. So now in some films, advertising, animation, games, and some other industries are beginning to use computer simulations instead of real fluids. This dissertation is using mathematical and physical model-based approach to simulate the flame effect.In this dissertation, adopting the incompressible Navier-Stokes equations as a mathematical model of flame simulation, using the experiment numerical instead of the force to reduce the amount of calculation in the process of equation,so as to realize real-time flame. Meanwhile using this method to simulate the flame effected by the wind force has also achieved a more satisfactory results. The using of OpenGL texture mapping techniques in the two-dimensional rendering of the flame can improve rendering speed, enabling the two-dimensional flame under the condition of high grid resolution has the real-time property. In windows7using Microsoft Visual Studio2010as a programming tool, adopting OpenGL texture mapping technology to achieve real-time simulation of two-dimensional flame. The main work is as follows: 1. Introduces several common methods of flame simulation and analysis of the advantages and disadvantages of these methods.2. Describes the development process and research status of the flame simulation algorithm based on mathematical and physical models.3. Using experiment numerical instead of external force item in N-S equations to simulate the flame effects when affected by the wind.4. Using texture mapping in OpenGL for rendering two-dimensional flame technology to improve rendering speed.5.By setting the speed value and density value of the specified region to simulate the effect of the flame across the fixed and simulate the scenario of combustibles across the burning flame.