Application of Object-oriented Technology to the Design of Regulator Simulation Software
ZHANG Wei-jing,YANG Jian,LI Sheng-jun,CHANG Guang-hui
DOI: https://doi.org/10.3969/j.issn.1006-9348.2006.11.007
2006-01-01
Abstract:Using Chinese Windows 2000 as its operation system,the object-oriented technology has been utilized to design simulation software of a super-high-pressure regulator.Through Visual C++6.0 the software has been carried out.Owing to the superiority of object-oriented technology,the functions are all modularized,which makes the program easily maintained,modified and extended.Because of the nonlinearity of the mathematical models,Runge-Kutta calculation method for recalculating the coefficient of state equation each step is exploited.Using resources of Windows 2000,the visual design of software interface has been done,and display of simulation data has been implemented in both text and graph.The comparison between the simulation and test result shows that the precision of this simulation software is satisfactory.Compared with the traditional software,this software is of better interface and convenience.