| With the continuous development of my country’s offshore oil and gas fields,the demand for the simulation of the whole process from the design to the operation stage of the offshore production platform is more urgent.So far,the relevant commercial simulation software can only rely on mature software developed abroad,and there is no domestic software.For any mature commercial software,there are gaps in this key area,and there is a risk of being "stuck in the neck".At the same time,data security cannot be guaranteed.Therefore,the demand for localized development of process simulation software is very urgent.In this paper,the progress of related simulation software and the calculation method of related components are studied,and the modules such as separator process flow,valve calculation,and PI control are modeled,and related programs are developed.First,the development of the existing process simulation software is deeply investigated,and the main components of system simulation are identified:(Ⅰ)system model;(Ⅱ)physical property data;(Ⅲ)system solution method.For the existing process design methods:(Ⅰ)sequential modular method;(Ⅱ)simultaneous equation method;(Ⅲ)simultaneous modular method.After in-depth study,the most stable and reliable sequential module is selected as the process design framework of the program according to the characteristics of the programmed program.Secondly,combined with the on-site flow chart of the crude oil processing process of an offshore platform,the components required in the overall simulation process are analyzed and determined:(Ⅰ)the main module of the separator(material balance);(Ⅱ)the outlet efficiency module of the separator;(Ⅲ)Valve calculation module;(IV)PID controller module.The algorithm of each unit module and the internal algorithm of HYSYS,a mature commercial process simulation software,are investigated to determine the algorithm model used in programming.The main part of the separator model uses basic material conservation;the efficiency module adopts grid division,assuming the initial particle size for diffusion and sedimentation calculations;the valve uses the industry standard algorithm of ANS/ISA;the PID module integrates basic incremental and positional algorithms,and writes Some vendor algorithms.Finally,using java language to complete the program design and compilation,the program can realize the steady-state simulation and dynamic simulation of the related processing flow of the separator,and the reserved port can call the additional calculation program at any time to realize the algorithm expansion.The data of the crude oil processing separator on an offshore platform is selected for modeling and verification of the completed program,which can realize the corresponding simulation of the field data,and the error is small;at the same time,HYSYS is used to compare the steady-state and dynamic changes with this program,and the verification results are the program.PID control fluctuates less and is closer to field data. |