| With the rapid development of the computer science and technology, casting numerical simulation technology and related theory will become more and more mature, and this has become a kind of reliable scientific analysis method. The trial period and the cost of new product can be reduced and the quality of castings also can be improved by using casting CAE software. Using this numerical simulation analysis method to replace the only experience and intuition, and this has become an inevitable trend in the development of the casting industry. According to the above, it is easy to realize that the filling process of casting has a very important sense, and it is the forefront research of the casting technology.In this paper, on the basis of analysis of the flow of metal fluid rule, and combined with the fluid mechanics knowledge, we establish the three dimensional mathematical model of the casting mould filling flow------the mass conservation equation, the momentum conservation equation and the energy conservation equation. In order to solve the problem of the stress-field and the wave-shape board velocity field, we use the crisscross-grid technology instead of general one. We use the SOLA-VOF method to calculate the flow field. SOLA-VOF method is divided into two parts. SOLA method is used to iterative calculate the pressure field and the velocity field. Based on momentum equation, continuity equation,62kinds of states of flowing out of fluid after being full of surface cell are programmed separately to deal with that the error is too big when speed border of the freed surface is solved with continuity equation, which has improved the precision of calculating. And based on SOLA-VOF method, we establish the filling process flow chart of the flow field calculation. At last we use computer to calculate the-dispersed equations to obtain the press field,the velocity field and the movement of free surface by the compute,then to forecast all kinds of disfigurements engendered from mold filling, such as the cold partition, the irrigation shortage, the engulfed air hole etc. In order to make the simulation much more approach to the real situation, we also discuss how to set the boundary conditions.In the part of program design, Microsoft Visual C++6.0was used as a simulation software development platform to design program.we also make full use of the C++class's characteristics, such as encapsulation, data hiding, inheritance and ambiguity to improve the efficiency of the program development. The program was connected with the main program together by the STL files.In the main program interface we also designed some parameter settings dialog box which can offer the parameters that calculation module needed. The whole software has friendly interface and the program also has the expansibility and maintainability.In order to test the accuracy of the result of flow field calculation module, firstly we designed a test model, and then use the program to calculate the flow field of this modle. Secondly AnyCasting also was used to calculate. At last it is proved that the program is correct throughing comparing the two results.These two different programs finally get the same results. |