Subsea Christmas tree chemical reagent injection metering valve simulation system and method thereof

The underwater Christmas tree chemical reagent injection metering valve simulation system addresses installation and operational challenges by simulating and monitoring chemical injection systems, offering reliable and cost-effective verification and fault detection.

CN119148573APending Publication Date: 2024-12-17CHONGQING QIANWEI SCI & TECH GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411110421.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

Existing underwater Christmas tree chemical reagent injection systems face complexity and uncontrollability during installation and operation due to environmental factors, necessitating a reliable verification means for chemical reagent injection and metering devices.

Method used

An underwater Christmas tree chemical reagent injection metering valve simulation system comprising a chemical reagent supply module and a simulation module, equipped with a metering valve simulator and communication links, which can replace the actual system for testing and monitoring, and includes a main control board, lithium battery, and sensors for data processing and display.

Benefits of technology

The system provides a low-cost, reliable means for simulating and monitoring chemical injection systems, reducing development cycles and costs while ensuring accurate and safe operation, with high-precision simulation and fault detection capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119148573A_ABST
    Figure CN119148573A_ABST
Patent Text Reader

Abstract

The invention discloses an underwater Christmas tree chemical reagent injection metering valve simulation system, which comprises a chemical reagent supply module a and a simulation module b, and is characterized in that the supply module a comprises a reagent tank group, a positive displacement pump, a gate valve, a power valve, a controller and a computer which are sequentially connected through a pipeline; the controller is respectively connected with the positive displacement pump, the gate valve and the power valve through signal lines, and a data line is connected between the controller and the computer; the simulation module b comprises a metering valve simulator connected with the power valve through a pipeline and a well pipe; the metering valve simulator communicates with the computer through a communication link and is connected with a well pipe through a pipeline to achieve chemical agent injection. The supply module a provides required medicament types and medicament injection amounts for the simulation module b; the simulation module b not only can replace an actual chemical reagent injection metering system for testing in a communication mode, but also can be used as an upper computer for monitoring the working state of the actual chemical reagent injection metering system. The invention further discloses a simulation method of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of electronic instruments and meters, and in particular relates to an underwater Christmas tree chemical reagent injection metering valve simulation system and method. Background Art

[0002] In the process of offshore oil and gas exploration or development, drilling and completion are important process links. It is necessary to accurately and quantitatively inject corrosion inhibitors, scale inhibitors, demulsifiers, flocculants, acids, alkalis and other chemical agents into the well bodies of crude oil wells or natural gas wells to achieve different process effects such as corrosion relief, scale removal, wax removal, rust removal, asphalt removal or blockage removal. Therefore, various chemical injection devices or systems have been developed.

[0003] Patent CN20191051922.7 discloses a method for simulating an underwater all-electric Christmas tree system. However, due to the complexity of underwater operations and the uncontrollability of environmental factors, the system in the above document becomes more complicated during installation and use. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide an underwater Christmas tree chemical reagent injection metering valve simulation system which provides a verification means for the installation reliability of a chemical reagent injection and metering device.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is: an underwater Christmas tree chemical reagent injection metering valve simulation system, including a chemical reagent supply module a and a simulation module b, the supply module a includes a reagent tank group, a positive displacement pump, a gate valve, a power valve, a controller and a computer connected in sequence through pipelines; the controller is connected to the positive displacement pump, the gate valve and the power valve respectively through signal lines, and a data line is connected between the controller and the computer;

[0006] The simulation module b includes a metering valve simulator and a well pipe connected to the power valve through a pipeline; the metering valve simulator communicates with the computer through a communication link and is connected to the well pipe through a pipeline to realize chemical agent injection;

[0007] The supply module a provides the simulation module b with the required medicine type and medicine injection amount;

[0008] The simulation module b can not only replace the actual chemical reagent injection metering system for testing through communication, but also be used as a host computer to monitor the working status of the actual chemical reagent injection metering system;

[0009] The metering valve simulator includes a main control board, a lithium battery arranged in a shell, and a charging interface, a power interface, a communication interface, a main control program download interface, a serial screen program download interface, a dial switch, and a serial screen arranged on the shell; the main control board is connected to the lithium battery through a wire, and is connected to the communication interface of the upper computer or the main control board of the lower computer through the communication interface; the main control board is also connected to the serial screen through a dial switch and a data line for transmitting data and control signals to realize switching between the normal use state and the debugging state of the serial screen; the main control board is connected to the main control program download interface and the serial screen program download interface through a data line to realize system program debugging; the lithium battery is connected to the main control board and the serial screen through a wire to provide power; the power interface introduces an external power supply to charge the lithium battery through the charging interface;

[0010] When monitoring the chemical reagent injection metering system of the underwater oil tree, the simulator communication interface is connected to the lower computer main control board; the lower computer main control board includes a power supply unit, a main control chip, a storage unit, an RS485 conversion chip, a flow measurement chip, an ultrasonic transducer, and a temperature measurement sensor; the power supply unit is used to supply power to the main control chip and the flow measurement chip;

[0011] The flow measurement chip receives the ultrasonic transducer signal and sends it to the main control chip after processing. After processing, the data is stored through the storage unit and sent to the simulator serial port screen for data display. The temperature measurement sensor is used to detect the fluid temperature to correct the accuracy of flow measurement.

[0012] Another technical problem to be solved by the present invention is to provide a simulation method for the above-mentioned underwater oil tree chemical reagent injection metering valve simulation system.

[0013] In order to solve the above technical problems, the technical solution adopted by the present invention is: the above-mentioned underwater oil tree chemical reagent injection metering simulation system, and its simulation method includes the following steps:

[0014] Step 1: Establish a simulation model of the drug supply module a

[0015] The medicine supply module a selects appropriate pump, valve, signal source and pipeline models in the AME Sim application library to establish a simulation model of the medicine supply module a;

[0016] Step 2: Define simulation parameters

[0017] Define the output range of the drug flow rate as q 1 ~q 2 , import the actually required pharmaceutical fluid parameters, valve parameters, signal source parameters, and pipeline parameters into the corresponding model;

[0018] Step 3: Simulation calculation and data storage

[0019] S31: Output the minimum value q according to the drug flow rate 1 With the maximum value q 2 Divide the difference into n equal parts;

[0020] q i =q 1 +(q 2 -q 1 ) / n; i=1, 2, ..., n;

[0021] The calculated q i Take integer value;

[0022] S32: By changing the signal source parameters, a simulation calculation is performed to obtain whether the medicine supply circuit input of the medicine supply module a can meet each q i Output requirements;

[0023] S33: For each q i Simulation results, store the corresponding simulation data;

[0024] Step 4: Metering valve working state simulation

[0025] The simulation data obtained in the previous step is used to simulate the working state of the metering valve simulator. The specific steps are as follows:

[0026] S41: Start the metering valve simulator and perform self-check;

[0027] The system starts up and automatically determines whether the startup is successful or not. If the startup is successful, execute step S42;

[0028] S42: Communication connection

[0029] Select the simulator function in the metering valve simulator operation interface, the system performs communication connection, and automatically determines whether it is successful or not. If the connection is successful, execute step S43, otherwise repeat this step;

[0030] S43: Metering valve working state simulation

[0031] The system reads the simulation data stored in the database in step S33, and observes the flow change and outputs the simulation result by adjusting the valve opening of the metering valve simulator or changing the signal source parameters;

[0032] Step 5: Metering valve status determination

[0033] The metering valve fault analysis adopts the FMECA analysis method. According to the simulation results output in the previous step, it is determined whether there is a fault. If there is a fault, measures are taken to eliminate it and S43 is repeated. Otherwise, the simulation is terminated.

[0034] As a preferred solution, the value range of n is 5-8.

[0035] The beneficial effects of the present invention are as follows: 1. The underwater Christmas tree chemical injection metering valve simulation system provided by the present invention can communicate with the host computer as a lower computer, replace the actual chemical injection and metering system to perform functional simulation, and can also be used as a host computer to monitor and control the chemical injection metering system, providing a low-cost means for the reliable operation of underwater operation equipment;

[0036] 2. The metering valve simulator developed by the present invention has the same mechanical and electrical behaviors as the actual metering valve, such as adjusting the pressure value and flow rate, etc., including software and interface modules, which provides useful assistance for the testing of the subsea control module and the electrical and software interfaces, and reduces the metering valve development cycle and costs;

[0037] 3. The metering valve simulator of the present invention can not only simulate the installation and operation status of the chemical injection and metering system, but also detect system failures. It has complete functions and is easy to operate.

[0038] 4. In the LMS Imagine.Lab AMESim environment, the chemical agent supply module model is established and simulated, and the actual required fluid, device, pipeline and other parameters are introduced, which not only improves the simulation accuracy, but also helps to reduce the test cost and save development costs. It is suitable for high-precision, high-pressure, and high-flow occasions, ensuring the stability of the agent delivery volume, small impact and pulsation, and can also cut off the agent fluid supply under abnormal conditions to reduce safety risks, which has guiding significance for the actual system development. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a composition diagram of the simulation system of the present invention;

[0040] Figure 2 This is a structural diagram of the simulation module b of the present invention;

[0041] Figure 3 This is a hardware composition diagram of the control board of the simulation module b of the present invention;

[0042] Figure 4 The hardware composition diagram of the chemical reagent injection metering system of the present invention;

[0043] Figure 5 Definition of simulation and monitoring parameters for the present invention;

[0044] Figure 6 Design a flow chart for the simulation module b of the present invention;

[0045] Figure 7 It is a flow chart of communication link data receiving and sending of the present invention;

[0046] Figure 8It is a functional block diagram of the simulation module b program of the present invention;

[0047] Fig. 9 This is a test flow chart of the simulation module b program of the present invention;

[0048] Fig.10 It is the working flow chart of the simulation system of the present invention;

[0049] In the figure: a-supply module, b-simulation module; 1-medicament tank group, 2-positive displacement pump, 3-gate valve, 4-power valve, 5-controller, 6-computer; 7-metering valve simulator, 8-communication link, 9-well pipe; 10-upper computer communication interface, 20-lower computer main control board;

[0050] Power supply unit 21, main control chip 22, storage unit 23, RS485 conversion chip 24, flow measurement chip 25, ultrasonic transducer 26, temperature measurement sensor 27;

[0051] 71- Main control board, 72- Lithium battery, 73- Power interface, 74- Charging interface, 75- Communication interface, 76- Main control program download interface, 77- Serial screen program download interface, 78- DIP switch, 79- Serial screen. DETAILED DESCRIPTION

[0052] The specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.

[0053] like Figure 1-4 As shown, a simulation system for chemical reagent injection metering valve of an underwater oil tree includes a chemical reagent supply module a and a simulation module b, wherein the supply module a includes a reagent tank group 1, a positive displacement pump 2, a gate valve 3, a power valve 4, a controller 5 and a computer 6 which are sequentially connected through pipelines; the controller 5 is respectively connected to the positive displacement pump 2, the gate valve 3 and the power valve 4 through signal lines, and a data line is connected between the controller 5 and the computer 6;

[0054] The simulation module b includes a metering valve simulator 7 and a well pipe 9 connected to the power valve 4 through a pipeline; the metering valve simulator 7 communicates with the computer 6 through a communication link 8 and is connected to the well pipe 9 through a pipeline to realize chemical agent injection;

[0055] The supply module a provides the simulation module b with the required reagent type (such as methanol or ethylene glycol) and the reagent injection amount;

[0056] The simulation module b can not only replace the actual chemical reagent injection metering system for testing through communication, but also be used as a host computer to monitor the working status of the actual chemical reagent injection metering system;

[0057] The metering valve simulator 7 includes a main control board 71, a lithium battery 72, and a charging interface 73, a power interface 74, a communication interface 75, a main control program download interface 76, a serial screen program download interface 77, a dial switch 78, and a serial screen 79 arranged in the shell; the main control board 71 is connected to the lithium battery 72 through a wire, and is connected to the upper computer communication interface 10 or the lower computer main control board 20 through the communication interface 75; the main control board 71 is also connected to the serial screen 79 through the dial switch 78 and the data line for transmitting data and control signals to realize the switching between the normal use state and the debugging state of the serial screen; the main control board 71 is connected to the main control program download interface 76 and the serial screen program download interface 77 through the data line to realize system program debugging; the lithium battery 72 is connected to the main control board 71 and the serial screen 79 through a wire to provide power; the power interface 74 introduces an external power supply to charge the lithium battery 72 through the charging interface 73;

[0058] When monitoring the chemical reagent injection metering system (lower computer) of the underwater oil tree, the simulator communication interface 75 is connected to the lower computer main control board 20; the lower computer main control board 20 includes a power supply unit 21, a main control chip 22, a storage unit 23, an RS485 conversion chip 24, a flow measurement chip 25, an ultrasonic transducer 26, and a temperature measurement sensor 27;

[0059] The power supply unit 21 is used to supply power to the main control chip 22 and the flow measurement chip 25.

[0060] The flow measurement chip 25 receives the signal of the ultrasonic transducer 26 and sends it to the main control chip 22 after processing. After processing, the data is stored through the storage unit 23 and sent to the simulator serial port screen 79 for data display. The temperature measurement sensor 27 is used to detect the fluid temperature to correct the accuracy of the flow measurement;

[0061] like Figure 5 As shown, the underwater oil tree chemical reagent injection metering simulation system, the simulation method thereof comprises the following steps:

[0062] Step 1: Establish a simulation model of the drug supply module a

[0063] according to Figure 1 The medicine supply module a shown in the figure selects appropriate pump, valve, signal source and pipeline models in the AME Sim application library to establish a simulation model of the medicine supply module a;

[0064] Step 2: Define simulation parameters

[0065] Define the output range of the drug flow rate as q 1 ~q 2 , import the actually required pharmaceutical fluid parameters, valve parameters, signal source parameters, and pipeline parameters into the corresponding model;

[0066] Step 3: Simulation calculation and data storage

[0067] S31: Output the minimum value q according to the drug flow rate 1 With the maximum value q 2 Divide the difference into n (n ranges from 5 to 8) equal parts;

[0068] q i =q 1 +(q 2 -q 1 ) / n; i=1, 2, ..., n;

[0069] The calculated q i Take integer value;

[0070] S32: By changing the signal source parameters, a simulation calculation is performed to obtain whether the medicine supply circuit input of the medicine supply module a can meet each q i Output requirements;

[0071] S33: For each q i Simulation results, store the corresponding simulation data;

[0072] Step 4: Metering valve working state simulation

[0073] The simulation data obtained in the above step is used to simulate the working state of the metering valve simulator 7. The specific steps are as follows:

[0074] S41: Start the metering valve simulator 7 and perform self-check;

[0075] The system starts up and automatically determines whether the startup is successful or not. If the startup is successful, execute step S42;

[0076] S42: Communication connection

[0077] Select the simulator function of the metering valve simulator 7 operation interface, the system performs communication connection, and automatically determines whether it is successful or not. If the connection is successful, execute step S43, otherwise repeat this step;

[0078] S43: Metering valve working state simulation

[0079] The system reads the simulation data stored in the database in step S33, and observes the flow rate change and outputs the simulation result by adjusting the valve opening of the metering valve simulator 7 or changing the signal source parameters;

[0080] Step 5: Metering valve status determination

[0081] The metering valve fault analysis adopts the FMECA analysis method. According to the simulation results output in the previous step, it is determined whether there is a fault. If there is a fault, measures are taken to eliminate it and S43 is repeated. Otherwise, the simulation is terminated.

[0082] When the system is used as a simulator, the communication interface 75 is connected to the host computer communication interface 10, and the simulation functions include communication with the host computer, data chemical reagent injection metering system database data display, etc.;

[0083] When communicating with the underwater Christmas tree chemical reagent injection metering system (lower computer), the communication interface 75 is connected to the lower computer main control board 20, as shown in Table 1, and the monitoring parameters are defined, including 11 monitoring parameters such as instantaneous flow, flow rate, cumulative flow, and fluid temperature;

[0084] Table 1

[0085] Parameter name illustrate Instantaneous flow Simulate the fluid flow rate measured at a certain moment Flow rate Simulate the fluid flow rate measured at a certain moment Accumulated flow Simulate and record the fluid volume during simulation time Fluid temperature Simulate fluid temperature, set this value in the simulator interface Measuring time Identifies the duration of the simulation measurement Valve opening Mark valve opening Motor speed Simulate motor speed Current Medium Simulate current medium Motor start / stop status Indicates the motor running status Motor fault status Indicates motor fault status Motor direction Identify the motor direction

[0086] As shown in Table 2, the circuit structure includes a power supply circuit, an indication circuit, a main control support circuit, an RS485 conversion circuit, a storage circuit and a decoupling circuit, which respectively realize power supply, power status indication, MCU basic function support, TTL level signal conversion, power-off storage data and circuit parasitic coupling reduction;

[0087] Table 2

[0088]

[0089] Communication Design

[0090] Communication function design

[0091] Preset communication functions include medium selection, motor start / stop control, motor direction selection, motor fault simulation, target flow setting and accumulated flow clearing;

[0092] Communication protocol development

[0093] The simulator of the present invention uses the MODBUS RTU protocol, and the communication protocol is formulated including the function code and the communication protocol format definition;

[0094] Data sending and receiving process design

[0095] like Figure 7 As shown, it includes device ID check, check code check, register check, function code determination, coil writing, message reply, etc.

[0096] Program function design

[0097] like Figure 8 As shown, the program function design includes system initialization, timer design, serial screen instruction processing, and RS485 instruction processing;

[0098] System Initialization

[0099] After the program is run, it first performs function initialization operations, including clearing the corresponding registers, coils, and flags, and initializing the IIC peripherals, so that the program can read and write external EEPROM, read the initialization parameters (RS485 baud rate and device ID information) from the storage device, and initialize the serial port with the read initialization parameters;

[0100] Timer

[0101] After the system is initialized, a one-second timer will be turned on. This timer is used to process the three commands 1 to 3 of the serial port screen. These commands include: start simulation, stop simulation, clear data, and measure simulation time, including flow calculation and measurement time;

[0102] Serial screen command processing

[0103] There is an overall command processing function for the processing of serial port screen commands. For different commands, corresponding command operations will be performed, and in the main function, it is in an infinite loop with the RS485 command processing.

[0104] RS485 command processing

[0105] The external communication protocol of this part adopts MODBUS protocol. After obtaining a complete frame of data, this machine, as a slave, will parse the data message, and perform corresponding operations on the corresponding registers and coils according to the data message, and perform corresponding operations on the corresponding predetermined functions after the data is updated.

[0106] Program test design and optimization

[0107] like Fig. 9 As shown, program test design and optimization include power-on, communication connection, functional testing, etc.

[0108] Turn on the power supply and establish communication connection with the test platform / host computer;

[0109] Click on the data flow interface to start measurement, and click on the start button on the control interface;

[0110] Functional testing

[0111] Including serial port sending command test, MODBUSPOLL software test, MODBUSCAN software test;

[0112] The test is completed and the execution ends. Otherwise, the system initialization, timer design, serial screen command processing, and RS485 command processing are repeated;

[0113] Operation interface design

[0114] Used as a simulator, the interface defines whether the communication with the host computer is successful or not.

[0115] As shown in Table 3 and Table 4, when used as a monitor, the operation interface design includes the flow data interface and motor control interface design, and the interface data definition;

[0116] Table 3

[0117] composition Function Instantaneous flow Monitor flow rate changes Accumulated flow Statistical flow total value Measuring time Statistics flow measurement time medium Display current media Flow rate Display fluid velocity Valve opening Display valve opening Fluid temperature Display fluid temperature Start simulation The simulator starts measuring traffic data Stop simulation Simulator pauses flow measurement Clear Data Stop simulator measurement and clear all data on the current screen Motor Control Switch to the motor control interface Set the medium Set current medium Set flow rate Set flow rate and synchronize instantaneous flow value Setting the opening Set valve opening Set temperature Set fluid temperature

[0118] Table 4

[0119] composition state Motor operation Display the motor running status Red - Not started Green - Started Fault Status Display the fault status of the motor Red - Motor fault Green - Motor normal Rotation direction Display the motor rotation direction Motor speed Displays the motor's rotation speed start up Switch the motor running state Forward Set the motor to run forward Reversal Set the motor to reverse Set speed Setting the Motor Speed Fault simulation Simulate motor fault status. In fault status, the motor settings will be cleared. Traffic data Switch to the traffic data interface

[0120] The underwater Christmas tree chemical injection metering valve simulation system provided by the present invention not only communicates with the host computer as a lower computer and replaces the actual chemical injection metering system for functional simulation, but also can use the metering valve simulator 7 as a host computer to monitor and control the actual chemical injection metering system to ensure its safe operation;

[0121] like Fig.10 As shown, the metering valve simulator 7, as a host computer, monitors the working state of the actual metering valve. The metering valve simulator 7 is connected to the actual metering valve for communication. On the one hand, the flow rate is regulated and monitored, including adjusting the fluid velocity, adjusting the valve opening, switching the measuring medium (methanol or ethylene glycol), and adjusting the fluid temperature.

[0122] On the other hand, the motor is controlled and monitored, including adjusting the motor speed, adjusting the motor rotation direction (forward / reverse), and simulating the motor fault state. In the fault state, the motor settings will be cleared.

[0123] The above-mentioned embodiments are only illustrative of the principles and effects of the invention, as well as some embodiments of its application, and are not intended to limit the invention. It should be pointed out that a person skilled in the art can make several modifications and improvements without departing from the inventive concept of the invention, and all of these belong to the protection scope of the invention.

Claims

1. A simulation system for a chemical reagent injection metering valve of an underwater Christmas tree, comprising a chemical reagent supply module a and a simulation module b, wherein the supply module a comprises a reagent tank group, a positive displacement pump, a gate valve, a power valve, a controller and a computer connected in sequence through pipelines; the controller is connected to the positive displacement pump, the gate valve and the power valve respectively through signal lines, and a data line is connected between the controller and the computer; The simulation module b includes a metering valve simulator and a well pipe connected to the power valve through a pipeline; the metering valve simulator communicates with the computer through a communication link and is connected to the well pipe through a pipeline to realize chemical agent injection; The supply module a provides the simulation module b with the required medicine type and medicine injection amount; The simulation module b can not only replace the actual chemical reagent injection metering system for testing through communication, but also be used as a host computer to monitor the working status of the actual chemical reagent injection metering system; The metering valve simulator includes a main control board, a lithium battery, and a charging interface, a power interface, a communication interface, a main control program download interface, a serial screen program download interface, a dial switch, and a serial screen arranged in the shell; the main control board is connected to the lithium battery through a wire, and is connected to the communication interface of the upper computer or the main control board of the lower computer through the communication interface; the main control board is also connected to the serial screen through a dial switch and a data line for transmitting data and control signals to realize switching between the normal use state and the debugging state of the serial screen; the main control board is connected to the main control program download interface and the serial screen program download interface through a data line to realize system program debugging; the lithium battery is connected to the main control board and the serial screen through a wire to provide power; The power interface introduces external power to charge the lithium battery through the charging interface; When monitoring the chemical reagent injection metering system of the underwater oil tree, the simulator communication interface is connected to the lower computer main control board; the lower computer main control board includes a power supply unit, a main control chip, a storage unit, an RS485 conversion chip, a flow measurement chip, an ultrasonic transducer, and a temperature measurement sensor; the power supply unit is used to supply power to the main control chip and the flow measurement chip; The flow measurement chip receives the ultrasonic transducer signal and sends it to the main control chip after processing. After processing, the data is stored through the storage unit and sent to the simulator serial port screen for data display. The temperature measurement sensor is used to detect the fluid temperature to correct the accuracy of flow measurement.

2. The simulation method of the underwater Christmas tree chemical reagent injection metering simulation system according to claim 1, comprising the following steps: Step 1: Establish a simulation model of the drug supply module a The medicine supply module a selects appropriate pump, valve, signal source and pipeline models in the AME Sim application library to establish a simulation model of the medicine supply module a; Step 2: Define simulation parameters Define the output range of the reagent flow rate as q1~q2, and import the actual required reagent fluid parameters, valve parameters, signal source parameters, and pipeline parameters into the corresponding model; Step 3: Simulation calculation and data storage S31: Divide the medicine flow rate output into n equal parts according to the difference between the minimum value q1 and the maximum value q2; q i =q1+(q2-q1) / n;i=1,2,…,n; The calculated q i Take integer value; S32: By changing the signal source parameters, a simulation calculation is performed to obtain whether the medicine supply circuit input of the medicine supply module a can meet each q i Output requirements; S33: For each q i Simulation results, store the corresponding simulation data; Step 4: Metering valve working state simulation The simulation data obtained in the previous step is used to simulate the working state of the metering valve simulator. The specific steps are as follows: S41: Start the metering valve simulator and perform self-check; The system starts up and automatically determines whether the startup is successful or not. If the startup is successful, execute step S42; S42: Communication connection Select the simulator function in the metering valve simulator operation interface, the system performs communication connection, and automatically determines whether it is successful or not. If the connection is successful, execute step S43, otherwise repeat this step; S43: Metering valve working state simulation The system reads the simulation data stored in the database in step S33, and observes the flow change and outputs the simulation result by adjusting the valve opening of the metering valve simulator or changing the signal source parameters; Step 5: Metering valve status determination The metering valve fault analysis adopts the FMECA analysis method. According to the simulation results output in the previous step, it is determined whether there is a fault. If there is a fault, measures are taken to eliminate it and S43 is repeated. Otherwise, the simulation is terminated.

3. The simulation method of a chemical reagent injection metering simulation system for an underwater oil tree according to claim 2, characterized in that: The value range of n is 5-8.