| The behavior of water flow is one of the difficult and meaningful programs of computer animation domain. In this thesis, we use two ways to simulate liquid phenomena. One is the general numerical method to solve the shallow water equations, another is the particle way.The numerical methods we use include finite element method, finite difference method, composite finite difference method, finite volume method and composite finite volume method. We have compared the advantage with the disadvantage of these methods in the simulation of the particular water flow. Meanwhile, we succeed to simulate fountain, water flow , waterfall and alternant ripple by particle system, and compared it with traditional numerical method.Using the tracer tool OpenGL to make the data in each time step visible, we can see the scenes of the behavior of water flow in the process of carrying out water flow simulation. Besides, in the process of alternant ripple examination, we achieved the alternant effect by using the mouse transfer function of OpenGL, and using mouse event to call-back function.In the first part of this thesis, we introduce the prevalent methods and tools of simulation of water flow. In the second part we introduce general numerical methods. Also, we compared these methods. In the third part, we introduced the formation process of particle system, the Physically Based Modeling of particle system, the particle mechanics and the protraction of particle image. In the fourth part, we presented the formation process of Water Animation and the basic ways of protraction of OpenGL as well as the implementation of its arithmetic steps. Finally, we illustrate the results of the simulations of water flow. |