Method and device for determining oil transportation difference of product oil pipeline
By acquiring and analyzing the data conveyed by the refined oil pipeline, including the input quantity, output quantity of each batch and the number of mixed oil products between adjacent batches, the oil transfer difference is accurately calculated, and the transmission error problem caused by inaccurate oil storage in the prior art is solved, and the statistical analysis accuracy of the conveyed data is improved.
Patent Information
- Application Number
- CN202411467247.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-21
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2044-10-21
AI Technical Summary
The prior art cannot accurately determine the amount of oil stored in the refined oil pipeline, resulting in the inability to accurately determine the oil transfer difference, affecting the accuracy of statistical analysis of the refined oil delivery process data.
By obtaining oil product delivery data, including the oil product input, output and the number of mixed oil products between adjacent batches in the target cycle, the oil mixing amount is determined based on the number and density of mixed oil products, and the oil transport difference of each batch is calculated.
It improves the accuracy of the poor oil transportation of refined oil, solves the problem of large oil transportation error, and supports the accurate statistical analysis of subsequent transportation process data.
Smart Images

Figure CN119554571A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of finished oil pipeline transportation, and in particular to a method and device for determining oil transportation difference of a finished oil pipeline. Background Art
[0002] Finished oil is produced and processed from crude oil, and can be divided into petroleum fuel, petroleum solvents and chemical raw materials, lubricants, paraffin, petroleum asphalt, petroleum coke, etc. Pipeline transportation is one of the most important modes of transportation for finished oil. Pipeline transportation generally uses sequential transportation to continuously transport multiple batches of different types of oil products to improve transportation efficiency. In the transportation process of finished oil, it is usually necessary to determine the oil delivery difference of finished oil (abbreviated as delivery difference), that is, to determine the difference between the input and output of finished oil. The delivery difference is an important economic indicator for evaluating the task of finished oil transportation.
[0003] In the related art, the corresponding transmission difference is usually determined by the oil volume of the output pipeline, the oil sales volume of the output pipeline and the oil storage volume of the pipeline within a time period. Since the pipeline is long and the oil storage volume of the pipeline is related to multiple parameters such as the physical pipe capacity of the pipeline, the oil product interface, temperature, pressure, density, etc., the technical personnel are unable to accurately determine the oil storage volume of the pipeline within a time period, resulting in the inability to accurately determine the transmission difference, which in turn affects the accuracy of the statistical analysis of the finished oil transportation process data.
[0004] Therefore, there is an urgent need for a method and device for determining the oil delivery difference of a finished oil pipeline to accurately determine the delivery difference of the finished oil, thereby providing support for the statistical analysis of the subsequent finished oil transportation process data. Summary of the invention
[0005] The embodiment of the present invention provides a method and device for determining the oil delivery difference of a finished oil pipeline, which accurately determines the delivery difference of the finished oil and further provides support for the statistical analysis of the subsequent delivery process data of the finished oil.
[0006] To achieve the above object, the embodiments of the present invention adopt the following technical solutions:
[0007] In a first aspect, a method for determining an oil delivery difference in a finished oil pipeline is provided, the method comprising: acquiring oil delivery data, the oil delivery data comprising an input amount, an output amount, and an amount of mixed oil products between any two adjacent batches of oil products in each of a plurality of batches delivered through a target pipeline in a target delivery sequence within a target period, wherein the input amount is the amount of oil products entering the target pipeline, and the output amount is the amount of oil products leaving the target pipeline; determining an amount of mixed oil corresponding to the oil products in a target batch according to the amount and density of mixed oil products between any two adjacent batches, the amount of mixed oil being the sum of the amounts of mixed oil corresponding to two mixed oil zones before and after the target batch, wherein the target batch is any one of the plurality of batches; and determining an oil delivery difference corresponding to the oil products in the target batch according to the input amount, output amount, and mixed oil amount corresponding to the oil products in the target batch.
[0008] In a possible implementation manner of the first aspect, the method further includes: determining the sum of the oil delivery differences corresponding to each batch of oil products in the multiple batches as the oil delivery difference of the oil product corresponding to the target cycle.
[0009] In a possible implementation of the first aspect, the mixed oil amount corresponding to the target batch of oil products is determined based on the oil quantity and density of the mixed oil products between any two adjacent batches, including: determining a first mixed oil amount and a second mixed oil amount corresponding to the target batch of oil products based on the oil quantity and density of the mixed oil products between any two adjacent batches, wherein the first mixed oil amount is the mixed oil amount between the oil products of the previous batch of the target batch and the oil products of the target batch in the target delivery sequence, and the second mixed oil amount is the mixed oil amount between the oil products of the next batch of the target batch and the oil products of the target batch in the target delivery sequence; and determining the mixed oil amount corresponding to the target batch of oil products as the sum of the first mixed oil amount and the second mixed oil amount.
[0010] In a possible implementation of the first aspect, a formula for determining a first mixed oil amount corresponding to a target batch of oil products is:
[0011] S1=h1*w1;
[0012]
[0013] Wherein, S1 is the first mixed oil amount corresponding to the target batch of oil products, h1 is the amount of mixed oil products between the target batch of oil products and the previous batch of oil products; w1 is the mass fraction of the target batch of oil products in the mixed oil products between the target batch of oil products and the previous batch of oil products; ρ w1 is the density of the mixed oil between the target batch of oil and the previous batch of oil, ρ1 is the density of the target batch of oil, and ρ2 is the density of the previous batch of oil;
[0014] The formula for determining the second mixed oil amount corresponding to the target batch of oil products is:
[0015] S2=h2*w2;
[0016]
[0017] Wherein, S2 is the second mixed oil amount corresponding to the target batch of oil products, h2 is the amount of mixed oil products between the target batch of oil products and the next batch of oil products; w2 is the mass fraction of the target batch of oil products in the mixed oil products between the target batch of oil products and the next batch of oil products; ρ w2 is the density of the mixed oil between the target batch of oil and the subsequent batch of oil, ρ1 is the density of the target batch of oil, and ρ3 is the density of the subsequent batch of oil.
[0018] In a possible implementation of the first aspect, the oil delivery difference corresponding to the target batch of oil products is determined based on the input amount, output amount and mixed oil amount corresponding to the target batch of oil products, including: determining the sum of the output amount and the mixed oil amount corresponding to the target batch of oil products; and determining the difference between the input amount corresponding to the target batch of oil products and the sum of the output amount and the mixed oil amount as the oil delivery difference corresponding to each batch of oil products.
[0019] The beneficial effects of the present invention are as follows: the method provided by the present invention obtains oil product delivery data, the oil product delivery data includes the input amount, output amount and the amount of mixed oil products between any two adjacent batches of each batch of oil products in the target period according to the target delivery sequence through the target pipeline; the mixed oil amount corresponding to the target batch of oil products is determined according to the amount and density of the mixed oil products between any two adjacent batches, and the mixed oil amount is the sum of the mixed oil amounts corresponding to the two mixed oil areas before and after the target batch; the oil delivery difference corresponding to the target batch of oil products is determined according to the input amount, output amount and mixed oil amount corresponding to the target batch of oil products. In the related art, the oil delivery difference is usually determined by the oil product input amount, output amount and pipeline inventory amount. Since the technicians cannot accurately determine the pipeline inventory amount of the oil products, the determined oil delivery difference is inaccurate. The method provided by the present invention can quickly improve the accuracy of the finished oil delivery difference and solve the problem of large oil delivery difference error.
[0020] In a second aspect, an embodiment of the present invention provides a device for determining the oil delivery difference of a finished oil pipeline, the device comprising: a data acquisition unit, used to acquire oil delivery data, the oil delivery data including the input quantity, output quantity and the amount of mixed oil products between any two adjacent batches of each batch of oil products in a plurality of batches delivered through a target pipeline in a target delivery sequence within a target period, wherein the input quantity is the amount of oil products entering the target pipeline, and the output quantity is the amount of oil products leaving the target pipeline; a quantity determination unit, used to determine the amount of mixed oil corresponding to the target batch of oil products according to the amount and density of mixed oil products between any two adjacent batches, the mixed oil amount being the sum of the amounts of mixed oil corresponding to two mixed oil zones before and after the target batch, wherein the target batch is any one of the plurality of batches; and a delivery difference determination unit, used to determine the oil delivery difference corresponding to the target batch of oil products according to the input quantity, output quantity and mixed oil amount corresponding to the target batch of oil products.
[0021] In a possible implementation of the second aspect, the delivery difference determining unit is further configured to: determine the sum of the delivery differences corresponding to each batch of oil products in the multiple batches as the delivery difference of the oil product corresponding to the target cycle;
[0022] In a possible implementation of the second aspect, the quantity determination unit is specifically used to: determine a first oil mixing amount and a second oil mixing amount corresponding to the target batch of oil products according to the oil product quantity and density of the mixed oil products between any two adjacent batches, wherein the first oil mixing amount is the oil mixing amount belonging to the target batch between the oil products of the previous batch of the target batch and the oil products of the target batch in the target delivery sequence, and the second oil mixing amount is the oil mixing amount belonging to the target batch between the oil products of the next batch of the target batch and the oil products of the target batch in the target delivery sequence; and determine the sum of the first oil mixing amount and the second oil mixing amount corresponding to the target batch of oil products as the oil mixing amount corresponding to the target batch of oil products.
[0023] In a possible implementation of the second aspect, a formula for determining a first mixed oil amount corresponding to a target batch of oil products is:
[0024] S1=h1*w1;
[0025]
[0026] Wherein, S1 is the first mixed oil amount corresponding to the target batch of oil products, h1 is the amount of mixed oil products between the target batch of oil products and the previous batch of oil products; w1 is the mass fraction of the target batch of oil products in the mixed oil products between the target batch of oil products and the previous batch of oil products; ρ w1 is the density of the mixed oil between the target batch of oil and the previous batch of oil, ρ1 is the density of the target batch of oil, and ρ2 is the density of the previous batch of oil;
[0027] In other embodiments, the formula for determining the second mixed oil amount corresponding to the target batch of oil products is:
[0028] S2=h2*w2;
[0029]
[0030] Wherein, S2 is the second mixed oil amount corresponding to the target batch of oil products, h2 is the amount of mixed oil products between the target batch of oil products and the next batch of oil products; w2 is the mass fraction of the target batch of oil products in the mixed oil products between the target batch of oil products and the next batch of oil products; ρ w2 is the density of the mixed oil between the target batch of oil and the subsequent batch of oil, ρ1 is the density of the target batch of oil, and ρ3 is the density of the subsequent batch of oil.
[0031] In a possible implementation of the second aspect, the output difference determination unit is specifically used to: determine the sum of the output amount and the mixed oil amount corresponding to the target batch of oil products; and determine the difference between the input amount corresponding to the target batch of oil products and the sum of the output amount and the mixed oil amount as the oil output difference corresponding to each batch of oil products.
[0032] According to a third aspect, an electronic device is provided, comprising a memory and one or more processors; the memory is coupled to the processor; wherein the memory stores computer program code, the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the electronic device executes a method as in any implementation of the first aspect.
[0033] According to a fourth aspect, a computer-readable storage medium is provided, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method in any implementation of the first aspect.
[0034] According to a fifth aspect, a computer program product is provided. When the computer program product is run on a computer, the computer is enabled to execute the method in any implementation of the first aspect.
[0035] It can be understood that the beneficial effects that can be achieved by the device of the second aspect, the electronic device of the third aspect, the computer-readable storage medium of the fourth aspect, and the computer program product of the fifth aspect provided above can be referred to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A schematic diagram of the hardware structure of an electronic device shown in an embodiment of the present invention;
[0037] Figure 2A flow chart of a method for determining the oil delivery difference of a finished oil pipeline according to an embodiment of the present invention;
[0038] Figure 3 A schematic diagram of oil product transportation shown in an embodiment of the present invention;
[0039] Figure 4 A flow chart of another method for determining the oil delivery difference of a refined oil pipeline according to an embodiment of the present invention;
[0040] Figure 5 A flow chart of another method for determining the oil delivery difference of a finished oil pipeline according to an embodiment of the present invention;
[0041] Figure 6 The figure is a schematic diagram of the hardware structure of a determination device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The technical solution in the embodiment of the present invention will be described below in conjunction with the accompanying drawings in the embodiment of the present invention. Among them, in the description of the present invention, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in the present invention is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. And, in the description of the present invention, unless otherwise specified, "multiple" means two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items.
[0043] In addition, in order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, the words "first", "second", etc. are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art can understand that the words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not necessarily limit the difference.
[0044] Meanwhile, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way for easy understanding.
[0045] Finished oil is produced and processed from crude oil, and can be divided into petroleum fuel, petroleum solvents and chemical raw materials, lubricants, paraffin, petroleum asphalt, petroleum coke, etc. Pipeline transportation is one of the most important modes of transportation for finished oil. Pipeline transportation generally adopts a sequential transportation method to continuously transport multiple batches of different types of oil products to improve transportation efficiency. At present, finished oil is usually transported through long-distance pipelines to ensure the quality of each batch of finished oil. During the transportation of finished oil, it is usually necessary to determine the delivery difference of finished oil (referred to as delivery difference), that is, to determine the difference between the input and output of finished oil. The delivery difference is used to determine the loss of finished oil during the transportation process, and is an important economic indicator for evaluating the delivery task of finished oil.
[0046] In the related art, the corresponding transmission difference is usually determined by the oil volume of the output pipeline, the oil sales volume of the output pipeline and the oil storage volume of the pipeline within a time period. Since the pipeline is long and the oil storage volume of the pipeline is related to multiple parameters such as the physical pipe capacity of the pipeline, the oil product interface, temperature, pressure, density, etc., the technical personnel are unable to accurately determine the oil storage volume of the pipeline within a time period, resulting in the inability to accurately determine the transmission difference, which in turn affects the accuracy of the statistical analysis of the finished oil transportation process data.
[0047] Therefore, there is an urgent need for a method and device for determining the transmission difference of a finished oil pipeline to accurately determine the transmission difference of the finished oil, thereby providing support for the statistical analysis of subsequent finished oil transportation process data.
[0048] In view of this, an embodiment of the present invention provides a method for determining an oil delivery difference in a finished oil pipeline, the method comprising: acquiring oil delivery data, the oil delivery data comprising an input amount, an output amount, and an amount of mixed oil products between any two adjacent batches of oil products in each of a plurality of batches delivered through a target pipeline in a target delivery sequence within a target period, wherein the input amount is the amount of oil products entering the target pipeline, and the output amount is the amount of oil products leaving the target pipeline; determining an oil mixing amount corresponding to the oil products in the target batch according to the amount and density of the mixed oil products between any two adjacent batches, the oil mixing amount being the sum of the oil mixing amounts corresponding to two oil mixing areas before and after the target batch, the target batch being any one of the plurality of batches; determining an oil delivery difference corresponding to the oil products in the target batch according to the input amount, output amount, and oil mixing amount corresponding to the oil products in the target batch.
[0049] The method provided by the embodiment of the present invention obtains oil product delivery data, the oil product delivery data includes the input amount, output amount and the amount of mixed oil products between any two adjacent batches of each batch of oil products in the target period according to the target delivery sequence through the target pipeline; the mixed oil amount corresponding to the target batch of oil products is determined according to the amount and density of the mixed oil products between any two adjacent batches, and the mixed oil amount is the amount of oil products included in the mixed oil products; the oil delivery difference corresponding to the target batch of oil products is determined according to the input amount, output amount and mixed oil amount corresponding to the target batch of oil products. In the related art, the oil delivery difference is usually determined by the oil product input amount, output amount and pipeline inventory amount. Since the technicians cannot accurately determine the pipeline inventory amount of the oil products, the determined oil delivery difference is inaccurate. The method provided by the embodiment of the present invention can improve the accuracy of the finished oil delivery difference and solve the problem of large oil delivery difference error.
[0050] In some embodiments, the method for determining the difference in oil delivery in a finished oil pipeline provided in an embodiment of the present invention may be performed by a device 100 for determining the difference in oil delivery in a finished oil pipeline (hereinafter referred to as the determination device 100). As an example, the determination device 100 may be any electronic device 200 with data processing capabilities, such as a general-purpose computer, a personal computer, a laptop computer, a switch, or a tablet computer, etc. The specific implementation of the purchase list determination device 100 is not limited here.
[0051] Figure 1 The hardware structure diagram of the electronic device provided by the embodiment of the present invention is shown. The electronic device 200 includes a processor 210 , a memory 220 and a communication interface 230 .
[0052] The processor 210 may include one or more processing cores. The processor 210 uses various interfaces and lines to connect various parts in the electronic device 200, and executes various functions and processes data of the electronic device 200 by running or executing instructions, programs, code sets or instruction sets stored in the memory 220, and calling data stored in the memory 220. Optionally, the processor 210 can be implemented in at least one hardware form of a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA).
[0053] The memory 220 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 220 includes a non-transitory computer-readable storage medium. The memory 220 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 220 may include a program storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a data acquisition function, a data processing function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.
[0054] The communication interface 230 is used to communicate with other devices, equipment or communication networks, such as data storage devices, image processing equipment or Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.
[0055] In physical implementation, the above-mentioned components (such as processor 210, memory 220 and communication interface 230) can be components in the same device (such as a laptop). Alternatively, at least two of the components can be set in the same device, that is, as different components in one device, such as a deployment method similar to devices or components in a distributed system.
[0056] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 200. In other embodiments of the present invention, the electronic device 200 may include more or fewer components than those illustrated, or combine certain components, or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0057] The following describes a method for determining the oil delivery difference of a refined oil pipeline provided by an embodiment of the present invention in conjunction with the accompanying drawings.
[0058] Figure 2 A flowchart of a method for determining the difference in oil delivery in a finished oil pipeline provided by an embodiment of the present invention. Optionally, the method may be Figure 1 The electronic device 200 shown is executed, that is, the determination device 100 is executed. The method may include the following steps:
[0059] S1. Obtain oil transportation data.
[0060] The oil product delivery data includes the input amount, output amount and the amount of mixed oil products between any two adjacent batches of oil products in each batch of multiple batches delivered through the target pipeline in the target delivery sequence within the target period. The input amount is the amount of oil products entering the target pipeline, and the output amount is the amount of oil products leaving the target pipeline;
[0061] Specifically, the input amount of each batch of oil products is the sum of each batch of oil products injected by multiple injection metering stations connected to the pipeline, and the output amount of each batch of oil products is the sum of each batch of oil products output by multiple distribution metering stations connected to the pipeline.
[0062] For example, see Figure 3 , Figure 3 This is a schematic diagram of oil product transportation shown in an embodiment of the present invention. Five batches of oil products are transported in a target pipeline in a target transportation order, namely batch 1, batch 2, batch 3, batch 4 and batch 5. There is a mixed oil zone between any two adjacent batches of oil products, namely mixed oil zone 1, mixed oil zone 2, mixed oil zone 3 and mixed oil zone 4.
[0063] It should be understood that multiple batches of oil products can be of the same type or different types, for example, gasoline or diesel. When two adjacent batches of oil products are of the same type but different product numbers, the amount of mixed oil between the two adjacent batches of oil products is 0.
[0064] It should be noted that the embodiment of the present invention does not impose any particular limitation on the specific type of oil products, and the oil products may be any type of oil products that need to pass through the target pipeline.
[0065] S2. Determine the mixed oil amount corresponding to the target batch of oil products according to the oil product quantity and density of the mixed oil products between any two adjacent batches. The mixed oil amount is the sum of the mixed oil amounts corresponding to the two mixed oil areas before and after the target batch.
[0066] Specifically, each mixed oil zone includes two different batches of oil products, and the target batch is any one of the multiple batches. For ease of understanding, the following embodiment uses batch 3 as the target batch for explanation. The oil product delivery data includes the input and output of each batch of oil products, and also includes the amount of mixed oil products in each of the four mixed oil zones. Figure 3 When the target batch is batch 3, the mixed oil amount corresponding to the oil products of the target batch is the amount of oil products included in the mixed oil zone 2 and the mixed oil zone 3.
[0067] In one possible implementation, see Figure 4 The above S2 specifically includes the following steps:
[0068] S21, determining a first mixed oil amount and a second mixed oil amount corresponding to the target batch of oil products according to the quantity and density of the mixed oil products between any two adjacent batches.
[0069] Among them, the first mixed oil amount is the mixed oil amount belonging to the target batch between the oil products of the previous batch of the target batch and the oil products of the target batch in the target delivery sequence, and the second mixed oil amount is the mixed oil amount belonging to the target batch between the oil products of the next batch of the target batch and the oil products of the target batch in the target delivery sequence.
[0070] In combination with the above example, when the target batch is batch 3, the first oil mixing amount is the oil mixing amount between the oil products of batch 2 and the oil products of batch 3. That is, the amount of oil products belonging to batch 3 in the oil mixing area 2. The second oil mixing amount is the oil mixing amount between the oil products of batch 4 and the oil products of batch 3. That is, the amount of oil products belonging to batch 3 in the oil mixing area 3.
[0071] S22. Determine the sum of the first mixed oil amount and the second mixed oil amount corresponding to the target batch of oil products as the mixed oil amount corresponding to the target batch of oil products.
[0072] In some embodiments, the formula for determining the first mixed oil amount corresponding to the target batch of oil products is:
[0073] S1=h1*w1;
[0074]
[0075] Wherein, S1 is the first mixed oil amount corresponding to the target batch of oil products, h1 is the amount of mixed oil products between the target batch of oil products and the previous batch of oil products; w1 is the mass fraction of the target batch of oil products in the mixed oil products between the target batch of oil products and the previous batch of oil products; ρ w1 is the density of the mixed oil between the target batch of oil and the previous batch of oil, ρ1 is the density of the target batch of oil, and ρ2 is the density of the previous batch of oil;
[0076] In other embodiments, the formula for determining the second mixed oil amount corresponding to the target batch of oil products is:
[0077] S2=h2*w2;
[0078]
[0079] Wherein, S2 is the second mixed oil amount corresponding to the target batch of oil products, h2 is the amount of mixed oil products between the target batch of oil products and the next batch of oil products; w2 is the mass fraction of the target batch of oil products in the mixed oil products between the target batch of oil products and the next batch of oil products; ρ w2is the density of the mixed oil between the target batch of oil and the subsequent batch of oil, ρ1 is the density of the target batch of oil, and ρ3 is the density of the subsequent batch of oil.
[0080] In combination with the above example, when batch 3 is diesel and batch 2 is gasoline, the formula for determining the first mixed oil amount corresponding to the oil products of batch 3 is:
[0081] S1=h 混 *w1;
[0082]
[0083] Among them, S1 is the first mixed oil amount corresponding to the oil product of batch 3, h 混 is the amount of oil in the mixed oil zone 2 between the oil of batch 3 and the oil of batch 2; w1 is the mass fraction of the oil of batch 2 in the mixed oil zone 2; ρ w1 is the average density of the mixed oil zone 2, ρ1 is the density of the oil from batch 3, and ρ2 is the density of the oil from batch 3.
[0084] S3. Determine the oil delivery difference corresponding to the target batch of oil products according to the input amount, output amount and mixed oil amount corresponding to the target batch of oil products.
[0085] In one possible implementation, see Figure 5 The above S3 specifically includes the following steps:
[0086] S31, determining the sum of the output amount and the mixed oil amount corresponding to the target batch of oil products;
[0087] S32. Determine the difference between the input amount corresponding to the target batch of oil products and the sum of the output amount and the mixed oil amount as the oil delivery difference corresponding to each batch of oil products.
[0088] In a possible implementation, the formula for determining the oil delivery difference corresponding to the target batch of oil products is:
[0089] Δm x =∑mi x -(∑mo x +m hx );
[0090] Among them, Δm x is the oil delivery difference corresponding to the target batch of oil products, ∑mi x is the input amount corresponding to the target batch of oil products, ∑mo x is the output volume of the target batch of oil products; m hx is the mixed oil amount corresponding to the target batch of oil products.
[0091] Furthermore, the method provided in the embodiment of the present invention further includes the following steps:
[0092] Determine the batch error rate corresponding to the target batch of oil products.
[0093] Among them, the batch error rate m x The formula for determining is:
[0094] m x =(Δm x / ∑mi x )*100%;
[0095] Optionally, the method provided in the embodiment of the present invention further includes the following steps:
[0096] S4. Determine the sum of the oil delivery differences corresponding to each batch of oil products in the multiple batches as the oil delivery difference of the oil product corresponding to the target cycle.
[0097] Exemplarily, the oil product delivery data include the input quantity, output quantity and oil quantity of each batch of oil products delivered through the target pipeline in the target delivery order from April 2024 to May 2024, and the oil product quantity of the mixed oil products between any two adjacent batches. The oil delivery difference of each batch of oil products is determined in turn, and the sum of the oil delivery differences of the five batches of oil products is determined as the oil delivery difference of the oil products corresponding to April 2024 - May 2024.
[0098] It should be understood that the target batch is any one of the multiple batches, that is, the method for determining the oil delivery difference corresponding to each batch of oil products is the same as the method for determining the oil delivery difference corresponding to the target batch of oil products, which will not be repeated here.
[0099] As can be seen from S1-S4, the method provided by the embodiment of the present invention obtains oil product delivery data, and the oil product delivery data includes the input amount, output amount, and oil product quantity of mixed oil products between any two adjacent batches of each batch of oil products in multiple batches delivered through the target pipeline in the target delivery order within the target period; the mixed oil amount corresponding to the target batch of oil products is determined according to the oil product quantity and density of the mixed oil products between any two adjacent batches, and the mixed oil amount is the sum of the mixed oil amounts corresponding to the two mixed oil areas before and after the target batch; the oil delivery difference corresponding to the target batch of oil products is determined according to the input amount, output amount, and mixed oil amount corresponding to the target batch of oil products. In the related art, the oil delivery difference is usually determined by the oil product input amount, output amount, and pipeline inventory. Since the technicians cannot accurately determine the pipeline inventory of the oil products, the determined oil delivery difference is inaccurate. The method provided by the embodiment of the present invention can improve the accuracy of the finished oil delivery difference and solve the problem of large oil delivery difference error.
[0100] The above mainly introduces the scheme of the embodiment of the present invention from the perspective of the method. It can be understood that in order to realize the above functions, the determination device includes at least one of the hardware structure and software modules corresponding to the execution of each function. It should be easy for those skilled in the art to realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed in this article, the embodiment of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiment of the present invention.
[0101] The embodiment of the present invention can divide the determination device into functional units according to the above method example. For example, the determination device can be divided into functional units corresponding to various functions, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present invention is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0102] For example, Figure 6 The hardware structure diagram of a determination device provided by an embodiment of the present invention is shown. The determination device 100 includes: a data acquisition unit 610, which is used to acquire oil product delivery data, the oil product delivery data including the input amount, output amount and the amount of mixed oil products between any two adjacent batches of each batch of oil products in multiple batches delivered through the target pipeline in the target delivery order within the target period, wherein the input amount is the amount of oil products entering the target pipeline, and the output amount is the amount of oil products leaving the target pipeline; a quantity determination unit 620, which is used to determine the mixed oil amount corresponding to the target batch of oil products according to the amount and density of the mixed oil products between any two adjacent batches, the mixed oil amount being the sum of the mixed oil amounts corresponding to the two mixed oil areas before and after the target batch, and the target batch is any one of the multiple batches; and a delivery difference determination unit 630, which is used to determine the delivery difference corresponding to the target batch of oil products according to the input amount, output amount and mixed oil amount corresponding to the target batch of oil products.
[0103] Optionally, the delivery difference determination unit 630 is further configured to: determine the delivery difference of the oil product corresponding to the target period by summing up the delivery differences corresponding to each batch of oil products in the multiple batches;
[0104] Optionally, the quantity determination unit 620 is specifically used to: determine a first oil mixing amount and a second oil mixing amount corresponding to the target batch of oil products according to the oil product quantity and density of the mixed oil products between any two adjacent batches, wherein the first oil mixing amount is the oil mixing amount belonging to the target batch between the oil products of the previous batch of the target batch and the oil products of the target batch in the target delivery sequence, and the second oil mixing amount is the oil mixing amount belonging to the target batch between the oil products of the next batch of the target batch and the oil products of the target batch in the target delivery sequence; and determine the sum of the first oil mixing amount and the second oil mixing amount corresponding to the target batch of oil products as the oil mixing amount corresponding to the target batch of oil products.
[0105] Optionally, the formula for determining the first mixed oil amount corresponding to the target batch of oil products is:
[0106] S1=h1*w1;
[0107]
[0108] Wherein, S1 is the first mixed oil amount corresponding to the target batch of oil products, h1 is the amount of mixed oil products between the target batch of oil products and the previous batch of oil products; w1 is the mass fraction of the target batch of oil products in the mixed oil products between the target batch of oil products and the previous batch of oil products; ρ w1 is the density of the mixed oil between the target batch of oil and the previous batch of oil, ρ1 is the density of the target batch of oil, and ρ2 is the density of the previous batch of oil;
[0109] The formula for determining the second mixed oil amount corresponding to the target batch of oil products is:
[0110] S2=h2*w2;
[0111]
[0112] Wherein, S2 is the second mixed oil amount corresponding to the target batch of oil products, h2 is the amount of mixed oil products between the target batch of oil products and the next batch of oil products; w2 is the mass fraction of the target batch of oil products in the mixed oil products between the target batch of oil products and the next batch of oil products; ρ w2 is the density of the mixed oil between the target batch of oil and the subsequent batch of oil, ρ1 is the density of the target batch of oil, and ρ3 is the density of the subsequent batch of oil.
[0113] Optionally, the output difference determination unit 630 is specifically used to: determine the sum of the output amount and the mixed oil amount corresponding to the target batch of oil products; and determine the difference between the input amount corresponding to the target batch of oil products and the sum of the output amount and the mixed oil amount as the oil output difference corresponding to each batch of oil products.
[0114] It should be understood that the specific description of the above optional methods can refer to the above method embodiments, which will not be repeated here. In addition, the explanation of any of the above-provided determination devices 100 and the description of the beneficial effects can refer to the above corresponding method embodiments, which will not be repeated here.
[0115] The embodiment of the present invention further provides a computer-readable storage medium, in which at least one computer instruction is stored, and the at least one computer instruction is loaded and executed by a processor to implement the methods of the above embodiments. For the explanation of the relevant contents and the description of the beneficial effects in any of the above-mentioned computer-readable storage media, reference can be made to the above-mentioned corresponding embodiments, which will not be repeated here.
[0116] The embodiment of the present invention further provides a chip. The chip integrates a control circuit and one or more ports for implementing the functions of the above-mentioned determination device 100. Optionally, the functions supported by the chip can be referred to above and will not be described in detail here.
[0117] Those skilled in the art will appreciate that all or part of the steps of the above embodiments can be implemented by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The above-mentioned storage medium can be a read-only memory, a random access memory, etc. The above-mentioned processing unit or processor can be a central processing unit, a general-purpose processor, a specific circuit structure (application specific integrated circuit, ASIC), a microprocessor (digital signal processor, DSP), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.
[0118] The embodiment of the present invention also provides a computer program product including instructions, when the instructions are run on a computer, the computer executes any one of the methods in the above embodiments. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., an SSD), etc.
[0119] It should be noted that the above-mentioned devices for storing computer instructions or computer programs provided in the embodiments of the present invention, such as but not limited to the above-mentioned memory, computer-readable storage medium and communication chip, etc., all have non-transitory. Those skilled in the art should be aware that in one or more of the above-mentioned examples, the functions described in the embodiments of the present invention can be implemented with hardware, software, firmware or any combination thereof. When implemented using software, these functions can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein the communication medium includes any medium that is convenient for transmitting a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0120] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for determining the oil delivery difference of a finished oil pipeline, characterized in that: The method comprises: Acquire oil product delivery data, the oil product delivery data including the input amount, output amount, and oil product quantity of each batch of oil products in a plurality of batches delivered through a target pipeline in a target delivery sequence within a target period, wherein the input amount is the amount of oil products entering the target pipeline, and the output amount is the amount of oil products leaving the target pipeline; Determine the mixed oil amount corresponding to the target batch of oil products according to the oil product quantity and density of the mixed oil products between any two adjacent batches, the mixed oil amount being the sum of the mixed oil amounts corresponding to the two mixed oil areas before and after the target batch, the target batch being any one of the multiple batches; The oil delivery difference corresponding to the target batch of oil products is determined based on the input amount, output amount and mixed oil amount corresponding to the target batch of oil products.
2. The method according to claim 1, characterized in that The method further comprises: The sum of the oil delivery differences corresponding to each batch of oil products in the multiple batches is determined as the oil delivery difference of the oil product corresponding to the target cycle.
3. The method according to claim 2, characterized in that The step of determining the mixed oil amount corresponding to the target batch of oil products according to the oil product quantity and density of the mixed oil products between any two adjacent batches includes: Determine a first oil mixing amount and a second oil mixing amount corresponding to the target batch of oil products according to the oil product quantity and density of the mixed oil products between any two adjacent batches, wherein the first oil mixing amount is the oil mixing amount belonging to the target batch between the oil products of the previous batch of the target batch and the oil products of the target batch in the target delivery sequence, and the second oil mixing amount is the oil mixing amount belonging to the target batch between the oil products of the next batch of the target batch and the oil products of the target batch in the target delivery sequence; The sum of the first mixed oil amount and the second mixed oil amount corresponding to the target batch of oil products is determined as the mixed oil amount corresponding to the target batch of oil products.
4. The method according to claim 3, characterized in that: The formula for determining the first mixed oil amount corresponding to the target batch of oil products is: S1=h1*w1; Wherein, S1 is the first mixed oil amount corresponding to the target batch of oil products, h1 is the amount of mixed oil products between the target batch of oil products and the previous batch of oil products; w1 is the mass fraction of the target batch of oil products in the mixed oil products between the target batch of oil products and the previous batch of oil products; ρ w1 is the density of the mixed oil between the target batch of oil and the previous batch of oil, ρ1 is the density of the target batch of oil, and ρ2 is the density of the previous batch of oil; The formula for determining the second mixed oil amount corresponding to the target batch of oil products is: S2=h2*w2; Wherein, S2 is the second mixed oil amount corresponding to the target batch of oil products, h2 is the amount of mixed oil products between the target batch of oil products and the next batch of oil products; w2 is the mass fraction of the target batch of oil products in the mixed oil products between the target batch of oil products and the next batch of oil products; ρ w2 is the density of the mixed oil between the target batch of oil and the subsequent batch of oil, ρ1 is the density of the target batch of oil, and ρ3 is the density of the subsequent batch of oil.
5. The method according to claim 4, characterized in that Determining the oil delivery difference corresponding to the target batch of oil products according to the input amount, output amount and mixed oil amount corresponding to the target batch of oil products includes: Determine the sum of the output volume and the mixed oil volume corresponding to the target batch of oil products; The difference between the input amount corresponding to the target batch of oil products and the sum of the output amount and the mixed oil amount is determined as the oil delivery difference corresponding to each batch of oil products.
6. A device for determining the difference in oil delivery in a finished oil pipeline, characterized in that: The device comprises: a data acquisition unit, used to acquire oil product delivery data, wherein the oil product delivery data includes the input amount, output amount, and oil product quantity of each batch of oil products in a plurality of batches delivered through a target pipeline in a target delivery sequence within a target period, and the oil product quantity of mixed oil products between any two adjacent batches, wherein the input amount is the oil product quantity entering the target pipeline, and the output amount is the oil product quantity leaving the target pipeline; a quantity determination unit, for determining the mixed oil quantity corresponding to the target batch of oil products according to the quantity of mixed oil products between any two adjacent batches, wherein the mixed oil quantity is the sum of the mixed oil quantities corresponding to the two mixed oil areas before and after the target batch, and the target batch is any one of the multiple batches; The delivery difference determination unit is used to determine the oil delivery difference corresponding to the target batch of oil products according to the input amount, output amount and mixed oil amount corresponding to the target batch of oil products.
7. The device according to claim 6, characterized in that The output difference determination unit is further used for: The sum of the oil delivery differences corresponding to each batch of oil products in the multiple batches is determined as the oil delivery difference of the oil product corresponding to the target cycle.
8. The device according to claim 7, characterized in that The quantity determination unit is specifically used for: Determine a first oil mixing amount and a second oil mixing amount corresponding to the target batch of oil products according to the oil product quantity and density of the mixed oil products between any two adjacent batches, wherein the first oil mixing amount is the oil mixing amount belonging to the target batch between the oil products of the previous batch of the target batch and the oil products of the target batch in the target delivery sequence, and the second oil mixing amount is the oil mixing amount belonging to the target batch between the oil products of the next batch of the target batch and the oil products of the target batch in the target delivery sequence; The sum of the first mixed oil amount and the second mixed oil amount corresponding to the target batch of oil products is determined as the mixed oil amount corresponding to the target batch of oil products.
9. The device according to claim 8, characterized in that The formula for determining the first mixed oil amount corresponding to the target batch of oil products is: S1=h1*w1; Wherein, S1 is the first mixed oil amount corresponding to the target batch of oil products, h1 is the amount of mixed oil products between the target batch of oil products and the previous batch of oil products; w1 is the mass fraction of the target batch of oil products in the mixed oil products between the target batch of oil products and the previous batch of oil products; ρ w1 is the density of the mixed oil between the target batch of oil and the previous batch of oil, ρ1 is the density of the target batch of oil, and ρ2 is the density of the previous batch of oil; The formula for determining the second mixed oil amount corresponding to the target batch of oil products is: S2=h2*w2; Wherein, S2 is the second mixed oil amount corresponding to the target batch of oil products, h2 is the amount of mixed oil products between the target batch of oil products and the next batch of oil products; w2 is the mass fraction of the target batch of oil products in the mixed oil products between the target batch of oil products and the next batch of oil products; ρ w2 is the density of the mixed oil between the target batch of oil and the subsequent batch of oil, ρ1 is the density of the target batch of oil, and ρ3 is the density of the subsequent batch of oil.
10. The device according to claim 9, characterized in that The output difference determination unit is specifically used for: Determine the sum of the output volume and the mixed oil volume corresponding to the target batch of oil products; The difference between the input amount corresponding to the target batch of oil products and the sum of the output amount and the mixed oil amount is determined as the oil delivery difference corresponding to each batch of oil products.
Citation Information
Patent Citations
Auxiliary ontology construction method, electronic equipment and storage medium
CN111737487A
Oil product sequential conveying method and oil mixing interface tracking method and device
CN113780958A
Resin process prediction method and device based on product performance and process data model
CN113919601A
Method and device for determining oil mixing quantity of product oil sequential conveying pipeline
CN114963016A
Product oil pipe network transportation method, system, medium and equipment
CN115587775A