| The core development work of the diesel/natural gas dual fuel engine is the research and development of the control system.Nowadays,with the rapid development of engine digitalization and intelligence,many new challenges have been brought to the engine control system,so it is urgent to improve the development efficiency of the control system.The research and development of the traditional engine control system needs to be carried out on the engine bench,and the design and optimization cycle is long.However,the hardware-inthe-loop simulation test technology can replace the engine bench with the real-time simulation model of the engine,and can provide a virtual test environment for the control system,which can directly verify the control function of the control system can greatly improve the development efficiency.At present,hardware-in-the-loop simulation testing has become a key technology in the development of electronic control systems.In this paper,the 6WH17 dual-fuel engine is used as the target research model,and the WISE52 is the target model controller,focusing on the modeling method of the real-time simulation model of the dual-fuel engine.At the same time,according to the structure and principle of the 6WH17 dual-fuel engine,the real-time simulation model of the dual-fuel engine was comprehensively established by using the cylinder volume method and the modular concept,and it was used in the d SPACE real-time simulation system to completely build a dual-fuel engine hardware-in-the-loop simulation test system.The dual-fuel engine simulation model uses the empirical formula based on the fitting of the molar constant pressure heat capacity experimental data to calculate the characteristic parameters of the ideal gas,and uses the optimized Woschni formula to calculate the cylinder wall heat transfer according to the combustion characteristics of the dual-fuel engine.At the same time,based on the combustion rate,three Weber functions are used to realize the switching of the dual-fuel engine operation mode and the simulation calculation of the combustion heat release rate.The simulation model can meet the accuracy requirement of 5%through the off-line verification of the model,which proves that the simulation model built in this paper can effectively reflect the changes in the various working conditions of the dualfuel engine,and this model can be applied to the hardware-in-the-loop simulation test system middle.The dual-fuel engine hardware-in-the-loop simulation test system is established using the d SPACE SCALEXIO customized system and Configuration and Control Desk software.The dual-fuel engine hardware-in-the-loop simulation test system is established using the d SPACE SCALEXIO customized system and Configuration and Control Desk software.The real-time simulation model of the dual-fuel engine is run through the SCALEXIO customized system.Configure hardware,manage signal paths and generate SCALEXIO system application files through Configuration,and establish the main interface of upper computer test management through Control Desk.At the same time,the hardware-in-the-loop test of the simulation test system was carried out.The availability of the system was verified by the stimulus test and the open-loop test,and the hardware-in-the-loop simulation data was compared with the actual test data by the closed-loop test.The results show that the system can be used as a research and development and test platform for dual-fuel engines and dual-fuel engine control systems. |