A gas supply allocation method, device, server and computer-readable storage medium
By obtaining gas field and user information, evaluating and selecting a gas distribution scheme with the least decarbonized gas content, the problems of low gas distribution efficiency and poor stability in the existing technology are solved, rapid and economical gas source deployment is achieved, and the efficiency of downstream devices is improved. stability and security.
Patent Information
- Application Number
- CN202211123238.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-15
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-09-15
AI Technical Summary
When the existing technology mixes and distributes multiple gas sources to supply users with different temperament needs, the gas distribution efficiency is low and relies on manual experience, resulting in poor operational stability and safety of downstream chemical equipment.
By obtaining information from the gas field end and the user end, the initial gas distribution plan is determined, and based on the gas distribution priority, target gas specifications and initial plan, the candidate gas distribution plan combination is evaluated, and the target gas distribution plan with the least decarbonized gas content is selected to achieve Quick and reasonable gas distribution adjustment.
It significantly improves the gas distribution efficiency and economic benefits, and improves the operational stability and safety problems of downstream chemical equipment caused by long gas distribution time.
Smart Images

Figure CN115560249B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of gas field development and production, and more specifically, to a gas supply and allocation method, device, server and computer-readable storage medium. Background Art
[0002] The process of joint gas distribution and supply of natural gas from multiple gas sources is usually used in large-scale natural gas gathering and distribution stations and other scenarios. At present, when multiple gas sources are mixed and distributed and supplied to different users with different gas quality requirements at the same time, production personnel usually distribute gas to users roughly based on experience, and based on the actual gas supply and components of each user, gradually adjust the gas distribution ratio of each distribution point to gradually approach the optimal gas distribution parameters and the optimal processing capacity of the device. This process often takes a long time and is highly dependent on the experience of production personnel. In addition, the operation mode adjusted by manual experience is difficult to quickly make corresponding gas distribution adjustments, thereby reducing the stability of the operation of downstream chemical plants and reducing the safety of downstream chemical plants.
[0003] The prior art discloses a natural gas full-cycle energy calculation system and method, the system includes a perception control platform, a sensor network platform and a management platform that interact in sequence; the perception control platform is used to collect natural gas information provided by multiple gas suppliers; it is also used to collect the gas peak time period and the corresponding gas energy of the gas consumption area; the sensor network platform is used to transmit the natural gas information, gas peak time period and gas consumption collected by the perception control platform to the management platform; the management platform is used to obtain the natural gas energy in multiple unit times according to the natural gas information, and transmit the corresponding natural gas to the gas consumption area according to the natural gas energy, gas peak time period and gas energy. This scheme provides the corresponding natural gas energy to the gas consumption area according to the gas peak time period and the corresponding gas energy of the gas consumption area, so that in the gas peak time period, the natural gas provided by the gas supplier with high natural gas energy per unit time can be allocated to the gas consumption area with high gas energy, and the natural gas with low natural gas energy per unit time can be allocated to the gas consumption area with low gas energy. However, this scheme can only be used for gas distribution during the gas peak time period, and the economic benefit is low. Summary of the invention
[0004] The purpose of the present invention is to overcome the shortcomings of the prior art and to provide a gas supply and distribution method, device, server and computer-readable storage medium, which can quickly provide a reasonable target gas distribution plan, significantly improve the gas distribution efficiency and economic benefits, and are suitable for processing complex gas distribution problems such as mixing and distributing multiple gas sources and supplying them to different users with different gas quality requirements at the same time.
[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0006] A gas supply adjustment method is provided, comprising the following steps:
[0007] S1: Obtain gas source information of the gas field end and gas usage information of the user end; wherein the gas field end includes multiple gas supply gas field groups, the user end includes multiple user groups, and the gas usage information includes the gas distribution priority of the user group and the target gas usage specification of each user in the user group;
[0008] S2: Determine an initial gas distribution plan according to the gas source information and the target gas usage specification;
[0009] S3: determining at least one candidate gas distribution plan combination based on the gas distribution priority, the target gas usage specification and the initial gas distribution plan, wherein the candidate gas distribution plan combination includes a candidate gas distribution plan for each user group;
[0010] S4: Comprehensively evaluate the decarbonized gas content required by each candidate gas distribution scheme combination, take the minimum decarbonized gas content as the evaluation standard, and select a target gas distribution scheme from the candidate gas distribution scheme combination, wherein the target gas distribution scheme includes a final gas distribution scheme corresponding to each user.
[0011] The gas supply and adjustment method of the present invention obtains the gas source information of the gas field end and the gas usage information of the user end, determines the initial gas distribution plan, and determines the candidate gas distribution plan combination based on the gas distribution priority, the target gas usage specification and the initial gas distribution plan, and selects the target gas distribution plan based on the minimum required decarbonized gas content as the evaluation standard, and determines the final gas distribution plan corresponding to each user. When dealing with complex gas distribution problems such as multiple gas sources mixed and distributed and supplied to different users with different gas quality requirements at the same time, the present invention obtains the initial gas distribution plan through the gas source information and the gas usage information, and on this basis quickly provides a reasonable target gas distribution plan, which significantly improves the gas distribution efficiency and economic benefits, and the improvement of the gas distribution efficiency can effectively improve the problems of poor operating stability and safety of downstream chemical equipment caused by the long gas distribution time.
[0012] Preferably, in step S1, the target gas usage specifications include target gas volume and target hydrocarbon content. Users are divided into multiple user groups according to their target gas volume and target hydrocarbon content, and the gas distribution priority of the user groups is determined to characterize the order of gas distribution plans for the user groups.
[0013] Preferably, in step S2, the step of determining an initial gas distribution plan according to the gas source information and the target gas usage specification includes:
[0014] S21: Calculating the total amount of gas and the total amount of hydrocarbons in the gas required by each user according to the target gas usage specification of the user;
[0015] S22: Determine an initial gas distribution plan based on the gas source information, the total amount of gas and the total amount of hydrocarbons in the gas; wherein the initial gas distribution plan includes the target gas supply of each of the gas supply field groups; the difference between the sum of the volumes of natural gas provided by each of the gas supply field groups and the total amount of gas is lower than a first threshold; the difference between the sum of the hydrocarbon contents of the natural gas provided by each of the gas supply field groups and the total amount of hydrocarbons in the gas is lower than a second threshold.
[0016] Preferably, in step S3, the specific process of determining at least one gas distribution scheme combination is:
[0017] S31: determining the user group level of each user group according to the gas distribution priority;
[0018] S32: for the first-level user group, determining at least one candidate gas distribution scheme for the first-level user group according to the target gas usage specification of each user in the first-level user group and the target gas supply volume of each gas supply field group;
[0019] S33: for each level of user group except the first level of user group, according to the candidate gas distribution scheme of the previous level of user group corresponding to each level of user group, the remaining gas supply of each gas supply field group is updated, and based on the target gas consumption specifications of users in each level of user group and the updated remaining gas supply of each gas supply field group, at least one candidate gas distribution scheme for each level of user group is determined;
[0020] S34: Based on the candidate gas distribution schemes for each level of user group, at least one candidate gas distribution scheme combination is determined, wherein the candidate gas distribution scheme combination includes one candidate gas distribution scheme for each level of user group.
[0021] Preferably, step S32 specifically includes:
[0022] If the hydrocarbon content of the gas supplied by each of the gas supply field groups is higher than the hydrocarbon content of the gas required by the first-level user group, then select several gas supply field groups in order of the hydrocarbon content of the gas supplied from low to high to provide natural gas to the first-level user group;
[0023] If the hydrocarbon content of the gas supplied by each of the gas supply field groups is lower than the hydrocarbon content of the gas required by the first-level user group, the high-hydrocarbon gas content and the decarbonized gas content are calculated according to the preset decarbonization ratio, and based on the high-hydrocarbon gas content and the decarbonized gas content, the gas supply field group is selected to provide natural gas to the first-level user group;
[0024] If the hydrocarbon content of the gas required by the first-level user group is between the hydrocarbon content of the gas supplied by each of the gas supplying gas field groups, then the gas volume ratio of each of the gas supplying gas field groups required by the first-level user group is calculated according to the hydrocarbon content of the supplied gas and the hydrocarbon content of the gas used, and a gas supplying gas field group is selected based on the gas volume ratio to provide natural gas for the first-level user group;
[0025] The candidate gas supply volumes of each selected gas supply field group for the first-level user group are determined to obtain candidate gas distribution plans for the first-level user group.
[0026] Preferably, step S33 specifically includes: determining a second-level user group, proportioning the remaining gas supply and the decarbonized gas in the gas supply gas field group at the gas field end so that the gas supply of the mixed gas is equal to the gas consumption of the second-level user group, and calculating a candidate gas distribution plan for the second-level user group;
[0027] If the remaining gas supply of each gas supply field group is proportioned and the gas supply of the obtained mixed gas is not less than the gas consumption of the second level user group, no decarbonized gas is injected;
[0028] If the remaining gas supply of each gas supply field group is proportioned and the gas supply of the obtained mixed gas is less than the gas consumption of the second level user group, decarbonized gas is injected;
[0029] The candidate gas supply volume of each selected gas supply field group for the second-level user group is determined to obtain a candidate gas distribution plan for the second-level user group.
[0030] For the remaining user groups except the first-level user group and the second-level user group, whether decarbonization is required is determined based on the remaining gas supply. If so, the target carbon dioxide content of the decarbonized gas is set, and the decarbonization gas parameters of each candidate gas distribution scheme are obtained through iterative calculation.
[0031] Preferably, in step S4, for each user, the gas distribution ratio of each gas supply gas field group to the user is calculated according to the final gas distribution plan corresponding to the user, and the gas distribution ratio is fed back to the server.
[0032] The present invention also provides a gas supply and adjustment device for executing the above-mentioned gas supply and adjustment method, comprising a grading module, an initial allocation module and a gas distribution module, wherein the grading module is used to obtain gas source information at the gas field end and gas usage information at the user end, the initial allocation module is used to determine an initial gas distribution plan, and the gas distribution module is used to determine a target gas distribution plan including a final gas distribution plan corresponding to each user, and the initial allocation module and the gas distribution module are respectively connected to the grading module.
[0033] The gas supply and distribution device of the present invention uses a classification module to obtain gas source information at the gas field end and user information at the user end, wherein the gas field end includes multiple gas supply gas field groups, the user end includes multiple user groups, and the gas usage information includes the gas distribution priority of the user group and the target gas usage specification of each user in the user group; the initial distribution module determines the initial gas distribution plan according to the information obtained by the classification module; the gas distribution module determines the candidate gas distribution plan combination according to the information obtained by the classification module and the initial gas distribution plan determined by the initial distribution module, and determines the target gas distribution plan with the minimum required decarbonized gas content as the evaluation standard, wherein the target gas distribution plan includes the final gas distribution plan corresponding to each user. When dealing with complex gas distribution problems such as multiple gas sources being mixed and distributed and supplied to different users with different gas quality requirements at the same time, the present invention obtains the initial gas distribution plan through the classification module and the initial distribution module, and on this basis uses the gas distribution module to quickly provide a reasonable target gas distribution plan, which significantly improves the gas distribution efficiency and economic benefits, and the improvement of the gas distribution efficiency can effectively improve the problems of poor operating stability and safety of downstream chemical equipment caused by long gas distribution time.
[0034] The present invention also provides a server, comprising a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the above-mentioned gas supply adjustment method.
[0035] The server of the present invention can implement the above-mentioned gas supply allocation method through the processor executing computer executable instructions in the memory, realize rapid and reasonable determination of the gas allocation plan, and significantly improve the gas allocation efficiency, thereby effectively improving the problems of poor operating stability and safety of downstream chemical equipment caused by long gas allocation time, thereby improving economic benefits.
[0036] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned gas supply adjustment method.
[0037] The computer-readable storage medium of the present invention can store computer-executable instructions. The above-mentioned server can implement the above-mentioned gas supply allocation method through computer-executable instructions to quickly and reasonably determine the gas allocation plan, which significantly improves the gas allocation efficiency, thereby effectively improving the problems of poor operating stability and safety of downstream chemical equipment caused by long gas allocation time, thereby improving economic benefits.
[0038] Compared with the background technology, the gas supply allocation method, device, server and computer-readable storage medium of the present invention have the following beneficial effects:
[0039] It can quickly provide a reasonable target gas distribution plan, significantly improving the gas distribution efficiency and economic benefits. It is suitable for dealing with complex gas distribution problems such as mixing and distributing multiple gas sources and supplying them to different users with different gas quality requirements at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 This is a flow chart of the gas supply allocation method in Embodiment 1 of the present invention;
[0041] Figure 2 A flow chart for determining at least one gas distribution scheme combination in Embodiment 1 of the present invention;
[0042] Figure 3 This is a flow chart of gas supply allocation in the second embodiment of the present invention;
[0043] Figure 4 Flow chart of the gas distribution scheme for the first level user group in the second embodiment of the present invention;
[0044] Figure 5 This is a flow chart of the gas distribution scheme for the remaining level user groups except the first level user group in the second implementation of the present invention. DETAILED DESCRIPTION
[0045] The present invention is further described below in conjunction with specific implementation methods. The accompanying drawings are only used for exemplary descriptions and are only schematic diagrams, not actual drawings, and cannot be understood as limiting this patent; in order to better illustrate the embodiments of the present invention, some parts of the accompanying drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product; for those skilled in the art, it is understandable that some well-known structures and their descriptions in the accompanying drawings may be omitted.
[0046] The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right" and the like indicate directions or positional relationships based on the directions or positional relationships shown in the drawings, it is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction. Therefore, the terms describing the positional relationship in the drawings are only used for illustrative purposes and cannot be understood as limitations on this patent. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0047] Embodiment 1
[0048] A gas supply adjustment method, such as Figure 1 As shown, the following steps are included:
[0049] S1: Obtain gas source information of the gas field end and gas usage information of the user end; wherein the gas field end includes multiple gas supply gas field groups, the user end includes multiple user groups, and the gas usage information includes the gas distribution priority of the user group and the target gas usage specification of each user in the user group;
[0050] S2: Determine an initial gas distribution plan according to the gas source information and the target gas usage specification;
[0051] S3: determining at least one candidate gas distribution plan combination based on the gas distribution priority, the target gas usage specification and the initial gas distribution plan, wherein the candidate gas distribution plan combination includes a candidate gas distribution plan for each user group;
[0052] S4: Comprehensively evaluate the decarbonized gas content required by each candidate gas distribution scheme combination, take the minimum decarbonized gas content as the evaluation standard, and select a target gas distribution scheme from the candidate gas distribution scheme combination, wherein the target gas distribution scheme includes a final gas distribution scheme corresponding to each user.
[0053] The above-mentioned gas supply and allocation method obtains the gas source information of the gas field end and the gas usage information of the user end, determines the initial gas distribution plan, and determines the candidate gas distribution plan combination based on the gas distribution priority, target gas usage specifications and the initial gas distribution plan, and selects the target gas distribution plan based on the minimum required decarbonized gas content as the evaluation standard, and determines the final gas distribution plan corresponding to each user. When dealing with complex gas distribution problems such as mixing and distributing multiple gas sources and supplying them to different users with different gas quality requirements at the same time, this embodiment obtains the initial gas distribution plan through the gas source information and gas usage information, and quickly provides a reasonable target gas distribution plan on this basis, which significantly improves the gas distribution efficiency and economic benefits. The improvement of gas distribution efficiency can effectively improve the problems of poor operating stability and safety of downstream chemical equipment caused by long gas distribution time.
[0054] In step S1, the target gas usage specifications include target gas volume and target hydrocarbon content. Users are divided into multiple user groups according to their target gas volume and target hydrocarbon content, and the gas distribution priority of the user groups is determined to characterize the order of gas distribution plans for the user groups.
[0055] In step S2, the step of determining the initial gas distribution plan according to the gas source information and the target gas usage specification includes:
[0056] S21: Calculating the total amount of gas and the total amount of hydrocarbons in the gas required by each user according to the target gas usage specification of the user;
[0057] S22: Determine an initial gas distribution plan according to the gas source information, the total amount of gas and the total amount of hydrocarbons in the gas.
[0058] The initial gas distribution plan includes the target gas supply volume of each of the gas supply field groups; the difference between the sum of the volumes of natural gas provided by each of the gas supply field groups and the total amount of gas is lower than a first threshold; the difference between the sum of the hydrocarbon content of the natural gas provided by each of the gas supply field groups and the total amount of hydrocarbon content of the gas is lower than a second threshold.
[0059] In step S3, the specific process of determining at least one gas distribution scheme combination is as follows:
[0060] S31: determining the user group level of each user group according to the gas distribution priority;
[0061] S32: for the first-level user group, determining at least one candidate gas distribution scheme for the first-level user group according to the target gas usage specification of each user in the first-level user group and the target gas supply volume of each gas supply field group;
[0062] S33: for each level of user group except the first level of user group, according to the candidate gas distribution scheme of the previous level of user group corresponding to each level of user group, the remaining gas supply of each gas supply field group is updated, and based on the target gas consumption specifications of users in each level of user group and the updated remaining gas supply of each gas supply field group, at least one candidate gas distribution scheme for each level of user group is determined;
[0063] S34: Based on the candidate gas distribution schemes for each level of user group, at least one candidate gas distribution scheme combination is determined, wherein the candidate gas distribution scheme combination includes one candidate gas distribution scheme for each level of user group.
[0064] Wherein, step S32 specifically includes: if the hydrocarbon content of the gas supplied by each of the gas supply field groups is higher than the hydrocarbon content of the gas required by the first-level user group, then select a number of gas supply field groups in order of the hydrocarbon content of the gas supplied from low to high to provide natural gas to the first-level user group; if the hydrocarbon content of the gas supplied by each of the gas supply field groups is lower than the hydrocarbon content of the gas required by the first-level user group, calculate the high hydrocarbon content gas and the decarbonized gas content according to the preset decarbonization ratio, and select a gas supply field group to provide natural gas to the first-level user group based on the high hydrocarbon content gas and the decarbonized gas content; if the hydrocarbon content of the gas required by the first-level user group is between the hydrocarbon content of the gas supplied by each of the gas supply field groups, then calculate the gas volume ratio of each of the gas supply field groups required by the first-level user group according to the hydrocarbon content of the gas supplied and the hydrocarbon content of the gas used, and select a gas supply field group to provide natural gas to the first-level user group based on the gas volume ratio;
[0065] The candidate gas supply volumes of each selected gas supply field group for the first-level user group are determined to obtain candidate gas distribution plans for the first-level user group.
[0066] Step S33 specifically includes: determining the second-level user group, matching the remaining gas supply and the decarbonized gas in the gas supply field group at the gas field end so that the gas supply of the mixed gas is equal to the gas consumption of the second-level user group, and calculating the candidate gas distribution scheme for the second-level user group; wherein, if the remaining gas supply of each gas supply field group is matched, and the gas supply of the obtained mixed gas is not less than the gas consumption of the second-level user group, decarbonized gas is not injected; if the remaining gas supply of each gas supply field group is matched, and the gas supply of the obtained mixed gas is less than the gas consumption of the second-level user group, decarbonized gas is injected; determine the candidate gas supply of each selected gas supply field group for the second-level user group, and obtain the candidate gas distribution scheme for the second-level user group.
[0067] For the remaining user groups except the first-level user group and the second-level user group, whether decarbonization is required is determined based on the remaining gas supply. If so, the target carbon dioxide content of the decarbonized gas is set, and the decarbonization gas parameters of each candidate gas distribution scheme are obtained through iterative calculation.
[0068] In step S4, for each user, the gas distribution ratio of each gas supply gas field group to the user is calculated according to the final gas distribution plan corresponding to the user, and the gas distribution ratio is fed back to the server.
[0069] Embodiment 2
[0070] This embodiment is similar to the first embodiment, except that Figure 3 As shown, the following process is included:
[0071] The upstream DF gas field group and LD gas field group, a total of 7 gas fields / projects, were developed in different stages, and gas supply agreements with different prices were signed with 6 different downstream users (4 different contract gas supply components) one after another. These gas fields were transported to the DF terminal processing plant through the DF pipeline and the LD pipeline respectively. Among them, the natural gas component content of the two pipelines was quite different. Among them, the hydrocarbon content of the DF pipeline was low, and the hydrocarbon content of the LD pipeline was high. The natural gas components were difficult to meet the conditions for direct supply to downstream users. The natural gas was dehydrated and dehydrocarbonized at the DF terminal, and some natural gas was treated by CO2 removal. After being blended into 4 specific commodity gas components through multiple processes, it was supplied to 6 downstream users, including 5 chemical users and 1 pipeline user-people's livelihood user. Among them, based on the differences in natural gas production and component content of different gas fields, the gas supply specifications of each user were also different, and the contract volume requirements, gas supply components and gas prices of different downstream users for each gas field were also different. Therefore, multiple limiting factors need to be considered in the DF terminal gas distribution process to meet multiple gas supply targets.
[0072] Specifically, Figure 3As shown, based on the natural gas flow and component content of the DF pipeline and LD pipeline arriving at the DF terminal, the gas supply plan and contracted gas supply components of the six users, a preliminary plan is made to make the hydrocarbon volume of the two gases equivalent to the hydrocarbon volume of the supplied gas, and the preliminary gas supply volume and gas supply component plan for the six users corresponding to the gas volume and component content of the two pipelines are obtained. Under the condition of meeting the downstream gas supply plan, if the comprehensive CO2 content of the incoming gas is too high or too low, it is necessary to optimize the production allocation of the DF gas field; if the comprehensive hydrocarbon content of the incoming gas is too high or too low, it is necessary to optimize the production allocation of the LD gas field.
[0073] Based on the gas distribution priority, target gas specifications and initial gas distribution plan, determine the target gas distribution plan corresponding to each user. Among them, the target gas specifications include gas supply volume and gas quality. The gas quality includes hydrocarbon content and non-hydrocarbon content, such as N2, CO2, etc. The target gas distribution plan is used to characterize the gas supply ratio of each gas supply field group. The gas supply ratio can reflect the amount of natural gas provided by each gas supply field group to each user. According to the gas distribution process flow of the terminal processing plant, the processing capacity of the device and the gas distribution priority, the user group with priority gas distribution is selected, that is, the first-level user group, such as Figure 4 As shown, then according to the target gas consumption and target hydrocarbon content of the first-level user group, the gas supply field group that provides natural gas to the first-level user group and the gas supply volume of each gas supply field group are determined to obtain multiple candidate gas distribution schemes corresponding to the first-level user group. Based on each candidate gas distribution scheme, the second-level user group is selected according to the gas distribution priority, and the above process is repeated to obtain multiple candidate gas distribution schemes corresponding to the second-level user group, until multiple candidate gas distribution schemes are determined for each level of user group, and then the decarbonized gas content required for each candidate gas distribution scheme is comprehensively evaluated, and a target gas distribution scheme is selected from the candidate gas distribution schemes of each user group with the minimum decarbonized gas content as the evaluation standard.
[0074] Specifically, Figure 4 As shown, considering that the third and fourth chemical users supply the largest amount of gas, in most cases the hydrocarbon content of their contracted gas supply (of the same gas supply quality) is between the hydrocarbon content of DF gas and LD gas. The hydrocarbon content of DF gas is generally lower than that of all users, and the hydrocarbon content of LD gas is generally higher than that of the third and fourth chemical users.
[0075] like Figure 5 As shown, the DF gas volume and LD gas volume required by the first gas distribution point are calculated first, so that after gas distribution, the mixed gas volume is equal to the sum of the gas supply volumes of the two users, and the hydrocarbon content of the gas supply is close to the contract index. This production allocation plan needs to simultaneously consider the different relative values between the DF or LD gas volume and hydrocarbon content and the gas supply volume and hydrocarbon content of the two users, including the situation where the hydrocarbon content of the two gas lines is higher or lower than the hydrocarbon content of the two users, and the gas volume of a certain line is lower than the gas distribution demand.
[0076] DF terminal gas distribution points usually use two or three gases for gas distribution. The third gas source is generally decarbonized gas. The gas supply and hydrocarbon content of the three gas distribution sources and the target users are shown in Table 1. When the gas supply and hydrocarbon content of the user are known, it is necessary to calculate the gas distribution proportions required by the three gas sources under different situations.
[0077] Table 1 DF terminal gas distribution source and target user gas supply and hydrocarbon content
[0078] Capacity Hydrocarbon content First gas source <![CDATA[n1]]> <![CDATA[x1]]> Second air source <![CDATA[n2]]> <![CDATA[x2]]> Decarbonized gas <![CDATA[n3]]> <![CDATA[x3]]> For users n x
[0079] Generally, the hydrocarbon content of the first gas source and the second gas source is between the hydrocarbon content of the user. If the gas volume of the first gas source and the second gas source to supply the user with a hydrocarbon content is sufficient, the gas distribution can be completed using only the first gas source and the second gas source:
[0080]
[0081]
[0082] If the hydrocarbon content of the first gas source is high and the hydrocarbon content of the second gas source is low, when the gas volume of the first gas source is insufficient, it is necessary to add all of n1 and add a certain amount of the second gas source and decarbonized gas at the same time to meet the user's gas supply volume and gas supply hydrocarbon content requirements. The corresponding required second gas source gas volume and decarbonized gas volume are:
[0083]
[0084] n3=n-n1-n2
[0085] The primary goal of the second gas distribution point is to mix part or all of the remaining DF and LD gases, on the premise that the mixed gas volume meets the gas supply volume of the first chemical user and the second chemical user, so that the hydrocarbon content of the mixed gas is controlled at a level close to the hydrocarbon content of the gas supply of the second chemical user (the lowest value among all users), so as to reduce the decarbonized gas distribution volume of the second chemical user.
[0086] Calculation of the gas distribution plan for the third gas distribution point: According to the hydrocarbon content of the mixed gas distributed by the second gas distribution point, the initial gas supply volume of the second chemical user and the hydrocarbon content plan, the required direct supply gas volume and decarbonized gas volume are iteratively calculated. Since the hydrocarbon content of the decarbonized gas is currently unknown, the target CO2 content of the decarbonized gas is set.
[0087] Calculation of the gas distribution plan for the fourth gas distribution point: If the hydrocarbon content of the mixed gas after the second gas distribution point is lower than the hydrocarbon content of the gas supplied to the first chemical user, similar to the third gas distribution point, the direct supply gas volume and decarbonized gas volume required by the first chemical user are iteratively calculated.
[0088] Calculation of the gas distribution plan for the fifth gas distribution point: determine whether the remaining LD gas volume after the second gas distribution point is less than the processing capacity of the LD dehydrogenation unit. If so, no gas distribution is required at the fifth gas distribution point; if not, the part of the LD remaining gas volume that is greater than the processing capacity of the LD dehydrogenation unit is mixed into the fifth gas distribution point through the first jumper line and mixed with the remaining gas of the DF process and then enters the DF dehydrogenation unit for processing.
[0089] If the CO2 content of the mixed gas is lower than 10%, all LD gas is connected to the gas distribution point, and after being mixed with the DF process gas again, the mixed gas volume and component content are calculated. The gas is decarbonized in the decarbonization device to set the target CO2 content of the decarbonized gas, and the CO2 removal amount and the component content of the natural gas after decarbonization are calculated. Finally, the precise gas distribution volume and component values at the first gas distribution point, the third gas distribution point to the sixth gas distribution cushion are calculated by iterative calculation.
[0090] If the CO2 content of the LD gas after entering the LD decarbonization unit is less than 10%, all the LD gas will pass through the second jumper line to the seventh gas distribution point in front of the compressor and mix with the decarbonized natural gas at the outlet of the decarbonization device. At the seventh gas distribution point, it is iteratively calculated again to control the CO2 content of the decarbonized gas to what extent, so that the final decarbonized gas CO2 content distributed by the seventh gas distribution point can reach the set decarbonized gas target CO2 content value. Finally, the data on the amount of CO2 to be removed, the final gas supply volume and gas supply component content of each user such as the fifth chemical user and pipeline users are obtained, among which the gas supply volume and gas supply components of pipeline users will be different from the initial allocation values of the gas production and supply plan.
[0091] In summary, based on the gas supply allocation method provided in this embodiment, production management personnel and on-site personnel can quickly and timely prepare the optimal production gas transmission volume and component content plan for each gas field and the two pipelines to the DF terminal that meet the contractual needs of downstream users, and at the same time obtain the optimal gas distribution and treatment plan corresponding to each process flow, gas distribution point, and device of the terminal, as well as the gas supply volume and gas supply component plan for each user, and can determine the gas distribution plan more quickly and reasonably, significantly improving the gas distribution efficiency, thereby effectively improving the problems of poor operating stability and safety of downstream chemical equipment caused by long gas distribution time, and improving economic benefits.
[0092] Embodiment 3
[0093] A gas supply and allocation device includes a grading module, an initial allocation module and a gas distribution module. The grading module is used to obtain gas source information at the gas field end and gas usage information at the user end. The initial allocation module is used to determine an initial gas distribution plan. The gas distribution module is used to determine a target gas distribution plan including a final gas distribution plan corresponding to each user. The initial allocation module and the gas distribution module are respectively connected to the grading module.
[0094] The above-mentioned gas supply and allocation device uses a classification module to obtain gas source information at the gas field end and user information at the user end, wherein the gas field end includes multiple gas supply gas field groups, the user end includes multiple user groups, and the gas usage information includes the gas allocation priority of the user group and the target gas usage specification of each user in the user group; the initial allocation module determines the initial gas allocation plan according to the information obtained by the classification module; the gas allocation module determines the candidate gas allocation plan combination according to the information obtained by the classification module and the initial gas allocation plan determined by the initial allocation module, and determines the target gas allocation plan with the minimum required decarbonized gas content as the evaluation standard, wherein the target gas allocation plan includes the final gas allocation plan corresponding to each user. When dealing with complex gas allocation problems such as multiple gas sources being mixed and allocated and supplied to different users with different gas quality requirements at the same time, the present invention obtains the initial gas allocation plan through the classification module and the initial allocation module, and on this basis uses the gas allocation module to quickly provide a reasonable target gas allocation plan, which significantly improves the gas allocation efficiency and economic benefits, and the improvement of the gas allocation efficiency can effectively improve the problems of poor operating stability and safety of downstream chemical equipment caused by the long gas allocation time.
[0095] Embodiment 4
[0096] A server includes a processor, a memory, a bus and a communication interface. The processor, the communication interface and the memory are connected via the bus. The memory stores computer executable instructions that can be executed by the processor. The processor is used to execute the computer executable instructions in the memory to implement the gas supply adjustment method in Example 1 or Example 2.
[0097] The memory includes a high-speed random access memory and a non-volatile memory. Specifically, the memory includes at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication structure, and the Internet, wide area network, local area network or metropolitan area network, etc. can be used.
[0098] The bus can be an ISA bus, a PCI bus or an EISA bus, and the bus can be divided into an address bus, a data bus, a control bus, etc.
[0099] The processor is an integrated circuit chip with signal processing capabilities. The gas supply allocation method of the first or second embodiment is completed by the hardware integrated logic circuit or software-based computer executable instructions in the processor. The processor can be a general-purpose processor, including a central processing unit, a network processor, etc., and can also be a digital signal processor, a dedicated integrated circuit, a readily available variable-range gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component.
[0100] Embodiment 5
[0101] A computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by the processor in the fourth embodiment, the computer-executable instructions prompt the processor to implement the gas supply allocation method of the first embodiment or the second embodiment, so as to quickly and reasonably determine the gas allocation plan, significantly improve the gas allocation efficiency, and thus effectively improve the problems of poor operating stability and safety of downstream chemical equipment caused by long gas allocation time, thereby improving economic benefits.
[0102] In the specific contents of the above-mentioned specific implementation methods, the various technical features can be combined in any non-contradictory manner. In order to make the description concise, not all possible combinations of the above-mentioned technical features are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0103] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A gas supply adjustment device, used to perform a gas supply adjustment method, characterized in that: The device includes a classification module, an initial distribution module and a gas distribution module. The classification module is used to obtain gas source information at the gas field end and gas usage information at the user end. The initial distribution module is used to determine an initial gas distribution plan. The gas distribution module is used to determine a target gas distribution plan including a final gas distribution plan corresponding to each user. The initial distribution module and the gas distribution module are respectively connected to the classification module. The gas supply and distribution method includes the following steps: S1: Obtain gas source information at the gas field end and gas usage information at the user end; wherein the gas field end includes multiple gas supply field groups, the user end includes multiple user groups, and the gas usage information includes the gas distribution priority of the user group and the target gas usage specification of each user in the user group; the target gas usage specification includes the target gas volume and the target hydrocarbon content, and the users are divided into multiple user groups according to the target gas volume and the target hydrocarbon content required by the users, and the gas distribution priority of the user group is determined, which is used to characterize the order of gas distribution schemes for the user groups; S2: Determine an initial gas distribution plan according to the gas source information and the target gas usage specification; including: S21: Calculating the total amount of gas and the total amount of hydrocarbons in the gas required by each user according to the target gas usage specification of the user; S22: determining an initial gas distribution plan according to the gas source information, the total amount of gas and the total amount of hydrocarbons in the gas; The initial gas distribution plan includes the target gas supply of each gas supply field group; the difference between the sum of the volumes of natural gas provided by each gas supply field group and the total amount of gas is lower than a first threshold; the difference between the sum of the hydrocarbon content of the natural gas provided by each gas supply field group and the total amount of hydrocarbon content of the gas is lower than a second threshold; S3: determining at least one candidate gas distribution plan combination based on the gas distribution priority, the target gas usage specification and the initial gas distribution plan, wherein the candidate gas distribution plan combination includes a candidate gas distribution plan for each user group; The process of determining at least one gas distribution scheme combination is: S31: determining the user group level of each user group according to the gas distribution priority; S32: for the first-level user group, determining at least one candidate gas distribution scheme for the first-level user group according to the target gas usage specification of each user in the first-level user group and the target gas supply volume of each gas supply field group; including: If the hydrocarbon content of the gas supplied by each of the gas supply field groups is higher than the hydrocarbon content of the gas required by the first-level user group, then select several gas supply field groups in order of the hydrocarbon content of the gas supplied from low to high to provide natural gas to the first-level user group; If the hydrocarbon content of the gas supplied by each of the gas supply field groups is lower than the hydrocarbon content of the gas required by the first-level user group, the high-hydrocarbon gas content and the decarbonized gas content are calculated according to the preset decarbonization ratio, and based on the high-hydrocarbon gas content and the decarbonized gas content, the gas supply field group is selected to provide natural gas to the first-level user group; If the hydrocarbon content of the gas required by the first-level user group is between the hydrocarbon content of the gas supplied by each of the gas supplying gas field groups, then the gas volume ratio of each of the gas supplying gas field groups required by the first-level user group is calculated according to the hydrocarbon content of the supplied gas and the hydrocarbon content of the gas used, and a gas supplying gas field group is selected based on the gas volume ratio to provide natural gas for the first-level user group; Determine the candidate gas supply volume of each selected gas supply field group for the first level user group, and obtain the candidate gas distribution plan for the first level user group; S33: for each level of user group except the first level of user group, according to the candidate gas distribution scheme of the previous level of user group corresponding to each level of user group, the remaining gas supply of each gas supply field group is updated, and based on the target gas consumption specifications of users in each level of user group and the updated remaining gas supply of each gas supply field group, at least one candidate gas distribution scheme for each level of user group is determined; S34: determining at least one candidate gas distribution scheme combination based on the candidate gas distribution schemes for each level of user group, wherein the candidate gas distribution scheme combination includes one candidate gas distribution scheme for each level of user group; S4: Comprehensively evaluate the decarbonized gas content required by each candidate gas distribution scheme combination, take the minimum decarbonized gas content as the evaluation standard, and select a target gas distribution scheme from the candidate gas distribution scheme combination, wherein the target gas distribution scheme includes a final gas distribution scheme corresponding to each user.
2. The gas supply mixing device according to claim 1, characterized in that: Step S33 specifically includes: Determine the second-level user group, proportion the remaining gas supply and the decarbonized gas in the gas supply gas field group at the gas field end so that the gas supply of the mixed gas is equal to the gas consumption of the second-level user group, and calculate the candidate gas distribution plan for the second-level user group; If the remaining gas supply of each gas supply field group is proportioned and the gas supply of the obtained mixed gas is not less than the gas consumption of the second level user group, no decarbonized gas is injected; If the remaining gas supply of each gas supply field group is proportioned and the gas supply of the obtained mixed gas is less than the gas consumption of the second level user group, decarbonized gas is injected; Determine the candidate gas supply volume of each selected gas supply field group for the second-level user group, and obtain the candidate gas distribution plan for the second-level user group; For the remaining user groups except the first-level user group and the second-level user group, whether decarbonization is required is determined based on the remaining gas supply. If so, the target carbon dioxide content of the decarbonized gas is set, and the decarbonization gas parameters of each candidate gas distribution scheme are obtained through iterative calculation.
3. The gas supply mixing device according to claim 1 or 2, characterized in that: In step S4, for each user, the gas distribution ratio of each gas supply gas field group to the user is calculated according to the final gas distribution plan corresponding to the user, and the gas distribution ratio is fed back to the server.
4. A server, characterized in that: The device comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to be used in the device according to any one of claims 1 to 3.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to be used in the device according to any one of claims 1 to 3.
