Gas transmission control method and device of natural gas sub-transmission station and computer equipment
By obtaining the actual outbound pressure and pipe stock of the natural gas distribution station, combined with the PID control algorithm, the opening setting parameters of the pressure regulating valve are accurately calculated, which solves the response problem of the pressure regulating valve when the gas supply demand changes and extends the service life of the pressure regulating valve.
Patent Information
- Application Number
- CN202510736828.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-04
- Publication Date
- 2025-08-29
AI Technical Summary
The pressure regulating valves of existing natural gas distribution stations cannot respond in time when the gas supply demand suddenly changes, resulting in frequent adjustments and shortened service life.
By obtaining the actual outbound pressure value and pipe stock of the preset gas pipeline, combining with the PID control algorithm, the opening setting parameters of the target pressure regulating valve are calculated, and the opening degree of the pressure regulating valve is accurately controlled, and the number of adjustments is reduced.
It realizes fast and stable gas transmission control of natural gas distribution stations, extending the service life of the pressure regulating valve.
Smart Images

Figure CN120557562A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of gas transmission control technology, and in particular to a gas transmission control method, device, and computer equipment for a natural gas distribution station. Background Art
[0002] With the continuous development of digitalization and intelligentization, natural gas distribution stations can adopt an unmanned station operation mode. In this mode, the natural gas distribution station needs to control the opening of the pressure regulating valve according to the natural gas distribution station's outlet pressure to achieve the operation of the natural gas distribution station.
[0003] At present, the control methods of most natural gas distribution stations can only adjust the opening of the pressure regulating valve according to the outlet pressure of the pressure regulating valve and the set pressure of the pressure regulating valve, so that the outlet pressure of the pressure regulating valve is maintained near the pressure set value.
[0004] However, when the gas consumption at the gas supply site suddenly increases, the outlet pressure of the pressure regulating valve cannot respond to the gas supply demand in time. Even if the outlet pressure of the pressure regulating valve can respond, the pressure regulating valve will be in a state of continuous opening and closing during the response process, resulting in a reduction in the service life of the regulating valve. Summary of the Invention
[0005] The purpose of this application is to address the deficiencies in the above-mentioned prior art and provide a gas transmission control method, device and computer equipment for a natural gas distribution station to reduce the number of adjustments of the pressure regulating valve and extend the service life of the pressure regulating valve.
[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of the present application are as follows:
[0007] In a first aspect, an embodiment of the present application provides a gas transmission control method for a natural gas distribution station, which is applied to a control device of the natural gas distribution station, and the method includes:
[0008] Obtaining an actual outlet pressure value of a first end of a preset gas pipeline, wherein the preset gas pipeline is a gas pipeline between the natural gas distribution station and the gas supply station, and the first end is an end of the preset gas pipeline connected to the natural gas distribution station;
[0009] Calculating a first opening setting parameter of a target pressure regulating valve on the preset gas transmission pipeline according to the actual outlet pressure value;
[0010] Obtaining the pipeline inventory of the preset gas transmission pipeline;
[0011] Calculating a second opening setting parameter of the target pressure regulating valve according to the pipe inventory;
[0012] determining a target opening setting parameter from the first opening setting parameter and the second opening setting parameter;
[0013] The target opening degree of the pressure regulating valve is controlled according to the target opening degree setting parameter.
[0014] In a possible implementation, calculating the first opening setting parameter of the target pressure regulating valve on the preset gas transmission pipeline according to the actual outlet pressure value includes:
[0015] Calculate the first opening setting parameter using a proportional-integral-differential (PID) control algorithm based on the actual outlet pressure value and the preset outlet pressure value of the preset gas pipeline;
[0016] Accordingly, the setting parameter according to the target opening to control the opening of the target pressure regulating valve includes:
[0017] The target opening is set according to the parameters and the PID control algorithm is used to control the opening of the target pressure regulating valve.
[0018] In a possible implementation, obtaining the pipeline inventory of the preset gas pipeline includes:
[0019] Obtaining the outlet gas temperature value of the first end of the preset gas pipeline, the gas pressure value and the gas temperature value of the second end of the preset gas pipeline;
[0020] The pipeline inventory is calculated based on the actual outlet pressure value, the outlet gas temperature value, the gas consumption pressure value, the gas consumption temperature value and the size parameters of the preset gas transmission pipeline.
[0021] In a possible implementation, calculating the second opening setting parameter of the target pressure regulating valve according to the pipe inventory includes:
[0022] Calculating a target gas flow rate of the target pressure regulating valve according to the pipeline inventory;
[0023] The second opening setting parameter is calculated according to the target gas transmission flow rate, the actual outlet pressure value and the gas consumption pressure value.
[0024] In a possible implementation, calculating the target gas flow rate of the target pressure regulating valve according to the pipeline inventory includes:
[0025] Calculating a pipe inventory change parameter based on the pipe inventory and the historical pipe inventory of the previous control period;
[0026] Calculate and adjust the gas transmission flow rate according to the pipeline inventory change parameter and the preset control period;
[0027] The target gas flow rate is calculated based on the adjusted gas flow rate.
[0028] In a possible implementation, calculating the second opening setting parameter according to the target gas transmission flow rate, the actual outlet pressure value, and the gas usage pressure value includes:
[0029] Calculating the actual pressure difference according to the actual outlet pressure value and the gas pressure value;
[0030] The second opening setting parameter is calculated according to the target gas flow rate, the maximum gas flow rate of the target pressure regulating valve, the actual pressure difference, the preset maximum opening of the target pressure regulating valve, and the preset adjustable ratio.
[0031] In a possible implementation, determining the target opening setting parameter from the first opening setting parameter and the second opening setting parameter includes:
[0032] calculating a difference between the first opening setting parameter and the second opening setting parameter;
[0033] If the difference is less than a preset threshold, determining the first opening setting parameter as the target opening setting parameter;
[0034] If the difference is greater than or equal to the preset threshold, the second opening setting parameter is determined to be the target opening setting parameter.
[0035] In a second aspect, another embodiment of the present application provides a gas transmission control device for a natural gas distribution station, which is applied to control equipment of the natural gas distribution station, and the device includes:
[0036] a first acquisition module, configured to acquire an actual outlet pressure value of a first end of a preset gas pipeline, wherein the preset gas pipeline is a gas pipeline between the natural gas distribution station and the gas supply station, and the first end is an end of the preset gas pipeline connected to the natural gas distribution station;
[0037] a first calculation module, configured to calculate a first opening setting parameter of a target pressure regulating valve on the preset gas transmission pipeline according to the actual outlet pressure value;
[0038] A second acquisition module is used to obtain the pipeline inventory of the preset gas pipeline;
[0039] a second calculation module, configured to calculate a second opening setting parameter of the target pressure regulating valve according to the pipe inventory;
[0040] a determination module, configured to determine a target opening setting parameter from the first opening setting parameter and the second opening setting parameter;
[0041] In the third aspect, another embodiment of the present application provides a computer device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the computer device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to perform the steps of the gas transmission control method for a natural gas distribution station as described in any of the first aspects above.
[0042] In a fourth aspect, another embodiment of the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the gas transmission control method for a natural gas distribution station as described in any one of the first aspects above are executed.
[0043] The beneficial effects of this application are:
[0044] The present application provides a gas transmission control method, device and computer equipment for a natural gas distribution station, which can obtain the actual outlet pressure value of the first end of a preset gas transmission pipeline; calculate the first opening setting parameter of a target pressure-regulating valve on the preset gas transmission pipeline based on the actual outlet pressure value; obtain the pipeline inventory of the preset gas transmission pipeline; calculate the second opening setting parameter of the target pressure-regulating valve based on the pipeline inventory; determine the target opening setting parameter from the first opening setting parameter and the second opening setting parameter; and control the opening of the target pressure-regulating valve based on the target opening setting parameter. The present application can calculate the first opening setting parameter based on the actual outlet pressure value of the preset gas transmission pipeline, and can also calculate the second opening setting parameter based on the pipe inventory of the preset gas transmission pipeline, and then determine the target opening setting parameter based on the first opening setting parameter and the second opening setting parameter. Since the target opening setting parameter is determined based on the gas transmission conditions of the natural gas distribution station and the gas usage conditions of the gas supply site at the same time, the determination of the target opening setting parameter is more accurate, and thus the target regulating valve based on the target opening setting parameter is more accurate, and the gas transmission control of the natural gas distribution station is realized quickly and stably, the number of adjustments of the pressure regulating valve is reduced, and the service life of the pressure regulating valve is extended. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0046] Figure 1 A flow chart of a gas transmission control method for a natural gas distribution station provided in an embodiment of the present application;
[0047] Figure 2A flow chart of a second gas transmission control method for a natural gas distribution station provided in an embodiment of the present application;
[0048] Figure 3 A schematic flow chart of a third gas transmission control method for a natural gas distribution station provided in an embodiment of the present application;
[0049] Figure 4 A schematic flow chart of a fourth gas transmission control method for a natural gas distribution station provided in an embodiment of the present application;
[0050] Figure 5 A flow chart of a fifth gas transmission control method for a natural gas distribution station provided in an embodiment of the present application;
[0051] Figure 6 A flow chart of a sixth gas transmission control method for a natural gas distribution station provided in an embodiment of the present application;
[0052] Figure 7 A flow chart of a seventh gas transmission control method for a natural gas distribution station provided in an embodiment of the present application;
[0053] Figure 8 A schematic diagram of a gas transmission control device for a natural gas distribution station provided in an embodiment of the present application;
[0054] Figure 9 A schematic diagram of the computer device structure provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of illustration and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowcharts can be implemented out of sequence, and steps without logical context can be reversed or implemented simultaneously. In addition, those skilled in the art, under the guidance of the contents of this application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.
[0056] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.
[0057] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0058] The present application provides a gas transmission control method for a natural gas distribution station, which is applied to the control equipment of the natural gas distribution station. The present application determines the target opening parameter of the pressure regulating valve through the outlet pressure of the pressure regulating valve and the pipe inventory of the gas transmission pipeline between the natural gas distribution station and the gas supply station, thereby adjusting the pressure regulating valve. Specifically, when controlling the gas transmission of the natural gas distribution station, the control equipment is the pressure regulating valve in the natural gas distribution station that controls the output of the natural gas pipeline.
[0059] To clearly describe the method of the embodiment of the present application, the gas transmission control method of the natural gas distribution station provided by the embodiment of the present application is described below with reference to multiple figures. The embodiment of the present application provides a gas transmission control method of the natural gas distribution station, which is applied to the control equipment of the natural gas distribution station. Figure 1 A flow chart of a gas transmission control method for a natural gas distribution station provided in an embodiment of the present application is shown as follows: Figure 1 As shown, the method includes:
[0060] S101: Obtain an actual outlet pressure value of a first end of a preset gas transmission pipeline.
[0061] The pre-determined gas pipeline is the pipeline between the natural gas distribution station and the gas supply station. The first end is the end of the pre-determined gas pipeline connected to the natural gas distribution station. The actual outlet pressure is the pressure of the pre-determined gas pipeline when the natural gas distribution station inputs natural gas into the pre-determined gas pipeline.
[0062] For example, a Supervisory Control And Data Acquisition (SCADA) system may be provided at a natural gas distribution station, and the actual outlet pressure value of the first end of the preset gas transmission pipeline may be obtained through the SCADA system provided at the natural gas distribution station.
[0063] S102: Calculate a first opening setting parameter of a target pressure regulating valve on a preset gas transmission pipeline according to the actual outlet pressure value.
[0064] The opening of a pressure regulating valve refers to the position of the valve core (or valve plate) during regulation. This position determines the flow rate and pressure of fluid passing through the valve. The opening of a pressure regulating valve is usually expressed as a percentage, with 0% closed and 100% fully open.
[0065] For example, based on the pressure value of the gas pipeline when the natural gas distribution station inputs natural gas into the preset gas pipeline, the opening setting parameter of the target pressure regulating valve on the preset gas pipeline can be obtained by calculation, which is the first opening setting parameter.
[0066] S103: Obtain the pipe inventory of the preset gas transmission pipeline.
[0067] Among them, the pipeline inventory of the preset gas pipeline is the natural gas inventory in the preset gas pipeline between the natural gas distribution station and the gas supply station.
[0068] Alternatively, the pipeline inventory of a predetermined gas transmission pipeline can be obtained based on the pipeline parameters between the natural gas distribution station and the gas supply station, as well as the relevant parameters of the natural gas within the pipeline. Alternatively, the pipeline inventory of a predetermined gas transmission pipeline can be obtained based on previously acquired historical gas transmission data between the natural gas distribution station and the gas supply station.
[0069] S104: Calculate a second opening setting parameter of the target pressure regulating valve according to the pipe inventory.
[0070] For example, according to the pipeline inventory of the preset gas pipeline, that is, the natural gas inventory in the preset gas pipeline between the natural gas distribution station and the gas supply station, the opening setting parameter of the target pressure regulating valve on the preset gas pipeline can be obtained by calculation, which is the second opening setting parameter.
[0071] S105 : Determine a target opening setting parameter from the first opening setting parameter and the second opening setting parameter.
[0072] For example, according to the current output of the natural gas distribution station and the gas consumption of the gas supply station, the opening setting parameter that meets the current situation is determined from the first opening setting parameter and the second opening setting parameter, which is the target opening setting parameter.
[0073] S106. Setting parameters according to the target opening to control the opening of the pressure regulating valve.
[0074] The present application provides a gas transmission control method for a natural gas distribution station, which is applied to control equipment at the natural gas distribution station. The method comprises: obtaining an actual outlet pressure value of a first end of a preset gas transmission pipeline, wherein the preset gas transmission pipeline is a gas transmission pipeline between the natural gas distribution station and the gas supply station, and the first end is an end of the preset gas transmission pipeline connected to the natural gas distribution station; calculating a first opening setting parameter of a target pressure regulating valve on the preset gas transmission pipeline based on the actual outlet pressure value; obtaining a pipeline inventory of the preset gas transmission pipeline; calculating a second opening setting parameter of the target pressure regulating valve based on the pipeline inventory; determining a target opening setting parameter from the first opening setting parameter and the second opening setting parameter; and controlling the opening of the target pressure regulating valve based on the target opening setting parameter. The present application can calculate the first opening setting parameter based on the actual outlet pressure value of the preset gas transmission pipeline, and can also calculate the second opening setting parameter based on the pipe inventory of the preset gas transmission pipeline, and then determine the target opening setting parameter based on the first opening setting parameter and the second opening setting parameter. Since the target opening setting parameter is determined based on the gas transmission conditions of the natural gas distribution station and the gas usage conditions of the gas supply site at the same time, the determination of the target opening setting parameter is more accurate, and thus the target regulating valve based on the target opening setting parameter is more accurate, and the gas transmission control of the natural gas distribution station is realized quickly and stably, the number of adjustments of the pressure regulating valve is reduced, and the service life of the pressure regulating valve is extended.
[0075] Based on the above embodiment, this application also provides a second gas transmission control method for a natural gas distribution station. Figure 2 The flow chart of the second gas transmission control method for a natural gas distribution station provided in the embodiment of the present application is as follows: Figure 2 As shown, as in the above S102, the first opening setting parameter of the target pressure regulating valve on the preset gas transmission pipeline is calculated according to the actual outlet pressure value, including:
[0076] S201 : Calculate a first opening setting parameter using a PID control algorithm according to an actual outlet pressure value and a preset outlet pressure value of a preset gas transmission pipeline.
[0077] For example, based on the actual outlet pressure value and the set outlet pressure value of the preset gas transmission pipeline, the difference between the actual outlet pressure value and the set outlet pressure value of the preset gas transmission pipeline is determined. Based on the difference between the actual outlet pressure value and the set outlet pressure value of the preset gas transmission pipeline and the current opening value of the target pressure regulating valve, a PID control algorithm is used to calculate a first opening setting parameter. The current opening value of the target pressure regulating valve can be obtained from a SCADA system at the natural gas distribution station.
[0078] Accordingly, as in S106 above, the parameters are set according to the target opening to control the opening of the target pressure regulating valve, including:
[0079] S202 , setting parameters according to the target opening, and using a PID control algorithm to control the opening of the target pressure regulating valve.
[0080] Optionally, the target opening setting parameter is set to the current opening of the target pressure regulating valve, and then a PID control algorithm is used to calculate the latest opening of the target pressure regulating valve to achieve control of the target pressure regulating valve.
[0081] In an embodiment of the present application, the first opening setting parameter is calculated based on the actual outlet pressure value and the set outlet pressure value of the preset gas pipeline, combined with the actual output of the natural gas transmission station, to ensure the accuracy of the calculated first opening setting parameter. At the same time, the target opening setting parameter adopts a PID control algorithm to control the opening of the target pressure regulating valve, thereby improving the control accuracy of the regulating valve.
[0082] Based on the above embodiments, this application also provides a third gas transmission control method for a natural gas distribution station: Figure 3 The flow chart of the third gas transmission control method for a natural gas distribution station provided in the embodiment of the present application is as follows: Figure 3 As shown, obtaining the pipeline inventory of the preset gas pipeline in the above S103 includes:
[0083] S301: Obtain a preset gas outlet temperature value at a first end of a gas pipeline, a gas pressure value, and a gas temperature value at a second end of the gas pipeline.
[0084] Among them, the outlet gas temperature value at the first end of the gas pipeline is the outlet gas temperature value at the end of the preset gas pipeline transmitted by the natural gas transmission station, and the gas pressure value and gas temperature at the second end of the gas pipeline are the gas pressure value and gas temperature received by the gas supply site at the gas transmission end of the preset gas pipeline.
[0085] For example, according to the SCADA system installed at the natural gas transmission site and the gas supply station, the outlet gas temperature value of the first end of the preset gas pipeline, the gas pressure value and the gas temperature value of the second end of the gas pipeline are respectively obtained.
[0086] S302: Calculate the pipeline inventory based on the actual outlet pressure value, outlet gas temperature value, gas pressure value, gas temperature value, and preset gas pipeline size parameters.
[0087] Optionally, according to the size parameters of the preset gas transmission pipeline, the design pipe capacity V1 of the preset gas transmission pipeline is calculated by formula (1).
[0088]
[0089] Wherein, π=3.1415926; d is the inner diameter of the preset gas transmission pipeline; and L is the length of the preset gas transmission pipeline.
[0090] Optionally, according to the actual outlet pressure value and the gas pressure value of the preset gas pipeline, the average gas pressure P in the preset gas pipeline is calculated by formula (2): Pj .
[0091]
[0092] Among them, P1 is the actual outbound pressure value, and P2 is the actual outbound pressure value.
[0093] Optionally, according to the outlet temperature value and the gas temperature value of the preset gas pipeline, the average temperature T of the gas in the preset gas pipeline is calculated by formula (3): Pj .
[0094]
[0095] Among them, T1 is the outlet gas temperature value, and T2 is the consumption gas temperature value.
[0096] Optionally, the pipe inventory V0 of the preset gas pipeline is calculated by formula (4) based on the designed pipe capacity of the preset gas pipeline, the average pressure of the gas in the gas pipeline, the average temperature of the gas in the preset gas pipeline, and the downstream pipe inventory control algorithm.
[0097]
[0098] Among them, V1 is the design capacity of the preset target pipeline, P Pj is the average gas pressure in the preset target pipeline, T0 is the temperature under standard reference conditions, Z0 is the compression factor under standard reference conditions, P0 is the pressure under standard reference conditions, T Pj The average temperature of the gas in the preset target pipeline is Z1, and the compression factor under the working conditions is Z1.
[0099] In an embodiment of the present application, the pipe inventory of the preset gas pipeline is calculated based on the actual outlet pressure value, outlet temperature value, gas pressure value, gas temperature and size parameters of the preset gas pipeline between the natural gas transmission station and the gas supply site, so that the calculated pipe inventory data of the preset gas pipeline is more accurate, thereby more accurately controlling the gas transmission of the natural gas distribution station.
[0100] Based on the above embodiments, this application also provides a fourth gas transmission control method for a natural gas distribution station. Figure 4 A flow chart of a fourth gas transmission control method for a natural gas distribution station provided in an embodiment of the present application is shown as follows: Figure 4 As shown, as in the above S104, the second opening setting parameter of the target pressure regulating valve is calculated according to the pipe inventory, including:
[0101] S401. Calculate the target gas flow rate of the target pressure regulating valve according to the pipeline inventory.
[0102] Optionally, the amount of natural gas that the target pressure regulating valve can supply to the gas supply site during the current cycle can be determined based on the pipeline inventory of the preset gas pipeline, and the target gas flow rate of the target pressure regulating valve can be determined based on the current pipeline inventory and the gas supply demand of the gas supply site, so that the target gas flow rate of the target pressure regulating valve can meet the demand of the gas supply site.
[0103] S402: Calculate a second opening setting parameter according to the target gas transmission flow rate, the actual outlet pressure value, and the gas pressure value.
[0104] Optionally, the flow rate of natural gas that the current target pressure regulating valve needs to output is determined based on the target gas transmission flow rate, the actual output of the target pressure regulating valve is obtained based on the actual outlet pressure value and the gas usage pressure value, and the second opening setting parameter is obtained by calculation based on the flow rate of natural gas that the target pressure regulating valve needs to output and the actual output.
[0105] In an embodiment of the present application, the second opening parameter of the target pressure regulating valve is determined based on the target gas flow rate of the target pressure regulating valve, the actual gas transmission situation of the target pressure regulating valve, and the gas usage situation of the gas supply site, and the target pressure regulating valve is adjusted so that the output of the target pressure regulating valve reaches the target gas flow rate, thereby improving the control efficiency of gas transmission at the natural gas distribution station.
[0106] Based on the above embodiments, the present application also provides a fifth gas transmission control method for a natural gas distribution station. Figure 5 A flow chart of a fifth gas transmission control method for a natural gas distribution station provided in an embodiment of the present application is shown as follows: Figure 5 As shown, as in the above S401, the target gas flow rate of the pressure regulating valve is calculated based on the pipeline inventory, including:
[0107] S501. Calculate a pipe inventory change parameter based on the pipe inventory and the historical pipe inventory of the previous control period.
[0108] Among them, the control period is a period for monitoring the pipe inventory in the preset gas pipeline. In the embodiment of the present application, the control period is generally set to 1 second, but in actual application, the control period can also be set to 2 seconds, 3 seconds or other times. The specific control period can be set according to the gas transmission control requirements of the natural gas distribution station.
[0109] Optionally, the difference between the current pipe inventory and the historical pipe inventory of the previous control cycle is calculated to obtain the pipe inventory change parameter in the current cycle.
[0110] S502: Calculate and adjust the gas transmission flow rate according to the pipeline inventory change parameter and the preset control period.
[0111] Optionally, based on the preset gas pipeline inventory change parameter and the preset control period, the gas flow rate that needs to be adjusted within one period of the preset gas pipeline can be obtained by calculating the ratio of the preset gas pipeline inventory change parameter to the preset control period.
[0112] S503: Calculate the target gas transmission flow rate according to the adjusted gas transmission flow rate.
[0113] Optionally, the current gas flow is increased or decreased based on the current gas flow within the preset control period of the preset gas pipeline and the adjusted gas flow within the preset control period. When the adjusted gas flow is to reduce the gas flow, the current gas flow is reduced; when the adjusted gas flow is to increase the gas flow, the current gas flow is increased, and the target gas flow can be obtained.
[0114] In an embodiment of the present application, the target gas flow rate of the preset gas pipeline is determined based on the pipe inventory change parameters of the preset pipeline and the current gas flow rate of the preset gas pipeline. The gas flow rate of the preset pipeline can be quickly adjusted, thereby improving the control efficiency of gas transmission at the natural gas distribution station.
[0115] Based on the above embodiments, the present application also provides a sixth gas transmission control method for a natural gas distribution station: Figure 6 A flow chart of a sixth gas transmission control method for a natural gas distribution station provided in an embodiment of the present application is shown as follows: Figure 6 As shown in the above S402, the second opening setting parameter is calculated according to the target gas transmission flow, the actual outlet pressure value and the gas pressure value, including:
[0116] S601. Calculate the actual pressure difference based on the actual outlet pressure value and the gas pressure value.
[0117] Optionally, the actual pressure difference of the target pressure regulating valve can be obtained by calculating the difference between the actual outlet pressure value of the target pressure regulating valve and the gas pressure value.
[0118] S602: Calculate a second opening setting parameter according to the target gas flow rate, the target maximum gas flow rate of the pressure regulating valve, the actual pressure difference, the preset maximum opening of the pressure regulating valve, and the preset adjustable ratio.
[0119] Optionally, a preset maximum opening and a preset adjustable ratio of the pressure regulating valve are determined based on the design parameters of the target pressure regulating valve, wherein the maximum opening of the target pressure regulating valve is generally 100%. The maximum gas flow rate of the target pressure regulating valve is determined based on the target gas flow rate of the target pressure regulating valve and the design parameters of the target pressure regulating valve. The inlet and outlet pressure difference corresponding to the maximum opening parameter of the target pressure regulating valve is determined based on the actual pressure difference of the actual target pressure regulating valve. The second opening parameter L of the target pressure regulating valve is determined using formula (5) based on the adjustable ratio, maximum opening, target gas flow rate, maximum gas flow rate, actual pressure difference, inlet and outlet pressure difference corresponding to the maximum opening parameter, and the downstream pipe inventory control algorithm of the target pressure regulating valve.
[0120]
[0121] Among them, Q is the target gas flow rate of the target pressure regulating valve, Q max is the maximum gas flow of the target pressure regulating valve, R is the adjustable ratio of the target pressure regulating valve, L max is the maximum opening of the target pressure regulating valve, which is generally 100%, ΔP is the actual inlet and outlet pressure difference of the target pressure regulating valve, and ΔP0 is the inlet and outlet pressure difference corresponding to the maximum opening parameter of the target pressure regulating valve.
[0122] In an embodiment of the present application, a second opening setting parameter is determined based on the target gas flow rate, the maximum gas flow rate of the target pressure regulating valve, the actual pressure difference, the preset maximum opening of the pressure regulating valve, and the preset adjustable ratio to predict the design parameters of the target pressure regulating valve, so as to adjust the target pressure regulating valve, thereby improving the control efficiency of gas transmission at the natural gas distribution station and enabling the output of the target pressure regulating valve to quickly reach the target gas flow rate.
[0123] Based on the above embodiments, the present application also provides a seventh gas transmission control method for a natural gas distribution station. Figure 7 The flow chart of the seventh gas transmission control method for a natural gas distribution station provided in the embodiment of the present application is as follows: Figure 7 As shown, as described above in S105, determining the target opening setting parameter from the first opening setting parameter and the second opening setting parameter includes:
[0124] S701: Calculate the difference between the first opening setting parameter and the second opening setting parameter.
[0125] Optionally, the difference between any one of the first opening setting parameter and the second opening parameter obtained by the above calculation is calculated, and the obtained difference is judged.
[0126] S702: If the difference is less than the preset threshold, determine the first opening setting parameter as the target opening setting parameter.
[0127] Among them, the preset threshold value in the embodiment of the present application is set to 2%, but in actual application the preset threshold value can also be set to 3%, 4% or other values, which is specifically set according to the gas transmission control accuracy of the natural gas distribution station.
[0128] Optionally, the difference between the first opening setting parameter and the second opening setting parameter is compared with a preset threshold value. When the difference between the first opening setting parameter and the second opening setting parameter is less than the preset threshold value, it indicates that the gas demand at the gas supply site has increased or decreased slightly. At this time, it is necessary to make a small adjustment to the gas transmission control of the natural gas distribution station. At this time, the first opening parameter is set as the opening setting parameter of the target pressure regulating valve through the execution structure in the natural gas distribution station, and the proportional integral differential PID control algorithm is used to calculate the opening of the target pressure regulating valve. The output of the target pressure regulating valve can be adjusted to the normal range through the PID control algorithm in a relatively short time.
[0129] S703: If the difference is greater than or equal to the preset threshold, determine the second opening setting parameter as the target opening setting parameter.
[0130] Optionally, the difference between the first opening setting parameter and the second opening setting parameter is compared with a preset threshold value. When the difference between the first opening setting parameter and the second opening setting parameter is greater than or equal to the preset threshold value, it indicates that the gas demand at the gas supply site has increased or decreased significantly. At this time, it is necessary to make substantial adjustments to the gas transmission control of the natural gas distribution station. At this time, the second opening parameter is set as the opening setting parameter of the target pressure regulating valve through the execution structure in the natural gas distribution station. The control algorithm based on the downstream pipe inventory is used to control the gas transmission of the target pressure regulating valve to maintain the current pipe inventory. Then, based on this opening, the PID control algorithm is used to slowly control the outlet pressure to the set value, thereby greatly reducing the adjustment time and improving the adjustment speed.
[0131] In the embodiment of the present application, the current gas transmission conditions at the natural gas distribution station and the gas demand at the gas supply station are determined based on the difference between the first and second opening parameters, thereby determining the target opening parameter and adjusting the opening of the target pressure regulating valve. This can meet the natural gas distribution station's requirements for smooth pressure regulation and minimal overshoot, while also improving the pressure regulating valve's adjustment speed when the station experiences large and rapid pressure fluctuations. This improves the control efficiency of gas transmission at the natural gas distribution station, reduces the number of adjustment actions required for the target pressure regulating valve, and extends the valve's service life.
[0132] Based on the same inventive concept, the embodiment of the present application also provides a gas transmission control device for a natural gas distribution station corresponding to the gas transmission control method of the natural gas distribution station. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the gas transmission control method of the natural gas distribution station in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0133] Figure 8 A schematic diagram of a gas transmission control device for a natural gas distribution station provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the device includes: a first acquisition module 81, a first calculation module 82, a second acquisition module 83, a second calculation module 84, a determination module 85, and a control module 86; wherein the first acquisition module 81 is used to obtain the actual outlet pressure value of the first end of the preset gas pipeline, wherein the preset gas pipeline is the gas pipeline between the natural gas distribution station and the gas supply station, and the first end is the end of the preset gas pipeline connected to the natural gas distribution station;
[0134] A first calculation module 82 is used to calculate a first opening setting parameter of a target pressure regulating valve on a preset gas transmission pipeline according to the actual outlet pressure value;
[0135] The second acquisition module 83 is used to obtain the pipe inventory of the preset gas pipeline;
[0136] A second calculation module 84 is used to calculate a second opening setting parameter of the target pressure regulating valve according to the pipe inventory;
[0137] A determination module 85, configured to determine a target opening setting parameter from the first opening setting parameter and the second opening setting parameter;
[0138] The control module 86 is used to control the opening of the pressure regulating valve according to the target opening setting parameters.
[0139] In a possible implementation, the first calculation module 82 is specifically configured to calculate a first opening setting parameter using a proportional-integral-differential (PID) control algorithm according to an actual outlet pressure value and a preset outlet pressure value of a preset gas pipeline.
[0140] In a possible implementation, the control module 86 is specifically configured to set parameters according to the target opening and adopt a PID control algorithm to control the opening of the target pressure regulating valve.
[0141] In a possible implementation, the second acquisition module 83 is specifically configured to: acquire the outlet gas temperature value of the first end of the preset gas pipeline, the gas pressure value and the gas temperature of the second end of the preset gas pipeline;
[0142] Calculate the pipeline inventory based on the actual outlet pressure value, outlet gas temperature value, gas consumption pressure value, gas consumption temperature and the preset gas pipeline size parameters.
[0143] In one possible implementation, the second calculation module 84 is specifically configured to: calculate a target gas flow rate of a target pressure regulating valve according to the pipeline inventory;
[0144] The second opening setting parameter is calculated based on the target gas transmission flow, the actual outlet pressure value and the gas pressure value.
[0145] In a possible implementation, the second calculation module 84 is specifically configured to: calculate a tube inventory change parameter based on the tube inventory and the historical tube inventory of the previous control cycle;
[0146] Calculate and adjust the gas flow rate based on the pipeline inventory change parameters and the preset control cycle;
[0147] Calculate the target gas flow rate based on the adjusted gas flow rate.
[0148] In a possible implementation, the second calculation module 84 is specifically configured to: calculate the actual pressure difference according to the actual outbound pressure value and the gas pressure value;
[0149] The second opening setting parameter is calculated according to the target gas flow rate, the maximum gas flow rate of the target pressure regulating valve, the actual pressure difference, the preset maximum opening of the target pressure regulating valve, and the preset adjustable ratio.
[0150] In one possible implementation, the determination module 85 is specifically configured to: calculate a difference between the first opening setting parameter and the second opening setting parameter;
[0151] If the difference is less than a preset threshold, determining the first opening setting parameter as the target opening setting parameter;
[0152] If the difference is greater than or equal to the preset threshold, the second opening setting parameter is determined to be the target opening setting parameter.
[0153] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference can be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0154] The embodiment of the present application also provides a computer device, Figure 9 A schematic diagram of a computer device structure provided in an embodiment of the present application is shown in FIG. Figure 9As shown, the computer device includes: a processor 91, a memory 92, and optionally, a bus 93. The memory 92 stores machine-readable instructions executable by the processor 91. When the computer device is running, the processor 91 communicates with the memory 92 via the bus 93. When the machine-readable instructions are executed by the processor 91, the steps of the gas transmission control method for the natural gas distribution station are performed.
[0155] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the gas transmission control method of the above-mentioned natural gas distribution station are executed.
[0156] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0157] In addition, the functional units in the various embodiments of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0158] The above is only a specific implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with this technical field can easily think of changes or replacements within the technical scope disclosed in this application, which should be covered by the protection scope of the present application.
Claims
1. A gas transmission control method for a natural gas distribution station, characterized in that: The control device applied to the natural gas distribution station, the method comprising: Obtaining an actual outlet pressure value of a first end of a preset gas pipeline, wherein the preset gas pipeline is a gas pipeline between the natural gas distribution station and the gas supply station, and the first end is an end of the preset gas pipeline connected to the natural gas distribution station; Calculating a first opening setting parameter of a target pressure regulating valve on the preset gas transmission pipeline according to the actual outlet pressure value; Obtaining the pipeline inventory of the preset gas transmission pipeline; Calculating a second opening setting parameter of the target pressure regulating valve according to the pipe inventory; determining a target opening setting parameter from the first opening setting parameter and the second opening setting parameter; The target opening degree of the pressure regulating valve is controlled according to the target opening degree setting parameter.
2. The method according to claim 1, characterized in that Calculating a first opening setting parameter of a target pressure regulating valve on the preset gas transmission pipeline according to the actual outlet pressure value includes: Calculate the first opening setting parameter using a proportional-integral-differential (PID) control algorithm based on the actual outlet pressure value and the preset outlet pressure value of the preset gas pipeline; Accordingly, the setting parameter according to the target opening to control the opening of the target pressure regulating valve includes: The target opening is set according to the parameters and the PID control algorithm is used to control the opening of the target pressure regulating valve.
3. The method according to claim 1, characterized in that The obtaining of the pipeline inventory of the preset gas transmission pipeline includes: Obtaining the outlet gas temperature value of the first end of the preset gas pipeline, the gas pressure value and the gas temperature value of the second end of the preset gas pipeline; The pipeline inventory is calculated based on the actual outlet pressure value, the outlet gas temperature value, the gas consumption pressure value, the gas consumption temperature value and the size parameters of the preset gas transmission pipeline.
4. The method according to claim 3, characterized in that Calculating a second opening setting parameter of the target pressure regulating valve according to the pipe inventory includes: Calculating a target gas flow rate of the target pressure regulating valve according to the pipeline inventory; The second opening setting parameter is calculated according to the target gas transmission flow rate, the actual outlet pressure value and the gas consumption pressure value.
5. The method according to claim 4, characterized in that Calculating the target gas flow rate of the target pressure regulating valve according to the pipeline inventory includes: Calculating a pipe inventory change parameter based on the pipe inventory and the historical pipe inventory of the previous control period; Calculate and adjust the gas transmission flow rate according to the pipeline inventory change parameter and the preset control period; The target gas flow rate is calculated based on the adjusted gas flow rate.
6. The method according to claim 4, characterized in that The calculating the second opening setting parameter according to the target gas transmission flow, the actual outlet pressure value, and the gas pressure value includes: Calculating the actual pressure difference according to the actual outlet pressure value and the gas pressure value; The second opening setting parameter is calculated according to the target gas flow rate, the maximum gas flow rate of the target pressure regulating valve, the actual pressure difference, the preset maximum opening of the target pressure regulating valve, and the preset adjustable ratio.
7. The method according to any one of claims 1 to 6, characterized in that: The determining of the target opening setting parameter from the first opening setting parameter and the second opening setting parameter includes: calculating a difference between the first opening setting parameter and the second opening setting parameter; If the difference is less than a preset threshold, determining the first opening setting parameter as the target opening setting parameter; If the difference is greater than or equal to the preset threshold, the second opening setting parameter is determined to be the target opening setting parameter.
8. A gas transmission control device for a natural gas distribution station, characterized in that: The control device applied to the natural gas distribution station comprises: a first acquisition module, configured to acquire an actual outlet pressure value of a first end of a preset gas pipeline, wherein the preset gas pipeline is a gas pipeline between the natural gas distribution station and the gas supply station, and the first end is an end of the preset gas pipeline connected to the natural gas distribution station; a first calculation module, configured to calculate a first opening setting parameter of a target pressure regulating valve on the preset gas transmission pipeline according to the actual outlet pressure value; A second acquisition module is used to obtain the pipeline inventory of the preset gas pipeline; a second calculation module, configured to calculate a second opening setting parameter of the target pressure regulating valve according to the pipe inventory; a determination module, configured to determine a target opening setting parameter from the first opening setting parameter and the second opening setting parameter; A control module is used to control the opening of the target pressure regulating valve according to the target opening setting parameters.
9. A computer device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor. When the computer device is running, the processor and the storage medium communicate via the bus, and the processor executes the program instructions to perform the steps of the gas transmission control method for a natural gas distribution station as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the gas transmission control method for a natural gas distribution station according to any one of claims 1 to 7 are executed.