With the development of computer technology,the simulation of diesel engine based on software platform has become a necessary means of research,but due to the difference of modeling purpose,the scope of application of the model,modeling principles and other factors to make the degree of generalization of the model is not high,and in some large systems involving multiple fields,the diesel engine is just a part of the system,because of the limit of some factors,such as the openness degree and modeling domains of traditional diesel engine modeling and simulation software,the application of the modeling area make the joint simulation of such large systems become difficult.Firstly,from the perspective of improving the generality and reusability of the sub models,and according to the physical structure and object-oriented modeling thought of Modelica,diesel engine was divided into a set of sub systems which are interrelated and independent,such as inlet,exhaust,combustion chamber and so on.On multi-domain physical unified modeling and simulation platform MWorks,the extendable and universal diesel engine simulation model library is established by using Modelica language which based on object-oriented unified modeling specification,and giving the specific Modelica implementation of some sub models.Finally,taking 3 kinds of typical diesel engines as examples,the simulation models are established by the reset of structure parameters and the boundary parameters,the encapsulation of sub models the connection of the interfaces between different sub models which based on the built model library,and their dynamic and steady state conditions are simulated and calculated.By comparing the simulation results with the experimental results,the accuracy of results of the simulation is better,the generality of the sub models and the reliability of simulation are proved.This paper also provides a reference for the modeling and simulation of subsequent large-scale system which includes diesel engine based on Modelcia language. |