A control device and method for natural gas metering valve
Through the combination of prediction model and opening adjustment control instructions, the problem of difficult to take into account the structural wear and stability of the natural gas metering valve under high frequency mechanical control is solved, and the dual effects of extending the service life of the natural gas metering valve and stabilizing the air pressure flow rate are achieved.
Patent Information
- Application Number
- CN202310956348.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-31
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2043-07-31
AI Technical Summary
Existing natural gas metering valves are prone to structural wear under high frequency mechanical control, affecting air tightness, and may even cause leakage or fire, making it difficult to extend the service life while ensuring air pressure and flow stability.
A control device and method are adopted to predict the air pressure and flow data of the input end of the natural gas metering valve through the prediction model, and generate opening adjustment control instructions to ensure that the pressure or flow rate at the output end is within the stable range, reducing frequent adjustment of the mechanical structure, and prolonging use. life.
It effectively extends the service life of the natural gas metering valve, avoids structural wear and potential safety risks caused by high frequency adjustment, and ensures the stability of air pressure and flow.
Smart Images

Figure CN116974308B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of industrial control, and in particular to a control device and method for a natural gas metering valve. Background Art
[0002] The natural gas metering valve is a key device for natural gas transmission and metering. Its main function is to stabilize the natural gas pressure and control the flow. In the current natural gas pipeline transmission system, due to the changes in the gas source of the natural gas pipeline and the large distribution area of the natural gas pipeline network with many branches, it is difficult to maintain the natural gas pressure and natural gas flow of each natural gas branch pipeline stable. Due to the flammable and explosive characteristics of natural gas, the natural gas user-end equipment often has high requirements for the input gas pressure and input flow, and different natural gas users have different requirements for the pressure and flow of natural gas transmission.
[0003] Industrial users, such as factories and power plants, have high demands for large flow and high gas pressure to ensure stable fuel supply and equipment operation. Therefore, when natural gas pipelines transport natural gas to industrial areas, high pressure (3-10MPa) and large flow (millions of cubic meters / day) are generally required. Industrial users have high requirements for the stability of gas pressure and flow, especially for users whose process equipment directly uses pipeline natural gas. If the gas pressure or flow fluctuates greatly, it will directly affect the normal operation of the process equipment and even cause equipment damage. The gas volume demand of commercial and civilian users is relatively small, and they do not need too high gas pressure (generally 0.3-0.6MPa). However, they also have high requirements for the stability of gas pressure and flow to ensure normal life and work. Commercial users refer to shops and hotels, etc., and civilian users refer to households. Commercial and civilian users also have certain requirements for the stability of gas pressure and flow to ensure the normal use of cooking, heating and other electrical appliances, but the requirements are slightly lower than those of industrial users, and the allowed fluctuation range is slightly larger. If the gas pressure or flow fluctuates slightly in a short period of time, it usually does not have a great impact on users. The gas pressure required by vehicle natural gas users such as natural gas filling stations is generally 20-25MPa, and the flow demand is also relatively large, but because the refueling is intermittent, the real-time flow will fluctuate greatly. Natural gas filling stations have very high requirements for gas pressure stability to ensure that each vehicle is fully fueled, and because refueling is an intermittent process, the flow will fluctuate greatly, which is acceptable within a certain range.
[0004] In order to ensure the stability of the input gas pressure or input flow of the natural gas user-end equipment, the current common solution is to adopt a conventional single-loop PID (Proportional Integral Derivative) control strategy to adjust the opening of the natural gas metering valve based on the real-time monitored gas pressure or flow data. Although this solution can ensure the stability of the gas pressure or flow at the valve output end to a certain extent, the high-precision adjustment means that the mechanical control of the valve is very frequent. Long-term and high-frequency fine-tuning of the valve opening will cause wear of the internal structure of the valve. In severe cases, it may even affect the air tightness of the natural gas pipeline at the valve, causing natural gas leakage or even fire and other severe consequences. Summary of the invention
[0005] Based on the above problems, the present invention proposes a control device and method for a natural gas metering valve, which can extend the service life of the natural gas metering valve while ensuring the stability of the pressure or flow at the output end.
[0006] In view of this, a first aspect of the present invention proposes a control device for a natural gas metering valve, comprising a first communication unit for communicating with the natural gas metering valve, a second communication unit for communicating with a background server, a memory for storing an input end gas pressure prediction model and an input end flow prediction model of the natural gas metering valve, and a processor, wherein the processor obtains pressure data and flow data of the input end and the output end of the natural gas metering valve from the natural gas metering valve through the first communication unit, and sends the pressure data and flow data of the input end and the output end of the natural gas metering valve to the background server through the second communication unit, and the processor is configured to:
[0007] Obtain the predicted period T of the input end gas pressure of the preset natural gas metering valve prd And the prediction time T pdn ;
[0008] In each prediction period T prd The input end gas pressure prediction model of the current node is used to predict the gas pressure at the input end of the natural gas metering valve to obtain a time length equal to the prediction time length T pdn The pressure data series P(t i ), where i is a positive integer between 1 and n, and n is the air pressure data sequence P(t i ) in the number of discrete pressure values;
[0009] Record the current time point t now ;
[0010] Get the voltage range of the output of the natural gas metering valve corresponding to the current node
[0011] The pressure stabilization interval at the output end of the natural gas metering valve Mapping to the input space to obtain the pressure stabilization range of the input end of the natural gas metering valve
[0012]
[0013] Where 0<θ now <1,θ now is the current opening of the natural gas metering valve, and K is the flow coefficient of the natural gas metering valve;
[0014] Determine the air pressure data sequence P(t i ) contains a voltage regulation range beyond the input terminal The air pressure value;
[0015] When the air pressure data sequence P(t i ) contains voltage regulation range beyond the input terminal When the pressure value exceeds the input voltage range, The pressure value sequence pj and its corresponding time value sequence t j , where j is from 1 to m p A positive integer between p is the air pressure data sequence P(t i ) contains voltages beyond the input voltage range The number of discrete pressure values;
[0016] Get the time value sequence t j The minimum value in:
[0017]
[0018] According to the time point t now and the minimum value t min Generate an opening adjustment control instruction for the natural gas metering valve.
[0019] A second aspect of the present invention provides a control method for a natural gas metering valve, comprising:
[0020] Obtain the predicted period T of the input end gas pressure of the preset natural gas metering valve prd And the prediction time T pdn ;
[0021] In each prediction period T prd The input end gas pressure prediction model of the current node is used to predict the gas pressure at the input end of the natural gas metering valve to obtain a time length equal to the prediction time length T pdnThe pressure data series P(t i ), where i is a positive integer between 1 and n, and n is the air pressure data sequence P(t i ) in the number of discrete pressure values;
[0022] Record the current time point t now ;
[0023] Get the voltage range of the output of the natural gas metering valve corresponding to the current node
[0024] The pressure stabilization interval at the output end of the natural gas metering valve Mapping to the input space to obtain the pressure stabilization range of the input end of the natural gas metering valve
[0025]
[0026] Where 0<θ now <1,θ now is the current opening of the natural gas metering valve, and K is the flow coefficient of the natural gas metering valve;
[0027] Determine the air pressure data sequence P(t i ) contains a voltage regulation range beyond the input terminal The air pressure value;
[0028] When the air pressure data sequence P(t i ) contains voltage regulation range beyond the input terminal When the pressure value exceeds the input voltage range, The pressure value sequence p j and its corresponding time value series t j , where j is from 1 to m p A positive integer between p is the air pressure data sequence P(t i ) contains voltages beyond the input voltage range The number of discrete pressure values;
[0029] Get the time value sequence t i The minimum value in:
[0030]
[0031] According to the time point t now and the minimum value t min Generate an opening adjustment control instruction for the natural gas metering valve.
[0032] Furthermore, in the above-mentioned control method for a natural gas metering valve, it also includes:
[0033] In each prediction period T prd The flow rate at the input end of the natural gas metering valve is predicted using the input end flow rate prediction model of the current node to obtain a time length equal to the prediction time length T pdn The traffic data series Q(t i );
[0034] Get the steady flow range of the output end of the natural gas metering valve corresponding to the current node
[0035] The steady flow interval at the output end of the natural gas metering valve The steady flow interval of the input end of the natural gas metering valve is obtained by mapping to the input space
[0036]
[0037] where Δp max The maximum pressure difference between the input end and the output end of the natural gas metering valve obtained by monitoring;
[0038] Determine the flow data sequence Q(t i ) contains a steady current range beyond the input end The flow value;
[0039] When the traffic data sequence Q(t i ) contains a steady current range beyond the input end When the flow value exceeds the steady flow range of the input end, The flow value sequence q l and its corresponding time value series t l , where l is 1 to m q A positive integer between q is the traffic data sequence Q(t i ) contains the steady current range beyond the input end The number of discrete flow values of ;
[0040] Get the time value sequence t l The minimum value in:
[0041]
[0042] According to the time point t now and the minimum value t min Generate an opening adjustment control instruction for the natural gas metering valve.
[0043] Furthermore, in the above-mentioned control method for a natural gas metering valve, according to the time point t nowand the minimum value t min The step of generating the opening adjustment control instruction of the natural gas metering valve specifically includes:
[0044] Calculate the current time point t now and the minimum value t min The time difference between:
[0045] Δt min =t min -t now ;
[0046] Get the current opening θ of the natural gas metering valve now ;
[0047] Based on the time difference Δt min Calculate the target opening θ of the natural gas metering valve target ;
[0048] Calculate the opening adjustment span of the natural gas metering valve:
[0049] Δθ target =θ target -θ now ;
[0050] The span Δθ is adjusted according to the opening target Generate an opening adjustment control instruction for the natural gas metering valve.
[0051] Furthermore, in the above-mentioned control method for a natural gas metering valve, based on the time difference Δt min Calculate the target opening θ of the natural gas metering valve target The steps specifically include:
[0052] Get the preset opening adjustment speed v of the natural gas metering valve θ ;
[0053] Get time point t min Corresponding air pressure value
[0054] Calculate the first boundary opening and the second boundary opening of the natural gas metering valve:
[0055]
[0056]
[0057] According to the first boundary opening θ 1 and the second boundary opening θ 2 Determine the target opening θ target .
[0058] Furthermore, in the above-mentioned control method for a natural gas metering valve, based on the time difference Δt min Calculate the target opening θ of the natural gas metering valve target The steps specifically include:
[0059] Take the preset opening adjustment speed v of the natural gas metering valve θ ;
[0060] Get time point t min Corresponding flow value
[0061] Calculate the third boundary opening and the fourth boundary opening of the natural gas metering valve:
[0062]
[0063]
[0064] According to the third boundary opening θ 3 and the fourth boundary opening θ 4 Determine the target opening θ target .
[0065] Furthermore, in the above-mentioned control method for a natural gas metering valve, according to the first boundary opening θ 1 and the second boundary opening θ 2 Or the third boundary opening θ 3 and the fourth boundary opening θ 4 Determine the target opening θ target The steps specifically include:
[0066] Calculate and adjust to the first boundary opening θ 1 and the second boundary opening θ 2 Or the third boundary opening θ 3 and the fourth boundary opening θ 4 The first and second adjustment times required:
[0067] or
[0068]
[0069] when or hour, Determine Δt min Is it greater than
[0070] when When the second boundary opening θ 2Or the fourth boundary opening θ 4 Determined as the target opening, that is:
[0071] θ target =θ 2 ,or
[0072] θ target =θ 4 .
[0073] Furthermore, in the above-mentioned control method for a natural gas metering valve, when determining Δt min Is it greater than After the steps, it also includes:
[0074] when When, based on the time value sequence t j The minimum value t in min Calculate the target opening:
[0075] θ target =θ now +v θ ·Δt min .
[0076] Furthermore, in the above-mentioned control method for a natural gas metering valve, when calculating and adjusting the first boundary opening θ 1 and the second boundary opening θ 2 Or the third boundary opening θ 3 and the fourth boundary opening θ 4 After the steps of the first adjustment time and the second adjustment time are required, the method further includes:
[0077] when or hour, Determine Δt min Is it greater than
[0078] when When the first boundary opening θ 1 Or the third boundary opening θ 3 Determined as the target opening, that is:
[0079] θ target =θ 1 ,or
[0080] θ target =θ 3 .
[0081] Furthermore, in the above-mentioned control method for a natural gas metering valve, when determining Δt min Is it greater than After the steps, it also includes:
[0082] when When, based on the time value sequence t j The minimum value t in min Calculate the target opening:
[0083] θ target =θ now +v θ ·Δt min .
[0084] The present invention proposes a control device and method for a natural gas metering valve. The control device and method predict the gas pressure at the input end of the natural gas metering valve by using the input end gas pressure prediction model of the current node in each prediction cycle of the natural gas metering valve to obtain a gas pressure data sequence, obtain the pressure stabilization interval of the output end of the natural gas metering valve corresponding to the current node, map the pressure stabilization interval of the output end of the natural gas metering valve to the input space to obtain the pressure stabilization interval of the input end of the natural gas metering valve, when the gas pressure data sequence contains a gas pressure value exceeding the pressure stabilization interval of the input end, obtain the gas pressure value sequence exceeding the pressure stabilization interval of the input end and its corresponding time value sequence, obtain the minimum value in the time value sequence, generate the opening adjustment control instruction of the natural gas metering valve according to the current time point and the minimum value, and can extend the service life of the natural gas metering valve while ensuring the stability of the pressure or flow at the output end. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] Figure 1 is a schematic block diagram of a control system for a natural gas metering valve provided by an embodiment of the present invention;
[0086] Figure 2 is a schematic block diagram of a control device for a natural gas metering valve provided by one embodiment of the present invention;
[0087] Figure 3 The present invention is a flowchart of a method for controlling a natural gas metering valve provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0088] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0089] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0090] In the description of the present invention, the term "multiple" refers to two or more. Unless otherwise clearly defined, the orientation or positional relationship indicated by the terms "upper", "lower", etc. is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation of the present invention. The terms "connection", "installation", "fixation", etc. should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances. In addition, the terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first", "second", etc. can explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, the meaning of "multiple" is two or more.
[0091] In the description of this specification, the description of the terms "one embodiment", "some implementations", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0092] A control device and method for a natural gas metering valve provided according to some embodiments of the present invention will be described below with reference to the accompanying drawings.
[0093] like Figure 1As shown, the technical solution of the present invention is applied to a control system for a natural gas metering valve, characterized in that it includes a plurality of control nodes respectively used to control each natural gas metering valve, a background server for remotely configuring and controlling the control node, a database server for storing data of the natural gas metering valve, and a model training server for training an input end gas pressure prediction model and an input end flow prediction model of each natural gas metering valve, wherein the control node obtains pressure data and flow data of the input end and output end of the natural gas metering valve in real time and sends them to the background server, the background server sends the pressure data and flow data of the input end and output end of the natural gas metering valve to the database server for storage, and sends the pressure data and flow data of the input end of the natural gas metering valve to the model training server for training the input end gas pressure prediction model and the input end flow prediction model of each natural gas metering valve, the background server obtains the trained input end gas pressure prediction model and input end flow prediction model from the model training server and deploys them in the corresponding control node, so that the control node uses the input end gas pressure prediction model and the input end flow prediction model to predict the pressure data and flow data of the input end of the natural gas metering valve, thereby realizing the stability control of the gas pressure or flow of the natural gas metering valve.
[0094] Preferably, in the technical solutions of some embodiments of the present invention, the control system for the natural gas metering valve also includes a computer cluster for providing computing, and the model training server is connected to the computer cluster to train the input end gas pressure prediction model and the input end flow prediction model of the natural gas metering valve through the computer cluster.
[0095] like Figure 2 As shown, the first aspect of the present invention proposes a control device for a natural gas metering valve, comprising a first communication unit for communicating with the natural gas metering valve, a second communication unit for communicating with a background server, a memory for storing an input end gas pressure prediction model and an input end flow prediction model of the natural gas metering valve, and a processor, wherein the processor obtains pressure data and flow data of the input end and output end of the natural gas metering valve from the natural gas metering valve through the first communication unit, and sends the pressure data and flow data of the input end and output end of the natural gas metering valve to the background server through the second communication unit. Figure 3 As shown, the processor is configured to:
[0096] Obtain the predicted period T of the input end gas pressure of the preset natural gas metering valve prd And the prediction time T pdn ;
[0097] In each prediction period Tprd The input end gas pressure prediction model of the current node is used to predict the gas pressure at the input end of the natural gas metering valve to obtain a time length equal to the prediction time length T pdn The pressure data series P(t i ), where i is a positive integer between 1 and n, and n is the air pressure data sequence P(t i ) in the number of discrete pressure values;
[0098] Record the current time point t now ;
[0099] Get the voltage range of the output of the natural gas metering valve corresponding to the current node
[0100] The pressure stabilization interval at the output end of the natural gas metering valve Mapping to the input space to obtain the pressure stabilization range of the input end of the natural gas metering valve
[0101]
[0102] Where 0<θ now <1,θ now is the current opening of the natural gas metering valve, and K is the flow coefficient of the natural gas metering valve;
[0103] Determine the air pressure data sequence P(t i ) contains a voltage regulation range beyond the input terminal The air pressure value;
[0104] When the air pressure data sequence P(t i ) contains voltage regulation range beyond the input terminal When the pressure value exceeds the input voltage range, The pressure value sequence pj and its corresponding time value sequence t j , where j is from 1 to m p A positive integer between p is the air pressure data sequence P(t i ) contains voltages beyond the input voltage range The number of discrete pressure values;
[0105] Get the time value sequence t i The minimum value in:
[0106]
[0107] According to the time point t now and the minimum value t minGenerate an opening adjustment control instruction for the natural gas metering valve.
[0108] In the technical solution of the present invention, each of the control devices for the natural gas metering valve is a control node in the control system for the natural gas metering valve. Preferably, the processor of the control device includes a CPU (Central Processing Unit) for executing a control program and a GPU (Graphics Processing Unit) for predicting pressure data and flow data at the input and output ends of the natural gas metering valve.
[0109] Specifically, in the technical solution of the present invention, a corresponding pressure stabilization interval and / or flow stabilization interval is pre-configured for each node, that is, for a user with a pressure stabilization requirement of natural gas, a pressure stabilization interval is configured for it, and for a user with a flow stabilization requirement of natural gas, a flow stabilization interval is configured for it. The pressure stabilization interval and the flow stabilization interval are respectively the natural gas transmission pressure fluctuation range and flow fluctuation range that do not affect the normal use of the user at the current node.
[0110] The prediction period T of the gas pressure at the input end of the natural gas metering valve prd The time interval between two consecutive pre-configured executions of the gas pressure prediction at the input end of the natural gas metering valve. The prediction time length T of the gas pressure at the input end of the natural gas metering valve pdn The time length for predicting the gas pressure at the input end of the natural gas metering valve is based on the time point when the gas pressure prediction at the input end of the natural gas metering valve is performed once as the time starting point.
[0111] In the technical solution of the present invention, each natural gas metering valve is equipped with an independent control device, and the control device is connected to the background server as a control node, and the current node refers to the control device of the current natural gas metering valve.
[0112] The air pressure data sequence P(t i ) is a set of discrete time-pressure key-value pairs, that is, it contains two sets of one-to-one corresponding data sequences, one set is the time series t 1 , t 2 ,…,t n , one group is the pressure sequence p 1 , p 2 ,…,p n , the two sets of data are in one-to-one correspondence, for example, p 1 The predicted time point is t 1 The air pressure value of , and satisfies:
[0113] t n -t 1 =T pdn.
[0114] The current time point t now For each prediction period T prd The time point at which the gas pressure prediction at the input end of the natural gas metering valve is started.
[0115] Furthermore, in the above-mentioned control device for a natural gas metering valve, the processor is configured as follows:
[0116] In each prediction period T prd The flow rate at the input end of the natural gas metering valve is predicted using the input end flow rate prediction model of the current node to obtain a time length equal to the prediction time length T pdn The traffic data series Q(t i );
[0117] Get the steady flow range of the output end of the natural gas metering valve corresponding to the current node
[0118] The steady flow interval at the output end of the natural gas metering valve The steady flow interval of the input end of the natural gas metering valve is obtained by mapping to the input space
[0119]
[0120] where Δp max The maximum pressure difference between the input end and the output end of the natural gas metering valve obtained by monitoring;
[0121] Determine the flow data sequence Q(t i ) contains a steady current range beyond the input end The flow value;
[0122] When the traffic data sequence Q(t i ) contains a steady current range beyond the input end When the flow value exceeds the steady flow range of the input end, The flow value sequence q l and its corresponding time value series t l , where l is 1 to m q A positive integer between q is the traffic data sequence Q(t i ) contains the steady current range beyond the input end The number of discrete flow values of ;
[0123] Get the time value sequence t l The minimum value in:
[0124]
[0125] According to the time point t now and the minimum value t min Generate an opening adjustment control instruction for the natural gas metering valve.
[0126] Similarly, the traffic data sequence Q(t i ) is a set of discrete time flow key-value pairs, that is, it contains two sets of one-to-one corresponding data sequences, one set is the time series t 1 , t 2 ,…,t n , one group is the flow sequence q 1 ,q 2 , …, q n , the two sets of data are in one-to-one correspondence, for example, q 1 The predicted time point is t 1 The flow value.
[0127] It should be noted that since the subsequent calculation steps are the same, in order to simplify the expression, the time series t j and the time series t l The minimum values obtained in are all denoted by t min It means that due to the two time series t j and t l are not the same, so the minimum value t obtained from these two time series is min In some embodiments of the present invention, when a natural gas user is a user with both a constant pressure demand and a constant flow demand, a constant pressure interval and a constant flow interval are configured for the user at the same time, and when the time value sequence t is obtained, j And the time series t l After obtaining the minimum value of each, the smaller value is taken as the minimum value in subsequent calculations. min .
[0128] Furthermore, in the above-mentioned control device for a natural gas metering valve, at the time point t now and the minimum value t min In the step of generating the opening adjustment control instruction of the natural gas metering valve, the processor is configured to:
[0129] Calculate the current time point t now and the minimum value t min The time difference between:
[0130] Δt min =t min -t now ;
[0131] Get the current opening θ of the natural gas metering valve now ;
[0132] Based on the time difference Δt min Calculate the target opening θ of the natural gas metering valve target ;
[0133] Calculate the opening adjustment span of the natural gas metering valve:
[0134] Δθ target =θ target -θ now ;
[0135] The span Δθ is adjusted according to the opening target Generate an opening adjustment control instruction for the natural gas metering valve.
[0136] Specifically, the target opening θ target In order to make the gas pressure value at the output end of the natural gas metering valve at time point t min falls into the regulation range of the output terminal Or steady flow range The opening degree.
[0137] Furthermore, in the above-mentioned control device for a natural gas metering valve, based on the time difference Δt min Calculate the target opening θ of the natural gas metering valve target In the step, the processor is configured to:
[0138] Get the preset opening adjustment speed v of the natural gas metering valve θ ;
[0139] Get time point t min Corresponding air pressure value
[0140] Calculate the first boundary opening and the second boundary opening of the natural gas metering valve:
[0141]
[0142]
[0143] According to the first boundary opening θ 1 and the second boundary opening θ 2 Determine the target opening θ target .
[0144] Specifically, the driving mechanism connected to the natural gas metering valve, such as a motor, can adjust the opening of the natural gas metering valve within a certain speed range. In the actual implementation process, if the driving speed of the driving mechanism is too fast, the life of related mechanical structures such as motors, connectors, valves, etc. will be shortened, and if the speed is too slow, it will not be able to meet the use requirements. In the technical solution of the present invention, a moderate adjustment speed is configured for the driving mechanism, which can ensure that the driving mechanism and related mechanical structures have a long service life while meeting the use requirements. The adjustment speed can be obtained by measuring under laboratory conditions. The opening adjustment speed v θ It is obtained by converting the adjustment speed of the driving mechanism.
[0145] Furthermore, in the above-mentioned control device for a natural gas metering valve, based on the time difference Δt min Calculate the target opening θ of the natural gas metering valve target In the step, the processor is configured to:
[0146] Take the preset opening adjustment speed v of the natural gas metering valve θ ;
[0147] Get time point t min Corresponding flow value
[0148] Calculate the third boundary opening and the fourth boundary opening of the natural gas metering valve:
[0149]
[0150]
[0151] According to the third boundary opening θ 3 and the fourth boundary opening θ 4 Determine the target opening θ target .
[0152] Furthermore, in the above-mentioned control device for a natural gas metering valve, according to the first boundary opening θ 1 and the second boundary opening θ 2 Or the third boundary opening θ 3 and the fourth boundary opening θ 4 Determine the target opening θ target In the step, the processor is configured to:
[0153] Calculate and adjust to the first boundary opening θ 1 and the second boundary opening θ 2 Or the third boundary opening θ 3 and the fourth boundary opening θ4 The first and second adjustment times required:
[0154] or
[0155]
[0156] when or hour, Determine Δt min Is it greater than
[0157] when When the second boundary opening θ 2 Or the fourth boundary opening θ 4 Determined as the target opening, that is:
[0158] θ target =θ 2 ,or
[0159] θ target =θ 4 .
[0160] Furthermore, in the above-mentioned control device for a natural gas metering valve, when determining Δt min Is it greater than After the steps, the processor is configured to:
[0161] when When, based on the time value sequence t j The minimum value t in min Calculate the target opening:
[0162] θ target =θ now +v θ ·Δt min .
[0163] Furthermore, in the above-mentioned control device for a natural gas metering valve, when calculating and adjusting the first boundary opening θ 1 and the second boundary opening θ 2 Or the third boundary opening θ 3 and the fourth boundary opening θ 4 After the steps of the first adjustment time and the second adjustment time are required, the processor is configured to:
[0164] when or hour, Determine Δt min Is it greater than
[0165] when When the first boundary opening θ 1 Or the third boundary opening θ 3 Determined as the target opening, that is:
[0166] θ target =θ 1 ,or
[0167] θ target =θ 3 .
[0168] Furthermore, in the above-mentioned control device for a natural gas metering valve, when determining Δt min Is it greater than After the steps, the processor is configured to:
[0169] when When, based on the time value sequence t j The minimum value t in min Calculate the target opening:
[0170] θ target =θ now +v θ ·Δt min .
[0171] like Figure 3 As shown, the second aspect of the present invention provides a control method for a natural gas metering valve, comprising:
[0172] Obtain the predicted period T of the input end gas pressure of the preset natural gas metering valve prd And the prediction time T pdn ;
[0173] In each prediction period T prd The input end gas pressure prediction model of the current node is used to predict the gas pressure at the input end of the natural gas metering valve to obtain a time length equal to the prediction time length T pdn The pressure data series P(t i ), where i is a positive integer between 1 and n, and n is the air pressure data sequence P(t i ) in the number of discrete pressure values;
[0174] Record the current time point t now ;
[0175] Get the voltage range of the output of the natural gas metering valve corresponding to the current node
[0176] The pressure stabilization interval at the output end of the natural gas metering valve Mapping to the input space to obtain the pressure stabilization range of the input end of the natural gas metering valve
[0177]
[0178] Where 0<θ now <1,θ now is the current opening of the natural gas metering valve, and K is the flow coefficient of the natural gas metering valve;
[0179] Determine the air pressure data sequence P(t i ) contains a voltage regulation range beyond the input terminal The air pressure value;
[0180] When the air pressure data sequence P(t i ) contains voltage regulation range beyond the input terminal When the pressure value exceeds the input voltage range, The pressure value sequence p j and its corresponding time value series t j , where j is from 1 to m p A positive integer between p is the air pressure data sequence P(t i ) contains voltages beyond the input voltage range The number of discrete pressure values;
[0181] Get the time value sequence t j The minimum value in:
[0182]
[0183] According to the time point t now and the minimum value t min Generate an opening adjustment control instruction for the natural gas metering valve.
[0184] Specifically, in the technical solution of the present invention, a corresponding pressure stabilization interval and / or flow stabilization interval is pre-configured for each node, that is, for a user with a pressure stabilization requirement of natural gas, a pressure stabilization interval is configured for it, and for a user with a flow stabilization requirement of natural gas, a flow stabilization interval is configured for it. The pressure stabilization interval and the flow stabilization interval are respectively the natural gas transmission pressure fluctuation range and flow fluctuation range that do not affect the normal use of the user at the current node.
[0185] The prediction period T of the gas pressure at the input end of the natural gas metering valve prd The time interval between two consecutive pre-configured executions of the gas pressure prediction at the input end of the natural gas metering valve. The prediction time length T of the gas pressure at the input end of the natural gas metering valve pdnThe time length for predicting the gas pressure at the input end of the natural gas metering valve is based on the time point when the gas pressure prediction at the input end of the natural gas metering valve is performed once as the time starting point.
[0186] In the technical solution of the present invention, each natural gas metering valve is equipped with an independent control device, and the control device is connected to the background server as a control node, and the current node refers to the control device of the current natural gas metering valve.
[0187] The air pressure data sequence P(t i ) is a set of discrete time-pressure key-value pairs, that is, it contains two sets of one-to-one corresponding data sequences, one set is the time series t 1 , t 2 ,…,t n , one group is the pressure sequence p 1 , p 2 ,…,p n , the two sets of data are in one-to-one correspondence, for example, p 1 The predicted time point is t 1 The air pressure value of , and satisfies:
[0188] t n -t 1 =T pdn .
[0189] The current time point t now For each prediction period T prd The time point at which the gas pressure prediction at the input end of the natural gas metering valve is started.
[0190] Furthermore, in the above-mentioned control method for a natural gas metering valve, it also includes:
[0191] In each prediction period T prd The flow rate at the input end of the natural gas metering valve is predicted using the input end flow rate prediction model of the current node to obtain a time length equal to the prediction time length T pdn The traffic data series Q(t i );
[0192] Get the steady flow range of the output end of the natural gas metering valve corresponding to the current node
[0193] The steady flow interval at the output end of the natural gas metering valve The steady flow interval of the input end of the natural gas metering valve is obtained by mapping to the input space
[0194]
[0195] where Δpmax The maximum pressure difference between the input end and the output end of the natural gas metering valve obtained by monitoring;
[0196] Determine the flow data sequence Q(t i ) contains a steady current range beyond the input end The flow value;
[0197] When the traffic data sequence Q(t i ) contains a steady current range beyond the input end When the flow value exceeds the steady flow range of the input end, The flow value sequence q l and its corresponding time value series t l , where l is 1 to m q A positive integer between q is the traffic data sequence Q(t i ) contains the steady current range beyond the input end The number of discrete flow values of ;
[0198] Get the time value sequence t l The minimum value in:
[0199]
[0200] According to the time point t now and the minimum value t min Generate an opening adjustment control instruction for the natural gas metering valve.
[0201] Similarly, the traffic data sequence Q(t i ) is a set of discrete time flow key-value pairs, that is, it contains two sets of one-to-one corresponding data sequences, one set is the time series t 1 , t 2 ,…,t n , one group is the flow sequence q 1 ,q 2 , …, q n , the two sets of data are in one-to-one correspondence, for example, q 1 The predicted time point is t 1 The flow value.
[0202] It should be noted that since the subsequent calculation steps are the same, in order to simplify the expression, the time series t j and the time series t l The minimum values obtained in are all denoted by t min It means that due to the two time series t j and t l are not the same, so the minimum value t obtained from these two time series ismin In some embodiments of the present invention, when a natural gas user is a user with both a constant pressure demand and a constant flow demand, a constant pressure interval and a constant flow interval are configured for the user at the same time, and when the time value sequence t is obtained, j And the time series t l After obtaining the minimum value of each, the smaller value is taken as the minimum value in subsequent calculations. min .
[0203] Furthermore, in the above-mentioned control method for a natural gas metering valve, according to the time point t now and the minimum value t min The step of generating the opening adjustment control instruction of the natural gas metering valve specifically includes:
[0204] Calculate the current time point t now and the minimum value t min The time difference between:
[0205] Δt min =t min -t now ;
[0206] Get the current opening θ of the natural gas metering valve now ;
[0207] Based on the time difference Δt min Calculate the target opening θ of the natural gas metering valve target ;
[0208] Calculate the opening adjustment span of the natural gas metering valve:
[0209] Δθ target =θ target -θ now ;
[0210] The span Δθ is adjusted according to the opening target Generate an opening adjustment control instruction for the natural gas metering valve.
[0211] Specifically, the target opening θ target In order to make the gas pressure value at the output end of the natural gas metering valve at time point t min falls into the regulation range of the output terminal Or steady flow range The opening degree.
[0212] Furthermore, in the above-mentioned control method for a natural gas metering valve, based on the time difference Δt min Calculate the target opening θ of the natural gas metering valve target The steps specifically include:
[0213] Get the preset opening adjustment speed v of the natural gas metering valve θ ;
[0214] Get time point t min Corresponding air pressure value
[0215] Calculate the first boundary opening and the second boundary opening of the natural gas metering valve:
[0216]
[0217]
[0218] According to the first boundary opening θ 1 and the second boundary opening θ 2 Determine the target opening θ target .
[0219] Specifically, the driving mechanism connected to the natural gas metering valve, such as a motor, can adjust the opening of the natural gas metering valve within a certain speed range. In the actual implementation process, if the driving speed of the driving mechanism is too fast, the life of related mechanical structures such as motors, connectors, valves, etc. will be shortened, and if the speed is too slow, it will not be able to meet the use requirements. In the technical solution of the present invention, a moderate adjustment speed is configured for the driving mechanism, which can ensure that the driving mechanism and related mechanical structures have a long service life while meeting the use requirements. The adjustment speed can be obtained by measuring under laboratory conditions. The opening adjustment speed v θ It is obtained by converting the adjustment speed of the driving mechanism.
[0220] Furthermore, in the above-mentioned control method for a natural gas metering valve, based on the time difference Δt min Calculate the target opening θ of the natural gas metering valve target The steps specifically include:
[0221] Take the preset opening adjustment speed v of the natural gas metering valve θ ;
[0222] Get time point t min Corresponding flow value
[0223] Calculate the third boundary opening and the fourth boundary opening of the natural gas metering valve:
[0224]
[0225]
[0226] According to the third boundary opening θ 3 and the fourth boundary opening θ 4 Determine the target opening θ target .
[0227] Furthermore, in the above-mentioned control method for a natural gas metering valve, according to the first boundary opening θ 1 and the second boundary opening θ 2 Or the third boundary opening θ 3 and the fourth boundary opening θ 4 Determine the target opening θ target The steps specifically include:
[0228] Calculate and adjust to the first boundary opening θ 1 and the second boundary opening θ 2 Or the third boundary opening θ 3 and the fourth boundary opening θ 4 The first and second adjustment times required:
[0229] or
[0230]
[0231] when or hour, Determine Δt min Is it greater than
[0232] when When the second boundary opening θ 2 Or the fourth boundary opening θ 4 Determined as the target opening, that is:
[0233] θ target =θ 2 ,or
[0234] θ target =θ 4 .
[0235] Furthermore, in the above-mentioned control method for a natural gas metering valve, when determining Δt min Is it greater than After the steps, it also includes:
[0236] when When, based on the time value sequence t j The minimum value t in min Calculate the target opening:
[0237] θtarget =θ now +v θ ·Δt min .
[0238] Furthermore, in the above-mentioned control method for a natural gas metering valve, when calculating and adjusting the first boundary opening θ 1 and the second boundary opening θ 2 Or the third boundary opening θ 3 and the fourth boundary opening θ 4 After the steps of the first adjustment time and the second adjustment time are required, the method further includes:
[0239] when or right, Determine Δt min Is it greater than
[0240] when When the first boundary opening θ 1 Or the third boundary opening θ 3 Determined as the target opening, that is:
[0241] θ target =θ 1 ,or
[0242] θ target =θ 3 .
[0243] Furthermore, in the above-mentioned control method for a natural gas metering valve, when determining Δt min Is it greater than After the steps, it also includes:
[0244] when When, based on the time value sequence t j The minimum value t in min Calculate the target opening:
[0245] θ target =θ now +v θ ·Δt min .
[0246] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0247] According to the embodiments of the present invention as described above, these embodiments do not describe all the details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and changes can be made based on the above description. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can make good use of the present invention and the modified use based on the present invention. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A control device for a natural gas metering valve, characterized in that: The invention comprises a first communication unit for communicating with the natural gas metering valve, a second communication unit for communicating with a background server, a memory for storing an input end gas pressure prediction model and an input end flow prediction model of the natural gas metering valve, and a processor, wherein the processor obtains pressure data and flow data of the input end and the output end of the natural gas metering valve from the natural gas metering valve through the first communication unit, and sends the pressure data and flow data of the input end and the output end of the natural gas metering valve to the background server through the second communication unit, and the processor is configured as follows: Get the predicted period of the input pressure of the preset natural gas metering valve And the predicted duration ; In each forecast period The input end gas pressure prediction model of the current node is used to predict the gas pressure at the input end of the natural gas metering valve to obtain a time length equal to the predicted time length. The air pressure data series ,in 1 to A positive integer between The air pressure data series The number of discrete pressure values in ; Record the current time point ; Get the voltage range of the output of the natural gas metering valve corresponding to the current node ; The pressure stabilization interval at the output end of the natural gas metering valve Mapping to the input space to obtain the pressure stabilization range of the input end of the natural gas metering valve : , in , is the current opening of the natural gas metering valve, is the flow coefficient of the natural gas metering valve; Determine the air pressure data sequence Does it contain voltage regulation range beyond the input terminal? The air pressure value; When the air pressure data series The voltage regulation range of the input terminal is included When the pressure value exceeds the input voltage range, The pressure value sequence and its corresponding time value series ,in 1 to A positive integer between The air pressure data series The voltage regulation range of the input terminal is exceeded. The number of discrete pressure values; Get the time value sequence The minimum value in: ; According to the time point and the minimum value Generate an opening adjustment control instruction for the natural gas metering valve.
2. A control method for a natural gas metering valve, characterized in that: include: Get the predicted period of the input pressure of the preset natural gas metering valve And the predicted duration ; In each forecast period The input end gas pressure prediction model of the current node is used to predict the gas pressure at the input end of the natural gas metering valve to obtain a time length equal to the predicted time length. The air pressure data series ,in 1 to A positive integer between The air pressure data series The number of discrete pressure values in ; Record the current time point ; Get the voltage range of the output of the natural gas metering valve corresponding to the current node ; The pressure stabilization interval at the output end of the natural gas metering valve Mapping to the input space to obtain the pressure stabilization range of the input end of the natural gas metering valve : , in , is the current opening of the natural gas metering valve, is the flow coefficient of the natural gas metering valve; Determine the air pressure data sequence Does it contain voltage regulation range beyond the input terminal? The air pressure value; When the air pressure data series The voltage regulation range of the input terminal is included When the pressure value exceeds the input voltage range, The pressure value sequence and its corresponding time value series ,in 1 to A positive integer between The air pressure data series The voltage regulation range of the input terminal is exceeded. The number of discrete pressure values; Get the time value sequence The minimum value in: ; According to the time point and the minimum value Generate an opening adjustment control instruction for the natural gas metering valve.
3. The control method for a natural gas metering valve according to claim 2, characterized in that: Also includes: In each forecast period The flow rate at the input end of the natural gas metering valve is predicted using the input end flow rate prediction model of the current node to obtain a time length equal to the predicted time length. The flow data series ; Get the steady flow range of the output end of the natural gas metering valve corresponding to the current node ; The steady flow interval at the output end of the natural gas metering valve The steady flow interval of the input end of the natural gas metering valve is obtained by mapping to the input space : , in The maximum pressure difference between the input end and the output end of the natural gas metering valve obtained by monitoring; Determine the flow data sequence Does it include the steady current range beyond the input end? The flow value; When the flow data series The steady current range beyond the input end is included When the flow value exceeds the steady flow range of the input end, The flow value sequence and its corresponding time value series ,in 1 to A positive integer between For the traffic data series The input current range is beyond the input current range the number of discrete flow values of ; Get the time value sequence The minimum value in: ; According to the time point and the minimum value Generate an opening adjustment control instruction for the natural gas metering valve.
4. The control method for a natural gas metering valve according to claim 2 or 3, characterized in that: According to the time point and the minimum value The step of generating the opening adjustment control instruction of the natural gas metering valve specifically includes: Calculate the current time point and the minimum value The time difference between: ; Get the current opening of the natural gas metering valve ; Based on the time difference Calculate the target opening of the natural gas metering valve ; Calculate the opening adjustment span of the natural gas metering valve: ; Adjust the span according to the opening Generate an opening adjustment control instruction for the natural gas metering valve.
5. The control method for a natural gas metering valve according to claim 4, characterized in that: Based on the time difference Calculate the target opening of the natural gas metering valve The steps specifically include: Get the preset opening adjustment speed of the natural gas metering valve ; Get time point Corresponding air pressure value ; Calculate the first boundary opening and the second boundary opening of the natural gas metering valve: , ; According to the first boundary opening and the second boundary opening Determine the target opening .
6. The control method for a natural gas metering valve according to claim 4, characterized in that: Based on the time difference Calculate the target opening of the natural gas metering valve The steps specifically include: Take the preset opening adjustment speed of the natural gas metering valve ; Get time point Corresponding flow value ; Calculate the third boundary opening and the fourth boundary opening of the natural gas metering valve: , ; According to the third boundary opening and the fourth boundary opening Determine the target opening .
7. The control method for a natural gas metering valve according to claim 5, characterized in that: According to the first boundary opening and the second boundary opening The steps specifically include: Calculate and adjust to the first boundary opening and the second boundary opening The first and second adjustment times required: ; when or hour, ,judge Is it greater than ; when When the second boundary opening Determined as the target opening, that is: 。 8. The control method for a natural gas metering valve according to claim 7, characterized in that: In judgment Is it greater than After the steps, it also includes: when When, based on the time value sequence The minimum value in Calculate the target opening: 。 9. The control method for a natural gas metering valve according to claim 7, characterized in that: In the calculation, adjust to the first boundary opening and the second boundary opening After the steps of the first adjustment time and the second adjustment time are required, the method further includes: when or hour, ,judge Is it greater than ; when When the first boundary opening Or the third boundary opening Determined as the target opening, that is: ,or 。 10. The control method for a natural gas metering valve according to claim 9, characterized in that: In judgment Is it greater than After the steps, it also includes: when When, based on the time value sequence The minimum value in Calculate the target opening: 。
Citation Information
Patent Citations
Gas well downhole flow control system and control method
CN108505978A
Method to control engine using airflow actuators
CN108730050A
