Semi-hardware dynamic simulation method and simulation platform for compressor station

Through the semi-hardware dynamic simulation method and simulation platform, the problems of complex operation and high energy loss of the hydrogen and helium compressor system are solved, and the system performance optimization and safety improvement are achieved, ensuring the reliable operation of the compressor station.

CN119310875AActive Publication Date: 2025-01-14TECHNICAL INST OF PHYSICS & CHEMISTRY - CHINESE ACAD OF SCI
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411369266.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-01-14
Estimated Expiration
2044-09-29

AI Technical Summary

Technical Problem

The operation of the hydrogen helium compressor system is complex and requires professional training. How to design the start-stop logic and load distribution of the compressor set to achieve safe operation and reduce energy loss is an important challenge.

Method used

Using semi-hardware dynamic simulation method and simulation platform, by establishing the simulation model and control system model of the compressor station, using NI simulation machine and PLC system for data interaction, simulating the operation of the compressor station in a real environment, optimizing system configuration and training operations member.

Benefits of technology

Before the actual compressor station is built, understand its working characteristics in advance, optimize system performance and stability, ensure the reliability of the control system, improve operating skills and safety, and reduce safety accidents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119310875A_ABST
    Figure CN119310875A_ABST
Patent Text Reader

Abstract

The invention discloses a semi-hardware dynamic simulation method and simulation platform for a compressor station, and is applied to the field of system simulation, and the method comprises the steps: building a simulation model of the compressor station, compiling and operating the simulation model, and packaging the simulation model into an fmu file; based on an NI simulation machine, deploying the fmu file according to third-party software, and generating a standard electric signal; the standard electric signal is input and output through an NI hardware board card of the NI simulation machine; establishing a control system model of the compressor station, wherein the control system model obtains the standard electric signal through a control system of an actual PLC; the control system model sends a command to control and monitor the simulation model through the human-computer interface; and based on the NI simulation machine as an intermediate medium, running the simulation model in a Windows system or a Linux system to realize data interaction between the simulation model and the control system model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of system simulation, and in particular to a semi-hardware dynamic simulation method and a simulation platform for a compressor station. Background Art

[0002] With the continuous development of science and technology and national economy in my country, hydrogen-helium cryogenic refrigerators are widely used in low-temperature physics research, superconducting technology, semiconductor processing, hydrogen liquefaction and other fields. As the core power part of hydrogen-helium cryogenic refrigerators, the safe and stable operation of hydrogen-helium compressor systems plays a vital role in hydrogen-helium cryogenic refrigerators. However, the operation of hydrogen-helium compressor systems requires professional training and experience accumulation.

[0003] The OTS (Operation Training System) combines dynamic simulation and measurement and control system development technology to develop a front-end user operation interface, which is convenient for understanding the characteristics of the entire system and conducting operation training for staff before the system is operated. Developing and utilizing the operation training system to train operators can avoid putting actual equipment in a dangerous situation. The operation training system can be operated in certain special working conditions without worrying about serious consequences. For operators, they cannot distinguish whether they are facing a real system or a simulated system when facing the HMI human-machine interface.

[0004] The high-pressure hydrogen or high-pressure helium required in the hydrogen-helium cryogenic refrigeration cycle is compressed by a compressor, which is an important power device in the refrigeration system. Large hydrogen-helium refrigeration machines have large cooling capacity and complex processes, and usually require large compressor systems with multiple stages of different flow rates and pressure ratios. In the case of series and parallel connection of compressor units with different powers, it is particularly important to design the start and stop logic of the compressor units and how to allocate the load of each compressor unit to achieve safe operation and reduce energy loss.

[0005] In order to overcome these defects, the present application proposes a semi-hardware dynamic simulation method and simulation platform for a compressor station. Summary of the invention

[0006] The purpose of this application is to provide a semi-hardware dynamic simulation method and simulation platform for a compressor station, aiming to solve the above-mentioned problems.

[0007] To achieve the above objectives, this application provides the following technical solutions:

[0008] The present application provides a semi-hardware dynamic simulation method for a compressor station, comprising:

[0009] Establishing a simulation model of the compressor station, and packaging the simulation model into an fmu file by compiling and running the simulation model;

[0010] Based on the NI simulator, the fmu file is deployed according to third-party software to generate a standard electrical signal; the standard electrical signal is input and output through the NI hardware board of the NI simulator;

[0011] A control system model of the compressor station is established, wherein the control system model obtains the standard electrical signal through an actual PLC control system; the control system model sends commands to control and monitor the simulation model through a human-machine interface;

[0012] Based on the NI simulation machine as the intermediate medium, the simulation model is run under the Windows system or Linux system to realize data interaction between the simulation model and the control system model.

[0013] Furthermore, in establishing the simulation model of the compressor station, the steps of compiling and running the simulation model and encapsulating the simulation model into an fmu file specifically include the following steps:

[0014] Compiling the simulation model, generating components, and verifying the components;

[0015] Establish a simulation environment based on the components, write EL language code in the simulation environment, and compile and run the simulation environment;

[0016] A deck platform is generated by using the simulation environment and the EL language code, and the simulation model is packaged into an fmu file based on the deck platform.

[0017] Furthermore, in the deck platform, input variables and output variables are defined;

[0018] The input variables are variables controlled by the third-party software, including but not limited to: compressor start signal, high-pressure outflow temperature, pressure, flow rate (temperature, pressure, flow rate, take two), low-pressure return flow temperature, pressure, flow rate (temperature, pressure, flow rate, take two), compressor slide valve, opening of each regulating valve, opening of each switch valve, and automatic start of each PID;

[0019] The output variables are process values ​​calculated by the simulation model, including but not limited to: simulation time time, error information error, compressor frequency, compressor inlet and outlet temperatures, compressor inlet and outlet pressures, compressor inlet and outlet flow rates, buffer tank pressure, buffer tank temperature, high-pressure circuit outflow temperature, high-pressure circuit outflow flow rate, low-pressure circuit return air temperature, low-pressure circuit return air flow rate, opening of each switch valve, inlet and outlet temperatures of each switch valve, inlet and outlet pressures of each switch valve, inlet and outlet flow rates of each switch valve, opening of each regulating valve, inlet and outlet temperatures of each regulating valve, inlet and outlet pressures of each regulating valve, and inlet and outlet flow rates of each regulating valve.

[0020] Further, based on the NI simulator, the fmu file is deployed according to the third-party software to generate a standard electrical signal; the standard electrical signal is input and output through the NI hardware board of the NI simulator, specifically including the following steps:

[0021] After the simulation model is packaged as an fmu file, the simulation model packaged as the fmu file is run in the NI simulation machine;

[0022] Using third-party laboratory management software on the NI simulation machine or the host PC to monitor the running status of the simulation model and control the start, pause and end of the simulation model;

[0023] The standard electrical signal includes but is not limited to: 0-20mA current signal, 4-20mA current signal, 0-10V voltage signal, -10V-+10V voltage signal, 0-5V voltage signal, 1-5V voltage signal.

[0024] Furthermore, in establishing a control system model of a compressor station, the control system model obtains the standard electrical signal through an actual PLC control system; the control system model sends commands to control and monitor the simulation model through a human-machine interface, specifically including the following steps:

[0025] The control system model obtains the standard electrical signal through the actual PLC control system, and writes a control program to simulate the control system in a real environment;

[0026] The control system model sends commands to control the simulation model through a human-machine interface, while monitoring various process parameters of the simulation model;

[0027] Based on the control program of the control system model, the hardware addresses of the input variables and output variables of the actual PLC are the same as the hardware addresses of the input variables and output variables in the control program of the control system under the real field signal environment; wherein the input variables of the PLC are the output variables of the simulation model, and the output variables of the PLC are the input variables of the simulation model.

[0028] Furthermore, in the step of running the simulation model under the Windows system or the Linux system based on the NI simulation machine as an intermediate medium to realize the data interaction between the simulation model and the control system model, the following steps are specifically included:

[0029] The hardware-in-the-loop simulation technology is used to combine the actual PLC control system with the simulation model; the simulation model is run under the Windows or Linux operating system through the NI simulation machine as an intermediate medium to achieve data interaction between the simulation model and the control system model.

[0030] This application proposes a semi-hardware dynamic simulation platform for a compressor station, comprising:

[0031] Simulation model building module: building a simulation model of the compressor station, and packaging the simulation model into an fmu file by compiling and running the simulation model;

[0032] Output module: Based on the NI simulator, the fmu file is deployed according to third-party software to generate a standard electrical signal; the standard electrical signal is input and output through the NI hardware board of the NI simulator;

[0033] Control module: establish a control system model of the compressor station, the control system model obtains the standard electrical signal through the actual PLC control system; the control system model sends commands to control and monitor the simulation model through the human-machine interface;

[0034] Data interaction module: Based on the NI simulation machine as the intermediate medium, the simulation model is run under the Windows system or Linux system to realize data interaction between the simulation model and the control system model.

[0035] Furthermore, the control system model includes a control program and a human-machine interface; the actual PLC is connected to the NI simulation machine via a NI hardware board.

[0036] The present application provides a semi-hardware dynamic simulation method and simulation platform for a compressor station, which has the following features:

[0037] Beneficial effects:

[0038] (1) The semi-hardware dynamic simulation platform proposed in this application can understand the working characteristics of the compressor station in advance, including the performance of the compressor, the pressure regulation mechanism, the gas flow characteristics, etc., before the actual construction of the compressor station; this helps to optimize the system configuration during the design and construction stage and improve the overall performance and stability of the system;

[0039] (2) Based on the control system model of the compressor station, the control system is pre-verified in a virtual environment to ensure the reliability and effectiveness of the control system in actual applications;

[0040] (3) This application can also provide systematic training for operators, improve their operating skills and ability to deal with emergencies, reduce safety accidents and equipment damage caused by improper operation, and improve the safety and reliability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A schematic flow chart of a semi-hardware dynamic simulation method for a compressor station according to Embodiment 1 of the present application;

[0042] Figure 2A compressor station flow diagram of a compressor in Example 1 of the present application;

[0043] Figure 3 This is a flow chart of a compressor station with two compressors connected in series according to Example 1 of the present application;

[0044] Figure 4 This is a schematic flow chart of a compressor station composed of a high-pressure compressor and a low-pressure compressor according to Example 1 of the present application;

[0045] Figure 5 This is a flow chart of a compressor station consisting of two high-pressure compressors and three low-pressure compressors according to Example 1 of the present application;

[0046] Figure 6 This is a schematic flow chart of a compressor station composed of a high-pressure compressor, a low-pressure compressor and a negative-pressure compressor according to Example 1 of the present application;

[0047] Figure 7 This is a structural schematic diagram of a semi-hardware dynamic simulation platform for a compressor station in Example 2 of the present application;

[0048] Figure 8 This is a technical architecture diagram of a semi-hardware dynamic simulation platform (Windows system) of a compressor station according to Embodiment 2 of the present application;

[0049] Fig. 9 This is a technical architecture diagram of a semi-hardware dynamic simulation platform (Linux system) of a compressor station according to Embodiment 2 of the present application;

[0050] Fig.10 A flowchart of a semi-hardware dynamic simulation platform for a compressor station according to Embodiment 2 of the present application;

[0051] Fig.11 This is a schematic diagram of the device structure of Example 3 of the present application;

[0052] Fig.12 This is a schematic diagram of the storage medium structure of Example 4 of the present application. DETAILED DESCRIPTION

[0053] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0054] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0055] Example 1

[0056] See also Figure 1 , is a flow chart of a semi-hardware dynamic simulation method of a compressor station according to Embodiment 1 of the present application; the steps include:

[0057] S1: Establish a simulation model of the compressor station, and encapsulate the simulation model into an fmu file by compiling and running the simulation model.

[0058] In this embodiment, the compressor component model can be customized by developing the required component model as needed, for example, the performance characteristic curve of the compressor is written into the source code of the compressor component, and defined and packaged into a proprietary compressor model, so as to be more suitable for actual conditions and specific working conditions.

[0059] When building the simulation model of the compressor station, internal variables are introduced into the simulation model, including simulation time and error information. The simulation time is encapsulated as a simulation time component, and the output of the simulation time component is the simulation time value, which is set as the real value of the analog type; the error information is encapsulated as an error information component, and the output of the error information component is the error information value, which is set as the real value of the analog type.

[0060] Compile the simulation model: the simulation time component and the error information component do not need to be connected to the main loop of the simulation model. Just place the packaged simulation time component and the error information component and the main loop model of the simulation model in the same screen, and the model can run smoothly after compilation.

[0061] After the simulation model is compiled, the components (partitions) are generated and validated. After the components are validated, a simulation environment (experiment) is established, and the EL language code is written in the simulation environment (experiment), and the simulation environment is compiled and run. Through the simulation environment (experiment) and the EL language code, the deck platform is generated based on the EL experiment code.

[0062] In the deck platform, input variables and output variables are defined; input variables are variables controlled by the third-party software, including but not limited to: compressor start signal, high-pressure outflow temperature, pressure, flow rate (temperature, pressure, flow rate, take two), low-pressure return flow temperature, pressure, flow rate (temperature, pressure, flow rate, take two), compressor slide valve, opening of each regulating valve, opening of each switch valve, and automatic operation of each PID.

[0063] The output variables are process values ​​calculated by the simulation model, including but not limited to: simulation time time, error information error, compressor frequency, compressor inlet and outlet temperatures, compressor inlet and outlet pressures, compressor inlet and outlet flow rates, buffer tank pressure, buffer tank temperature, high-pressure circuit outflow temperature, high-pressure circuit outflow flow rate, low-pressure circuit return air temperature, low-pressure circuit return air flow rate, opening of each switch valve, inlet and outlet temperatures of each switch valve, inlet and outlet pressures of each switch valve, inlet and outlet flow rates of each switch valve, opening of each regulating valve, inlet and outlet temperatures of each regulating valve, inlet and outlet pressures of each regulating valve, and inlet and outlet flow rates of each regulating valve.

[0064] S2: Based on the NI simulator, the fmu file is deployed according to third-party software to generate a standard electrical signal; the standard electrical signal is input and output through the NI hardware board of the NI simulator.

[0065] In this embodiment, after the simulation model is encapsulated as an fmu file, the simulation model encapsulated as an fmu file is run in the NI simulator. When the Windows system is run in the NI simulator, a third-party laboratory management software is used to monitor the running state of the simulation model and control the start, pause and end of the simulation model. At this time, the third-party laboratory management software runs in the NI simulator (Windows system).

[0066] When the Linux system is running in the NI simulator, a third-party laboratory management software is used on the host PC running the Windows system to monitor the running status of the simulation model. At this time, in the host PC (windows system), the third-party laboratory management software such as Veristand is used to deploy the fmu file to the lower computer, the NI simulator (Linux system), for operation.

[0067] In both cases, the simulation model packaged as an fmu file is run in the NI simulator. The difference is that when the NI simulator runs the Windows system, the simulation model is packaged as an fmu file that can be run in the Windows system; when the NI simulator runs the Linux system, the simulation model is packaged as an fmu file that can be run in the Linux system.

[0068] The standard electrical signals include but are not limited to: 0-20mA current signal, 4-20mA current signal, 0-10V voltage signal, -10V-+10V voltage signal, 0-5V voltage signal, and 1-5V voltage signal.

[0069] S3: Establish a control system model of the compressor station, wherein the control system model obtains the standard electrical signal through an actual PLC control system; the control system model sends commands to control and monitor the simulation model through a human-machine interface.

[0070] In this embodiment, the control system model obtains the standard electrical signal through the actual PLC control system and writes a control program to simulate the control system in a real environment. The control system model sends commands to control the simulation model through the human-machine interface and monitors various process parameters of the simulation model.

[0071] Based on the control program of the control system model, the hardware addresses of the input variables and output variables of the actual PLC are the same as the hardware addresses of the input variables and output variables in the control program of the control system under the real field signal environment; wherein the input variables of the PLC are the output variables of the simulation model, and the output variables of the PLC are the input variables of the simulation model. The values ​​of the input parameters are set on the human-machine interface of the control system of the actual PLC, and commands and parameters are output to the simulation model; wherein the human-machine interface of the control system is used to send commands and perform monitoring.

[0072] See also Figure 2 , is a flow diagram of a compressor station of one compressor in Example 1 of the present application. The compressor station consists of a single compressor C-1, an oil filter system ORS, a bypass valve CV1, an unloading valve CV2, a loading valve CV3 and a buffer tank.

[0073] The working process is as follows:

[0074] (1) Low-pressure gas enters from the C-1 air intake port, is compressed to the specified pressure by C-1, and is discharged from the C-1 high-pressure exhaust port. After the oil and water in the raw gas are filtered out by the ORS oil filter system, it is discharged to the subsequent stage through the high-pressure degassing pipeline.

[0075] (2) The gas management panel valve and buffer tank work together to adjust and control the suction pressure and exhaust pressure of the compressor.

[0076] (3) The suction pressure is controlled by the bypass valve CV1. When the suction pressure is too low, the bypass valve CV1 opens, and the high-pressure gas enters the suction pipe through CV1 to adjust the suction pressure value.

[0077] (4) The high pressure is regulated and controlled by the loading valve CV3 and the unloading valve CV2 in conjunction with the buffer tank. When the high pressure is too high, the unloading valve CV2 opens, the high pressure gas enters the buffer tank, and the compressor C-1 is appropriately reduced in frequency to adjust and control the high pressure pressure to the target value. When the high pressure is too low, the unloading valve CV2 is closed, the loading valve CV3 is opened, and the gas in the buffer tank is compressed by the compressor C-1 and discharged into the high pressure pipeline. The compressor C-1 is appropriately increased in frequency to adjust and control the high pressure pressure to the target value.

[0078] (5) When simulating this compressor station, the compressor component model can be customized, such as writing the compressor performance characteristic curve into the source code of the compressor component, defining and encapsulating it into a proprietary compressor model, so as to better adapt to actual conditions and specific working conditions. The boundary conditions of high-pressure outflow and low-pressure return flow are set to perform dynamic simulation of the compressor station.

[0079] Figure 2 For the compressor station in, the input variables are: compressor C-1 start signal, high-pressure outlet switch valve signal, low-pressure inlet switch valve signal, high-pressure outflow temperature, pressure, flow rate (temperature, pressure, flow rate, take two), low-pressure return temperature, pressure, flow rate (temperature, pressure, flow rate, take two), compressor slide valve (or compressor frequency / speed), bypass valve CV1 opening, loading valve CV3 opening, unloading valve CV2 opening, buffer tank air supply valve opening, bypass valve PID automatic, loading valve PID automatic, unloading valve PID automatic.

[0080] The output variables are: simulation time time, error information error, compressor C-1 frequency, compressor suction temperature, compressor suction pressure, compressor suction flow, compressor exhaust temperature, compressor exhaust pressure, buffer tank pressure, temperature, high-pressure line outflow temperature, low-pressure line return air temperature, each regulating valve opening, each regulating valve inlet and outlet pressure, each regulating valve inlet and outlet flow, each switch valve opening, each switch valve inlet and outlet pressure, each switch valve inlet and outlet flow, etc.

[0081] See also Figure 3 , is a flow diagram of a compressor station with two compressors connected in series in Example 1 of the present application. The compressor station consists of compressors C-1 and C-2 connected in series, an oil filter system ORS, a bypass valve CV1, an unloading valve CV2, a loading valve CV3 and a buffer tank.

[0082] The working process is as follows:

[0083] (1) Low-pressure gas enters from the air intake of C-1 and C-2, is compressed to the specified pressure by C-1 and C-2, and is discharged from the high-pressure exhaust port of C-1 and C-2. After the oil and water in the raw gas are filtered out by the ORS oil filter system, it goes to the subsequent stage through the high-pressure degassing pipeline.

[0084] (2) The gas management panel valve and buffer tank work together to adjust and control the suction pressure and exhaust pressure of the compressor.

[0085] (3) The suction pressure is controlled by the bypass valve CV1. When the suction pressure is too low, the bypass valve CV1 opens, and the high-pressure gas enters the suction pipe through CV1 to adjust the suction pressure value.

[0086] (4) The high-pressure pressure is regulated and controlled by the loading valve CV3 and the unloading valve CV2 in conjunction with the buffer tank. When the high-pressure pressure is too high, the unloading valve CV2 opens, the high-pressure gas enters the buffer tank, and the compressors C-1 and C-2 are appropriately reduced in frequency to adjust and control the high-pressure pressure to the target value. When the high-pressure pressure is too low, the unloading valve CV2 is closed, the loading valve CV3 is opened, and the gas in the buffer tank is compressed by the compressors C-1 and C-2 and discharged into the high-pressure pipeline. The compressors C-1 and C-2 are appropriately increased in frequency to adjust and control the high-pressure pressure to the target value.

[0087] (5) When simulating this compressor station, the compressor component model can be customized, such as writing the compressor performance characteristic curve into the source code of the compressor component, defining and encapsulating it into a proprietary compressor model, so as to better adapt to actual conditions and specific working conditions. The boundary conditions of high-pressure outflow and low-pressure return flow are set to perform dynamic simulation of the compressor station.

[0088] Figure 3 For the compressor station in, the input variables are: compressor C-1 start signal, compressor C-2 start signal, high-pressure outlet switch valve signal, low-pressure inlet switch valve signal, high-pressure outflow temperature, pressure, flow rate (temperature, pressure, flow rate, take two), low-pressure return temperature, pressure, flow rate (temperature, pressure, flow rate, take two), compressor C-1 / C-2 slide valve (or compressor C-1 / C-2 frequency / speed), bypass valve CV1 opening, loading valve CV3 opening, unloading valve CV2 opening, buffer tank air supply valve opening, bypass valve PID automatic, loading valve PID automatic, unloading valve PID automatic.

[0089] The output variables are: simulation time time, error message error, compressor C-1 frequency, compressor C-2 frequency, compressor C-1 / C-2 suction temperature, compressor C-1 / C-2 suction pressure, compressor C-1 / C-2 suction flow, compressor C-1 / C-2 exhaust temperature, compressor C-1 / C-2 pressure, buffer tank pressure, buffer tank temperature, high-pressure line outflow temperature, low-pressure line return air temperature, each regulating valve opening, each regulating valve inlet and outlet pressure, each regulating valve inlet and outlet flow, each switch valve opening, each switch valve inlet and outlet pressure, each switch valve inlet and outlet flow, etc.

[0090] See also Figure 4 , is a flow diagram of a compressor station composed of a high-pressure compressor and a low-pressure compressor according to Example 1 of the present application. The compressor station consists of a high-pressure compressor CH, a low-pressure compressor CL, an oil filter system ORS, a medium-pressure bypass valve CV1, a low-pressure bypass valve CV2, an unloading valve CV3, a loading valve CV4 and a buffer tank.

[0091] The working process is as follows:

[0092] (1) Low-pressure gas enters from the suction port of the low-pressure compressor CL, is compressed to a specified pressure by the low-pressure compressor CL, enters the high-pressure compressor CH and is compressed to a specified pressure, and is discharged from the high-pressure exhaust port of the high-pressure compressor CH. After the oil and water in the raw gas are filtered out by the ORS oil filter system, the gas is sent to the subsequent stage through the high-pressure degassing pipeline.

[0093] (2) The gas management panel valve and buffer tank work together to adjust and control the suction pressure and exhaust pressure of the compressor.

[0094] (3) The medium-pressure suction pressure is controlled by the medium-pressure bypass valve CV1. When the medium-pressure suction pressure is too low, the medium-pressure bypass valve CV1 opens, and the high-pressure gas enters the medium-pressure suction pipe through CV1 to adjust the medium-pressure suction pressure value.

[0095] (4) The low-pressure suction pressure is controlled by the low-pressure bypass valve CV2. When the low-pressure suction pressure is too low, the low-pressure bypass valve CV2 opens, and the high-pressure gas enters the low-pressure suction pipe through CV2 to adjust the low-pressure suction pressure value.

[0096] (5) The high-pressure pressure is regulated and controlled by the loading valve CV4 and the unloading valve CV3 in conjunction with the buffer tank. When the high-pressure pressure is too high, the unloading valve CV3 opens, the high-pressure gas enters the buffer tank, and the low-pressure compressor CL and the high-pressure compressor CH are appropriately reduced in frequency to adjust and control the high-pressure pressure to reach the target value. When the high-pressure pressure is too low, the unloading valve CV3 is closed, the loading valve CV4 is opened, and the gas in the buffer tank is compressed by the low-pressure compressor CL and the high-pressure compressor CH and then discharged into the high-pressure pipeline. The low-pressure compressor CL and the high-pressure compressor CH are appropriately increased in frequency to adjust and control the high-pressure pressure to reach the target value.

[0097] (6) When simulating this compressor station, the compressor component model can be customized, such as writing the compressor performance characteristic curve into the source code of the compressor component, defining and encapsulating it into a proprietary compressor model, so as to better adapt to actual conditions and specific working conditions. Set the boundary conditions of high-pressure outflow, medium-pressure return flow and low-pressure return flow to perform dynamic simulation of the compressor station. Regarding the startup sequence, it is also possible to simulate the high-pressure compressor first, the low-pressure compressor first, or the high-pressure compressor and the low-pressure compressor starting at the same time.

[0098] Figure 4For the compressor station in, the input variables are: high-pressure compressor CH start signal, low-pressure compressor CL start signal, high-pressure road outlet switch valve signal, medium-pressure road inlet switch valve signal, low-pressure road inlet switch valve signal, high-pressure outflow temperature, pressure, flow rate (temperature, pressure, flow rate, take two), medium-pressure return temperature, pressure, flow rate (temperature, pressure, flow rate, take two), low-pressure return temperature, pressure, flow rate (temperature, pressure, flow rate, take two), compressor CH / CL slide valve (or compressor CH / CL frequency / speed), medium-pressure bypass valve CV1 opening, low-pressure bypass valve CV2 opening, loading valve CV4 opening, unloading valve CV3 opening, buffer tank air supply valve opening, medium-pressure bypass valve PID automatic, low-pressure bypass valve PID automatic, loading valve PID automatic, unloading valve PID automatic.

[0099] The output variables are: simulation time time, error message error, high-pressure compressor CH frequency, low-pressure compressor CL frequency, compressor CH / CL suction temperature, compressor CH / CL suction pressure, compressor CH / CL suction flow, compressor CH / CL exhaust temperature, compressor CH / CL exhaust pressure, compressor CH / CL exhaust flow, buffer tank pressure, buffer tank temperature, high-pressure line outflow temperature, medium-pressure line return air temperature, medium-pressure line return air flow, low-pressure line return air temperature, opening of each regulating valve, inlet and outlet pressure of each regulating valve, inlet and outlet flow of each regulating valve, opening of each switch valve, inlet and outlet pressure of each switch valve, inlet and outlet flow of each switch valve, etc.

[0100] See also Figure 5 , is a flow diagram of a compressor station consisting of 2 high-pressure compressors and 3 low-pressure compressors in Example 1 of the present application. The compressor station consists of a high-pressure compressor CH, a low-pressure compressor CL, an oil filter system ORS, a medium-pressure bypass valve CV1, a low-pressure bypass valve CV2, an unloading valve CV3, a loading valve CV4 and a buffer tank. The high-pressure compressor consists of two high-pressure compressors, and an independent ORS oil filter system is set at the high-pressure outlet of each high-pressure compressor. The low-pressure compressor consists of 3 low-pressure compressors. Figure 5 The compressor station is Figure 4 An upgraded version of the compressor station.

[0101] The working process is as follows:

[0102] (1) Low-pressure gas enters from the suction port of the low-pressure compressor CL, is compressed to a specified pressure by the low-pressure compressor CL, enters the high-pressure compressor CH and is compressed to a specified pressure, and is discharged from the high-pressure exhaust port of the high-pressure compressor CH. After the oil and water in the raw gas are filtered out by the ORS oil filter system, the gas is sent to the subsequent stage through the high-pressure degassing pipeline.

[0103] (2) The high-pressure compressor consists of two high-pressure compressors, and an independent ORS oil filter system is installed at the high-pressure outlet of each high-pressure compressor. The high-pressure compressor outlet gas passes through the independent ORS oil filter system to filter out the oil and water in the raw gas, and then merges and sends it to the subsequent pipeline. This design avoids the problem of poor oil filtering effect of the oil filter system caused by uneven pressure distribution between the two high-pressure compressors.

[0104] (3) The gas management panel valve and buffer tank work together to adjust and control the suction pressure and exhaust pressure of the compressor.

[0105] (4) The medium-pressure suction pressure is controlled by the medium-pressure bypass valve CV1. When the medium-pressure suction pressure is too low, the medium-pressure bypass valve CV1 opens, and the high-pressure gas enters the medium-pressure suction pipe through CV1 to adjust the medium-pressure suction pressure value.

[0106] (5) The low-pressure suction pressure is controlled by the low-pressure bypass valve CV2. When the low-pressure suction pressure is too low, the low-pressure bypass valve CV2 opens, and the high-pressure gas enters the low-pressure suction pipe through CV2 to adjust the low-pressure suction pressure value.

[0107] (6) The high-pressure pressure is regulated and controlled by the loading valve CV4 and the unloading valve CV3 in conjunction with the buffer tank. When the high-pressure pressure is too high, the unloading valve CV3 opens, the high-pressure gas enters the buffer tank, and the low-pressure compressor CL and the high-pressure compressor CH are appropriately reduced in frequency to adjust and control the high-pressure pressure to reach the target value. When the high-pressure pressure is too low, the unloading valve CV3 is closed, the loading valve CV4 is opened, and the gas in the buffer tank is compressed by the low-pressure compressor CL and the high-pressure compressor CH and then discharged into the high-pressure pipeline. The low-pressure compressor CL and the high-pressure compressor CH are appropriately increased in frequency to adjust and control the high-pressure pressure to reach the target value.

[0108] (7) When simulating this compressor station, the compressor component model can be customized, such as writing the compressor performance characteristic curve into the source code of the compressor component, defining and encapsulating it into a proprietary compressor model, so as to better adapt to actual conditions and specific working conditions. The boundary conditions of high-pressure outflow, medium-pressure return flow and low-pressure return flow are set to perform dynamic simulation of the compressor station.

[0109] (8) Regarding the startup sequence, it is possible to simulate the high-pressure compressor being started first, the low-pressure compressor being started first, or the high-pressure and low-pressure compressors being started simultaneously. Because the compressor station is a 2-3 formation, with 2 high-pressure compressors and 3 low-pressure compressors, it is possible to simulate the impact of different compressor load distribution conditions on the system, as well as simulate the start-stop logic of the compressor unit.

[0110] Figure 5For the compressor station in, the input variables are: high-pressure compressor CH start signal (each high-pressure compressor starts separately or simultaneously), low-pressure compressor CL start signal (each low-pressure compressor starts separately or simultaneously), high-pressure road outlet switch valve signal, medium-pressure road inlet switch valve signal, low-pressure road inlet switch valve signal, high-pressure outflow temperature, pressure, flow rate (temperature, pressure, flow rate, take two), medium-pressure return temperature, pressure, flow rate (temperature, pressure, flow rate, take two), low-pressure return temperature, pressure, flow rate (temperature, pressure, flow rate, take two), compressor CH / CL slide valve (or compressor CH / CL frequency / speed), medium-pressure bypass valve CV1 opening, low-pressure bypass valve CV2 opening, loading valve CV4 opening, unloading valve CV3 opening, buffer tank air supply valve opening, medium-pressure bypass valve PID automatic, low-pressure bypass valve PID automatic, loading valve PID automatic, unloading valve PID automatic.

[0111] The output variables are: simulation time time, error message error, high-pressure compressor CH frequency (the frequency of each high-pressure compressor), low-pressure compressor CL frequency (the frequency of each low-pressure compressor), compressor CH / CL suction temperature, compressor CH / CL suction pressure, compressor CH / CL suction flow, compressor CH / CL exhaust temperature, compressor CH / CL exhaust pressure, compressor CH / CL exhaust flow, buffer tank pressure, buffer tank temperature, high-pressure line outflow temperature, medium-pressure line return air temperature, medium-pressure line return air flow, low-pressure line return air temperature, medium-pressure bypass valve opening, each regulating valve opening, each regulating valve inlet and outlet pressure, each regulating valve inlet and outlet flow, each switch valve opening, each switch valve inlet and outlet pressure, each switch valve inlet and outlet flow, etc.

[0112] See also Figure 6 , which is a flow chart of a compressor station composed of a high-pressure compressor, a low-pressure compressor and a negative-pressure compressor according to Example 1 of the present application. The compressor station consists of a high-pressure compressor CH, a low-pressure compressor CL, a negative-pressure compressor CSP, an oil filter system ORS, a medium-pressure bypass valve CV1, a low-pressure bypass valve CV2, an unloading valve CV3, a loading valve CV4 and a buffer tank. The high-pressure compressor consists of two high-pressure compressors, and an independent ORS oil filter system is arranged at the high-pressure outlet of each high-pressure compressor. The low-pressure compressor consists of three low-pressure compressors. The negative-pressure compressor consists of three negative-pressure compressors.

[0113] The working process is as follows:

[0114] (1) Low-pressure gas enters from the suction port of the low-pressure compressor CL, is compressed to a specified pressure by the low-pressure compressor CL, enters the high-pressure compressor CH and is compressed to a specified pressure, and is discharged from the high-pressure exhaust port of the high-pressure compressor CH. After the oil and water in the raw gas are filtered out by the ORS oil filter system, the gas is sent to the subsequent stage through the high-pressure degassing pipeline.

[0115] (2) Negative pressure gas enters the negative pressure compressor CSP from the negative pressure return pipeline, is compressed to medium pressure by the negative pressure compressor CSP, merges with the gas from the low pressure compressor CL, and enters the suction port of the high pressure compressor CH together, and is compressed by the high pressure compressor CH.

[0116] (3) The high-pressure compressor consists of two high-pressure compressors, and an independent ORS oil filter system is installed at the high-pressure outlet of each high-pressure compressor. The high-pressure compressor outlet gas passes through the independent ORS oil filter system to filter out the oil and water in the raw gas, and then merges and sends it to the subsequent pipeline. This design avoids the problem of poor oil filtering effect of the oil filter system caused by uneven pressure distribution between the two high-pressure compressors.

[0117] (4) The gas management panel valve and buffer tank work together to adjust and control the suction pressure and exhaust pressure of the compressor.

[0118] (5) The medium-pressure suction pressure is controlled by the medium-pressure bypass valve CV1. When the medium-pressure suction pressure is too low, the medium-pressure bypass valve CV1 opens, and the high-pressure gas enters the medium-pressure suction pipe through CV1 to adjust the medium-pressure suction pressure value.

[0119] (6) The low-pressure suction pressure is controlled by the low-pressure bypass valve CV2. When the low-pressure suction pressure is too low, the low-pressure bypass valve CV2 opens, and the high-pressure gas enters the low-pressure suction pipe through CV2 to adjust the low-pressure suction pressure value.

[0120] (7) The high-pressure pressure is regulated and controlled by the loading valve CV4 and the unloading valve CV3 in conjunction with the buffer tank. When the high-pressure pressure is too high, the unloading valve CV3 opens, the high-pressure gas enters the buffer tank, and the low-pressure compressor CL and the high-pressure compressor CH are appropriately reduced in frequency to adjust and control the high-pressure pressure to reach the target value. When the high-pressure pressure is too low, the unloading valve CV3 is closed, the loading valve CV4 is opened, and the gas in the buffer tank is compressed by the low-pressure compressor CL and the high-pressure compressor CH and then discharged into the high-pressure pipeline. The low-pressure compressor CL and the high-pressure compressor CH are appropriately increased in frequency to adjust and control the high-pressure pressure to reach the target value.

[0121] (8) When simulating this compressor station, the compressor component model can be customized, such as writing the compressor performance characteristic curve into the source code of the compressor component, defining and encapsulating it into a proprietary compressor model, so as to better adapt to actual conditions and specific working conditions. The boundary conditions of high-pressure outflow, medium-pressure return flow, low-pressure return flow and negative-pressure return flow are set to perform dynamic simulation of the compressor station.

[0122] (9) Regarding the startup sequence, it is possible to simulate the high-pressure compressor being started first, the low-pressure compressor being started first, or the high-pressure compressor and the low-pressure compressor being started at the same time. Because the compressor station is a 2-3 formation, with 2 high-pressure compressors, 3 low-pressure compressors, and 3 negative-pressure compressors, it is possible to simulate the impact of different compressor load distribution conditions on the system, as well as simulate the start-stop logic of the compressor unit.

[0123] Figure 6 The input variables of the compressor station are: the start signal of the high-pressure compressor CH (each high-pressure compressor starts separately or simultaneously), the start signal of the low-pressure compressor CL (each low-pressure compressor starts separately or simultaneously), the start signal of the negative pressure compressor CSP (each negative pressure compressor starts separately or simultaneously), the high-pressure outlet switch valve signal, the medium-pressure inlet switch valve signal, the low-pressure inlet switch valve signal, the negative pressure inlet switch valve signal, the high-pressure outflow temperature, pressure, flow rate (two of the three of temperature, pressure, and flow rate), the medium-pressure return flow temperature, pressure, and flow rate (two of the three of temperature, pressure, and flow rate), Low-pressure reflux temperature, pressure, flow (two out of the three: temperature, pressure, and flow), negative-pressure reflux temperature, pressure, flow (two out of the three: temperature, pressure, and flow), compressor CH / CL / CSP slide valve (or compressor CH / CL / CSP frequency / speed), medium-pressure bypass valve CV1 opening, low-pressure bypass valve CV2 opening, loading valve CV4 opening, unloading valve CV3 opening, buffer tank air supply valve opening, negative-pressure return valve CV5 opening, one-way valve NV1 switch signal, medium-pressure bypass valve PID automatic, low-pressure bypass valve PID automatic, loading valve PID automatic, unloading valve PID automatic.

[0124] The output variables are: simulation time time, error message error, high-pressure compressor CH frequency (the frequency of each high-pressure compressor), low-pressure compressor CL frequency (the frequency of each low-pressure compressor), negative pressure compressor CSP frequency (the frequency of each low-pressure compressor), compressor CH / CL / CSP suction temperature, compressor CH / CL / CSP suction pressure, compressor CH / CL / CSP suction flow, compressor CH / CL / CSP exhaust temperature, compressor CH / CL / CSP exhaust pressure, compressor CH / CL / CSP exhaust flow, buffer tank pressure, buffer tank temperature, high-pressure line outflow temperature, medium-pressure line return air temperature, medium-pressure line return air flow, low-pressure line return air temperature, negative-pressure line return air temperature, each regulating valve opening, each regulating valve inlet and outlet pressure, each regulating valve inlet and outlet flow, each switch valve opening, each switch valve inlet and outlet pressure, each switch valve inlet and outlet flow, etc.

[0125] S4: Based on the NI simulator as an intermediate medium, the simulation model is run under the Windows system or Linux system to realize data interaction between the simulation model and the control system model.

[0126] In this embodiment, the PLC and the NI hardware board are directly connected through hard-wired I / O, the standard electrical signals output by the NI hardware board are collected, and the control signals are transmitted to the simulation model based on the control program written by the actual PLC. At the same time, the feedback signals of the simulation model are received to realize the data interaction between the simulation model and the control system model.

[0127] To summarize, Example 1 of the present application establishes a simulation model of the compressor station and a control system model of the compressor station, and exchanges data between the simulation model and the control system model; it is able to understand the working characteristics of the compressor station in advance, perform pre-verification of the control system, debug the start and stop logic of the compressor unit, find the optimal working point and the optimal operation method of the compressor unit cascade, and train operators while using actual PLC hardware, which can simulate the real on-site signal environment of the compressor station to the greatest extent.

[0128] Example 2

[0129] See also Figure 7 , is a structural diagram of a semi-hardware dynamic simulation platform of a compressor station in Example 2 of the present application; the specific contents include:

[0130] Simulation model building module: building a simulation model of the compressor station, and packaging the simulation model into an fmu file by compiling and running the simulation model;

[0131] Output module: Based on the NI simulator, the fmu file is deployed according to third-party software to generate a standard electrical signal; the standard electrical signal is input and output through the NI hardware board of the NI simulator;

[0132] Control module: establish a control system model of the compressor station, the control system model obtains the standard electrical signal through the actual PLC control system; the control system model sends commands to control and monitor the simulation model through the human-machine interface;

[0133] Data interaction module: Based on the NI simulation machine as the intermediate medium, the simulation model is run under the Windows system or Linux system to realize data interaction between the simulation model and the control system model.

[0134] In this embodiment, the hardware-in-the-loop simulation HIL technology is used to combine the actual PLC control system with the simulation model. The simulation model is run under the Windows or Linux operating system through the NI simulator as an intermediate medium, and the running status of the dynamic simulation model is monitored through third-party laboratory management software such as VeriStand. The human-machine interface of the control system host computer is used to send control commands and monitor simulation process parameters.

[0135] See also Figure 8 , which is a technical architecture diagram of a semi-hardware dynamic simulation platform (Windows system) of a compressor station in Example 2 of the present application.

[0136] Using the deck platform, the simulation model is packaged into an fmu file, and the fmu file type that can interact with third-party software is selected. The generated fmu file can be deployed by third-party software and interact with other third-party software.

[0137] After the simulation model is packaged into an fmu file, it is placed in the NI simulator. The generated fmu file is deployed using third-party laboratory management software such as Veristand. After successful deployment, standard electrical signals are generated and input and output through NI hardware boards.

[0138] The control system based on the actual PLC uses I / O direct connection and hard wiring to connect with the NI hardware board to collect the standard electrical signals output by the NI hardware board. At the same time, various commands and parameters can be output to the simulation model by setting the values ​​of the input parameters on the human-machine interface of the control system host computer. In other words, the control system based on the actual PLC collects standard electrical signals and uses the NI simulation machine as an intermediate medium to interact with the simulation model.

[0139] The NI simulator runs on the Windows operating system, and the simulation model packaged as an fmu file runs on the NI simulator. At the same time, a third-party laboratory management software such as Veristand is used on the NI simulator to monitor the running status of the dynamic simulation model. For example, the control variable Model Command can be used on the Veristand workspace interface to control the start, pause and stop of the simulation model.

[0140] Based on the actual PLC control system, the human-machine interface runs on the upper workstation / PC. Through the human-machine interface on the upper computer, commands can be sent to control the simulation model and monitor various process parameters of the simulation model. The actual PLC collects standard electrical signals. Based on the control program written by the actual PLC, the hardware addresses of the input variables and output variables can be the same as the hardware addresses of the input variables and output variables in the control program of the control system under the real field signal environment, that is, to simulate the real field signal environment to the greatest extent.

[0141] See also Fig. 9 , which is a technical architecture diagram of a semi-hardware dynamic simulation platform (Linux system) of a compressor station in Example 2 of the present application.

[0142] Using the deck platform, the simulation model is encapsulated into an fmu file that can be run under the Linux operating system, and the fmu file type that can interact with third-party software is selected. The generated fmu file can be deployed by third-party software and interact with other third-party software.

[0143] After the simulation model is packaged into an fmu file that can run under the Linux operating system, the fmu file is deployed to the lower computer, the NI simulator (Linux system), using third-party laboratory management software such as veristand in the upper PC (Windows system). After successful deployment, standard electrical signals are generated and input and output through NI hardware boards. Compared with the Windows system, the Linux system has better real-time performance. Therefore, the simulation model runs in the NI simulator (Linux system), which has better real-time performance and faster and smoother data interaction between the simulation model and the control system.

[0144] The control system based on the actual PLC uses I / O direct connection and hard wiring to connect with the NI hardware board to collect the standard electrical signals output by the NI hardware board. At the same time, various commands and parameters can be output to the simulation model by setting the values ​​of the input parameters on the human-machine interface of the control system host computer. In other words, the control system based on the actual PLC collects standard electrical signals and uses the NI simulation machine as an intermediate medium to interact with the simulation model.

[0145] The NI simulator runs on the Linux operating system. The simulation model encapsulated as an fmu file is deployed to the NI simulator (Linux system) using a third-party laboratory management software such as Veristand on the host PC (Windows system) to run. At the same time, a third-party laboratory management software such as Veristand is used on the host PC (Windows system) to monitor the running status of the dynamic simulation model. For example, the control variable Model Command can be used on the workspace interface of Veristand to control the start, pause and stop of the simulation model.

[0146] Based on the actual PLC control system, the human-machine interface runs on another upper workstation / PC. Through the human-machine interface on another upper computer, commands can be sent to control the simulation model and monitor various process parameters of the simulation model. The actual PLC collects standard electrical signals. Based on the control program written by the actual PLC, the hardware addresses of the input variables and output variables can be the same as the hardware addresses of the input variables and output variables in the control program of the control system under the real field signal environment, that is, to simulate the real field signal environment to the greatest extent.

[0147] Example 3

[0148] See also Fig.11 , is a schematic diagram of the device structure of Embodiment 3 of the present application. The device 50 includes a processor 51 and a memory 52 coupled to the processor 51 .

[0149] The memory 52 stores program instructions for implementing the above-mentioned semi-hardware dynamic simulation method of a compressor station.

[0150] The processor 51 is used to execute program instructions stored in the memory 52 to implement a semi-hardware dynamic simulation of a compressor station.

[0151] The processor 51 may also be referred to as a CPU (Central Processing Unit).

[0152] The processor 51 may be an integrated circuit chip with signal processing capabilities. The processor 51 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0153] Example 4

[0154] See also Fig.12 , which is a schematic diagram of the structure of the storage medium of Example 4 of the present application. The storage medium of the embodiment of the present application stores a program file 61 that can implement all the above methods, wherein the program file 61 can be stored in the above storage medium in the form of a software product, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or a computer, a server, a mobile phone, a tablet, and other devices.

[0155] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0156] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.

[0157] Although the embodiments of the present application have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the appended claims and their equivalents.

[0158] Of course, the present invention may have many other implementations. Based on this implementation, other implementations obtained by ordinary technicians in this field without any creative work are all within the scope of protection of the present invention.

Claims

1. A semi-hardware dynamic simulation method for a compressor station, characterized in that: include: Establishing a simulation model of the compressor station, and packaging the simulation model into an fmu file by compiling and running the simulation model; Based on the NI simulator, the fmu file is deployed according to third-party software to generate a standard electrical signal; The standard electrical signal is input and output through the NI hardware board of the NI simulator; A control system model of the compressor station is established, wherein the control system model obtains the standard electrical signal through an actual PLC control system; the control system model sends commands to control and monitor the simulation model through a human-machine interface; Based on the NI simulation machine as the intermediate medium, the simulation model is run under the Windows system or Linux system to realize data interaction between the simulation model and the control system model.

2. A semi-hardware dynamic simulation method for a compressor station according to claim 1, characterized in that: In establishing a simulation model of a compressor station, the steps of compiling and running the simulation model and packaging the simulation model into an fmu file specifically include the following steps: Compiling the simulation model, generating components, and verifying the components; Establish a simulation environment based on the components, write EL language code in the simulation environment, and compile and run the simulation environment; A deck platform is generated by using the simulation environment and the EL language code, and the simulation model is packaged into an fmu file based on the deck platform.

3. A semi-hardware dynamic simulation method for a compressor station according to claim 2, characterized in that: In the deck platform, input variables and output variables are defined; The input variables are variables controlled by the third-party software, including but not limited to: compressor start signal, high-pressure outflow temperature, pressure, flow rate (temperature, pressure, flow rate, take two), low-pressure return flow temperature, pressure, flow rate (temperature, pressure, flow rate, take two), compressor slide valve, opening of each regulating valve, opening of each switch valve, and automatic start of each PID; The output variables are process values ​​calculated by the simulation model, including but not limited to: simulation time time, error information error, compressor frequency, compressor inlet and outlet temperatures, compressor inlet and outlet pressures, compressor inlet and outlet flow rates, buffer tank pressure, buffer tank temperature, high-pressure circuit outflow temperature, high-pressure circuit outflow flow rate, low-pressure circuit return air temperature, low-pressure circuit return air flow rate, opening of each switch valve, inlet and outlet temperatures of each switch valve, inlet and outlet pressures of each switch valve, inlet and outlet flow rates of each switch valve, opening of each regulating valve, inlet and outlet temperatures of each regulating valve, inlet and outlet pressures of each regulating valve, and inlet and outlet flow rates of each regulating valve.

4. A semi-hardware dynamic simulation method for a compressor station according to claim 1, characterized in that: In the step of deploying the fmu file based on the NI simulator according to the third-party software to generate a standard electrical signal; the standard electrical signal is input and output through the NI hardware board of the NI simulator, the following steps are specifically included: After the simulation model is packaged as an fmu file, the simulation model packaged as the fmu file is run in the NI simulation machine; Using third-party laboratory management software on the NI simulation machine or the host PC to monitor the running status of the simulation model and control the start, pause and end of the simulation model; The standard electrical signals include but are not limited to: 0-20mA current signal, 4-20mA current signal, 0-10V voltage signal, -10V-+10V voltage signal, 0-5V voltage signal, 1-5V voltage signal.

5. A semi-hardware dynamic simulation method for a compressor station according to claim 1, characterized in that: In the step of establishing a control system model of a compressor station, the control system model obtains the standard electrical signal through an actual PLC control system; and the control system model sends commands to control and monitor the simulation model through a human-machine interface, specifically including the following steps: The control system model obtains the standard electrical signal through the actual PLC control system, and writes a control program to simulate the control system in a real environment; The control system model sends commands to control the simulation model through a human-machine interface, while monitoring various process parameters of the simulation model; Based on the control program of the control system model, the hardware addresses of the input variables and output variables of the actual PLC are the same as the hardware addresses of the input variables and output variables in the control program of the control system under the real field signal environment; wherein the input variables of the PLC are the output variables of the simulation model, and the output variables of the PLC are the input variables of the simulation model.

6. A semi-hardware dynamic simulation method for a compressor station according to claim 1, characterized in that: In the steps of running the simulation model in Windows or Linux system based on NI simulation machine as an intermediate medium and realizing data interaction between the simulation model and the control system model, the following steps are specifically included: The hardware-in-the-loop simulation technology is used to combine the actual PLC control system with the simulation model; the simulation model is run under the Windows or Linux operating system through the NI simulation machine as an intermediate medium to achieve data interaction between the simulation model and the control system model.

7. A simulation platform for a semi-hardware dynamic simulation method of a compressor station according to any one of claims 1 to 6, characterized in that: include: Simulation model building module: building a simulation model of the compressor station, and packaging the simulation model into an fmu file by compiling and running the simulation model; Output module: Based on the NI simulator, the fmu file is deployed according to third-party software to generate a standard electrical signal; The standard electrical signal is input and output through the NI hardware board of the NI simulator; Control module: establish a control system model of the compressor station, and the control system model obtains the standard electrical signal through the actual PLC control system; The control system model sends commands to control and monitor the simulation model through a human-machine interface; Data interaction module: Based on the NI simulation machine as the intermediate medium, the simulation model is run under the Windows system or Linux system to realize data interaction between the simulation model and the control system model.

8. A semi-hardware dynamic simulation platform for a compressor station according to claim 7, characterized in that: The control system model includes a control program and a human-machine interface; the actual PLC is connected to the NI simulation machine through an NI hardware board.

9. A device, characterized in that: The device includes a processor and a memory coupled to the processor, wherein the memory stores program instructions for implementing a semi-hardware dynamic simulation method of a compressor station as described in any one of claims 1-6; and the processor is used to execute the program instructions stored in the memory to implement a semi-hardware dynamic simulation of a compressor station.

10. A storage medium, characterized in that: Program instructions executable by a processor are stored, and the program instructions are used to execute the semi-hardware dynamic simulation method of a compressor station as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Parameterized dynamic simulation calculation system applied to refrigeration or air conditioning equipment

    CN110175403A

  • Real-time dynamic simulation platform for large hydrogen liquefier or refrigerator

    CN114035493A

  • UDP protocol joint simulation test method based on NI software and Amesim software

    CN117891743A

  • Method for interactive embedded software debugging through the control of simulation tracing components

    US10802852B1