A semi-hardware dynamic simulation method and simulation platform for a compressor station
By using a semi-hardware dynamic simulation method and simulation platform for the compressor station, the challenges of safe and stable operation and operator training of the hydrogen-helium compressor system in the hydrogen-helium cryogenic refrigerator were solved. This enabled optimized system configuration and improved operator skills, while reducing safety risks.
Patent Information
- Application Number
- CN202411369266.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2044-09-29
AI Technical Summary
The safe and stable operation of the hydrogen-helium compressor system in a hydrogen-helium cryogenic refrigerator is difficult to guarantee, and the operation training system cannot distinguish between the real system and the simulation system, leading to operational risks and equipment damage.
This paper provides a semi-hardware dynamic simulation method and simulation platform for compressor stations. By establishing a simulation model, generating standard electrical signals, acquiring actual PLC control signals, and realizing data interaction under Windows or Linux systems, the working characteristics and control system of the compressor station are simulated.
Pre-verify control systems in virtual environments to optimize system configuration, improve operational skills, reduce safety incidents, and ensure system stability and reliability.
Smart Images

Figure CN119310875B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of system simulation, and in particular to a semi-hardware dynamic simulation method and simulation platform for a compressor station. Background Technology
[0002] With the continuous development of science and technology and the national economy in my country, hydrogen-helium cryogenic refrigerators are widely used in fields such as low-temperature physics research, superconducting technology, semiconductor processing, and hydrogen liquefaction. The hydrogen-helium compressor system, as the core power component of the cryogenic refrigerator, plays a crucial role in the safe and stable operation of the system. However, operating the hydrogen-helium compressor system requires professional training and accumulated experience.
[0003] The OTS (Operation Training System) combines dynamic simulation and measurement and control system development technologies to create a front-end user interface. This facilitates understanding of the system's characteristics and provides operational training to personnel before system operation. Developing and utilizing an OTS system to train operators can prevent placing actual equipment in dangerous situations. The OTS system can operate under certain special conditions without concern for serious consequences. However, operators often cannot distinguish between a real system and a simulation system when facing an HMI (Human-Machine Interface).
[0004] The high-pressure hydrogen or helium gas required in the hydrogen-helium cryogenic refrigeration cycle is compressed by a compressor, which is a crucial power source in the refrigeration system. Large-scale hydrogen-helium refrigeration systems have large cooling capacities and complex processes, typically requiring multi-stage large compressor systems with varying flow rates and pressure ratios. For compressor units with different power ratings connected in series and parallel, designing the compressor start-stop logic and allocating the load of each compressor unit to achieve safe operation and reduce energy loss is particularly important.
[0005] To overcome these shortcomings, this application proposes a semi-hardware dynamic simulation method and simulation platform for compressor stations. Summary of the Invention
[0006] The purpose of this application is to provide a semi-hardware dynamic simulation method and simulation platform for compressor stations, aiming to solve the above-mentioned problems.
[0007] To achieve the above objectives, this application provides the following technical solution:
[0008] This application provides a semi-hardware dynamic simulation method for a compressor station, including:
[0009] A simulation model of the compressor station is established, and the simulation model is compiled and run, and then packaged into an fmu file;
[0010] Based on the NI emulator, the fmu file is deployed using third-party software to generate standard electrical signals; these standard electrical signals are input and output through the NI hardware board of the NI emulator.
[0011] A control system model for the compressor station is established. This control system model acquires the standard electrical signals through the control system of the actual PLC. The control system model sends commands to control and monitor the simulation model through a human-machine interface.
[0012] Using the NI simulator as an intermediary, the simulation model is run on a Windows or Linux system to achieve data interaction between the simulation model and the control system model.
[0013] Furthermore, the steps of establishing a simulation model of the compressor station, compiling and running the simulation model, and encapsulating the simulation model into an fmu file specifically include the following steps:
[0014] Compile the simulation model, generate components, and verify the components;
[0015] A simulation environment is established based on the aforementioned components. EL language code is written within the simulation environment, and the simulation environment is then compiled and run.
[0016] The simulation environment and the EL language code are used to generate a deck platform, and the simulation model is then packaged into an fmu file based on the deck platform.
[0017] Furthermore, input and output variables are defined within the deck platform;
[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, and flow rate (two of the three: temperature, pressure, and flow rate), low pressure return temperature, pressure, and flow rate (two of the three: temperature, pressure, and flow rate), compressor slide valve, opening degree of each regulating valve, opening degree of each switching valve, and automatic switching of each PID controller.
[0019] The output variables are the process values calculated by the simulation model, including but not limited to: simulation time, error message, 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 outflow temperature, high-pressure outflow flow rate, low-pressure return gas temperature, low-pressure return gas flow rate, opening degree 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 degree 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] Furthermore, the step of deploying the fmu file based on the NI emulator using third-party software to generate standard electrical signals, and then inputting and outputting these standard electrical signals through the NI hardware board of the NI emulator, specifically includes the following steps:
[0021] After the simulation model is packaged into an fmu file, the simulation model packaged into an fmu file is run in the NI simulator;
[0022] The simulation model's running status is monitored using third-party laboratory management software on the NI simulator or host PC, which controls the simulation model's start, pause, and termination.
[0023] 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.
[0024] Furthermore, in establishing the control system model of the compressor station, where the control system model acquires the standard electrical signal through the actual PLC control system, and the control system model sends commands to control and monitor the simulation model through a human-machine interface, the specific steps include the following:
[0025] The control system model obtains the standard electrical signals through the actual PLC control system and writes control programs 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 simultaneously 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 and output variables of the actual PLC are the same as those of the input 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, the steps for achieving data interaction between the simulation model and the control system model by using the NI simulator as an intermediary and running the simulation model under a Windows or Linux system include the following:
[0029] Hardware-in-the-loop simulation technology is used to combine the actual PLC control system with the simulation model; the NI simulator is used as an intermediary to run the simulation model under the Windows or Linux operating system, realizing 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, including:
[0031] Simulation model building module: Builds a simulation model of the compressor station, compiles and runs the simulation model, and encapsulates the simulation model into an fmu file;
[0032] Output module: Based on the NI emulator, the fmu file is deployed according to third-party software to generate standard electrical signals; the standard electrical signals are input and output through the NI hardware board of the NI emulator;
[0033] Control module: Establishes a control system model for the compressor station. The control system model acquires the standard electrical signals through the actual PLC control system. The control system model sends commands to control and monitor the simulation model through a human-machine interface.
[0034] Data Interaction Module: Based on the NI simulator as an intermediary, the simulation model runs under Windows or Linux systems, enabling 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 simulator via an NI hardware board.
[0036] This 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 before the actual compressor station is built, including the compressor performance, pressure regulation mechanism, gas flow characteristics, etc. This helps to optimize the system configuration in 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 application;
[0040] (3) This application can also provide systematic training for operators, improve their operational skills and ability to respond to emergencies, reduce safety accidents and equipment damage caused by improper operation, and improve the safety and reliability of the system. Attached Figure Description
[0041] Figure 1 This is a flowchart illustrating a semi-hardware dynamic simulation method for a compressor station according to Embodiment 1 of this application;
[0042] Figure 2This is a schematic diagram of the compressor station process for one compressor according to Embodiment 1 of this application;
[0043] Figure 3 This is a schematic diagram of the compressor station with two compressors connected in series according to Embodiment 1 of this application;
[0044] Figure 4 This is a schematic diagram of the compressor station consisting of a high-pressure compressor and a low-pressure compressor according to Embodiment 1 of this application;
[0045] Figure 5 This is a schematic diagram of the process of a compressor station consisting of two high-pressure compressors and three low-pressure compressors according to Embodiment 1 of this application;
[0046] Figure 6 This is a schematic diagram of the process of a compressor station consisting of a high-pressure compressor, a low-pressure compressor, and a negative-pressure compressor, according to Embodiment 1 of this application.
[0047] Figure 7 This is a schematic diagram of the structure of a semi-hardware dynamic simulation platform for a compressor station according to Embodiment 2 of this application;
[0048] Figure 8 This is a technical architecture diagram of a semi-hardware dynamic simulation platform (Windows system) for a compressor station according to Embodiment 2 of this application;
[0049] Figure 9 This is a technical architecture diagram of a semi-hardware dynamic simulation platform (Linux system) for a compressor station according to Embodiment 2 of this application;
[0050] Figure 10 This is a flowchart of a semi-hardware dynamic simulation platform for a compressor station according to Embodiment 2 of this application;
[0051] Figure 11 This is a schematic diagram of the device structure in Embodiment 3 of this application;
[0052] Figure 12 This is a schematic diagram of the storage medium structure of Embodiment 4 of this application. Detailed Implementation
[0053] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.
[0054] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0055] Example 1
[0056] Please see Figure 1 This is a flowchart illustrating a semi-hardware dynamic simulation method for a compressor station according to Embodiment 1 of this application; the steps include:
[0057] S1: Establish a simulation model of the compressor station, compile and run the simulation model, and encapsulate the simulation model into an fmu file.
[0058] In this embodiment, the required component models can be developed as needed, and a custom compressor component model can be created. For example, the compressor's performance characteristic curves can be written into the source code of the compressor component, defined and encapsulated into a proprietary compressor model, thereby better adapting to actual situations and specific operating conditions.
[0059] When establishing 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 into a simulation time component, and the output of the simulation time component is the simulation time value, which is set to a real value of analog quantity type. The error information is encapsulated into an error information component, and the output of the error information component is the error information value, which is set to a real value of analog quantity type.
[0060] Compiling the simulation model: The simulation time component and error information component do not need to be connected to the main circuit of the simulation model. Simply place the packaged simulation time component and error information component in the same screen as the main circuit model of the simulation model, and it will run smoothly after compilation.
[0061] After compilation, the simulation model generates components (partitions), which are then validated. Following component validation, a simulation environment (experiment) is established, and EL language code is written into this environment. The simulation environment is then compiled and run. The deck platform is generated using the simulation environment and the EL language code, i.e., 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, and flow rate (two of temperature, pressure, and flow rate are selected), low pressure return temperature, pressure, and flow rate (two of temperature, pressure, and flow rate are selected), compressor slide valve, opening degree of each regulating valve, opening degree of each switching valve, and automatic switching of each PID controller.
[0063] The output variables are the process values calculated by the simulation model, including but not limited to: simulation time, error message, 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 outflow temperature, high-pressure outflow flow rate, low-pressure return gas temperature, low-pressure return gas flow rate, opening degree 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 degree 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 emulator, the fmu file is deployed according to third-party software to generate standard electrical signals; the standard electrical signals are input and output through the NI hardware board of the NI emulator.
[0065] In this embodiment, after the simulation model is packaged into an .fmu file, the .fmu file-packaged simulation model is run on the NI simulator. When the NI simulator is running a Windows system, third-party lab management software is used to monitor the running status of the simulation model and control the start, pause, and termination of the simulation model. At this time, the third-party lab management software runs on the NI simulator (Windows system).
[0066] When the NI simulator is running a Linux system, a third-party lab management software is used on a host PC running a Windows system to monitor the simulation model's running status. At this time, on the host PC (Windows system), the third-party lab management software, such as Veristand, is used to deploy the .fmu file to the slave machine, i.e., the NI simulator (Linux system), for execution.
[0067] In both cases, the simulation model packaged as an .fmu file runs on the NI emulator. The difference is that when the NI emulator is running a Windows system, the simulation model is packaged as an .fmu file that can run on Windows; when the NI emulator is running a Linux system, the simulation model is packaged as an .fmu file that can run on Linux.
[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 for the compressor station. The control system model obtains the standard electrical signals through the control system of the actual PLC. 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 acquires the standard electrical signals 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 simultaneously monitoring various process parameters of the simulation model.
[0071] The control program based on the control system model uses the same hardware addresses for the input and output variables of the actual PLC as those in the control program of the control system under real-world signal conditions. The PLC's input variables are the output variables of the simulation model, and vice versa. Input parameters are set on the human-machine interface (HMI) of the actual PLC control system, and commands and parameters are output to the simulation model. The HMI of the control system is used for sending commands and monitoring.
[0072] Please see Figure 2 This is a flow diagram of a compressor station with one compressor according to Embodiment 1 of this application. The compressor station consists of a single compressor C-1, an oil filtration system ORS, a bypass valve CV1, an unloading valve CV2, a loading valve CV3, and a buffer tank.
[0073] Its working process is as follows:
[0074] (1) Low-pressure gas enters through the C-1 intake port, is compressed to the specified pressure by C-1, and is discharged through the high-pressure exhaust port of C-1. After passing through the ORS oil filtration system to remove oil and moisture from the raw material gas, it goes to the subsequent stage through the high-pressure outflow pipeline.
[0075] (2) The gas management panel valves and buffer tank work together to regulate and control the compressor’s suction pressure and discharge pressure.
[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, and the high-pressure gas enters the buffer tank. With the compressor C-1 appropriately reducing its frequency, the high pressure is regulated and controlled to reach the target value. When the high pressure is too low, the unloading valve CV2 closes, the loading valve CV3 opens, and the gas in the buffer tank is compressed by the compressor C-1 and discharged into the high-pressure pipeline. With the compressor C-1 appropriately increasing its frequency, the high pressure is regulated and controlled to reach the target value.
[0078] (5) When simulating this compressor station, the compressor component model can be customized. For example, the performance characteristic curve of the compressor can be written into the source code of the compressor component, defined and encapsulated into a proprietary compressor model, so as to better adapt to the actual situation and specific working conditions. Set the boundary conditions of high pressure outflow and low pressure return flow to perform dynamic simulation of the compressor station.
[0079] Figure 2 The compressor station in the system has the following input variables: compressor C-1 start signal, high-pressure outlet switch valve signal, low-pressure inlet switch valve signal, high-pressure outflow temperature, pressure, and flow rate (choose two of these three), low-pressure return flow temperature, pressure, and flow rate (choose two of these three), compressor slide valve (or compressor frequency / speed), bypass valve CV1 opening, loading valve CV3 opening, unloading valve CV2 opening, buffer tank replenishment valve opening, bypass valve PID set to automatic, loading valve PID set to automatic, and unloading valve PID set to automatic.
[0080] The output variables are: simulation time, error message, compressor C-1 frequency, compressor suction temperature, compressor suction pressure, compressor suction flow rate, compressor discharge temperature, compressor discharge pressure, buffer tank pressure, temperature, high-pressure circuit outflow temperature, low-pressure circuit return temperature, opening degree of each regulating valve, inlet and outlet pressure of each regulating valve, inlet and outlet flow rate of each regulating valve, opening degree of each switching valve, inlet and outlet pressure of each switching valve, inlet and outlet flow rate of each switching valve, etc.
[0081] Please see Figure 3 This is a schematic diagram of the flow of a compressor station with two compressors connected in series according to Embodiment 1 of this application. The compressor station consists of compressors C-1 and C-2 connected in series, an oil filtration system ORS, a bypass valve CV1, an unloading valve CV2, a loading valve CV3, and a buffer tank.
[0082] Its working process is as follows:
[0083] (1) The low-pressure gas enters through the intake ports C-1 and C-2, is compressed to the specified pressure by C-1 and C-2, and is discharged through the high-pressure exhaust ports C-1 and C-2. After the oil and water in the raw material gas are filtered out by the ORS oil filtration system, it is sent to the subsequent through the high-pressure outflow pipeline.
[0084] (2) The gas management panel valves and buffer tank work together to regulate and control the compressor’s suction pressure and discharge pressure.
[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 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, and the high-pressure gas enters the buffer tank. With the appropriate reduction in frequency of the compressors C-1 and C-2, the high pressure is regulated and controlled to reach the target value. When the high pressure is too low, the unloading valve CV2 closes, the loading valve CV3 opens, and the gas in the buffer tank is compressed by the compressors C-1 and C-2 and discharged into the high-pressure pipeline. With the appropriate increase in frequency of the compressors C-1 and C-2, the high pressure is regulated and controlled to reach the target value.
[0087] (5) When simulating this compressor station, the compressor component model can be customized. For example, the performance characteristic curve of the compressor can be written into the source code of the compressor component, defined and encapsulated into a proprietary compressor model, so as to better adapt to the actual situation and specific working conditions. Set the boundary conditions of high pressure outflow and low pressure return flow to perform dynamic simulation of the compressor station.
[0088] Figure 3 The compressor station in the system has the following input variables: 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, and flow rate (choose two of these three), low-pressure return flow temperature, pressure, and flow rate (choose two of these three), 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 replenishment valve opening, bypass valve PID set to automatic, loading valve PID set to automatic, and unloading valve PID set to automatic.
[0089] The output variables are: simulation time, error message, 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 rate, compressor C-1 / C-2 discharge temperature, compressor C-1 / C-2 pressure, buffer tank pressure, buffer tank temperature, high-pressure circuit outflow temperature, low-pressure circuit return temperature, opening degree of each regulating valve, inlet and outlet pressure of each regulating valve, inlet and outlet flow rate of each regulating valve, opening degree of each switching valve, inlet and outlet pressure of each switching valve, inlet and outlet flow rate of each switching valve, etc.
[0090] Please see Figure 4 This is a flow diagram of a compressor station consisting of a high-pressure compressor and a low-pressure compressor according to Embodiment 1 of this application. The compressor station consists of a high-pressure compressor CH, a low-pressure compressor CL, an oil filtration 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] Its working process is as follows:
[0092] (1) The low-pressure gas enters through the suction port of the low-pressure compressor CL, is compressed to the specified pressure by the low-pressure compressor CL, enters the high-pressure compressor CH and is compressed to the specified pressure, and is discharged through the high-pressure exhaust port of the high-pressure compressor CH. After the oil and water in the raw material gas are filtered out by the ORS oil filtration system, it goes to the subsequent through the high-pressure discharge pipeline.
[0093] (2) The gas management panel valves and buffer tank work together to regulate and control the compressor’s suction pressure and discharge pressure.
[0094] (3) The medium pressure intake pressure is controlled by the medium pressure bypass valve CV1. When the medium pressure intake pressure is too low, the medium pressure bypass valve CV1 opens and the high pressure gas enters the medium pressure intake pipeline through CV1 to adjust the medium pressure intake pressure value.
[0095] (4) The low-pressure intake pressure is controlled by the low-pressure bypass valve CV2. When the low-pressure intake pressure is too low, the low-pressure bypass valve CV2 opens and the high-pressure gas enters the low-pressure intake pipeline through CV2 to adjust the low-pressure intake pressure value.
[0096] (5) The high-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 is too high, the unloading valve CV3 opens, and the high-pressure gas enters the buffer tank. The low-pressure compressor CL and the high-pressure compressor CH are appropriately reduced in frequency to regulate and control the high-pressure to reach the target value. When the high-pressure is too low, the unloading valve CV3 closes, the loading valve CV4 opens, and the gas in the buffer tank is compressed by the low-pressure compressor CL and the high-pressure compressor CH before being discharged into the high-pressure pipeline. The low-pressure compressor CL and the high-pressure compressor CH are appropriately increased in frequency to regulate and control the high-pressure to reach the target value.
[0097] (6) When simulating this compressor station, the compressor component model can be customized. For example, the performance characteristic curve of the compressor can be written into the source code of the compressor component, defined and encapsulated as a proprietary compressor model, thus better adapting to actual conditions and specific operating conditions. Set the boundary conditions for high-pressure outflow, medium-pressure return flow and low-pressure return flow to perform dynamic simulation of the compressor station. Regarding the start-up sequence, the scenarios of starting the high-pressure compressor first, starting the low-pressure compressor first, or starting the high-pressure compressor and the low-pressure compressor simultaneously can also be simulated.
[0098] Figure 4The compressor station in the system has the following input variables: high-pressure compressor CH start signal, low-pressure compressor CL start signal, high-pressure outlet switch valve signal, medium-pressure inlet switch valve signal, low-pressure inlet switch valve signal, high-pressure outflow temperature, pressure, and flow rate (choose two of these three), medium-pressure return flow temperature, pressure, and flow rate (choose two of these three), low-pressure return flow temperature, pressure, and flow rate (choose two of these three), 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 replenishment valve opening, medium-pressure bypass valve PID automatic activation, low-pressure bypass valve PID automatic activation, loading valve PID automatic activation, and unloading valve PID automatic activation.
[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 rate, compressor CH / CL discharge temperature, compressor CH / CL discharge pressure, compressor CH / CL discharge flow rate, buffer tank pressure, buffer tank temperature, high-pressure line outflow temperature, medium-pressure line return temperature, medium-pressure line return flow rate, low-pressure line return temperature, opening degree of each regulating valve, inlet and outlet pressure of each regulating valve, inlet and outlet flow rate of each regulating valve, opening degree of each switching valve, inlet and outlet pressure of each switching valve, inlet and outlet flow rate of each switching valve, etc.
[0100] Please see Figure 5 This is a flow diagram of a compressor station consisting of two high-pressure compressors and three low-pressure compressors according to Embodiment 1 of this application. The compressor station comprises a high-pressure compressor CH, a low-pressure compressor CL, an oil filtration 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 compressors consist of two compressors, each with an independent ORS oil filtration system at its high-pressure outlet. The low-pressure compressors consist of three compressors. Figure 5 The compressor station is Figure 4 An upgraded version of the compressor station.
[0101] Its working process is as follows:
[0102] (1) The low-pressure gas enters through the suction port of the low-pressure compressor CL, is compressed to the specified pressure by the low-pressure compressor CL, enters the high-pressure compressor CH and is compressed to the specified pressure, and is discharged through the high-pressure exhaust port of the high-pressure compressor CH. After the oil and water in the raw material gas are filtered out by the ORS oil filtration system, it goes to the subsequent through the high-pressure discharge pipeline.
[0103] (2) The high-pressure compressor consists of two high-pressure compressors, each equipped with an independent ORS oil filtration system at its high-pressure outlet. After the gas from the high-pressure compressor outlet passes through the independent ORS oil filtration system to remove oil and moisture from the raw material gas, it is then combined and sent to the subsequent pipeline. This design avoids the problem of poor oil filtration effect caused by uneven pressure distribution between the two high-pressure compressors.
[0104] (3) The gas management panel valves and buffer tank work together to regulate and control the compressor’s suction pressure and discharge pressure.
[0105] (4) The medium pressure intake pressure is controlled by the medium pressure bypass valve CV1. When the medium pressure intake pressure is too low, the medium pressure bypass valve CV1 opens and the high pressure gas enters the medium pressure intake pipeline through CV1 to adjust the medium pressure intake pressure value.
[0106] (5) The low-pressure intake pressure is controlled by the low-pressure bypass valve CV2. When the low-pressure intake pressure is too low, the low-pressure bypass valve CV2 opens and the high-pressure gas enters the low-pressure intake pipeline through CV2 to adjust the low-pressure intake pressure value.
[0107] (6) The high-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 is too high, the unloading valve CV3 opens, and the high-pressure gas enters the buffer tank. The low-pressure compressor CL and the high-pressure compressor CH are appropriately reduced in frequency to regulate and control the high-pressure to reach the target value. When the high-pressure is too low, the unloading valve CV3 closes, the loading valve CV4 opens, and the gas in the buffer tank is compressed by the low-pressure compressor CL and the high-pressure compressor CH and discharged into the high-pressure pipeline. The low-pressure compressor CL and the high-pressure compressor CH are appropriately increased in frequency to regulate and control the high-pressure to reach the target value.
[0108] (7) When simulating this compressor station, the compressor component model can be customized. For example, the performance characteristic curve of the compressor can be written into the source code of the compressor component, defined and encapsulated into a proprietary compressor model, so as to better adapt to the actual situation and specific working conditions. Set the boundary conditions for high-pressure outflow, medium-pressure return flow and low-pressure return flow, and perform dynamic simulation of the compressor station.
[0109] (8) Regarding the startup sequence, simulations can be performed to determine whether the high-pressure compressor starts first, the low-pressure compressor starts first, or the high-pressure and low-pressure compressors start simultaneously. Since the compressor station is a 2-3 array with 2 high-pressure compressors and 3 low-pressure compressors, simulations can be performed to determine the impact on the system under different compressor load distribution conditions, as well as to simulate the compressor unit start-up and shutdown logic.
[0110] Figure 5The compressor station in the system has the following input variables: high-pressure compressor CH start signal (each high-pressure compressor starts individually or simultaneously), low-pressure compressor CL start signal (each low-pressure compressor starts individually or simultaneously), high-pressure outlet switch valve signal, medium-pressure inlet switch valve signal, low-pressure inlet switch valve signal, high-pressure outflow temperature, pressure, and flow rate (choose two of these three), medium-pressure return flow temperature, pressure, and flow rate (choose two of these three), low-pressure return flow temperature, pressure, and flow rate (choose two of these three), 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 replenishment valve opening, medium-pressure bypass valve PID set to automatic, low-pressure bypass valve PID set to automatic, loading valve PID set to automatic, and unloading valve PID set to automatic.
[0111] The output variables are: simulation time (time), error message (error), high-pressure compressor CH frequency (frequency of each high-pressure compressor), low-pressure compressor CL frequency (frequency of each low-pressure compressor), compressor CH / CL suction temperature, compressor CH / CL suction pressure, compressor CH / CL suction flow rate, compressor CH / CL discharge temperature, compressor CH / CL discharge pressure, compressor CH / CL discharge flow rate, buffer tank pressure, buffer tank temperature, high-pressure circuit outflow temperature, medium-pressure circuit return temperature, medium-pressure circuit return flow rate, low-pressure circuit return temperature, medium-pressure bypass valve opening, opening of each regulating valve, inlet and outlet pressure of each regulating valve, inlet and outlet flow rate of each regulating valve, opening of each switching valve, inlet and outlet pressure of each switching valve, inlet and outlet flow rate of each switching valve, etc.
[0112] Please see Figure 6 This is a flow diagram of a compressor station comprising a high-pressure compressor, a low-pressure compressor, and a negative-pressure compressor, according to Embodiment 1 of this application. The compressor station consists of a high-pressure compressor CH, a low-pressure compressor CL, a negative-pressure compressor CSP, an oil filtration 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, each with an independent ORS oil filtration system at its high-pressure outlet. The low-pressure compressor consists of three low-pressure compressors. The negative-pressure compressor consists of three negative-pressure compressors.
[0113] Its working process is as follows:
[0114] (1) The low-pressure gas enters through the suction port of the low-pressure compressor CL, is compressed to the specified pressure by the low-pressure compressor CL, enters the high-pressure compressor CH and is compressed to the specified pressure, and is discharged through the high-pressure exhaust port of the high-pressure compressor CH. After the oil and water in the raw material gas are filtered out by the ORS oil filtration system, it goes to the subsequent through the high-pressure discharge pipeline.
[0115] (2) The 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, and merges with the gas from the low pressure compressor CL. Together they enter the suction port of the high pressure compressor CH and are compressed by the high pressure compressor CH.
[0116] (3) The high-pressure compressor consists of two high-pressure compressors, each with an independent ORS oil filtration system at its high-pressure outlet. After the gas from the high-pressure compressor outlet passes through the independent ORS oil filtration system to remove oil and moisture from the raw material gas, it is then combined and sent to the subsequent pipeline. This design avoids the problem of poor oil filtration effect caused by uneven pressure distribution between the two high-pressure compressors.
[0117] (4) The gas management panel valves and buffer tank work together to regulate and control the compressor’s suction pressure and discharge pressure.
[0118] (5) The medium pressure intake pressure is controlled by the medium pressure bypass valve CV1. When the medium pressure intake pressure is too low, the medium pressure bypass valve CV1 opens and the high pressure gas enters the medium pressure intake pipeline through CV1 to adjust the medium pressure intake pressure value.
[0119] (6) The low-pressure intake pressure is controlled by the low-pressure bypass valve CV2. When the low-pressure intake pressure is too low, the low-pressure bypass valve CV2 opens and the high-pressure gas enters the low-pressure intake pipeline through CV2 to adjust the low-pressure intake pressure value.
[0120] (7) The high 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 is too high, the unloading valve CV3 opens, and the high-pressure gas enters the buffer tank. The low-pressure compressor CL and the high-pressure compressor CH are appropriately reduced in frequency to regulate and control the high pressure to reach the target value. When the high pressure is too low, the unloading valve CV3 closes, the loading valve CV4 opens, and the gas in the buffer tank is compressed by the low-pressure compressor CL and the high-pressure compressor CH and discharged into the high-pressure pipeline. The low-pressure compressor CL and the high-pressure compressor CH are appropriately increased in frequency to regulate and control the high pressure to reach the target value.
[0121] (8) When simulating this compressor station, the compressor component model can be customized. For example, the performance characteristic curve of the compressor can be written into the source code of the compressor component, defined and encapsulated into a proprietary compressor model, so as to better adapt to the actual situation and specific working conditions. Set the boundary conditions of high pressure outflow, medium pressure return flow, low pressure return flow and negative pressure return flow, and perform dynamic simulation of the compressor station.
[0122] (9) Regarding the start-up sequence, simulations can be performed to determine whether the high-pressure compressor is started first, the low-pressure compressor is started first, or the high-pressure and low-pressure compressors are started simultaneously. Since the compressor station is a 2-3 array with 2 high-pressure compressors, 3 low-pressure compressors, and 3 negative-pressure compressors, the impact on the system under different compressor load distribution conditions can be simulated, as well as the start-up and shutdown logic of the compressor unit can be simulated.
[0123] Figure 6 The compressor station in the system has the following input variables: high-pressure compressor CH start signal (each high-pressure compressor starts individually or simultaneously), low-pressure compressor CL start signal (each low-pressure compressor starts individually or simultaneously), negative-pressure compressor CSP start signal (each negative-pressure compressor starts individually or simultaneously), high-pressure circuit outlet switch valve signal, medium-pressure circuit inlet switch valve signal, low-pressure circuit inlet switch valve signal, negative-pressure circuit inlet switch valve signal, high-pressure outflow temperature, pressure, and flow rate (choose two of these three), and medium-pressure return flow temperature, pressure, and flow rate (choose two of these three). Low-pressure reflux temperature, pressure, and flow rate (choose two of these three); negative-pressure reflux temperature, pressure, and flow rate (choose two of these three); 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 air valve CV5 opening; check valve NV1 switch signal; medium-pressure bypass valve PID automatic activation; low-pressure bypass valve PID automatic activation; loading valve PID automatic activation; unloading valve PID automatic activation.
[0124] The output variables are: simulation time (time), error message (error), high-pressure compressor CH frequency (frequency of each high-pressure compressor), low-pressure compressor CL frequency (frequency of each low-pressure compressor), negative-pressure compressor CSP frequency (frequency of each low-pressure compressor), compressor CH / CL / CSP suction temperature, compressor CH / CL / CSP suction pressure, compressor CH / CL / CSP suction flow rate, compressor CH / CL / CSP discharge temperature, compressor CH / CL / CSP discharge pressure, compressor CH / CL / CSP discharge flow rate, buffer tank pressure, buffer tank temperature, high-pressure line outflow temperature, medium-pressure line return temperature, medium-pressure line return flow rate, low-pressure line return temperature, negative-pressure line return temperature, opening degree of each regulating valve, inlet and outlet pressure of each regulating valve, inlet and outlet flow rate of each regulating valve, opening degree of each switching valve, inlet and outlet pressure of each switching valve, inlet and outlet flow rate of each switching valve, etc.
[0125] S4: Based on the NI simulator as an intermediary, it runs the simulation model under Windows or Linux systems to realize data interaction between the simulation model and the control system model.
[0126] In this embodiment, the PLC and NI hardware board are directly connected via hardwired I / O. The standard electrical signals output by the NI hardware board are collected, and the control program written based on the actual PLC transmits the control signals to the simulation model. At the same time, the feedback signals from the simulation model are received, realizing data interaction between the simulation model and the control system model.
[0127] In summary, Embodiment 1 of this application establishes a simulation model of the compressor station and a control system model of the compressor station, and enables data interaction between the simulation model and the control system model; it can understand the working characteristics of the compressor station in advance, perform pre-verification of the control system, debug the start-stop logic of the compressor unit, find the optimal operating point and optimal operation method for cascading the compressor unit, and train operators. At the same time, it uses actual PLC hardware, which can simulate the real signal environment of the compressor station to the greatest extent.
[0128] Example 2
[0129] Please see Figure 7 This is a schematic diagram of the structure of a semi-hardware dynamic simulation platform for a compressor station according to Embodiment 2 of this application; the specific content includes:
[0130] Simulation model building module: Builds a simulation model of the compressor station, compiles and runs the simulation model, and encapsulates the simulation model into an fmu file;
[0131] Output module: Based on the NI emulator, the fmu file is deployed according to third-party software to generate standard electrical signals; the standard electrical signals are input and output through the NI hardware board of the NI emulator;
[0132] Control module: Establishes a control system model for the compressor station. The control system model acquires the standard electrical signals through the actual PLC control system. The control system model sends commands to control and monitor the simulation model through a human-machine interface.
[0133] Data Interaction Module: Based on the NI simulator as an intermediary, the simulation model runs under Windows or Linux systems, enabling data interaction between the simulation model and the control system model.
[0134] In this embodiment, Hardware-in-the-Loop (HIL) simulation technology is employed to combine the actual PLC control system with a simulation model. An NI simulator serves as an intermediary, running the simulation model under a Windows or Linux operating system. Third-party lab management software, such as VeriStand, monitors the dynamic simulation model's operational status. The human-machine interface of the control system's host computer is used to send control commands and monitor simulation process parameters.
[0135] Please see Figure 8 This is a technical architecture diagram of a semi-hardware dynamic simulation platform (Windows system) for a compressor station according to Embodiment 2 of this application.
[0136] Using the Deck platform, the simulation model is packaged into an FMU file, selecting an FMU file type that can interact with third-party software. This generated FMU file can be deployed by third-party software and exchange data with other third-party software.
[0137] After the simulation model is packaged into an FMU file, it is placed into the NI simulator. Third-party lab management software, such as Veristand, is used to deploy the generated FMU file. Once deployed successfully, standard electrical signals are generated, which are then input and output via NI hardware boards.
[0138] The control system based on the actual PLC uses direct I / O connections and hardwired connections to the NI hardware board to acquire standard electrical signals output by the NI hardware board. Simultaneously, input parameters can be set via the human-machine interface on the control system's host computer, allowing for the output of various commands and parameters to the simulation model. In other words, the control system based on the actual PLC acquires standard electrical signals and uses the NI emulator as an intermediary for data interaction with the simulation model.
[0139] The NI simulator runs on a Windows operating system. The simulation model, packaged as an .fmu file, runs on the NI simulator, and third-party lab management software, such as Veristand, is used to monitor the running status of the dynamic simulation model. For example, the Model Command control variable can be used in the Veristand workspace interface to control the start, pause, and stop of the simulation model.
[0140] The control system based on the actual PLC has a human-machine interface (HMI) running on a host workstation / PC. Commands can be sent to control the simulation model via the HMI on the host computer, and various process parameters of the simulation model can be monitored simultaneously. The actual PLC acquires standard electrical signals, and the hardware addresses of the input and output variables in the control program written based on the actual PLC can be the same as those in the control program of a control system operating under real-world signal conditions, thus simulating the real-world signal environment to the greatest extent possible.
[0141] Please see Figure 9 This is a technical architecture diagram of a semi-hardware dynamic simulation platform (Linux system) for a compressor station according to Embodiment 2 of this application.
[0142] Using the Deck platform, the simulation model is packaged into an FMU file that can run on the Linux operating system, selecting an FMU file type that can interact with third-party software. The resulting FMU file can be deployed by third-party software and exchange data with other third-party applications.
[0143] After the simulation model is packaged into an .fmu file that can run under the Linux operating system, it is deployed from the host PC (Windows system) to the slave device, namely the NI simulator (Linux system), using third-party lab management software such as Veristand. Once deployed successfully, standard electrical signals are generated, which are then input and output through NI hardware boards. Compared to Windows, Linux offers better real-time performance; therefore, running the simulation model on the NI simulator (Linux system) results in better real-time performance and faster, smoother data interaction between the simulation model and the control system.
[0144] The control system based on the actual PLC uses direct I / O connections and hardwired connections to the NI hardware board to acquire standard electrical signals output by the NI hardware board. Simultaneously, input parameters can be set via the human-machine interface on the control system's host computer, allowing for the output of various commands and parameters to the simulation model. In other words, the control system based on the actual PLC acquires standard electrical signals and uses the NI emulator as an intermediary for data interaction with the simulation model.
[0145] The NI simulator runs on a Linux operating system. Simulation models packaged as .fmu files are deployed to the NI simulator (Linux system) from a host PC (Windows system) using third-party lab management software such as Veristand. Simultaneously, the host PC (Windows system) uses Veristand to monitor the running status of the dynamic simulation model. For example, the simulation model can be started, paused, and stopped using the control variable "Model Command" in the Veristand workspace interface.
[0146] The control system is based on an actual PLC, with the human-machine interface (HMI) running on a separate host workstation / PC. Commands can be sent to control the simulation model via the HMI on this host computer, and various process parameters of the simulation model can be monitored simultaneously. The actual PLC acquires standard electrical signals, and the hardware addresses of the input and output variables in the control program written based on the actual PLC can be the same as those in the control program of the control system under a real-world signal environment, thus simulating the real-world signal environment to the greatest extent possible.
[0147] Example 3
[0148] Please see Figure 11 This is a schematic diagram of the device structure in Embodiment 3 of this 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 aforementioned semi-hardware dynamic simulation method for 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 can also be referred to as a CPU (Central Processing Unit).
[0152] Processor 51 may be an integrated circuit chip with signal processing capabilities. Processor 51 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor may be a microprocessor or any conventional processor.
[0153] Example 4
[0154] Please see Figure 12 This is a schematic diagram of the storage medium in Embodiment 4 of this application. The storage medium in this embodiment stores a program file 61 capable of implementing all the above methods. This program file 61 can be stored in the storage medium in the form of a software product, including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, or devices such as computers, servers, mobile phones, and tablets.
[0155] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, apparatus, article, or method. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, apparatus, article, or method that includes that element.
[0156] The above description is only a preferred embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural changes made based on the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
[0157] Although embodiments of this application have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of this application, the scope of which is defined by the appended claims and their equivalents.
[0158] Of course, the present invention may have many other embodiments. Based on this embodiment, other embodiments obtained by those skilled in the art without any creative effort 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: A simulation model of the compressor station is established. The simulation model is then compiled and run, and finally packaged into an fmu file. Based on the NI emulator, the fmu file is deployed using third-party software to generate standard electrical signals; The standard electrical signals are input and output through the NI hardware board of the NI emulator; When the NI simulator is running a Windows operating system, the simulation model packaged as an .fmu file runs on the NI simulator, and third-party laboratory management software is used on the NI simulator to monitor the running status of the dynamic simulation model. When the NI simulator runs on the Linux operating system, the simulation model packaged as an fmu file is deployed to the NI simulator on the host PC using third-party laboratory management software. At the same time, the running status of the dynamic simulation model is monitored on the host PC using third-party laboratory management software. A control system model for the compressor station is established, and the standard electrical signal is obtained by the control system of the actual PLC. The control system model sends commands to control and monitor the simulation model through a human-machine interface; specifically, it includes: The control system model acquires the standard electrical signals through the actual PLC control system and writes control programs 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 at the same time monitors various process parameters of the simulation model. Based on the control program of the control system model, the hardware addresses of the input and output variables of the actual PLC are the same as those of the input 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. Using the NI simulator as an intermediary, the simulation model runs on Windows or Linux systems, enabling data interaction between the simulation model and the control system model; specifically, this includes: Hardware-in-the-loop simulation technology is used to combine the actual PLC control system with the simulation model; The PLC and NI hardware board are directly connected via hardwired I / O. Standard electrical signals output from the NI hardware board are acquired, and a control program based on the actual PLC is used to transmit these control signals to the simulation model. Simultaneously, feedback signals from the simulation model are received, enabling data interaction between the simulation model and the control system model. The steps involved in establishing the simulation model of the compressor station, compiling and running the simulation model, and encapsulating it into an fmu file, specifically include the following steps: Compile the simulation model, generate components, and verify the components; A simulation environment is established based on the aforementioned components. EL language code is written within the simulation environment, and the simulation environment is then compiled and run. The simulation model is then encapsulated into an fmu file using the simulation environment and the EL language code. When establishing 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 into a simulation time component, and the output of the simulation time component is the simulation time value, which is set to a real value of analog quantity type. The error information is encapsulated into an error information component, and the output of the error information component is the error information value, which is set to a real value of analog quantity type. When compiling the simulation model, the simulation time component and error information component do not need to be connected to the main circuit of the simulation model. Simply place the packaged simulation time component and error information component in the same frame as the main circuit model of the simulation model, and it will run smoothly after compilation.
2. The semi-hardware dynamic simulation method for a compressor station according to claim 1, characterized in that, In the deck platform, define input and output variables; The input variables are variables controlled by the third-party software, including but not limited to: compressor start signal, high pressure outflow temperature, pressure, and flow rate (two of the three: temperature, pressure, and flow rate), low pressure return temperature, pressure, and flow rate (two of the three: temperature, pressure, and flow rate), compressor slide valve, opening degree of each regulating valve, opening degree of each switching valve, and automatic switching of each PID controller. The output variables are the process values calculated by the simulation model, including but not limited to: simulation time, error message, 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 outflow temperature, high-pressure outflow flow rate, low-pressure return gas temperature, low-pressure return gas flow rate, opening degree 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 degree 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.
3. The semi-hardware dynamic simulation method for a compressor station according to claim 1, characterized in that, The steps of deploying the fmu file using third-party software based on an NI emulator to generate standard electrical signals, and then inputting and outputting these standard electrical signals through the NI hardware board of the NI emulator, specifically include the following steps: After the simulation model is packaged into an fmu file, the simulation model packaged into an fmu file is run in the NI simulator; The simulation model's running status is monitored using third-party laboratory management software on the NI simulator or host PC, which controls the simulation model's start, pause, and termination. 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.
4. A simulation platform for a semi-hardware dynamic simulation method for a compressor station according to any one of claims 1-3, characterized in that, include: Simulation model building module: Builds a simulation model of the compressor station, compiles and runs the simulation model, and encapsulates the simulation model into an fmu file; Output module: Based on the NI emulator, it deploys the fmu file according to third-party software to generate standard electrical signals; The standard electrical signals are input and output through the NI hardware board of the NI emulator; Control module: Establish a control system model for the compressor station, wherein the control system model obtains the standard electrical signals through the control system of the actual PLC; 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 simulator as an intermediary, the simulation model runs under Windows or Linux systems to realize data interaction between the simulation model and the control system model; the control system model includes control programs and human-machine interfaces; The actual PLC is connected to the NI emulator via an NI hardware board.
5. 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 for a compressor station according to any one of claims 1-3; the processor is used to execute the program instructions stored in the memory to implement a semi-hardware dynamic simulation of a compressor station.
6. A storage medium, characterized in that, The system stores processor-executable program instructions for performing a semi-hardware dynamic simulation method for a compressor station as described in any one of claims 1-3.
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