Natural gas temperature regulating device, method, equipment and storage medium
By designing a natural gas temperature regulating device with a parallel cooling branch and a flow regulating valve, combined with a temperature sensor and a control algorithm, the problem of natural gas temperature fluctuations affecting the accuracy of metering and detection is solved, and more efficient temperature control and metering and detection accuracy are achieved.
Patent Information
- Application Number
- CN202110482288.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-30
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-04-30
AI Technical Summary
In the existing technology, during natural gas measurement and detection, natural gas temperature fluctuates due to changes in ambient temperature and natural gas flow rate, which affects the accuracy of measurement and detection, and the accuracy of adjusting the temperature through the heat exchanger is low.
A natural gas temperature regulating device is designed, including a regulating unit, a heat exchange unit and a control unit. It uses multiple parallel cooling branches and flow regulating valves, combined with temperature sensors and control algorithms (such as fuzzy PID control algorithms), to accurately control cooling. water flow to regulate natural gas temperature.
It improves the accuracy of natural gas temperature control and metering detection, ensures that the natural gas temperature is stable at the target temperature, and enhances the reliability of metering and detection.
Smart Images

Figure CN115265249B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of natural gas metering, and in particular to a natural gas temperature regulating device, method and storage medium. Background Art
[0002] Changes in ambient temperature and changes in the flow state of natural gas at different natural gas flow rates will cause changes in the temperature of natural gas. Changes in the temperature of natural gas will affect the accuracy of natural gas metering and detection. Therefore, the temperature of natural gas needs to be controlled when measuring and detecting natural gas.
[0003] In the related art, the temperature of natural gas is adjusted by installing a heat exchanger in the natural gas pipeline. However, when the temperature of natural gas changes, the accuracy of controlling the temperature of natural gas by the heat exchanger is low, which in turn affects the accuracy of natural gas measurement and detection. Summary of the invention
[0004] The embodiments of the present disclosure provide a natural gas temperature adjustment device, method, equipment and storage medium, which can improve the accuracy of natural gas temperature control, thereby improving the accuracy of natural gas measurement and detection. The technical solution is as follows:
[0005] On the one hand, a natural gas temperature regulating device is provided, the device comprising: a regulating unit, a heat exchange unit, a temperature sensor and a control unit. The regulating unit comprises a total water inlet, at least two parallel cooling branches and a total water outlet, the total water inlet and the total water outlet are respectively connected to the two ends of the at least two cooling branches, the at least two cooling branches comprise a first cooling branch and a second cooling branch, the first cooling branch and the second cooling branch have different pipe diameters, and each cooling branch is provided with a flow regulating valve of a corresponding diameter; the heat exchange unit comprises a cooling water inlet, a cooling water outlet, a natural gas inlet and a natural gas outlet, the cooling water inlet is connected to the total water outlet. The temperature sensor is located on the natural gas pipeline connected to the natural gas outlet of the heat exchange unit, and is used to detect the temperature of the natural gas after heat exchange by the heat exchange unit; the control unit is used to control the opening of each flow regulating valve in the regulating unit according to the natural gas temperature difference, so as to regulate the temperature of the natural gas, the natural gas temperature difference being the difference between the natural gas temperature detected by the temperature sensor and the target temperature.
[0006] Optionally, the control unit is used to determine the target flow regulating valve corresponding to the temperature range to which the natural gas temperature difference belongs according to the correspondence between the temperature range and the flow regulating valve; and to control the opening of the target flow regulating valve in any one of the following ways: controlling the opening of the target flow regulating valve according to the natural gas temperature difference by using a fuzzy PID control algorithm; calculating the target cooling water flow of the cooling branch corresponding to the target flow regulating valve by using a PID control algorithm according to the natural gas temperature difference, and controlling the opening of the target flow regulating valve corresponding to the target cooling water flow according to the correspondence between the cooling water flow of the cooling branch and the opening of the flow regulating valve.
[0007] Optionally, the temperature regulating device further comprises a flow meter, which is located on the cooling pipeline between the total water outlet of the regulating unit and the heat exchange unit, and is used to detect the first cooling water flow at the total water outlet of the regulating unit. The control unit is used to determine the second cooling water flow, which is the cooling water flow required to cool the natural gas to the target temperature; calculate the difference between the first cooling water flow and the second cooling water flow to obtain the cooling water flow difference; determine the target flow regulating valve corresponding to the flow range to which the cooling water flow difference belongs according to the corresponding relationship between the flow range and the flow regulating valve; and use the fuzzy PID algorithm to control the opening of the target flow regulating valve according to the cooling water flow difference.
[0008] Optionally, the temperature regulating device also includes a first pressure transmitter and a second pressure transmitter, the first pressure transmitter is used to detect the water inlet pressure at the total water inlet of the regulating unit, and the second pressure transmitter is used to detect the water outlet pressure at the total water outlet of the regulating unit; the control unit is also used to maintain the pressure difference between the water inlet pressure and the water outlet pressure within a target range by controlling the opening of the bypass valve.
[0009] On the other hand, a natural gas temperature regulation method is provided, the method comprising: obtaining the natural gas temperature detected by the temperature sensor; calculating the difference between the natural gas temperature and the target temperature to obtain the natural gas temperature difference; and controlling the opening of each flow regulating valve in the regulating unit according to the natural gas temperature difference.
[0010] Optionally, controlling the opening of each flow regulating valve in the regulating unit according to the natural gas temperature difference includes: determining a target flow regulating valve corresponding to the temperature range to which the natural gas temperature difference belongs according to the correspondence between the temperature range and the flow regulating valve; and controlling the opening of the target flow regulating valve according to the natural gas temperature difference using a fuzzy PID control algorithm.
[0011] Optionally, controlling the opening of each flow regulating valve in the regulating unit according to the natural gas temperature difference also includes: determining a target flow regulating valve corresponding to the temperature range to which the natural gas temperature difference belongs according to a correspondence between the temperature range and the flow regulating valve; calculating a target cooling water flow of the cooling branch corresponding to the target flow regulating valve by using a PID control algorithm according to the natural gas temperature difference; and controlling the opening of the target flow regulating valve corresponding to the target cooling water flow according to the correspondence between the cooling water flow of the cooling branch and the opening of the flow regulating valve.
[0012] Optionally, controlling the opening of each flow regulating valve in the regulating unit according to the natural gas temperature difference also includes: obtaining a first cooling water flow, the first cooling water flow is the cooling water flow at the total water outlet of the regulating unit; determining a second cooling water flow, the second cooling water flow is the cooling water flow required to cool the natural gas to the target temperature; calculating the difference between the first cooling water flow and the second cooling water flow to obtain a cooling water flow difference; determining a target flow regulating valve corresponding to the flow range to which the cooling water flow difference belongs according to the correspondence between the flow range and the flow regulating valve; and controlling the opening of the target flow regulating valve according to the cooling water flow difference using a fuzzy PID algorithm.
[0013] On the other hand, a natural gas temperature regulating device is provided, which includes: an acquisition module for acquiring the natural gas temperature detected by the temperature sensor; a determination module for calculating the difference between the natural gas temperature and the target temperature to obtain the natural gas temperature difference; and a control module for controlling the opening of each flow regulating valve in the regulating unit according to the natural gas temperature difference.
[0014] Optionally, the determination module is also used to determine the target flow control valve corresponding to the temperature range to which the natural gas temperature difference belongs according to the correspondence between the temperature range and the flow control valve; the control module is also used to control the opening of the target flow control valve according to the natural gas temperature difference using a fuzzy PID control algorithm.
[0015] Optionally, the determination module is also used to determine the target flow regulating valve corresponding to the temperature range to which the natural gas temperature difference belongs according to the correspondence between the temperature range and the flow regulating valve; according to the natural gas temperature difference, a PID control algorithm is used to calculate the target cooling water flow of the cooling branch corresponding to the target flow regulating valve; the control module is also used to control the opening of the target flow regulating valve corresponding to the target cooling water flow according to the correspondence between the cooling water flow of the cooling branch and the opening of the flow regulating valve.
[0016] Optionally, the acquisition module is also used to acquire a first cooling water flow rate, which is the cooling water flow rate at the total water outlet of the regulating unit; the determination module is also used to determine a second cooling water flow rate, which is the cooling water flow rate required to cool the natural gas to the target temperature; the difference between the first cooling water flow rate and the second cooling water flow rate is calculated to obtain a cooling water flow difference; according to the correspondence between the flow range and the flow regulating valve, a target flow regulating valve corresponding to the flow range to which the cooling water flow difference belongs is determined; the control module is also used to control the opening of the target flow regulating valve using a fuzzy PID algorithm based on the cooling water flow difference.
[0017] On the other hand, a computer device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the aforementioned method.
[0018] On the other hand, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of a computer device, the computer device is enabled to execute the aforementioned method.
[0019] The technical solution provided by the embodiments of the present disclosure has the following beneficial effects:
[0020] In the disclosed embodiment, the temperature regulating device of natural gas includes a regulating unit, a heat exchange unit, a temperature sensor and a control unit. Among them, the regulating unit includes at least two cooling branches in parallel. The at least two cooling branches include a first cooling branch and a second cooling branch with different pipe diameters, and each cooling branch is provided with a flow regulating valve of a corresponding diameter. In this way, when the temperature of the natural gas changes, the control unit can control the opening of the flow regulating valve with a larger diameter in the regulating unit to achieve a larger cooling water flow regulation, and control the opening of the flow regulating valve with a smaller diameter to achieve a smaller cooling water flow regulation according to the temperature difference between the natural gas temperature detected by the temperature sensor and the target temperature, thereby controlling the temperature of the natural gas at the target temperature, thereby improving the accuracy of natural gas metering. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0022] Figure 1 is a schematic diagram of a natural gas temperature regulating device provided by an embodiment of the present disclosure;
[0023] Figure 2is a schematic diagram of another natural gas temperature regulating device provided in an embodiment of the present disclosure;
[0024] Figure 3 is a flow chart of a natural gas temperature regulation method provided by an embodiment of the present disclosure;
[0025] Figure 4 is a structural block diagram of a natural gas temperature regulating device provided by an embodiment of the present disclosure;
[0026] Figure 5 It is a structural block diagram of a computer device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] In order to make the objectives, technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.
[0028] Figure 1 Schematic diagram of a natural gas temperature regulating device provided by an embodiment of the present disclosure, the temperature regulating device is used to regulate the temperature of natural gas during the process of natural gas metering and detection. Figure 1 The temperature regulating device includes: a regulating unit 10, a heat exchange unit 20, a temperature sensor 30, and a control unit 40.
[0029] The regulating unit 10 includes a total water inlet 10a, at least two parallel cooling branches 11 and a total water outlet 10b. The total water inlet 10a and the total water outlet 10b are respectively connected to the two ends of the at least two cooling branches 11. The at least two cooling branches 11 include a first cooling branch and a second cooling branch. The first cooling branch and the second cooling branch have different pipe diameters, and each cooling branch is provided with a flow regulating valve 111 of a corresponding diameter.
[0030] The at least two cooling branches 11 means that the regulating unit 10 may include two, three or more cooling branches 11. The cooling water in the cooling pipeline may enter from the main water inlet 10a of the regulating unit 10, then flow into the at least two cooling branches 11, and then flow out from the main water outlet 10b of the regulating unit 10.
[0031] The heat exchange unit 20 includes a cooling water inlet, a cooling water outlet, a natural gas inlet, and a natural gas outlet. The cooling water inlet is connected to the main water outlet 10b through a cooling water pipeline. The natural gas inlet is connected to the natural gas supply device through a natural gas pipeline, and the natural gas outlet is connected to a natural gas metering and detection device through a natural gas pipeline, and the metering and detection device is used to measure and detect the natural gas. The heat exchange unit 20 is used to cool the natural gas by exchanging the temperature between the cooling water entering the heat exchange unit 20 and the natural gas.
[0032] In a possible implementation, the cooling water outlet of the heat exchange unit is connected to the water inlet of the cooling water supply device, and the water outlet of the cooling water supply device is connected to the main water inlet 10a. The cooling water supply device includes a water pump and a chiller. The water pump is used to drive the cooling water to flow in the cooling circulation system, and the chiller is used to cool the cooling water. In this case, the cooling water adopts a closed circulation. In this way, the cooling water after heat exchange with natural gas can be recycled, thereby reducing the waste of cooling water resources.
[0033] In another possible implementation, the cooling water outlet of the heat exchange unit is connected to the cooling water tank inlet, or the cooling water outlet of the heat exchange unit directly discharges the cooling water after heat exchange with natural gas to the ground through the connected cooling water pipeline. In this case, the cooling water adopts a non-closed cycle.
[0034] The temperature sensor 30 is located on the natural gas pipeline connected to the natural gas outlet of the heat exchange unit 20. The temperature sensor 30 is used to detect the temperature of the natural gas after heat exchange in the heat exchange unit 20.
[0035] The control unit 40 is used to control the opening of each flow regulating valve 111 in the regulating unit 10 according to the natural gas temperature difference to adjust the temperature of the natural gas. The natural gas temperature difference is the difference between the natural gas temperature detected by the temperature sensor 30 and the target temperature. Optionally, the control unit 40 can also communicate with a host computer.
[0036] The target temperature refers to the temperature at which natural gas is measured and detected. The target temperature can be pre-stored in the control unit 40 , or can be modified as needed through communication between the host computer and the control unit 40 , and the modified target temperature is stored in the control unit 40 .
[0037] Exemplarily, the temperature sensor 30 is a high-precision temperature sensor, for example, a temperature sensor with an accuracy of 0.1°C or 0.01°C.
[0038] The control unit 40 includes a signal input port, a signal output port and a CPU (Central Processing Unit). The control unit 40 can receive the natural gas temperature detected by the temperature sensor 30 through the signal input port, and can output a control signal to each flow control valve 111 through the signal output port.
[0039] Optionally, the control unit 40 includes a controller such as a single chip microcomputer or a PLC (Programmable Logic Controller).
[0040] The flow control valve 111 is used to control the opening of the valve according to the control signal of the control unit 40, so as to adjust the cooling water flow through the corresponding cooling branch. The flow control valve 111 is a pneumatic flow control valve, an electric flow control valve, etc.
[0041] Since the regulating unit 10 includes two cooling branches 11 with different pipe diameters, the flow regulating valves 111 of the two cooling branches 11 have the same opening, and the cooling water flow corresponding to the flow regulating valve 111 with a larger diameter is greater than the cooling water flow corresponding to the flow regulating valve 111 with a smaller diameter. In this way, when the temperature of the natural gas changes, the control unit 40 can control the opening of the flow regulating valve 111 with a larger diameter in the regulating unit 10 to adjust the larger cooling water flow, and control the opening of the flow regulating valve 111 with a smaller diameter to adjust the smaller cooling water flow, according to the temperature difference between the natural gas temperature detected by the temperature sensor and the target temperature, thereby controlling the cooling water flow of the total water outlet 10b of the regulating unit 10, controlling the temperature of the natural gas at the target temperature, and thus improving the accuracy of natural gas metering.
[0042] Figure 2 Schematic diagram of another natural gas temperature regulating device provided by an embodiment of the present disclosure. Figure 1 The difference between the temperature control devices for natural gas shown is that Figure 2 The middle regulating unit 10 has three cooling branches 11. The three cooling branches 11 are respectively a first cooling branch, a second cooling branch and a third cooling branch. The pipe diameters of the three cooling branches 11 are different.
[0043] Assume that the diameters of the flow regulating valves 111 of the first cooling branch, the second cooling branch, and the third cooling branch are increased in sequence. When the temperature difference of the natural gas is small, the control unit 40 can control the opening of the flow regulating valve 111 of the second cooling branch or the opening of the flow regulating valve 111 of the third cooling branch to achieve a larger cooling water flow regulation, and control the opening of the flow regulating valve 111 of the first cooling branch to achieve a smaller cooling water flow regulation. When the temperature difference of the natural gas is large, the control unit 40 can control the opening of the flow regulating valve 111 of the second cooling branch and the opening of the flow regulating valve 111 of the third cooling branch to achieve a larger cooling water flow regulation, and control the opening of the flow regulating valve 111 of the first cooling branch to achieve a smaller cooling water flow regulation.
[0044] The cooling water flow required by the natural gas is adjusted through three cooling branches, so that the temperature of the natural gas can be controlled at the target temperature when the natural gas temperature difference is large or small, further improving the accuracy of natural gas metering.
[0045] Alternatively, if Figure 2As shown, a reducer 112 is provided between each cooling branch and the main water inlet 10a, and a reducer 112 is also provided between each cooling branch and the main water outlet 10b. The reducer 112 is used to reduce the diameter of the cooling pipe.
[0046] Alternatively, if Figure 2 As shown, the temperature regulating device for natural gas in the embodiment of the present disclosure further includes a flow meter 50. The flow meter 50 is located on the cooling water pipeline connected to the total water outlet 10b of the regulating unit 10, and is used to detect the first cooling water flow rate. The first cooling water flow rate is the cooling water flow rate of the total water outlet 10b of the regulating unit 10.
[0047] Exemplarily, the flow meter 50 is an ultrasonic flow meter, which emits ultrasonic energy into the detected fluid, receives the feedback ultrasonic wave, detects the flow velocity of the fluid, and then converts it into flow rate.
[0048] Alternatively, if Figure 2 As shown, the temperature regulating device of natural gas in the embodiment of the present disclosure further includes a first pressure transmitter 60 and a second pressure transmitter 61. The first pressure transmitter 60 is located on the cooling water pipeline connected to the total water inlet 10a of the regulating unit 10, and is used to detect the water inlet pressure at the total water inlet 10a of the regulating unit 10. The second pressure transmitter 61 is located on the cooling pipeline at the cooling water outlet of the total water outlet 10b of the regulating unit 10, and is used to detect the water outlet pressure at the total water outlet 10b of the regulating unit 10.
[0049] The control unit 40 is also used to maintain the pressure difference between the water inlet pressure and the water outlet pressure within the target range by controlling the opening of the bypass valve to ensure that the temperature adjustment device can operate normally. The bypass valve is located on the cooling water pipeline connected to the total water inlet 10a of the adjustment unit 10a, or on the cooling water pipeline connected to the total water outlet 10b of the adjustment unit 10. Exemplarily, the target range of the pressure difference is 0.25 to 0.35 MPa.
[0050] Alternatively, if Figure 2 As shown, the temperature regulating device for natural gas in the disclosed embodiment further includes a filter 70. The filter 70 is located on the cooling water pipeline between the total water outlet 10b of the regulating unit 10 and the flow meter 40, and is used to filter impurities in the cooling water pipeline to prevent the cooling water pipeline from being blocked and facilitate cleaning and maintenance. Exemplarily, the filter is a Y-type filter.
[0051] Optionally, when there are too many impurities in the cooling water, resulting in blockage of the cooling water pipeline, the pressure in the cooling water pipeline will change. The control unit 40 is also used to determine whether the cooling water pipeline is blocked according to the pressure signals of the first pressure transmitter 15 and the second pressure transmitter 16. When the control unit 40 cannot maintain the pressure difference between the inlet pressure and the outlet pressure within the target range by adjusting the opening of the valve of the cooling water circulation system, it is considered that the cooling water pipeline is blocked. At this time, the relevant technical personnel can be notified to handle it in time.
[0052] It should be noted that in the disclosed embodiment, the cooling water in the cooling water pipeline is clean, non-corrosive, softened water, and both the cooling water pipeline and the natural gas pipeline are insulated and protected by heat-insulating cotton, plastic pipes, and galvanized iron protective layers, which are waterproof and sun-proof, and can minimize the impact of environmental conditions on the temperature control device. In addition, the cooling water is nitrogen-sealed to prevent the cooling water from being oxidized by air, which affects the water quality of the cooling water and further affects the heat exchange efficiency of the natural gas and the cooling water.
[0053] Furthermore, in the disclosed embodiment, the cooling water used to cool the natural gas is cooling water at a certain temperature, so as to avoid the accuracy of natural gas temperature regulation being affected by changes in the cooling water temperature.
[0054] In the embodiment of the present disclosure, the control unit 40 controls the opening of each flow regulating valve in the regulating unit 10 according to the natural gas temperature difference, including the following three methods:
[0055] In the first method, the control unit 40 is used to determine the target flow control valve corresponding to the temperature range to which the natural gas temperature difference belongs according to the corresponding relationship between the temperature range and the flow control valve; according to the natural gas temperature difference, a fuzzy PID (Proportion Integration Differentiation) control algorithm is used to control the opening of the target flow control valve.
[0056] Among them, in the correspondence between the temperature range and the flow regulating valve, the flow regulating valves 111 corresponding to different temperature ranges are at least partially different. For example, each temperature range corresponds to a flow regulating valve and different temperature ranges correspond to different flow regulating valves. For another example, one temperature range corresponds to one flow regulating valve, another temperature range corresponds to two flow regulating valves, and the flow regulating valve corresponding to the one temperature range is one of the two flow regulating valves corresponding to the other temperature range. The corresponding relationship can be obtained by relevant technicians through experimental testing and then stored in the control unit 40.
[0057] The fuzzy PID control algorithm formula is as follows:
[0058]
[0059] In formula (1), K(τ) is the opening of the target flow control valve; ΔT(τ) is the natural gas temperature difference; Kp, Ki and Kd are the proportional coefficient, differential coefficient and integral coefficient of the fuzzy PID control algorithm, respectively, and the specific values of Kp, Ki and Kd are determined by experiments; ΔKp, ΔKi and ΔKd are the proportional coefficient fine-tuning amount, differential coefficient fine-tuning amount and integral coefficient fine-tuning amount of the fuzzy PID control algorithm, respectively, and the specific values of ΔKp, ΔKi and ΔKd are obtained by fuzzy rules.
[0060] The input variables of the fuzzy rules are the natural gas temperature difference ΔT(τ) and the rate of change of the natural gas temperature difference dΔT(τ) / dτ, and the output variables are ΔKp, ΔKi, and ΔKd. The fuzzy sets of input variables and output variables are set as {NB, NM, NS, ZO, PS, PM, PB}, and the elements in the fuzzy sets represent negative large, negative medium, negative small, zero, positive small, positive medium, and positive large, respectively. The fuzzy rules of ΔKp, ΔKi, and ΔKd are shown in Tables 1, 2, and 3, respectively.
[0061] Table 1: ΔKp fuzzy rule table
[0062]
[0063] Table 2: ΔKi fuzzy rule table
[0064]
[0065] Table 3: ΔKd fuzzy rule table
[0066]
[0067]
[0068] The fuzzy rules are specifically formulated by relevant technical personnel and stored in the control unit 40. The control unit 40 looks up the fuzzy rule tables in Table 1, Table 2 and Table 3 to obtain the corresponding ΔKp, ΔKi and ΔKd values according to the natural gas temperature difference ΔT(τ) and the rate of change of the natural gas temperature difference dΔT(τ) / dτ.
[0069] Exemplarily, when the natural gas temperature difference ΔT(τ) is PM and the natural gas temperature difference change rate dΔT(τ) / dτ is PS, looking up Table 1 can obtain ΔKp as NM, looking up Table 2 can obtain Δki as PM, and looking up Table 3 can obtain ΔKd as PS.
[0070] for Figure 1In the case shown, the temperature range includes a first temperature range and a second temperature range. The first temperature range is [T1, T0), and the second temperature range is (0, T1). T0 represents the natural gas temperature difference corresponding to when the flow control valve 111 of the second cooling branch reaches the regulation limit. T1 represents the natural gas temperature difference corresponding to when the flow control valve 111 of the first cooling branch reaches the regulation limit.
[0071] When the natural gas temperature difference is within the first temperature range, it indicates that the natural gas temperature has a large difference with the target temperature, and the target flow control valve corresponding to the temperature range is the flow control valve 111 of the second cooling branch. Since the diameter of the flow control valve 111 of the second cooling branch is larger than the diameter of the flow control valve 111 of the first cooling branch, the control unit 40 controls the opening of the flow control valve 111 of the second cooling branch, and can achieve a larger cooling water flow rate, thereby accelerating the temperature regulation of the natural gas.
[0072] When the natural gas temperature difference is in the second temperature range, it means that the difference between the natural gas temperature and the target temperature is small, and the target flow regulating valve corresponding to the temperature range is the flow regulating valve 111 of the first cooling branch. The control unit 40 controls the opening of the flow regulating valve of the first cooling branch to achieve a smaller cooling water flow regulation, thereby more finely regulating the temperature of the natural gas.
[0073] The control unit 40 controls the opening of the flow regulating valve 111 of the second cooling branch in real time according to the aforementioned fuzzy PID control algorithm formula (1) in response to the natural gas temperature difference being in the first temperature range. In the process of controlling the opening of the flow regulating valve 111 of the second cooling branch, the control unit 40 controls the opening of the flow regulating valve 111 of the first cooling branch in real time according to the aforementioned fuzzy PID control algorithm formula (1) in response to the natural gas temperature difference being in the second temperature range.
[0074] for Figure 2 In the case shown, the temperature range includes a first temperature range, a second temperature range, a third temperature range and a fourth temperature range. The first temperature range is [T1, T0), the second temperature range is [T2, T1), the third temperature range is [T3, T2), and the fourth temperature range is (0, T3). T0 represents the natural gas temperature difference corresponding to when the flow regulating valve 111 of the third cooling branch and the flow regulating valve 111 of the second cooling branch both reach the regulation limit, T1 represents the natural gas temperature difference corresponding to when the flow regulating valve 111 of the third cooling branch reaches the regulation limit, T2 represents the natural gas temperature difference corresponding to when the flow regulating valve 111 of the second cooling branch reaches the regulation limit, and T3 represents the natural gas temperature difference corresponding to when the flow regulating valve 111 of the first cooling branch reaches the regulation limit.
[0075] When the natural gas temperature difference is within the first temperature range, it indicates that the natural gas temperature is significantly different from the target temperature, and the cooling water flow required by the natural gas exceeds the adjustment threshold of the flow regulating valve 111 of the third cooling branch. The target flow regulating valves corresponding to the temperature range are the flow regulating valve 111 of the second cooling branch and the flow regulating valve 111 of the third cooling branch.
[0076] When the natural gas temperature difference is within the second temperature range, it means that the cooling water flow rate required by the natural gas at this time exceeds the adjustment threshold of the flow regulating valve 111 of the second cooling branch, but is within the adjustment threshold range of the flow regulating valve 111 of the third cooling branch. The target flow regulating valve corresponding to this temperature range is the flow regulating valve 111 of the third cooling branch.
[0077] When the natural gas temperature difference is within the third temperature range, it means that the cooling water flow required by the natural gas is within the adjustment threshold range of the flow control valve 111 of the second cooling branch. The target flow control valve corresponding to this temperature range is the flow control valve 111 of the third cooling branch.
[0078] When the natural gas temperature difference is within the fourth temperature range, it means that the cooling water flow required by the natural gas is within the adjustment threshold range of the flow regulating valve 111 of the first cooling branch. The target flow regulating valve corresponding to this temperature range is the flow regulating valve 111 of the first cooling branch.
[0079] The control unit 40 responds to the natural gas temperature difference being in the first temperature range, presets the opening of the flow control valve 111 of the third cooling branch according to the natural gas temperature difference, and then controls the opening of the flow control valve 111 of the second cooling branch according to the aforementioned fuzzy PID control algorithm formula (1). In the process of controlling the opening of the flow control valve 111 of the second cooling branch and the opening of the flow control valve 111 of the third cooling branch, the control unit responds to the natural gas temperature difference being in the fourth temperature range, and controls the opening of the flow control valve 111 of the first cooling branch according to the aforementioned fuzzy PID control algorithm formula (1).
[0080] The control unit 40 presets the flow regulating valve 111 of the third cooling branch to a certain opening according to the natural gas temperature difference, so that the natural gas temperature difference is within the adjustment range of the flow regulating valve 111 of the second cooling branch. The opening is measured by relevant technicians through experiments and then stored in the control unit 40. For example, the preset opening of the flow regulating valve 111 of the third cooling branch can be 50%, 60%, etc.
[0081] The control unit 40 controls the opening of the flow regulating valve 111 of the third cooling branch according to the aforementioned fuzzy PID control algorithm formula (1) in response to the natural gas temperature difference being in the second temperature range. In the process of controlling the opening of the flow regulating valve 111 of the third cooling branch, the control unit 40 controls the opening of the flow regulating valve 111 of the first cooling branch according to the aforementioned fuzzy PID control algorithm formula (1) in response to the natural gas temperature difference being in the fourth temperature range.
[0082] In response to the natural gas temperature difference being in the third temperature range, the control unit 40 controls the opening of the flow control valve 111 of the second cooling branch according to the aforementioned fuzzy PID control algorithm formula (1). In the process of controlling the opening of the flow control valve 111 of the second cooling branch, the control unit 40 controls the opening of the flow control valve 111 of the first cooling branch according to the aforementioned fuzzy PID control algorithm formula (1) in response to the natural gas temperature difference being in the fourth temperature range.
[0083] Through the first natural gas temperature regulation method, when the temperature of natural gas changes and the temperature of natural gas is far away from the target temperature, the opening of the flow regulating valve with a larger diameter is controlled to achieve rough regulation of the cooling water flow. In the process of controlling the opening of the flow regulating valve with a larger diameter, when the temperature of natural gas is far away from the target temperature, the opening of the flow regulating valve with a smaller diameter is controlled to achieve fine regulation of the cooling water flow. In this way, the temperature of natural gas is stabilized at the target temperature to a large extent, and the accuracy of natural gas measurement and detection is improved.
[0084] In the second method, the control unit 40 is used to determine the target flow regulating valve corresponding to the temperature range to which the natural gas temperature difference belongs according to the correspondence between the temperature range and the flow regulating valve; according to the natural gas temperature difference, a PID control algorithm is used to calculate the target cooling water flow of the cooling branch corresponding to the target flow regulating valve; according to the correspondence between the cooling water flow of the cooling branch and the opening of the flow regulating valve, the opening of the target flow regulating valve corresponding to the target cooling water flow is controlled.
[0085] The corresponding relationship between the temperature range and the flow control valve is the same as described above, and the detailed description is omitted here.
[0086] The PID control algorithm is as follows:
[0087]
[0088] In formula (2), Q(τ) is the target cooling water flow rate; ΔT(τ) is the natural gas temperature difference; Kp, Ki and Kd are the proportional coefficient, differential coefficient and integral coefficient of the PID control algorithm respectively, and the specific values of Kp, Ki and Kd are determined by experiments.
[0089] Through the PID control algorithm, when there is a difference between the natural gas temperature and the target temperature, the control unit 40 can calculate the target cooling water flow of the cooling branch corresponding to the target flow regulating valve in real time according to the natural gas temperature difference.
[0090] Exemplarily, the corresponding relationship between the cooling water flow rate of the cooling branch and the opening of the flow regulating valve is:
[0091]
[0092] In formula (3), Qmax is the maximum cooling water flow rate that can be controlled by the flow control valve 111; R is the ratio Qmin of the maximum cooling water flow rate that can be controlled by the flow control valve to the minimum cooling water flow rate; Lmax is the maximum opening of the flow control valve 111, and L is the real-time opening of the flow control valve. Qmax, Qmin and Lmax are known values measured experimentally, and the Qmax, Qmin and Lmax values of flow control valves 111 of different diameters are different.
[0093] The corresponding relationship between the cooling water flow rate of the cooling branch and the opening of the flow regulating valve is pre-stored in the control unit 40. When the target cooling water flow rate of the cooling branch is determined, the control unit can determine the opening of the target flow regulating valve corresponding to the target cooling water flow rate according to formula (3) to adjust the temperature of the natural gas in real time.
[0094] for Figure 1 In the case shown, the temperature range and the corresponding relationship between the temperature range and the flow control valve are the same as those in the first embodiment, and detailed description is omitted here.
[0095] The control unit 40 calculates the target cooling water flow of the second cooling branch according to the aforementioned PID control algorithm formula (2) in response to the natural gas temperature difference within the first temperature range, and controls the opening of the flow regulating valve 111 of the second cooling branch according to the target cooling water flow of the second cooling branch and formula (3).
[0096] In the process of controlling the opening of the flow regulating valve 111 of the second cooling branch, the control unit 40 responds to the natural gas temperature difference in the second temperature range, calculates the target cooling water flow of the first cooling branch according to the aforementioned PID control algorithm formula (2), and controls the opening of the flow regulating valve 111 of the first cooling branch according to the target cooling water flow of the first cooling branch and formula (3).
[0097] for Figure 2 In the case shown, the temperature range and the corresponding relationship between the temperature range and the flow control valve are the same as those in the first embodiment described above, and detailed description is omitted here.
[0098] The control unit 40 responds to the natural gas temperature difference in the first temperature range, presets the opening of the flow regulating valve 111 of the third cooling branch according to the natural gas temperature difference, then calculates the target cooling water flow of the second cooling branch according to the aforementioned PID control algorithm formula (2), and controls the opening of the flow regulating valve 111 of the second cooling branch according to the target cooling water flow of the second cooling branch and formula (3).
[0099] Among them, the relevant contents of presetting the opening degree of the flow regulating valve 111 of the third cooling branch according to the natural gas temperature difference refer to the aforementioned first method, and the detailed description is omitted here.
[0100] In the process of controlling the opening of the flow regulating valve 111 of the second cooling branch and the opening of the flow regulating valve 111 of the third cooling branch, the control unit calculates the target cooling water flow of the first cooling branch according to the aforementioned PID control algorithm formula (2) in response to the natural gas temperature difference in the fourth temperature range, and controls the opening of the flow regulating valve 111 of the first cooling branch according to the target cooling water flow of the first cooling branch and formula (3).
[0101] The control unit 40 responds to the natural gas temperature difference in the second temperature range, calculates the target cooling water flow of the third cooling branch according to the aforementioned PID control algorithm formula (2), and controls the opening of the flow regulating valve 111 of the third cooling branch according to the target cooling water flow of the third cooling branch and formula (3).
[0102] In the process of controlling the opening of the flow regulating valve 111 of the third cooling branch, the control unit 40 calculates the target cooling water flow of the first cooling branch according to the aforementioned PID control algorithm formula (2) in response to the natural gas temperature difference in the fourth temperature range, and controls the opening of the flow regulating valve 111 of the first cooling branch according to the target cooling water flow of the first cooling branch and formula (3).
[0103] The control unit 40 calculates the target cooling water flow of the second cooling branch according to the aforementioned PID control algorithm formula (2) in response to the natural gas temperature difference being in the third temperature range, and calculates the opening of the flow regulating valve 111 of the second cooling branch according to the target cooling water flow of the second cooling branch and formula (3).
[0104] In the process of controlling the opening of the flow regulating valve 111 of the second cooling branch, the control unit 40 calculates the target cooling water flow of the first cooling branch according to the aforementioned PID control algorithm formula (2) in response to the natural gas temperature difference in the fourth temperature range, and controls the opening of the flow regulating valve 111 of the first cooling branch according to the target cooling water flow of the first cooling branch and formula (3).
[0105] Through the second natural gas temperature regulation method, when the natural gas temperature changes and the temperature of the natural gas is far away from the target temperature, the opening of the flow regulating valve with a larger diameter is controlled to achieve a rough regulation of the cooling water flow. In the process of controlling the opening of the flow regulating valve with a larger diameter, when the temperature of the natural gas is far away from the target temperature, the opening of the flow regulating valve with a smaller diameter is controlled to achieve a fine regulation of the cooling water flow. In this way, the temperature of the natural gas is stabilized at the target temperature to a large extent, and the accuracy of natural gas measurement and detection is improved.
[0106] In the third method, the control unit 40 is used to obtain a first cooling water flow rate; determine a second cooling water flow rate, the second cooling water flow rate being the cooling water flow rate required to cool the natural gas to a target temperature; calculate the difference between the first cooling water flow rate and the second cooling water flow rate to obtain a cooling water flow difference; determine a target flow regulating valve corresponding to a flow range to which the cooling water flow difference belongs based on a correspondence between a flow range and a flow regulating valve; and control the opening of the target flow regulating valve based on the cooling water flow difference using a fuzzy PID control algorithm.
[0107] The control unit 40 can determine the second cooling water flow rate according to the corresponding relationship between the temperature difference of the natural gas and the second cooling water flow rate, which is experimentally measured by relevant technicians and then stored in the control unit 40. Optionally, the control unit 40 can also directly calculate the second cooling water flow rate using formula (4).
[0108] Formula (4) is as follows:
[0109]
[0110] In formula (4), Q is the second cooling water flow rate, c is the specific heat capacity of the cooling water, ΔT1 is the temperature difference of the cooling water, and P is the cooling capacity required to cool the natural gas to the target temperature.
[0111] Among them, the temperature difference ΔT1 of the cooling water is the difference between the cooling water temperature at the cooling water inlet of the heat exchange unit 20 and the cooling water temperature at the cooling water outlet of the heat exchange unit 20. The temperature difference can be obtained by temperature sensors respectively arranged at the cooling water inlet of the heat exchange unit 20 and the cooling water outlet of the heat exchange unit 20.
[0112] The cooling capacity P required to cool the natural gas to the target temperature can be calculated by P=c1*m*ΔT, where c1 is the specific heat capacity of the natural gas, m is the mass of the natural gas, and ΔT is the temperature difference of the natural gas. The mass m of the natural gas can be directly measured by a mass flow meter, which is located on the natural gas pipeline connected to the natural gas outlet of the heat exchange unit 20.
[0113] In the correspondence between the cooling water flow range and the flow regulating valve, different flow ranges correspond to opening different flow regulating valves 111 to adjust the temperature of the natural gas. The correspondence can be obtained by relevant technicians through testing and then stored in the control unit 40.
[0114] The fuzzy PID control algorithm formula is as follows:
[0115]
[0116] In formula (5), K(τ) is the opening of the target flow control valve; ΔQ(τ) is the cooling water temperature difference; Kp, Ki and Kd are the proportional coefficient, differential coefficient and integral coefficient of the fuzzy PID control algorithm, respectively, and the specific values of Kp, Ki and Kd are determined by experiments; ΔKp, ΔKi and ΔKd are the proportional coefficient gain, differential coefficient gain and integral coefficient gain of the fuzzy PID control algorithm, respectively, and the specific values of ΔKp, ΔKi and ΔKd are obtained by fuzzy rules. The formulation of fuzzy rules is the same as the above content, and the detailed description is omitted here.
[0117] for Figure 1 In the case shown, the flow range includes a first flow range and a second flow range. The first flow range is [Q1, Q0), and the second flow range is (0, Q1). Q0 represents the cooling water flow difference corresponding to when the flow regulating valve 111 of the second cooling branch reaches the regulation limit. Q1 represents the cooling water flow difference corresponding to when the flow regulating valve 111 of the first cooling branch reaches the regulation limit.
[0118] When the cooling water flow difference is in the first flow range, it means that the difference between the first cooling water flow and the second cooling water flow is large, and the target flow regulating valve corresponding to the flow range is the flow regulating valve 111 of the second cooling branch. Since the diameter of the flow regulating valve 111 of the second cooling branch is larger than the diameter of the flow regulating valve 111 of the first cooling branch, the control unit 40 controls the opening of the flow regulating valve 111 of the second cooling branch, which can achieve the regulation of a larger cooling water flow, thereby accelerating the temperature regulation of the natural gas.
[0119] When the cooling water flow difference is in the second flow range, it means that the difference between the first cooling water flow and the second cooling water flow is small, and the target flow regulating valve corresponding to the flow range is the flow regulating valve 111 of the first cooling branch. The control unit 40 controls the opening of the flow regulating valve of the first cooling branch to achieve a smaller cooling water flow regulation, thereby more finely adjusting the temperature of the natural gas.
[0120] The control unit 40 controls the opening of the flow regulating valve 111 of the second cooling branch according to the aforementioned fuzzy PID control algorithm formula (5) in response to the cooling water flow difference being in the first flow range. In the process of controlling the opening of the flow regulating valve 111 of the second cooling branch, the control unit 40 controls the opening of the flow regulating valve 111 of the first cooling branch according to the aforementioned fuzzy PID control algorithm formula (5) in response to the cooling water flow difference being in the second flow range.
[0121] for Figure 2 In the case shown, the flow range includes a first flow range, a second flow range, a third flow range and a fourth flow range. Among them, the first flow range is [Q1, Q0), the second flow range is [Q2, Q1), the third flow range is [Q3, Q2), and the fourth flow range is (0, Q3). Q0 represents the cooling water flow difference corresponding to when the flow regulating valve 111 of the second cooling branch and the flow regulating valve 111 of the third cooling branch both reach the regulation limit, Q1 represents the cooling water flow difference corresponding to when the flow regulating valve 111 of the third cooling branch reaches the regulation limit, Q2 represents the cooling water flow difference corresponding to when the flow regulating valve 111 of the second cooling branch reaches the regulation limit, and Q3 represents the cooling water flow difference corresponding to when the flow regulating valve 111 of the first cooling branch reaches the regulation limit.
[0122] When the cooling water flow difference is in the first flow range, it means that the difference between the first cooling water flow and the second cooling water flow is large, and at this time the second cooling water flow exceeds the adjustment threshold of the flow regulating valve 111 of the third cooling branch. The target flow regulating valves corresponding to the flow range are the flow regulating valve 111 of the second cooling branch and the flow regulating valve 111 of the third cooling branch.
[0123] When the cooling water flow difference is in the second flow range, it means that the second cooling water flow exceeds the regulation threshold of the flow regulating valve 111 of the second cooling branch, but is within the regulation threshold range of the flow regulating valve 111 of the third cooling branch. The target flow regulating valve corresponding to the flow range is the flow regulating valve 111 of the third cooling branch.
[0124] When the cooling water flow difference is within the third flow range, it means that the second cooling water flow is within the adjustment threshold range of the flow regulating valve 111 of the second cooling branch. The target flow regulating valve corresponding to the flow range is the flow regulating valve 111 of the third cooling branch.
[0125] When the cooling water flow difference is within the fourth flow range, it means that the second cooling water flow is within the adjustment threshold range of the flow regulating valve 111 of the first cooling branch. The target flow regulating valve corresponding to the flow range is the flow regulating valve 111 of the first cooling branch.
[0126] In response to the cooling water flow difference being in the first flow range, the control unit 40 presets the opening of the flow regulating valve 111 of the third cooling branch according to the cooling water flow difference, and then controls the opening of the flow regulating valve 111 of the second cooling branch according to the fuzzy PID control algorithm formula (5). In the process of controlling the opening of the flow regulating valve 111 of the second cooling branch and the opening of the flow regulating valve 111 of the third cooling branch, the control unit 40 controls the opening of the flow regulating valve 111 of the first cooling branch according to the aforementioned fuzzy PID control algorithm formula (5) in response to the cooling water flow difference being in the fourth flow range.
[0127] The control unit 40 presets the flow regulating valve 111 of the third cooling branch to a certain opening according to the cooling water flow difference, so that the cooling water flow difference is within the adjustment range of the flow regulating valve 111 of the second cooling branch. The opening is measured by relevant technicians through experiments and then stored in the control unit 40. For example, the preset opening of the flow regulating valve 111 of the third cooling branch can be 50%, 60%, etc.
[0128] In this adjustment process, if the flow regulating valve 111 of the first cooling branch reaches the maximum opening, according to the substitution relationship between the change in the opening of the flow regulating valve 111 of the first cooling branch and the change in the opening of the flow regulating valve 111 of the third cooling branch, the opening of the flow regulating valve 111 of the first cooling branch is reduced, and the opening of the regulating valve 111 of the third cooling branch is increased. The cooling water flow corresponding to the decrease in the opening of the flow regulating valve 111 of the first cooling branch and the change in the opening of the flow regulating valve 111 of the third cooling branch are The cooling water flow rate corresponding to the increase in the opening degree is the same; or, according to the substitution relationship between the change in the opening degree of the flow regulating valve 111 of the first cooling branch and the change in the opening degree of the flow regulating valve 111 of the second cooling branch, the opening degree of the flow regulating valve 111 of the first cooling branch is reduced, and the opening degree of the regulating valve 111 of the second cooling branch is increased, and the cooling water flow rate corresponding to the decrease in the opening degree of the flow regulating valve 111 of the first cooling branch is the same as the cooling water flow rate corresponding to the increase in the opening degree of the flow regulating valve 111 of the second cooling branch.
[0129] In this way, when the natural gas temperature changes subsequently, the opening of the flow regulating valve 111 of the first cooling branch can continue to be controlled to achieve regulation of a smaller cooling water flow.
[0130] Under the same working conditions such as pressure, the cooling water flow rate of different cooling branches 11 is proportional to the square of the diameter of the corresponding flow regulating valve 111, that is, Q = K*D 2Where D is the diameter of the flow control valve 111, Q is the cooling water flow corresponding to the diameter of the flow control valve 111, and K is the proportionality coefficient. Assuming that the diameters of the two cooling branches 11 are D1 and D2, the corresponding cooling water flows are K*D1. 2 and K*D2 2 Therefore, the substitution relationship between the opening changes of the corresponding flow regulating valves 111 under the same cooling water flow rate of different cooling branches 11 can be established as T1 / T2=D1 2 / D2 2 , T1 is the change in the opening degree of the flow control valve 111 with a diameter of D1, and T2 is the change in the opening degree of the flow control valve 111 with a diameter of D2.
[0131] For example, when the flow control valve 111 with a diameter of 100 mm is 100% open, it is necessary to increase the opening by 1%, so that the opening of the flow control valve 111 with a diameter of 200 mm can be controlled to increase by 1%. According to the aforementioned substitution relationship of the change in the opening of different flow control valves 111, it is equivalent to controlling the opening of the flow control valve 111 with a diameter of 100 mm to increase by 4%. Therefore, the opening of the flow control valve 111 with a diameter of 100 mm is reduced by 3%.
[0132] The control unit 40 controls the opening of the flow regulating valve 111 of the third cooling branch according to the aforementioned fuzzy PID control algorithm formula (5) in response to the cooling water flow difference being in the second flow range. In the process of controlling the opening of the flow regulating valve of the third cooling branch, the control unit 40 controls the opening of the flow regulating valve 111 of the first cooling branch according to the aforementioned fuzzy PID control algorithm formula (5) in response to the cooling water flow difference being in the fourth flow range.
[0133] In this regulation process, if the flow regulating valve 111 of the first cooling branch reaches the maximum opening, according to the substitution relationship between the change in the opening of the flow regulating valve 111 of the first cooling branch and the change in the opening of the flow regulating valve 111 of the third cooling branch, the opening of the flow regulating valve 111 of the first cooling branch is reduced, and the opening of the regulating valve 111 of the third cooling branch is increased. The cooling water flow corresponding to the reduction in the opening of the flow regulating valve 111 of the first cooling branch is the same as the cooling water flow corresponding to the increase in the opening of the flow regulating valve 111 of the third cooling branch. In this way, when the natural gas temperature changes subsequently, the opening of the flow regulating valve 111 of the first cooling branch can continue to be controlled to achieve the regulation of a smaller cooling water flow.
[0134] In response to the cooling water flow difference being in the third flow range, the control unit 40 controls the opening of the flow regulating valve 111 of the second cooling branch according to the aforementioned fuzzy PID control algorithm formula (5). In the process of controlling the opening of the flow regulating valve 111 of the second cooling branch, the control unit 40 controls the opening of the flow regulating valve 111 of the first cooling branch according to the aforementioned fuzzy PID control algorithm formula (5) in response to the cooling water flow difference being in the fourth flow range.
[0135] In this regulation process, if the flow regulating valve 111 of the first cooling branch reaches the maximum opening, according to the substitution relationship between the change in the opening of the flow regulating valve 111 of the first cooling branch and the change in the opening of the flow regulating valve 111 of the second cooling branch, the opening of the flow regulating valve 111 of the first cooling branch is reduced, and the opening of the regulating valve 111 of the second cooling branch is increased. The cooling water flow corresponding to the reduction in the opening of the flow regulating valve 111 of the first cooling branch is the same as the cooling water flow corresponding to the increase in the opening of the flow regulating valve 111 of the second cooling branch. In this way, when the natural gas temperature changes subsequently, the opening of the flow regulating valve 111 of the first cooling branch can continue to be controlled to achieve the regulation of a smaller cooling water flow.
[0136] Through the third natural gas temperature regulation method, when the temperature of natural gas changes and the difference between the first cooling water flow rate and the second cooling water flow rate is large, the opening of the flow regulating valve with a larger diameter is controlled to achieve rough regulation of the cooling water flow rate. In the process of controlling the opening of the flow regulating valve with a larger diameter, when the difference between the first cooling water flow rate and the second cooling water flow rate is small, the opening of the flow regulating valve with a smaller diameter is controlled to achieve fine regulation of the cooling water flow rate. In this way, the temperature of natural gas is stabilized at the target temperature to a large extent, and the accuracy of natural gas measurement and detection is improved.
[0137] It should be noted that when the natural gas temperature difference is a negative value, the natural gas temperature is less than the target temperature, and each flow regulating valve 111 in the regulating unit 10 is closed, and the natural gas temperature is not regulated. After the natural gas temperature difference returns to a positive value, the natural gas temperature is regulated again according to any one of the methods 1, 2, and 3.
[0138] Optionally, in the embodiment of the present disclosure, the regulating unit 10 includes N cooling branches 11, N is an integer greater than 3, and the diameters of the N cooling branches 11 are different. A more detailed correspondence between the temperature range and the flow regulating valve 111 or a correspondence between the flow range and the flow regulating valve 111 can be established, and any of the first, second or third methods described above can be used to more accurately regulate the temperature of the natural gas.
[0139] Figure 3A natural gas temperature regulation method provided by the embodiment of the present disclosure is applied to Figure 1 or Figure 2 The natural gas temperature regulating device shown in the figure can be Figure 1 or Figure 2 The control unit 40 in FIG. Figure 3 , the method comprising:
[0140] In step 301, the natural gas temperature detected by the temperature sensor is obtained.
[0141] The natural gas temperature detected by the temperature sensor is the temperature of the natural gas after heat exchange in the heat exchange unit.
[0142] In step 302, the difference between the natural gas temperature detected by the temperature sensor and the target temperature is calculated to obtain the natural gas temperature difference.
[0143] For more information on target temperature, see Figure 1 The detailed description of the embodiment shown is omitted here.
[0144] In step 303, the opening of each flow regulating valve in the regulating unit is controlled according to the natural gas temperature difference.
[0145] Ideally, the natural gas temperature can be cooled to the target temperature by controlling the opening of the flow control valve of only one cooling branch to adjust the cooling water flow of the total water outlet of the regulating unit. However, in reality, due to changes in ambient temperature and natural gas flow, the temperature of the natural gas after heat exchange in the heat exchanger is also constantly changing. In addition, when the natural gas temperature difference is small, controlling the opening of the flow control valve of one cooling branch will result in excessive cooling of the natural gas temperature. Therefore, the natural gas temperature cannot be cooled to the preset temperature only by controlling the opening of the flow control valve of one cooling branch.
[0146] When the natural gas temperature difference is large, the difference between the natural gas temperature and the target temperature is large, and the cooling water flow required to cool the natural gas to the target temperature is large. When the natural gas temperature difference is small, the difference between the natural gas temperature and the target temperature is small, and the cooling water flow required to cool the natural gas to the target temperature is small. According to the size of the natural gas temperature difference, when the natural gas temperature difference is large, the flow control valve with a larger diameter in the control unit can be controlled to adjust a larger cooling water flow; when the natural gas temperature difference is small, the flow control valve with a smaller diameter in the control unit can be controlled to adjust a smaller cooling water flow, so that the cooling water flow at the total outlet of the control unit can cool the natural gas to the target temperature, thereby improving the accuracy of natural gas metering detection.
[0147] The control unit controls the opening of each flow regulating valve in the regulating unit according to the natural gas temperature difference. Figure 2 The detailed description of the related embodiments is omitted here.
[0148] Figure 4 4 is a structural block diagram of a natural gas temperature regulating device 400 provided in an embodiment of the present disclosure. Figure 4 As shown, the device includes: an acquisition module 401, a determination module 402 and a control module 403.
[0149] The acquisition module 401 is used to acquire the natural gas temperature detected by the temperature sensor. The determination module 402 is used to calculate the difference between the natural gas temperature and the target temperature to obtain the natural gas temperature difference. The control module 403 is used to control the opening of each flow regulating valve in the regulating unit according to the natural gas temperature difference.
[0150] Optionally, the determination module 402 is further configured to determine the target flow control valve corresponding to the temperature range to which the natural gas temperature difference belongs according to the corresponding relationship between the temperature range and the flow control valve. The control module 403 is further configured to control the opening of the target flow control valve using a fuzzy PID control algorithm according to the natural gas temperature difference.
[0151] Optionally, the determination module 402 is further used to determine the target flow regulating valve corresponding to the temperature range to which the natural gas temperature difference belongs according to the corresponding relationship between the temperature range and the flow regulating valve; and to calculate the target cooling water flow of the cooling branch corresponding to the target flow regulating valve using a PID control algorithm according to the natural gas temperature difference. The control module 403 is further used to control the opening of the target flow regulating valve corresponding to the target cooling water flow according to the corresponding relationship between the cooling water flow of the cooling branch and the opening of the flow regulating valve.
[0152] Optionally, the acquisition module 401 is also used to acquire a first cooling water flow rate, which is the cooling water flow rate at the total water outlet of the regulating unit. The determination module 402 is also used to determine a second cooling water flow rate, which is the cooling water flow rate required to cool the natural gas to the target temperature; calculate the difference between the first cooling water flow rate and the second cooling water flow rate to obtain a cooling water flow difference; and determine a target flow regulating valve corresponding to the flow range to which the cooling water flow difference belongs according to the correspondence between the flow range and the flow regulating valve. The control module 403 is also used to control the opening of the target flow regulating valve using a fuzzy PID algorithm according to the cooling water flow difference.
[0153] It should be noted that: the temperature regulating device 400 for natural gas provided in the above embodiment only uses the division of the above functional modules as an example to illustrate when regulating the temperature of natural gas. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the temperature regulating device 400 for natural gas provided in the above embodiment and the embodiment of the temperature regulating method for natural gas belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0154] Figure 5 is a structural block diagram of a computer device provided by an embodiment of the present disclosure. Figure 5 As shown, the device includes: a processor 501 and a memory 502.
[0155] The processor 501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 501 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 501 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 501 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0156] The memory 502 may include one or more computer-readable storage media, which may be non-transitory. The memory 502 may also include a high-speed random access memory and a non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 502 is used to store at least one instruction, which is used to be executed by the processor 501 to implement the natural gas temperature regulation method provided in the embodiments of the present application.
[0157] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine some components, or adopt a different component arrangement.
[0158] The embodiment of the present invention also provides a non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the computer device, the computer device can execute Figure 3 The embodiment provides a method for regulating the temperature of natural gas.
[0159] A computer program product containing instructions that, when executed on a computer, causes the computer to perform Figure 3 The embodiment provides a method for regulating the temperature of natural gas.
[0160] The above description is only an optional embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A natural gas temperature regulating device, characterized in that: The device comprises: a regulating unit (10), a heat exchange unit (20), a temperature sensor (30), a flow meter (50) and a control unit (40); The regulating unit (10) comprises a total water inlet (10a), at least two cooling branches (11) connected in parallel, and a total water outlet (10b); the total water inlet (10a) and the total water outlet (10b) are respectively connected to two ends of the at least two cooling branches (11); the at least two cooling branches (11) comprise a first cooling branch and a second cooling branch; the first cooling branch and the second cooling branch have different pipe diameters; each cooling branch (11) is provided with a flow regulating valve (111) of a corresponding diameter; the flow regulating valve (111) of the second cooling branch has a larger diameter than the flow regulating valve (111) of the first cooling branch; The heat exchange unit (20) comprises a cooling water inlet, a cooling water outlet, a natural gas inlet and a natural gas outlet, and the cooling water inlet is connected to the main water outlet (10b); The temperature sensor (30) is located on a natural gas pipeline connected to the natural gas outlet of the heat exchange unit (20), and is used to detect the temperature of the natural gas after heat exchange in the heat exchange unit (20); The temperature regulating device further comprises a flow meter (50), the flow meter (50) being located on the cooling pipeline between the total water outlet (10b) of the regulating unit (10) and the heat exchange unit (20), and being used for detecting a first cooling water flow at the total water outlet (10b) of the regulating unit (10); The control unit (40) is used to determine a target flow regulating valve corresponding to a temperature range to which a natural gas temperature difference belongs, according to a corresponding relationship between a temperature range and a flow regulating valve, the temperature range comprising a first temperature range and a second temperature range, when the natural gas temperature difference is within the first temperature range, it indicates that the difference between the natural gas temperature and the target temperature is large, and the target flow regulating valve is the flow regulating valve (111) of the second cooling branch, and when the natural gas temperature difference is within the second temperature range, it indicates that the difference between the natural gas temperature and the target temperature is small, and the target flow regulating valve is the flow regulating valve (111) of the first cooling branch; according to the natural gas temperature difference, a fuzzy PID control algorithm is used to control the opening of the target flow regulating valve; or, according to the natural gas temperature difference, a PID control algorithm is used to calculate a target cooling water flow of the cooling branch corresponding to the target flow regulating valve, and according to a corresponding relationship between the cooling water flow of the cooling branch and the opening of the flow regulating valve, the opening of the target flow regulating valve corresponding to the target cooling water flow is controlled to adjust the temperature of the natural gas, the natural gas temperature difference being the difference between the natural gas temperature detected by the temperature sensor (30) and the target temperature; Alternatively, the control unit (40) is used to determine a second cooling water flow rate, the second cooling water flow rate being the cooling water flow rate required to cool the natural gas to a target temperature; calculate the difference between the first cooling water flow rate and the second cooling water flow rate to obtain the cooling water flow rate difference; determine a target flow rate regulating valve corresponding to the flow range to which the cooling water flow rate difference belongs based on a correspondence between a flow range and a flow rate regulating valve, the flow range comprising a first flow range and a second flow range, when the cooling water flow rate difference is within the first flow range, it indicates that the difference between the first cooling water flow rate and the second cooling water flow rate is large, and the target flow rate regulating valve is the flow rate regulating valve (111) of the second cooling branch; when the cooling water flow rate difference is within the second flow range, it indicates that the difference between the first cooling water flow rate and the second cooling water flow rate is small, and the target flow rate regulating valve is the flow rate regulating valve (111) of the first cooling branch; and control the opening of the target flow rate regulating valve based on the cooling water flow rate difference using a fuzzy PID algorithm.
2. The temperature adjustment device according to claim 1, characterized in that: The temperature regulating device further comprises a first pressure transmitter (60) and a second pressure transmitter (61), wherein the first pressure transmitter (60) is used to detect the water inlet pressure at the total water inlet (10a) of the regulating unit (10), and the second pressure transmitter (61) is used to detect the water outlet pressure at the total water outlet (10b) of the regulating unit (10); The control unit (40) is also used to maintain the pressure difference between the water inlet pressure and the water outlet pressure within a target range by controlling the opening of the bypass valve.
3. A method for regulating the temperature of natural gas, characterized in that: The temperature regulating device for natural gas according to claim 1, wherein the method comprises: Acquiring the natural gas temperature detected by the temperature sensor; Calculating the difference between the natural gas temperature and the target temperature to obtain the natural gas temperature difference; According to the correspondence between the temperature range and the flow control valve, determine the target flow control valve corresponding to the temperature range to which the natural gas temperature difference belongs, the temperature range includes a first temperature range and a second temperature range, when the natural gas temperature difference is in the first temperature range, it means that the difference between the natural gas temperature and the target temperature is large, and the target flow control valve is the flow control valve of the second cooling branch, when the natural gas temperature difference is in the second temperature range, it means that the difference between the natural gas temperature and the target temperature is small, and the target flow control valve is the flow control valve of the first cooling branch; according to the natural gas temperature difference, use a fuzzy PID control algorithm to control the opening of the target flow control valve; or, according to the natural gas temperature difference, use a PID control algorithm to calculate the target cooling water flow of the cooling branch corresponding to the target flow control valve, and according to the correspondence between the cooling water flow of the cooling branch and the opening of the flow control valve, control the opening of the target flow control valve corresponding to the target cooling water flow; Alternatively, a first cooling water flow rate is obtained, where the first cooling water flow rate is the cooling water flow rate at the total water outlet of the regulating unit; a second cooling water flow rate is determined, where the second cooling water flow rate is the cooling water flow rate required to cool the natural gas to the target temperature; a difference between the first cooling water flow rate and the second cooling water flow rate is calculated to obtain a cooling water flow difference; a target flow regulating valve corresponding to the flow range to which the cooling water flow difference belongs is determined according to a correspondence between a flow range and a flow regulating valve, the flow range comprising a first flow range and a second flow range, when the cooling water flow difference is within the first flow range, it indicates that the difference between the first cooling water flow rate and the second cooling water flow rate is large, and the target flow regulating valve is the flow regulating valve of the second cooling branch, and when the cooling water flow difference is within the second flow range, it indicates that the difference between the first cooling water flow rate and the second cooling water flow rate is small, and the target flow regulating valve is the flow regulating valve of the first cooling branch; according to the cooling water flow difference, a fuzzy PID algorithm is used to control the opening of the target flow regulating valve.
Citation Information
Patent Citations
Cooling device and method of natural gas loop system and storage medium
CN111854496A
