Ammonia synthesis system control method, storage medium and electronic equipment

Through dynamic mathematical prediction model and multivariate control method, the problems of unstable operation and high cost in the liquid nitrogen washing box-ammonia synthesis process are solved, and more accurate adjustment and optimization are achieved, reducing process parameters fluctuations and operating costs.

CN119024773APending Publication Date: 2024-11-26WANHUA CHEMICAL (NINGBO) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310602432.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-25
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The existing univariate control methods cannot effectively solve the problems of unstable operation, large fluctuations in the liquid nitrogen washing box-ammonia synthesis process, and increased operating costs, resulting in unstable and high cost in the system operation.

Method used

Using dynamic mathematical prediction model combined with multivariable control method, the current operation variables, interference variables and controlled variables of the liquid nitrogen washing box system and ammonia synthesis system are calculated, and the predicted value of the controlled variable in the next cycle is calculated based on the prediction. Value controls controlled variables for more precise adjustment and optimization.

Benefits of technology

Through multivariate control, the ammonia synthesis system is faster, more precise and stable during operation, reducing operating costs, improving the stability, safety and automation capabilities of the system, reducing liquid nitrogen usage, and reducing process parameters fluctuations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119024773A_ABST
    Figure CN119024773A_ABST
Patent Text Reader

Abstract

The invention discloses an ammonia synthesis system control method, a storage medium and electronic equipment, the control method comprises the following steps: obtaining current operation variables, current interference variables and current controlled variables of a liquid nitrogen wash cold box system and an ammonia synthesis system, the current operation variables comprising current operation variable set values and current operation variable measured values; according to the current operation variable, the current interference variable, the current controlled variable and a preset dynamic mathematical prediction model, calculating a controlled variable prediction value of a next period, wherein the dynamic mathematical prediction model is a transfer function model of the current operation variable, the current interference variable and the current controlled variable; and controlling the current controlled variable according to the predicted value of the controlled variable. By implementing the method, the ammonia synthesis system is quicker, more accurate and more stable in operation control through multivariable control, the stability, the safety and the automation capability of the system are improved, and the operation cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of chemical technology, and in particular to an ammonia synthesis system control method, a storage medium and an electronic device. Background Art

[0002] As an important component of basic chemical products, the demand for synthetic ammonia is growing with the development of science and technology. The production of ammonia plays a very important role in the development of agriculture. With the increasingly serious environmental and resource problems, more efficient synthetic ammonia production and the requirements of resource-saving and environmentally friendly production concepts are crucial for the reform of the synthetic ammonia industry. With the increasingly fierce competition in synthetic ammonia production, increasing output and reducing production costs have always been the exploration themes of the synthetic ammonia industry.

[0003] As a process for producing synthetic ammonia, the liquid nitrogen cold box-ammonia synthesis process has been widely used in chemical production. The conventional control system used to operate the liquid nitrogen cold box-ammonia synthesis unit mainly uses single variable control methods, including a large number of simple control methods (simple loop control) and a few complex control methods (such as cascade control). The single variable control method system mainly uses one or more actuators (used to adjust the manipulated variable) to control a control variable (such as temperature or pressure), thereby realizing the monitoring of key indicators such as temperature, pressure, flow, liquid level and composition of the entire process.

[0004] However, there are strong coupling, large hysteresis and nonlinearity between the controlled variable (CV), manipulated variable (MV) and disturbance variable (DV) in the liquid nitrogen cold box washing-ammonia synthesis process. The existing single variable control method cannot solve the overall control and global optimization problems of the liquid nitrogen cold box washing-ammonia synthesis process, which easily leads to problems such as unstable operation of the liquid nitrogen cold box washing-ammonia synthesis unit system, large fluctuations in process parameters and increased operating costs. Therefore, in order to solve the production fluctuations and high cost problems of the liquid nitrogen cold box washing-ammonia synthesis process, it is necessary to develop a more efficient optimization control system and design method. Summary of the invention

[0005] The purpose of the present invention is to overcome the shortcomings of the single variable control method in the prior art that the liquid nitrogen cold box washing and ammonia synthesis device system is easily unstable, the process parameters fluctuate greatly, and the operating cost increases, and to provide an ammonia synthesis system control method, storage medium and electronic equipment.

[0006] The technical solution of the present invention provides an ammonia synthesis system control method, comprising:

[0007] Step S1: obtaining current operating variables, current interference variables and current controlled variables of the liquid nitrogen cold box washing system and the ammonia synthesis system, wherein the current operating variables include current operating variable set values ​​and current operating variable measured values;

[0008] Step S2: calculating a predicted value of the controlled variable for the next cycle according to the current operating variable, the current interference variable, the current controlled variable and a preset dynamic mathematical prediction model, wherein the dynamic mathematical prediction model is a transfer function model of the current operating variable, the current interference variable and the current controlled variable;

[0009] Step S3: controlling the current controlled variable according to the predicted value of the controlled variable.

[0010] Further, the current operating variable set value includes the current nitrogen outlet flow rate set value of the liquid nitrogen washing cold box system, the current liquid nitrogen washing tower nitrogen inlet flow rate set value, the current liquid nitrogen washing tower extraction valve set value, the current raw gas cooler temperature regulating valve set value, the current hydrogen separator external exhaust valve set value, and the current ammonia synthesis tower temperature regulating valve set value of the ammonia synthesis system, and the current operating variable measurement value includes the current nitrogen outlet flow rate of the liquid nitrogen washing cold box system, the current liquid nitrogen washing tower nitrogen inlet flow rate, the current liquid nitrogen washing tower extraction valve valve opening, the current raw gas cooler temperature regulating valve valve opening, the current hydrogen separator external exhaust valve valve opening, and the current ammonia synthesis system The system The current interference variable includes the current liquid nitrogen washing tower nitrogen inlet flow, the current raw gas cooler temperature regulating valve opening, the current ammonia synthesis tower temperature regulating valve opening, the current raw gas cooler inlet flow, the current hydrogen inlet flow of the pressure swing adsorption process and the current nitrogen distribution flow, and the current controlled variable includes the current carbon monoxide outlet content of the liquid nitrogen washing cold box system, the current liquid nitrogen washing tower top temperature, the current liquid nitrogen washing tower kettle liquid level, the current hydrogen separator liquid level, the current liquid nitrogen washing tower raw gas temperature, the current ammonia synthesis tower hydrogen inlet content, the current ammonia synthesis tower nitrogen inlet content, the current ammonia synthesis tower bed temperature and the current compressor hydrogen inlet content.

[0011] Furthermore, the dynamic mathematical prediction model is:

[0012]

[0013] Among them, K is the amplification factor; τ is the pure lag time; T is the time constant; S is the complex frequency of Laplace transform.

[0014] Furthermore, the step S2 includes:

[0015] Step S201: Obtain historical operation variables and historical interference variables;

[0016] Step S202: performing a step response test on the historical operating variable and the historical interference variable within a preset test time to obtain an operating variable test amplitude, an interference variable test amplitude and a historical controlled variable;

[0017] Step S203: inputting the manipulated variable test amplitude, the disturbance variable test amplitude and the historical controlled variable to obtain a sub-dynamic mathematical prediction model and a first historical controlled variable prediction value;

[0018] Step S204: Calculate the difference between the historical controlled variable and the first historical controlled variable prediction value to obtain a variable difference;

[0019] Step S205: Repeat the above steps S201 to S203 according to the preset test times, obtain a plurality of historical model parameters corresponding to the preset test times, calculate the difference between every two adjacent historical model parameters, and obtain the model parameter difference, wherein the historical model parameters include the amplification factor, the pure lag time, and the time constant;

[0020] Step S206: If the variable difference is smaller than the historical controlled variable, and the model parameter difference is smaller than the maximum value of a plurality of historical model parameters, the sub-dynamic mathematical prediction model is set as the dynamic mathematical prediction model.

[0021] Furthermore, the current operating variable, the current interference variable and the current controlled variable are stored in the following matrix manner:

[0022]

[0023] Among them, CV1, CV2, CV3, CV4... represent controlled variables; MV1, MV2, MV3, MV4... represent manipulated variables; DV1, DV2, DV3, DV4... represent interference variables.

[0024] Furthermore, the step S3 includes:

[0025] Step S301: obtaining a predicted value of a first historical controlled variable in an adjacent first historical period;

[0026] Step S302: Calculate the sum of the controlled variable prediction value and the difference between the current controlled variable and the first historical controlled variable prediction value to obtain a second historical controlled variable prediction value;

[0027] Step S303: controlling the current controlled variable according to the second historical controlled variable prediction value.

[0028] Furthermore, after step S1, the following steps are further included:

[0029] Filtering the current liquid nitrogen washing tower nitrogen inlet flow, the current raw gas cooler inlet flow, and the current hydrogen inlet flow to obtain a liquid nitrogen washing tower nitrogen inlet flow filter value, a raw gas cooler inlet flow filter value, and a hydrogen inlet flow filter value;

[0030] Calculate the ratio of the raw gas cooler inlet flow filter value to the liquid nitrogen washing tower nitrogen inlet flow filter value to obtain a filter ratio;

[0031] The filtering ratio is set as the current controlled variable, and the current hydrogen intake flow rate is set as the hydrogen intake flow rate filtering value.

[0032] Furthermore, after step S1, the following steps are further included:

[0033] Abnormal data points are screened out for the current hydrogen inlet content of the ammonia synthesis tower and the current nitrogen inlet content of the ammonia synthesis tower.

[0034] The technical solution of the present invention also provides a storage medium, which stores computer instructions. When a computer executes the computer instructions, it is used to execute all the steps of the ammonia synthesis system control method as described above.

[0035] The technical solution of the present invention further provides an electronic device, comprising:

[0036] at least one processor; and,

[0037] a memory communicatively connected to the at least one processor; wherein,

[0038] The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor so that the at least one processor can perform the ammonia synthesis system control method as described above.

[0039] After adopting the above technical scheme, the following beneficial effects are achieved: by obtaining the current operating variables, current interference variables and current controlled variables of the liquid nitrogen cold box washing system and the ammonia synthesis system, the controlled variable prediction value of the next cycle is calculated according to the current operating variables, current interference variables, current controlled variables and a preset dynamic mathematical prediction model, and the current controlled variable is controlled according to the controlled variable prediction value, so that the controlled variable of the ammonia synthesis system is close to the preset target control value of the controlled variable, thereby more accurately adjusting the material flow of the ammonia synthesis system, reducing the liquid nitrogen usage of the liquid nitrogen washing tower in the ammonia synthesis system, and making the ammonia synthesis system faster, more accurate and more stable in operation control through multivariable control, thereby improving the stability, safety and automation capability of the system and reducing the operating cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The disclosure of the present invention will become more easily understood with reference to the accompanying drawings. It should be understood that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present invention. In the drawings:

[0041] Figure 1 is a schematic structural diagram of an ammonia synthesis system provided by one embodiment of the present invention;

[0042] Figure 2 is a schematic structural diagram of an ammonia synthesis system control system provided by one embodiment of the present invention;

[0043] Figure 3 This is a working flow chart of an ammonia synthesis system control method provided by one embodiment of the present invention;

[0044] Figure 4 is a work flow chart of an ammonia synthesis system control method provided by another embodiment of the present invention;

[0045] Figure 5 A schematic diagram of the hardware structure of an electronic device for controlling an ammonia synthesis system provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0046] The specific implementation of the present invention will be further described below in conjunction with the accompanying drawings.

[0047] It is easy to understand that according to the technical solution of the present invention, without changing the essential spirit of the present invention, a variety of structural modes and implementation modes that can be replaced by those skilled in the art can be replaced with each other. Therefore, the following specific implementation modes and drawings are only exemplary descriptions of the technical solution of the present invention, and should not be regarded as the whole of the present invention or as a limitation or restriction to the technical solution of the invention.

[0048] The directional terms such as up, down, left, right, front, back, front, back, top, bottom, etc. mentioned or may be mentioned in this specification are defined relative to the structures shown in the drawings. They are relative concepts and may change accordingly according to different positions and different usage conditions. Therefore, these or other directional terms should not be interpreted as restrictive terms.

[0049] like Figure 1 As shown, an ammonia synthesis system provided by an embodiment of the present invention includes a liquid nitrogen cold box washing system and an ammonia synthesis system, wherein the liquid nitrogen cold box washing system includes a No. 1 raw gas cooler E002, a No. 2 raw gas cooler E003, a medium-pressure nitrogen cooler E001, a liquid nitrogen washing tower T001 and a hydrogen separator V001, and the ammonia synthesis system includes a buffer tank V002, a compressor K001, a preheater E004, a cooler E005 and an ammonia synthesis tower R001. The raw gas is mainly composed of hydrogen and nitrogen, and contains a small amount of impurity gases such as carbon monoxide, argon, and methane.

[0050] The raw gas is first sent to the No. 1 raw gas cooler E002 and the No. 2 raw gas cooler E003, where it is cooled by the refluxed nitrogen wash gas and fuel gas, and then enters the lower part of the liquid nitrogen wash tower T001. The impurity gases such as carbon monoxide, argon and methane contained in the raw gas are washed out by the liquid nitrogen from the top of the liquid nitrogen wash tower T001. The purified nitrogen wash gas containing a small amount of nitrogen leaves the top of the liquid nitrogen wash tower T001, passes through the No. 2 raw gas cooler E003, the No. 1 raw gas cooler E002 and the medium-pressure nitrogen cooler E001, and is reheated to the ambient temperature before leaving the liquid nitrogen wash cold box system, and merges with the hydrogen from the low-temperature methanol wash process, and then is supplemented with high-pressure nitrogen to achieve a suitable hydrogen-nitrogen chemical ratio and sent to the ammonia synthesis system as fresh gas for the ammonia synthesis tower R001.

[0051] The liquid at the bottom of the liquid nitrogen washing tower T001 is decompressed and then flashed in the hydrogen separator V001. The liquid discharged from the bottom is reheated by the No. 2 raw gas cooler E003, the No. 1 raw gas cooler E002 and the medium-pressure nitrogen cooler E001, and then discharged from the liquid nitrogen washing cold box system, and sent to the fuel gas system of the whole plant as fuel gas. The fresh gas with appropriate hydrogen and nitrogen chemical ratio first enters the buffer tank V002, and then mixes with the circulating gas in the compressor K001, and enters the ammonia synthesis tower R001 through the preheater E004 of the ammonia synthesis tower. The inlet gas into the ammonia synthesis tower T001 is mainly divided into three streams, which are used to adjust the reaction temperature of different catalyst beds. The unreacted hydrogen and nitrogen enter the compressor K001 through the cooler E005 and re-enter the ammonia synthesis tower R001 for reaction.

[0052] like Figure 2 As shown, the control system applied to the above-mentioned ammonia synthesis system includes multiple detection and transmission components 05, a distributed control system component 03, multiple actuator components 04, an OPC server 02, an ammonia synthesis system controlled object 06 and a model predictive controller component 01.

[0053] Specifically, the control system construction of the ammonia synthesis system includes the configuration of the model predictive controller component 01, the configuration of the distributed control system component 03, and the communication connection between the two. And through the offline simulation method, it is tested whether the communication connection between the distributed control system component 03 and the model predictive control system component 01 is normal and whether the control function of the control system can be realized.

[0054] Among them, the configuration of the model predictive controller component 01 is carried out on the host computer, mainly based on the dynamic mathematical model and control matrix of the liquid nitrogen cold washing box-ammonia synthesis process obtained by model identification to build the model predictive controller component 01, and establish a file for data communication connection with the distributed control system component 03.

[0055] Among them, the configuration of the distributed control system component 03 is to establish the operation interface points and control execution logic of the operating variables MV and the controlled variables CV required by the optimization control system in the distributed control system, and configure the data communication connection file between the model prediction controller component and the distributed control system component. The control execution logic of the distributed control system component 03 mainly realizes the following functions:

[0056] The communication between the host computer and the distributed control system component 03 is monitored. When the communication is interrupted, the control loop of each operating variable MV is cut out of the optimization control system, and the control loop state is returned to the state of daily manual operation.

[0057] The commissioning of the control system of the ammonia synthesis system includes the downloading and implementation of the control system. The downloading of the control system is to distribute the constructed model prediction controller component 01 to the host computer, and distribute the constructed distributed control system component 03 to the distributed control system. The implementation of the control system is to optimize the use of the control system online. When the optimized control system is used for the first time, it is necessary to determine the operating boundary value of the operating variable MV and the target setting value of the controlled variable CV with the technical staff; secondly, the commissioning test of the operating variable MV is carried out one by one to ensure that after the successful commissioning of a single operating variable MV, multiple operating variables MV are tested at the same time, and finally the stable operation of the controlled object 06 of the ammonia synthesis system is achieved.

[0058] like Figure 3 As shown, the ammonia synthesis system control method applied to the above-mentioned ammonia synthesis system and control system thereof comprises:

[0059] Step S1: obtaining current operating variables, current interference variables and current controlled variables of the liquid nitrogen cold box washing system and the ammonia synthesis system, wherein the current operating variables include current operating variable set values ​​and current operating variable measured values;

[0060] Step S2: Calculate the predicted value of the controlled variable of the next cycle according to the current operating variable, the current interference variable, the current controlled variable and a preset dynamic mathematical prediction model, where the dynamic mathematical prediction model is a transfer function model of the current operating variable, the current interference variable and the current controlled variable;

[0061] Step S3: Control the current controlled variable according to the predicted value of the controlled variable.

[0062] Specifically, when synthetic ammonia production is performed, the controller executes step S1 to obtain current operating variables, current interference variables, and current controlled variables of the liquid nitrogen cold box washing system and the ammonia synthesis system;

[0063] Then, the controller executes step S2 to calculate the predicted value y of the controlled variable for the next period (e.g., within the next 30 minutes) according to the current operating variable, the current interference variable, the current controlled variable, and the preset dynamic mathematical prediction model.m (k+i), the dynamic mathematical prediction model is a transfer function model of the current operating variable, the current interference variable and the current controlled variable. The dynamic mathematical prediction model can input the operating variable, the interference variable and the controlled variable into the model identification software to obtain the corresponding transfer function relationship.

[0064] Preferably, the dynamic mathematical prediction model of this embodiment is in the form of:

[0065]

[0066] Among them, K is the amplification factor; τ is the pure lag time; T is the time constant; S is the complex frequency of Laplace transform.

[0067] Among them, the amplification factor is set according to user needs. For example, when the controlled variable is liquid level, the amplification factor K is the ratio of the slope of the liquid level change to the test amplitude of the manipulated variable; when the controlled variable is temperature, the amplification factor K is the ratio of the temperature rise to the test amplitude of the manipulated variable, etc. The pure lag time τ refers to the time from adjustment to rise when doing a step test. The time constant is the time from the beginning of the controlled variable change to 63.2% of the steady-state value.

[0068] Finally, the controller executes step S3 to control the current controlled variable according to the predicted value of the controlled variable. The controlled variable is associated with the operating variable and the interference variable, so that the controlled variable of the ammonia synthesis system is close to the preset target control value of the controlled variable, thereby more accurately adjusting the material flow of the ammonia synthesis system and reducing the amount of liquid nitrogen used in the liquid nitrogen washing tower in the ammonia synthesis system. Through multivariable control, the ammonia synthesis system is faster, more accurate and more stable in operation control, thereby improving the stability, safety and automation capability of the system and reducing operating costs.

[0069] Among them, the manipulated variable MV refers to the variable used to overcome the influence of interference on the controlled variable CV and realize the control effect. The current manipulated variable refers to the current data information of the manipulated variable in the ammonia synthesis system. The current manipulated variable includes the current manipulated variable set value and the current manipulated variable measured value. The interference variable DV refers to the variable that affects the output of the controlled variable CV. The current interference variable refers to the current data information of the interference variable in the ammonia synthesis system. The controlled variable CV refers to the output variable affected by the manipulated variable. The current controlled variable refers to the current data information of the controlled variable in the ammonia synthesis system.

[0070] Among them, in this embodiment, according to the production process and control requirements of the ammonia synthesis system, the variables shown in Table 1 are selected as the controlled variables CV, the variables shown in Table 2 are selected as the operating variables MV, and the variables shown in Table 3 are selected as the interference variables DV.

[0071] Table 1

[0072]

[0073]

[0074] Table 2

[0075]

[0076] Table 3

[0077]

[0078] It should be noted that the controller of the present invention may be a microcontroller, a programmable logic controller, etc. The controller of this embodiment is preferably a distributed control system.

[0079] It is found through experiments that the ammonia synthesis control method of the present invention can achieve the following optimization of the ammonia synthesis process: the ratio of raw gas flow rate / liquid nitrogen flow rate entering the liquid nitrogen washing tower is increased by 11.3%, the amount of liquid nitrogen used is reduced by 1200kg / h, the nitrogen in the fuel gas is reduced by 200Nm3 / h, the fluctuation of the hydrogen-nitrogen ratio entering the ammonia synthesis tower is reduced by 60%, the temperature fluctuation of the ammonia synthesis tower is reduced by 50%, and the profit of 400,000 yuan / year is achieved; the operation volume of personnel is reduced by 80%, and the operation volume only exists after the optimization control system is cut off when the load changes greatly; the monitoring of nitrogen pressure and the confidence interval of the analytical instrument is increased, and the intrinsic safety of the ammonia synthesis system process is improved.

[0080] The ammonia synthesis control method provided in the present embodiment obtains the current operating variables, current interference variables and current controlled variables of the liquid nitrogen cold box washing system and the ammonia synthesis system, calculates the controlled variable prediction value of the next cycle according to the current operating variables, current interference variables, current controlled variables and a preset dynamic mathematical prediction model, controls the current controlled variables according to the controlled variable prediction value, so that the controlled variable of the ammonia synthesis system approaches the preset target control value of the controlled variable, thereby more accurately adjusting the material flow of the ammonia synthesis system, reducing the liquid nitrogen usage of the liquid nitrogen washing tower in the ammonia synthesis system, and making the ammonia synthesis system faster, more accurate and more stable in operation control through multivariable control, thereby improving the stability, safety and automation capability of the system and reducing the operation cost.

[0081] In one embodiment, the current operating variable set value includes the current nitrogen outlet flow rate set value of the liquid nitrogen washing cold box system, the current liquid nitrogen washing tower nitrogen inlet flow rate set value, the current liquid nitrogen washing tower extraction valve set value, the current raw gas cooler temperature regulating valve set value, the current hydrogen separator external exhaust valve set value, and the current ammonia synthesis tower temperature regulating valve set value of the ammonia synthesis system, and the current operating variable measurement value includes the current nitrogen outlet flow rate of the liquid nitrogen washing cold box system, the current liquid nitrogen washing tower nitrogen inlet flow rate, the current liquid nitrogen washing tower extraction valve valve opening, the current raw gas cooler temperature regulating valve valve opening, the current hydrogen separator external exhaust valve valve opening, and the current ammonia synthesis system. The current interference variables include the current nitrogen inlet flow rate of the liquid nitrogen washing tower, the current valve opening of the raw gas cooler temperature regulating valve, the current valve opening of the ammonia synthesis tower temperature regulating valve, the current inlet flow rate of the raw gas cooler, the current hydrogen inlet flow rate of the pressure swing adsorption process and the current nitrogen distribution flow rate. The current controlled variables include the current carbon monoxide outlet content of the liquid nitrogen washing cold box system, the current liquid nitrogen washing tower top temperature, the current liquid nitrogen washing tower kettle liquid level, the current hydrogen separator liquid level, the current liquid nitrogen washing tower raw gas temperature, the current hydrogen inlet content of the ammonia synthesis tower, the current nitrogen inlet content of the ammonia synthesis tower, the current ammonia synthesis tower bed temperature and the current compressor hydrogen inlet content.

[0082] Specifically, if Figure 2 As shown, the controller obtains the current set value and current measured value of the operating variable MV of the controlled object 06 of the ammonia synthesis system, the current measured value of the disturbance variable DV and the controlled variable CV, and converts them into a unified standard signal through multiple detection and transmission components 05 and transmits them to the distributed control system component 03. The distributed control system component 03 stores the corresponding data and transmits the data to the model prediction controller component 01 through the industrial standard OPC server 02.

[0083] In one embodiment, step S1 further includes:

[0084] Filter the current liquid nitrogen washing tower nitrogen inlet flow, the current raw gas cooler inlet flow and the current hydrogen inlet flow to obtain the liquid nitrogen washing tower nitrogen inlet flow filter value, the raw gas cooler inlet flow filter value and the hydrogen inlet flow filter value;

[0085] Calculate the ratio of the raw gas cooler inlet flow filter value to the liquid nitrogen washing tower nitrogen inlet flow filter value to obtain the filter ratio;

[0086] The filter ratio is set as the current controlled variable, and the current hydrogen intake flow rate is set as the hydrogen intake flow rate filter value.

[0087] Specifically, after obtaining the current operating variable, the current interference variable and the current controlled variable, the controller filters the current measured values ​​of the nitrogen flow rate FIC-0002 entering the liquid nitrogen washing tower, the liquid nitrogen washing raw gas volume FI-0001 and the H2 flow rate FIC-0005 from the PSA process to obtain the current filtered values ​​of the nitrogen flow rate FIC-0002 entering the liquid nitrogen washing tower, the liquid nitrogen washing raw gas volume FI-0001 and the H2 flow rate FIC-0005 from the PSA process, and calculates the ratio of the current filtered values ​​of the liquid nitrogen washing raw gas volume FI-0001 and the liquid nitrogen washing tower nitrogen flow rate FIC-0002 to obtain the filtering ratio FEED / N2, sets the filtering ratio to the current controlled variable, and sets the current filtered value of the H2 flow rate FIC-0005 from the PSA process to the current hydrogen intake flow rate, thereby preprocessing the interference variable DV and further improving the accuracy.

[0088] In one embodiment, step S1 further includes:

[0089] Abnormal data points are screened out for the current hydrogen inlet content of the ammonia synthesis tower and the current nitrogen inlet content of the ammonia synthesis tower.

[0090] Specifically, the current measured values ​​of the H2 content AI-0004 and the N2 content AI-0003 of the gas entering the ammonia synthesis tower are screened out for abnormal data points to obtain the current accurate values ​​of the H2 content AI-0004 and the N2 content AI-0003 of the gas entering the ammonia synthesis tower, thereby preprocessing the controlled variable CV and further improving the accuracy.

[0091] In one embodiment, step S3 includes:

[0092] Step S301: obtaining a predicted value of a first historical controlled variable in an adjacent first historical period;

[0093] Step S302: Calculate the sum of the predicted value of the controlled variable and the difference between the current controlled variable and the predicted value of the first historical controlled variable to obtain the historical model parameter;

[0094] Step S303: Control the current controlled variable according to the historical model parameters.

[0095] Specifically, the controller obtains the first historical controlled variable prediction value y′ of the historical cycle adjacent to the current control cycle m (k), and the difference is calculated with the current controlled variable y(k), and the difference is used to correct the output value calculated by the prediction model of the next historical period corresponding to the first historical period, and the second historical controlled variable prediction value y′ is obtained m(k+i), by feeding back the predicted value of the controlled variable of the next cycle output by the dynamic mathematical prediction model to the current controlled variable, the current controlled variable y(k) is made closer to the preset target control value y of the controlled variable CV. d The corresponding controlled variable predicted value y m (k+i), in such a repeated cycle and iteration process, the current controlled variable y(k) reaches the preset target control value y of the controlled variable CV d , further improving accuracy and making it easier for operators to determine the actual working status of valves on site.

[0096] In this embodiment, the second historical controlled variable predicted value y′ m (k+i) is calculated using the following formula:

[0097] y′ m (k+i)=y m (k+i)+β i (y(k)-y′ m (k))i=1,2,……,n

[0098] Among them, y m (k+i) is the predicted value of the controlled variable, y(k) is the current controlled variable, y m (k+i)(k) is the predicted value of the first historical controlled variable, y m (k+i) is the output value calculated by the prediction model for the next historical period, y′ m (k+i) is the predicted value of the second historical controlled variable, β i is the weighting coefficient.

[0099] Based on the above embodiments, Figure 4 As shown, another embodiment of the present invention provides an ammonia synthesis control method, comprising:

[0100] Step S201: Obtain historical operation variables and historical interference variables;

[0101] Step S202: performing a step response test on the historical operating variables and the historical interference variables within a preset test time to obtain the operating variable test amplitude, the interference variable test amplitude and the historical controlled variable;

[0102] Step S203: inputting the manipulated variable test amplitude, the disturbance variable test amplitude and the historical controlled variable to obtain a sub-dynamic mathematical prediction model and a first historical controlled variable prediction value;

[0103] Step S204: Calculate the difference between the historical controlled variable and the first historical controlled variable prediction value to obtain the variable difference;

[0104] Step S205: Repeat the above steps S201 to S203 according to the preset test times to obtain a plurality of historical model parameters corresponding to the preset test times, and calculate the difference between every two adjacent historical model parameters to obtain the model parameter difference;

[0105] Step S206: If the variable difference is smaller than the historical controlled variable, and the model parameter difference is smaller than the maximum value of multiple historical model parameters, the sub-dynamic mathematical prediction model is set as the dynamic mathematical prediction model.

[0106] Specifically, the dynamic mathematical prediction model can be determined by performing a step response test on the operating variables (i.e., historical operating variables) and interference variables (i.e., historical interference variables) generated in the actual ammonia synthesis process. When performing the step response test, it is necessary to first determine the operating variable MV, interference variable DV, and controlled variable CV that need to be tested for step response, and then determine the amplitude and frequency of the step response test, the number of tests (i.e., the preset number of tests), and the total test time. The controller executes step S201 to obtain the historical operating variables and historical interference variables; then, the controller executes step S202 to perform a step response test on the historical operating variables and historical interference variables within the preset test time to obtain the operating variable test amplitude, the interference variable test amplitude, and the control variable test amplitude. value and historical controlled variable; secondly, the controller executes step S203 to input the operating variable test amplitude, the interference variable test amplitude and the historical controlled variable into the model identification software to obtain the sub-dynamic mathematical prediction model and the first historical controlled variable prediction value; again, the controller executes step S204 to calculate the difference between the historical controlled variable and the first historical controlled variable prediction value to obtain the variable difference; then, the controller executes step S205 to repeat the above steps S201-S203 according to the preset test number, to obtain multiple historical model parameters corresponding to the preset test number, the historical model parameters include amplification factor, pure lag time and time constant, that is, after the step response test of the preset test number, multiple groups of historical model parameters (K 1 , τ 1 , T 1 )、(K 2 , τ 2 , T 2 ),…,(K n , τ n , T n ), where n is the preset number of tests, and the difference between every two adjacent historical model parameters is calculated, that is, (K 1 -K 2 , τ 1 -τ 2 , T 1 -T 2 )、(K 2 -K 3 , τ 2 -τ3 , T 2 -T 3 ),…,(K n-1 -K n , τ n-1 -τ n , T n-1 -T n ) to obtain the model parameter difference; finally, the controller determines whether the variable difference is less than the historical controlled variable, and whether the model parameter difference is less than the maximum value of multiple historical model parameters. If so, it means that the sub-dynamic mathematical prediction model meets both its own verification accuracy requirements and the cross-validation accuracy requirements. The controller executes step S206 to determine that the sub-dynamic mathematical prediction model is a dynamic mathematical prediction model.

[0107] Among them, when the variable difference and the model parameter difference are compared with the historical controlled variables and the maximum values ​​of multiple historical model parameters, the variable difference can also be set to be compared with the preset range value of the historical controlled variables, and the model parameter difference can be set to be compared with the preset range value of the maximum value of the historical model parameters. For example, the variable difference is less than 5% of the historical controlled variables, and the model parameter difference is less than 5% of the maximum values ​​of multiple historical model parameters. The specific method is not limited here.

[0108] The ammonia synthesis control method provided in this embodiment further improves accuracy by performing a step response test on historical operating variables and historical interference variables and determining a dynamic mathematical prediction model based on the step response test results.

[0109] In one embodiment, the current operating variable, the current disturbance variable and the current controlled variable are stored in the following matrix format:

[0110]

[0111] Among them, CV1, CV2, CV3, CV4... represent controlled variables; MV1, MV2, MV3, MV4... represent manipulated variables; DV1, DV2, DV3, DV4... represent interference variables.

[0112] Specifically, since there is a many-to-many relationship between the controlled variables and the manipulated variables or interference variables, the manipulated variables must be obtained at the same time during calculation. The dynamic mathematical model that meets both the self-validation and cross-validation accuracy requirements is stored in the form of the above-mentioned control matrix, so that the corresponding manipulated variables can be obtained more quickly.

[0113] In this embodiment, the control matrix of the ammonia synthesis system is shown in Tables 4, 5 and 6 below.

[0114] Table 4

[0115]

[0116]

[0117] Table 5

[0118]

[0119] Table 6

[0120]

[0121]

[0122] An embodiment of the present invention provides a storage medium, which is used to store computer instructions. When a computer executes the computer instructions, it is used to execute all steps of the ammonia synthesis system control method in any of the method embodiments described above.

[0123] like Figure 5 As shown, a hardware structure diagram of an electronic device for controlling an ammonia synthesis system provided by an embodiment of the present invention includes:

[0124] at least one processor 501; and,

[0125] A memory 502 is communicatively connected to at least one processor 501; wherein,

[0126] The memory 502 stores instructions that can be executed by at least one processor 501 . The instructions are executed by the at least one processor 501 so that the at least one processor 501 can execute the ammonia synthesis system control method as described above.

[0127] Figure 5 A processor 501 is taken as an example.

[0128] The electronic device is preferably an Electronic Control Unit (ECU).

[0129] The electronic device may further include: an input device 503 and an output device 504 .

[0130] The processor 501, the memory 502, the input device 503 and the output device 504 may be connected via a bus or other means, and the figure takes the connection via a bus as an example.

[0131] The memory 502 is a non-volatile computer-readable storage medium that can be used to obtain non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the ammonia synthesis system control method in the embodiment of the present application, for example, Figure 3-Figure 4The processor 501 executes various functional applications and data processing by running the non-volatile software programs, instructions and modules acquired in the memory 502, that is, the ammonia synthesis system control method in the above embodiment is implemented.

[0132] The memory 502 may include a program acquisition area and a data acquisition area, wherein the program acquisition area may acquire an operating system and an application required by at least one function; the data acquisition area may acquire data created according to the use of the ammonia synthesis system control method, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 502 may optionally include a memory remotely arranged relative to the processor 501, and these remote memories may be connected to the device for executing the ammonia synthesis system control method via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0133] The input device 503 can receive user clicks and generate signal inputs related to user settings and function control of the ammonia synthesis system control method. The output device 504 can include display devices such as a display screen.

[0134] The one or more modules are acquired in the memory 502 and, when executed by the one or more processors 501 , execute the ammonia synthesis system control method in any of the above method embodiments.

[0135] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.

[0136] The above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than to limit them. Although the embodiments of the present invention are described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some of the technical features therein by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for controlling an ammonia synthesis system, characterized in that: include: Step S1: obtaining current operating variables, current interference variables and current controlled variables of the liquid nitrogen cold box washing system and the ammonia synthesis system, wherein the current operating variables include current operating variable set values ​​and current operating variable measured values; Step S2: calculating a predicted value of the controlled variable for the next cycle according to the current operating variable, the current interference variable, the current controlled variable and a preset dynamic mathematical prediction model, wherein the dynamic mathematical prediction model is a transfer function model of the current operating variable, the current interference variable and the current controlled variable; Step S3: controlling the current controlled variable according to the predicted value of the controlled variable.

2. The ammonia synthesis system control method according to claim 1, characterized in that: The current operating variable set value includes the current nitrogen outlet flow rate set value of the liquid nitrogen washing cold box system, the current liquid nitrogen washing tower nitrogen inlet flow rate set value, the current liquid nitrogen washing tower extraction valve set value, the current raw gas cooler temperature regulating valve set value, the current hydrogen separator external exhaust valve set value, and the current ammonia synthesis tower temperature regulating valve set value of the ammonia synthesis system, and the current operating variable measurement value includes the current nitrogen outlet flow rate of the liquid nitrogen washing cold box system, the current liquid nitrogen washing tower nitrogen inlet flow rate, the current liquid nitrogen washing tower extraction valve valve opening, the current raw gas cooler temperature regulating valve valve opening, the current hydrogen separator external exhaust valve valve opening, and the current ammonia synthesis tower of the ammonia synthesis system The current interference variable includes the current nitrogen inlet flow rate of the liquid nitrogen washing tower, the current valve opening of the raw gas cooler temperature regulating valve, the current valve opening of the ammonia synthesis tower temperature regulating valve, the current inlet flow rate of the raw gas cooler, the current hydrogen inlet flow rate of the pressure swing adsorption process and the current nitrogen distribution flow rate, and the current controlled variable includes the current carbon monoxide outlet content of the liquid nitrogen washing cold box system, the current liquid nitrogen washing tower top temperature, the current liquid nitrogen washing tower kettle liquid level, the current hydrogen separator liquid level, the current liquid nitrogen washing tower raw gas temperature, the current ammonia synthesis tower hydrogen inlet content, the current ammonia synthesis tower nitrogen inlet content, the current ammonia synthesis tower bed temperature and the current compressor hydrogen inlet content.

3. The ammonia synthesis system control method according to claim 1, characterized in that: The dynamic mathematical prediction model is: Among them, K is the amplification factor; τ is the pure lag time; T is the time constant; S is the complex frequency of Laplace transform.

4. The ammonia synthesis system control method according to claim 3, characterized in that: The step S2 comprises: Step S201: Obtain historical operation variables and historical interference variables; Step S202: performing a step response test on the historical operating variable and the historical interference variable within a preset test time to obtain an operating variable test amplitude, an interference variable test amplitude and a historical controlled variable; Step S203: inputting the manipulated variable test amplitude, the disturbance variable test amplitude and the historical controlled variable to obtain a sub-dynamic mathematical prediction model and a first historical controlled variable prediction value; Step S204: Calculate the difference between the historical controlled variable and the first historical controlled variable prediction value to obtain a variable difference; Step S205: Repeat the above steps S201 to S203 according to the preset test times, obtain a plurality of historical model parameters corresponding to the preset test times, calculate the difference between every two adjacent historical model parameters, and obtain the model parameter difference, wherein the historical model parameters include the amplification factor, the pure lag time, and the time constant; Step S206: If the variable difference is smaller than the historical controlled variable, and the model parameter difference is smaller than the maximum value of a plurality of historical model parameters, the sub-dynamic mathematical prediction model is set as the dynamic mathematical prediction model.

5. The ammonia synthesis system control method according to claim 4, characterized in that: The current operating variable, the current interference variable and the current controlled variable are stored in the following matrix manner: Among them, CV1, CV2, CV3, CV4... represent controlled variables; MV1, MV2, MV3, MV4... represent manipulated variables; DV1, DV2, DV3, DV4... represent interference variables.

6. The ammonia synthesis system control method according to claim 4, characterized in that: The step S3 comprises: Step S301: obtaining a predicted value of a first historical controlled variable in an adjacent first historical period; Step S302: Calculate the sum of the controlled variable prediction value and the difference between the current controlled variable and the first historical controlled variable prediction value to obtain a second historical controlled variable prediction value; Step S303: controlling the current controlled variable according to the second historical controlled variable prediction value.

7. The ammonia synthesis system control method according to claim 2, characterized in that: After step S1, the following steps are also included: Filtering the current liquid nitrogen washing tower nitrogen inlet flow, the current raw gas cooler inlet flow, and the current hydrogen inlet flow to obtain a liquid nitrogen washing tower nitrogen inlet flow filter value, a raw gas cooler inlet flow filter value, and a hydrogen inlet flow filter value; Calculate the ratio of the raw gas cooler inlet flow filter value to the liquid nitrogen washing tower nitrogen inlet flow filter value to obtain a filter ratio; The filtering ratio is set as the current controlled variable, and the current hydrogen intake flow rate is set as the hydrogen intake flow rate filtering value.

8. The ammonia synthesis system control method according to claim 2, characterized in that: After step S1, the following steps are also included: Abnormal data points are screened out for the current hydrogen inlet content of the ammonia synthesis tower and the current nitrogen inlet content of the ammonia synthesis tower.

9. A storage medium, characterized in that: The storage medium stores computer instructions, and when a computer executes the computer instructions, it is used to execute all steps of the ammonia synthesis system control method as described in any one of claims 1 to 8.

10. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the ammonia synthesis system control method according to any one of claims 1 to 8.