Marine diesel generator is the most commonly power form for merchant, and it is also a key device in the ship electric power system. It is said that to protect the generator from being damaged is to ensure safety of navigation. So the generator training which is one part of crew training system has been valued by many training institutions, and ship power plant is also regarded as a important part during the marine simulator development. But because the complicated structure and advanced technology of the generator, the training of management of it should still be further improved.This paper takes the main generator system of the "Yukun" school ship as simulated object, researching on the combination method of the virtual reality technology and engine simulator logic. Firstly, the paper introduces the structure of the generator system. According to the existing modeling method, based on appropriate simplification, we establish dynamic mathematics model of the generator system. Then on the basis of the mathematics model, using the simulation tool in the MATLAB/Simulink toolbox, the generator system is simulated on real time. The simulation results are compared with regulations of the IMO and national relevant standards of authority in order to ensure the correction of the simulation model. Then we dealt with the changing parameter curves of the simulation model, construct the relationship function between the rotate speed and time, voltage and time reference curves, so that it can be combined with the three-dimensional model in the virtual world. This paper draws the three-dimensional model of the generator system with three-dimensional modeling software, renders to improve its effect, make it look like the real system, then the model is imported into the XNA three-dimensional development platform. In the XNA platform, with the C# programming language, the simulation result of MATLAB simulation model will be combined with the three-dimensional model of the generator system, make up a virtual scene similar to the real ship.Research of the paper will be a reference for showing the real-time system working principle in the virtual scene of engine system and the combination of the engine simulator and virtual reality technology in the future. With the persistent effort of the engineer, we believe that the physical model of engine systems or even the virtual engine room would be achieved. |