Disclosure of Invention
Aiming at the problems existing in the prior art, the invention provides a method and a device for treating mixed oil of a finished oil pipeline, electronic equipment and a storage medium.
The invention provides a method for treating oil mixing of a finished oil pipeline, which comprises the following steps:
determining the maximum allowable concentration K of the preceding oil product A doped with the following oil product B AB And the maximum allowable concentration K of the oil product mixed with the downstream oil product BA ;
Determining the number N of intermediate yards contained in the target oil mixing section, and according to the planned downloading amount V of the backward oil product in each intermediate yard i And the preceding oil A is mixed with the following oil BMaximum allowable concentration K AB I is 1-N, and the maximum volume V of the forward oil product diluted by the surplus index of the backward oil product in each intermediate station is obtained Ai ;
Diluting the maximum volume V of the forward oil product according to the surplus index of the backward oil product in each intermediate station Ai Maximum allowable concentration K of the preceding oil product A doped with the following oil product B AB And the maximum allowable concentration K of the oil product mixed with the downstream oil product BA The corresponding relation between the forward oil concentration and the downloaded oil mixing quantity, which correspond to each intermediate station and each transportation terminal station, and the preset storage tank volume determine the maximum safety coefficient n of full-line distributed back doping;
determining that the total quantity of the forward oil products in the mixed oil required to be diluted in each intermediate station is V according to the maximum safety coefficient and the corresponding relation between the forward oil product concentration and the downloaded mixed oil quantity respectively corresponding to each intermediate station Ai N, the mixed oil quantity V is needed to be downloaded in each intermediate station Mi And maximum concentration K of forward oil in the mixed oil Ai 。
According to the method for treating the mixed oil of the finished oil pipeline, provided by the invention, the maximum volume quantity V of the forward oil product is diluted according to the surplus index of the backward oil product in each intermediate station Ai Maximum allowable concentration K of the preceding oil product A doped with the following oil product B AB And the maximum allowable concentration K of the oil product mixed with the downstream oil product BA The corresponding relation between the forward oil concentration and the downloaded oil mixing amount, which are respectively corresponding to each intermediate station and each transportation terminal, and the preset storage tank volume determine the maximum safety factor n of full-line distributed back doping, and the method comprises the following steps:
s21, configuring an initial safety coefficient, and diluting the maximum volume V of the forward oil product according to the initial safety coefficient and the surplus index of the backward oil product by each intermediate station Ai The corresponding relation between the forward oil concentration and the downloaded oil mixing quantity corresponding to each intermediate station and each transportation terminal respectively determines the oil mixing concentration distribution diagram and the oil mixing quantity of each concentration when the target oil mixing section reaches the transportation terminal;
s22, determining the total amount of the backward oil in the first 50% of the mixed oil in the mixed oil concentration distribution diagram and the total amount of the forward oil in the second 50% of the mixed oil in the mixed oil concentration distribution diagram according to the mixed oil concentration distribution diagram of the final transportation station and the mixed oil amount of each concentration;
S23, mixing the forward oil A into the maximum allowable concentration K of the backward oil B according to the preset storage tank volume AB Maximum allowable concentration K of the downstream oil product mixed with the upstream oil product BA Determining the theoretical total amount of the forward oil product and the backward oil product which can be diluted by means of the surplus index at the end of transportation;
s24, determining that the total amount of the backward oil products contained in the first 50% of the mixed oil in the mixed oil concentration distribution diagram is smaller than or equal to the theoretical total amount of the backward oil products, and the total amount of the forward oil products contained in the second 50% of the mixed oil in the mixed oil concentration distribution diagram is smaller than or equal to the theoretical total amount of the forward oil products, increasing an initial safety coefficient according to a preset increment, and repeating the steps S21-S23; and (3) until the condition of the step S24 is not met, obtaining the maximum safety coefficient of the full-line distributed back doping.
According to the method for treating the mixed oil of the finished oil pipeline, which is provided by the invention, the total quantity of the forward oil in the mixed oil required to be diluted in each intermediate station is determined to be V according to the maximum safety coefficient and the corresponding relation between the forward oil concentration and the downloaded mixed oil quantity respectively corresponding to each intermediate station Ai At the time of/n, the mixed oil quantity V needs to be downloaded in each intermediate station Mi And maximum concentration K of forward oil in the mixed oil Ai Comprising:
and determining the corresponding download oil mixing quantity V when the forward oil concentration is 1%, 2%, 3%,..the j%,..the 99% according to the corresponding relation between the forward oil concentration and the download oil mixing quantity respectively corresponding to each intermediate station KAj Wherein j=1 to 99;
let 1% x V KA1 +2%×V KA2 +3%×V KA3 +...++j%×V KAj ≤V Ai When in n, determining the value of j to obtain the maximum concentration K of the forward oil in the mixed oil Ai Wherein n is the maximum safety factor;
determining V KA1 、V KA2 、V KA3 、......、V KAj The sum of (2) is the download mixed oil volume V Mi 。
According to the invention provideThe method for treating the mixed oil of the finished oil pipeline comprises the steps of determining the number of intermediate stations contained in a target mixed oil section, and determining the planned downloading amount V of the backward oil product in the ith intermediate station i And a maximum allowable concentration K AB Obtaining the maximum volume V of the forward oil product diluted by the surplus index of the backward oil product in each intermediate station Ai Comprising:
and determining a product value of the planned downloading amount of the backward oil products of each intermediate station and the maximum allowable concentration of the blended forward oil products, so that the product value is used as the maximum volume of the forward oil products diluted by each intermediate station depending on the surplus index of the backward oil products.
According to the method for treating the mixed oil of the finished oil pipeline, the corresponding relation between the concentration of the forward oil product and the downloaded mixed oil product corresponding to each intermediate station and the transportation terminal station comprises the following steps:
concentration distribution formula:
D T =17.4VRe 2/3
the oil mixing amount calculation formula:
or is or
Wherein K is A As a function of the concentration of the forward oil product, phi, pe d Is Becky Lei number, v is fluid flow rate, L 1 For mileage of first intermediate yard, D T In order to be a turbulent diffusion coefficient,v is the average kinematic viscosity of the fluid, re is the Reynolds number, C is the length of the mixed oil, alpha is a correction coefficient, Z is the corresponding value of the concentration of the symmetrically cut mixed oil head, d is the inner diameter of a pipeline, and C * C, to make the mixed oil length not considering the mixed oil download effect of the intermediate station yard 0 For the length of the mixed oil of the last intermediate station, L 2 Is the mileage of the corresponding intermediate yard other than the first intermediate yard.
According to the method for treating the mixed oil of the finished oil pipeline, which is provided by the invention, the maximum allowable concentration K of the forward oil A doped with the backward oil B is determined according to the preset storage tank volume AB Maximum allowable concentration K of the downstream oil product mixed with the upstream oil product BA Determining the theoretical total amount of the forward oil product and the backward oil product which can be diluted by means of the surplus index at the tail station of transportation comprises the following steps:
determining the preset storage tank volume and the maximum allowable concentration K of the forward oil product A doped with the backward oil product B AB Maximum allowable concentration K of the downstream oil product mixed with the upstream oil product BA The product value of (2) enables the product value to be used as a transportation terminal station to dilute the theoretical total amount of the forward oil product and the backward oil product by means of the surplus index.
The invention also provides a device for treating the mixed oil of the finished oil pipeline, which comprises:
a first determining module for determining the maximum allowable concentration K of the forward oil product A doped with the backward oil product B AB And the maximum allowable concentration K of the following oil B doped with the preceding oil A BA ;
A second determining module, configured to determine the number N of intermediate yards included in the target oil mixing section, according to the planned download amount V of the backward oil product in each intermediate yard i And the maximum allowable concentration K of the following oil B doped with the preceding oil A AB I is 1-N, and the maximum volume V of the forward oil product diluted by the surplus index of the backward oil product in each intermediate station is obtained Ai ;
The calculation module is used for diluting the maximum volume V of the forward oil product according to the surplus index of the backward oil product in each intermediate station Ai Maximum allowable concentration K of the preceding oil product A doped with the following oil product B AB And the maximum allowable concentration K of the oil product mixed with the downstream oil product BA Each intermediate stationThe corresponding relation between the concentration of the forward oil product and the downloaded oil mixing quantity respectively corresponding to the field and the transportation terminal station, and the preset storage tank volume determine the maximum safety coefficient n of full-line distributed back doping;
the processing module is used for determining that the total quantity of the forward oil products in the mixed oil required to be diluted in each intermediate station is V according to the maximum safety coefficient and the corresponding relation between the forward oil product concentration and the downloaded mixed oil quantity respectively corresponding to each intermediate station Ai N, the mixed oil quantity V is needed to be downloaded in each intermediate station Mi And maximum concentration K of forward oil in the mixed oil Ai 。
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the steps of the oil mixing treatment method of the finished oil pipeline are realized when the processor executes the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the finished oil pipeline blending treatment method as described above.
According to the oil mixing processing method, the device, the electronic equipment and the storage medium for the finished oil pipeline, provided by the embodiment of the invention, the maximum safety coefficient of full-line distributed back mixing is determined under the constraint of the corresponding relation between the forward oil concentration and the download oil mixing quantity respectively corresponding to each intermediate station and the transportation end station based on the oil concentration and the oil mixing quantity corresponding to each station, the amount of the mixed oil to be downloaded and the maximum concentration of the forward oil in the mixed oil in each intermediate station are further obtained under the constraint of the maximum safety coefficient, and the full-line back mixing is completed under the premise of ensuring the oil quality, so that the transportation efficiency is provided.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The method, the device, the electronic equipment and the storage medium for treating the mixed oil of the finished oil pipeline are described below with reference to fig. 1-3.
Fig. 1 shows a schematic flow chart of a method for treating oil mixing of a finished oil pipeline, which is provided by the invention, and referring to fig. 1, the method comprises the following steps:
11. determining the maximum allowable concentration K of the preceding oil product A doped with the following oil product B AB And the maximum allowable concentration K of the following oil B doped with the preceding oil A BA ;
12. Determining the number N of intermediate yards contained in the target oil mixing section, and according to the planned downloading amount V of the backward oil product in each intermediate yard i And the maximum allowable concentration K of the following oil B doped with the preceding oil A AB I is 1-N, and the maximum volume V of the forward oil product diluted by the surplus index of the backward oil product in each intermediate station is obtained Ai ;
13. Diluting the maximum volume V of the forward oil product according to the surplus index of the backward oil product in each intermediate station Ai Maximum allowable concentration K of the preceding oil product A doped with the following oil product B AB And the maximum allowable concentration K of the oil product mixed with the downstream oil product BA Respectively corresponding forward oil products of each intermediate station and each transport terminalThe corresponding relation between the concentration and the downloaded mixed oil quantity and the preset storage tank volume determine the maximum safety coefficient n of full-line distributed back doping;
14. determining that the total quantity of the forward oil products in the mixed oil required to be diluted in each intermediate station is V according to the maximum safety coefficient and the corresponding relation between the forward oil product concentration and the downloaded mixed oil quantity respectively corresponding to each intermediate station Ai At the time of/n, the mixed oil quantity V needs to be downloaded in each intermediate station Mi And maximum concentration K of forward oil in the mixed oil Ai 。
For the steps 11 and 12, it should be noted that in the present invention, in order to meet different market demands, the product oil pipelines generally adopt sequential conveying processes to convey different types of product oils with different brands, so as to improve the pipe conveying efficiency. Different oil products can form a mixed oil section in the pipe transportation process under the action of convection transmission and diffusion transmission, and the quality of the pipe transportation and the transportation cost can be directly influenced by the optimization treatment of mixed oil. In the invention, the forward oil is the oil which is conveyed forward in sequence, and the backward oil is the oil which is conveyed backward in sequence. The condition that the mutual infiltration influence exists in the oil mixing section of the forward oil product and the backward oil product, so that the maximum allowable concentration of the forward oil product doped with the backward oil product and the maximum allowable concentration of the backward oil product doped with the forward oil product are required to be prepared in advance.
In the process of conveying oil products, the oil products need to pass through a plurality of intermediate stations from a conveying head station to a conveying tail station, and in the process, oil mixing situations (namely oil mixing sections) need to pass through the plurality of intermediate stations. Therefore, after the oil product conveying route is obtained, the number of intermediate stations contained in the target oil mixing section can be determined, namely, a plurality of intermediate stations exist in the whole conveying process. The use planning of the oil products can pre-configure the planned downloading amount of the backward oil products of each intermediate station, and then the maximum volume of the forward oil products diluted by the surplus index of the backward oil products of each intermediate station is obtained according to the planned downloading amount of the backward oil products of each intermediate station and the maximum allowable concentration of the forward oil products doped into the backward oil products by a pre-configured calculation mode.
The following is that the forward oil product conveyed in a certain finished oil product sequential conveying pipeline is used as a No. 0 vehicleThe steps are explained by taking 92# gasoline as a specific example of diesel oil and 92# gasoline, and two intermediate stations for downloading mixed oil are contained in the finished oil sequential conveying pipeline. The batch quantity of the backward gasoline is 100000m 3 The first intermediate station was scheduled to download 92# gasoline 15000m 3 The second intermediate station plans to download 92# gasoline 20000m 3 The remainder is downloaded into the tank at the end of the delivery.
Sampling the forward diesel oil and the backward gasoline of the oil mixing section, carrying out blending experiments in a laboratory, and determining the flash point of the blended gasoline in the diesel oil and the final distillation point of the blended diesel oil in the gasoline to obtain the maximum allowable concentration K of the blended backward gasoline in the forward diesel oil of the oil mixing section AB Maximum allowable concentration K of diesel fuel blended into the gasoline for the following process =0.37% BA =0.423%。
In the application, the product of the planned downloading amount and the maximum allowable concentration can be used for calculating to obtain the maximum volume amount of the forward oil product diluted by each intermediate station depending on the surplus index of the backward oil product.
The following are provided: calculating the maximum V of the forward gasoline which can be diluted by the surplus index of the backward gasoline in the first intermediate station A1 =15000*0.42%=63m 3 。
Second intermediate yard V A2 =20000*0.42%=84m 3 。
It should be noted that, in step 13, in the method of the present invention, the blending oil treatment method is used for the user to use or degrade after blending by means of the oil surplus index. The back-blending type oil blending treatment method can be roughly classified into two types: the mixed oil is concentrated at an oil delivery end station for treatment and concentrated back mixing; the other type is distributed back blending which disperses the mixed oil in an intermediate station and an oil delivery terminal station for treatment. The distributed back blending method is characterized in that the disturbance is caused by the mixed oil download of an upstream station, the subsequent development of mixed oil is affected, the total mixed oil amount is increased, but the mixed oil amount to be treated when reaching an oil delivery terminal station is reduced, so that the mixed oil treatment pressure of the oil delivery terminal station is reduced. Therefore, in the application, it is necessary to determine whether the oil mixing section can realize full-line distributed complete back mixing, so as to further determine the amount of mixed oil to be downloaded and the maximum concentration of the forward oil in the mixed oil in each intermediate station.
In the application, the maximum volume V of the forward oil product is diluted according to the surplus index of the backward oil product in each intermediate station Ai Maximum allowable concentration K of the preceding oil product A doped with the following oil product B AB And the maximum allowable concentration K of the oil product mixed with the downstream oil product BA Determining the maximum safety coefficient of full-line distributed back blending according to the corresponding relation between the forward oil concentration and the downloaded oil mixing quantity respectively corresponding to each intermediate station and the transportation terminal, and the preset storage tank volume, and determining that the total forward oil in the mixed oil required to be diluted in each intermediate station is V according to the maximum safety coefficient and the corresponding relation between the forward oil concentration and the downloaded oil mixing quantity respectively corresponding to each intermediate station after the maximum safety coefficient is determined Ai At the time of/n, the mixed oil quantity V needs to be downloaded in each intermediate station Mi And maximum concentration K of forward oil in the mixed oil Ai 。
In the present invention, step 13 is further explained, specifically as follows:
s21, configuring an initial safety coefficient, and diluting the maximum volume V of the forward oil product according to the initial safety coefficient and the surplus index of the backward oil product by each intermediate station Ai The corresponding relation between the forward oil concentration and the downloaded oil mixing quantity corresponding to each intermediate station and each transportation terminal respectively determines the oil mixing concentration distribution diagram and the oil mixing quantity of each concentration when the mixed oil of the target oil mixing section reaches the transportation terminal;
S22, determining the total amount of the backward oil in the first 50% of the mixed oil in the mixed oil concentration distribution diagram and the total amount of the forward oil in the second 50% of the mixed oil in the mixed oil concentration distribution diagram according to the mixed oil concentration distribution diagram of the final transportation station and the mixed oil amount of each concentration;
s23, mixing the forward oil A into the maximum allowable concentration K of the backward oil B according to the preset storage tank volume AB Maximum allowable concentration K of the downstream oil product mixed with the upstream oil product BA Determining the theoretical total amount of the forward oil product and the backward oil product which can be diluted by means of the surplus index at the end of transportation;
s24, when the total amount of the backward oil products contained in the mixed oil of the first 50% in the mixed oil concentration distribution diagram is less than or equal to the theoretical total amount of the backward oil products, and the total amount of the forward oil products contained in the mixed oil of the second 50% in the mixed oil concentration distribution diagram is less than or equal to the theoretical total amount of the forward oil products, increasing the initial safety coefficient according to a preset increment, and repeating the steps S21-S23; and (3) until the condition of the step S24 is not met, obtaining the maximum safety coefficient of the full-line distributed back doping.
In the present invention, step 14 is further explained, specifically as follows:
and determining the corresponding download oil mixing quantity V when the forward oil concentration is 1%, 2%, 3%,..the j%,..the 99% according to the corresponding relation between the forward oil concentration and the download oil mixing quantity respectively corresponding to each intermediate station KAj Wherein j=1 to 99;
let 1% x V KA1 +2%×V KA2 +3%×V KA3 +...++j%×V KAj ≤V Ai When in n, determining the value of j to obtain the maximum concentration K of the forward oil in the mixed oil Ai Wherein n is the maximum safety coefficient, i is the serial number of the intermediate station;
determining V KA1 、V KA2 、V KA3 、......、V KAj The sum of (2) is the download mixed oil volume V Mi 。
The following description will proceed with the two oil delivery examples described above, namely, step S21 to step S24, specifically as follows:
setting the forward gasoline contained in the mixed oil which is required to be diluted by depending on the surplus index of the backward gasoline in the first intermediate station to be 63m 3 The forward gasoline contained in the mixed oil which is required to be diluted by depending on the surplus index of the backward gasoline in the second intermediate station is 84m 3 。
And calculating that the forward diesel oil concentration of the first intermediate station is 1%, 2% and the download oil mixing amount of the first intermediate station is 154m respectively according to the corresponding relation between the forward oil concentration and the download oil mixing amount of the respective intermediate station and the transportation terminal 3 、82m 3 、66m 3 、......、40m 3 。
Setting initial safety coefficient as 1, and respectively calculating the obtained forward diesel oil concentration1%, 2%,. And. 3 、82m 3 、66m 3 、......、40m 3 The products are summed to make the sum value smaller than or equal to the maximum volume V of the forward oil diluted by the surplus index of the backward oil Ai And when the quotient value of the initial safety coefficient is compared with the quotient value of the initial safety coefficient, recording the value m% reached by the concentration of the forward diesel oil. Based on the calculation principle, the corresponding relation between the corresponding forward oil concentration and the downloaded oil mixing amount can be used for calculating to obtain a mixed oil concentration distribution diagram corresponding to the second intermediate station and the transportation terminal and the oil mixing amount of each concentration. The profile of the oil blend concentration is the recorded value m% reached by the concentration of the diesel fuel in the forward direction at the end of the transportation.
And then determining the total amount of the backward oil in the first 50% of the mixed oil in the mixed oil concentration distribution diagram and the total amount of the forward oil in the second 50% of the mixed oil in the mixed oil concentration distribution diagram according to the mixed oil concentration distribution diagram of the final transportation station and the mixed oil amount of each concentration.
In the invention, the corresponding relation between the forward oil concentration and the downloaded oil mixing quantity corresponding to each intermediate station and the transportation terminal station comprises the following steps:
concentration distribution formula:
D T =17.4VRe 2/3
the oil mixing amount calculation formula:
or is or
Wherein K is A As a function of the concentration of the forward oil product, phi, pe d Is Becky Lei number, v is fluid flow rate, L 1 For mileage of first intermediate yard, D T Is a turbulence diffusion coefficient, V is the average kinematic viscosity of the fluid, re is the Reynolds number, C is the length of the mixed oil, alpha is a correction coefficient, Z is a value corresponding to the concentration of the symmetrically cut mixed oil head, d is the inner diameter of a pipeline, and C * C, to make the mixed oil length not considering the mixed oil download effect of the intermediate station yard 0 For the length of the mixed oil of the last intermediate station, L 2 Is the mileage of the corresponding intermediate yard other than the first intermediate yard.
It should be noted that, for the forward oil concentration and the download oil mixing amount corresponding to the first intermediate station, the following corresponding relationship is obtained:
concentration distribution formula:
D T =17.4VRe 2/3
the oil mixing amount calculation formula:
and aiming at the forward oil concentration and the download oil mixing quantity corresponding to the second intermediate station or the transportation terminal, obtaining according to the following corresponding relation:
concentration distribution formula:
D T =17.4VRe 2/3
because each forward oil concentration corresponds to a download oil mixture, the total amount of backward oil in the first 50% of the mixed oil in the mixed oil concentration distribution diagram and the total amount of forward oil in the last 50% of the mixed oil in the mixed oil concentration distribution diagram are obtained based on the sum of the product value and the product value of the download oil mixture and the forward oil concentration and the concentration obtained by the '1-forward oil concentration'.
For example, the concentration of the forward oil is 10%, the downloaded oil mixing amount is K, the oil amount of the forward oil is Kx10%, and correspondingly, the concentration of the backward oil is 90%, and the oil amount of the backward oil is Kx90%.
In the invention, the preset storage tank volume and the maximum allowable concentration K of the forward oil product A doped with the backward oil product B are determined AB Maximum allowable concentration K of the downstream oil product mixed with the upstream oil product BA The product value of (2) enables the product value to be used as a transportation terminal station to dilute the theoretical total amount of the forward oil product and the backward oil product by means of the surplus index. Specific examples are:
because can perform the tank-pouring operation in the station and the volume of the storage tank is larger than 50000m 3 Therefore, the theoretical value of the total amount of forward diesel oil/backward gasoline which can be diluted by the oil surplus index at the last station is 185m 3 、215m 3 。
V BT =50000×0.37%=185
V AT =50000×0.43%=215
Based on judgment conditions
And->
The oil mixing section can be judged to be capable of realizing complete back mixing of all lines, and n is an initial safety coefficient.
In this example, the computer program is used to calculate n, starting from 1, and increasing by 0.1 successively, and repeating the above steps until the maximum safety factor for realizing the full-line distributed back doping is 2.1.
When n is 2.1, K of the first intermediate station A1 =23%、V M1 =412m 3 Second intermediate yard K A2 =21%、V M2 =398m 3 。
In the embodiment, a densimeter is used as mixed oil detection equipment, and the downstream gasoline downloading flow of a first intermediate station is 800m 3 And/h, the downstream gasoline downloading flow of the second intermediate station is 1000m 3 /h。
And in the first intermediate station, when the densimeter detects that the concentration of the forward diesel oil is 21% of the corresponding density value, switching the in-station pipeline to an inlet pipeline of the oil mixing tank, and when the densimeter detects that the concentration of the forward diesel oil is 0% of the corresponding density value, switching the in-station pipeline to a 92# gasoline inlet pipeline.
At the same time according to the flow rate
Pumping the mixed oil in the mixed oil tank to a No. 92 gasoline tank, mixing the mixed oil in an inlet header pipe, and then entering the No. 92 gasoline tank.
And the second intermediate station oil mixing section is downloaded in the same way,
in the invention, the oil delivery end station can adopt four-section cutting, and the oil delivery end station is utilized for 5 ten thousand meters 3 And the oil storage tank blends the two middle sections of mixed oil respectively, and finally, complete blending of the whole line is realized.
According to the oil mixing treatment method for the finished oil pipeline, the maximum safety coefficient of full-line distributed back blending is determined under the constraint of the corresponding relation between the forward oil concentration and the downloaded oil mixing quantity respectively corresponding to each intermediate station and the transportation terminal station based on the oil concentration and the oil mixing quantity corresponding to each station, the oil mixing quantity required to be downloaded in each intermediate station and the maximum concentration of the forward oil in the mixed oil are further obtained under the constraint of the maximum safety coefficient, and on the premise of guaranteeing the oil quality, the full-line back blending is completed, and the transportation efficiency is provided.
The oil mixing treatment device for the finished oil pipeline provided by the invention is described below, and the oil mixing treatment device for the finished oil pipeline and the oil mixing treatment method for the finished oil pipeline described below can be correspondingly referred to each other.
Fig. 2 shows a schematic structural diagram of a device for oil mixing treatment of a finished oil pipeline, referring to fig. 2, the device includes a first determining module 21, a second determining module 22, a calculating module 23 and a treating module 24, wherein:
a first determination module 21 for determining the maximum allowable concentration K of the forward oil A blended with the backward oil B AB And the maximum allowable concentration K of the following oil B doped with the preceding oil A BA ;
A second determining module 22 for determining the number N of intermediate yards included in the target oil mixing section according to the planned download amount V of the backward oil product in each intermediate yard i And the maximum allowable concentration K of the following oil B doped with the preceding oil A AB I is 1-N, and the maximum volume V of the forward oil product diluted by the surplus index of the backward oil product in each intermediate station is obtained Ai ;
A calculation module 23 for diluting the maximum volume V of the forward oil product according to the surplus index of the backward oil product in each intermediate station Ai Maximum allowable concentration K of the preceding oil product A doped with the following oil product B AB And the maximum allowable concentration K of the oil product mixed with the downstream oil product BA The corresponding relation between the forward oil concentration and the downloaded oil mixing quantity, which correspond to each intermediate station and each transportation terminal station, and the preset storage tank volume determine the maximum safety coefficient n of full-line distributed back doping;
a processing module 24 for determining that each intermediate yard needs to be diluted according to the maximum safety factor and the corresponding relationship between the forward oil concentration and the downloaded oil mixture corresponding to each intermediate yardThe total amount of the forward oil in the released mixed oil is V Ai At the time of/n, the mixed oil quantity V needs to be downloaded in each intermediate station Mi And maximum concentration K of forward oil in the mixed oil Ai 。
In a further apparatus of the above apparatus, the computing module is specifically configured to:
s21, configuring an initial safety coefficient, and diluting the maximum volume V of the forward oil product according to the initial safety coefficient and the surplus index of the backward oil product by each intermediate station Ai The corresponding relation between the forward oil concentration and the downloaded oil mixing quantity corresponding to each intermediate station and each transportation terminal respectively determines the oil mixing concentration distribution diagram and the oil mixing quantity of each concentration when the mixed oil of the target oil mixing section reaches the transportation terminal;
s22, determining the total amount of the backward oil in the first 50% of the mixed oil in the mixed oil concentration distribution diagram and the total amount of the forward oil in the second 50% of the mixed oil in the mixed oil concentration distribution diagram according to the mixed oil concentration distribution diagram of the final transportation station and the mixed oil amount of each concentration;
S23, mixing the forward oil A into the maximum allowable concentration K of the backward oil B according to the preset storage tank volume AB Maximum allowable concentration K of the downstream oil product mixed with the upstream oil product BA Determining the theoretical total amount of the forward oil product and the backward oil product which can be diluted by means of the surplus index at the end of transportation;
s24, when the total amount of the backward oil products contained in the mixed oil of the first 50% in the mixed oil concentration distribution diagram is less than or equal to the theoretical total amount of the backward oil products, and the total amount of the forward oil products contained in the mixed oil of the second 50% in the mixed oil concentration distribution diagram is less than or equal to the theoretical total amount of the forward oil products, increasing the initial safety coefficient according to a preset increment, and repeating the steps S21-S23; and (3) until the condition of the step S24 is not met, obtaining the maximum safety coefficient of the full-line distributed back doping.
In a further arrangement of the above arrangement, the processing module is configured to:
determining that the total quantity of the forward oil products in the mixed oil required to be diluted in each intermediate station is V according to the maximum safety coefficient and the corresponding relation between the forward oil product concentration and the downloaded mixed oil quantity respectively corresponding to each intermediate station Ai At/n, eachMixed oil quantity V needed to be downloaded in intermediate station Mi And maximum concentration K of forward oil in the mixed oil Ai Comprising:
and determining the corresponding download oil mixing quantity V when the forward oil concentration is 1%, 2%, 3%,..the j%,..the 99% according to the corresponding relation between the forward oil concentration and the download oil mixing quantity respectively corresponding to each intermediate station KA Wherein j=1 to 99;
let 1% x V KA +2%×V KA2 +3%×V KA3 +...++j%×V KA ≤V Ai When in n, determining the value of j to obtain the maximum concentration K of the forward oil in the mixed oil Ai Wherein n is the maximum safety factor;
determining V KA1 、V KA2 、V KA3 、......、V KAj The sum of (2) is the download mixed oil volume V Mi 。
In a further apparatus of the above apparatus, the first determining module is configured to:
the number of intermediate yards included in the target oil mixing section is determined according to the planned downloading amount V of the backward oil product in the ith intermediate yard i And a maximum allowable concentration K AB Obtaining the maximum volume V of the forward oil product diluted by the surplus index of the backward oil product in each intermediate station Ai Comprising:
and determining a product value of the planned downloading amount of the backward oil products of each intermediate station and the maximum allowable concentration of the blended forward oil products, so that the product value is used as the maximum volume of the forward oil products diluted by each intermediate station depending on the surplus index of the backward oil products.
In a further apparatus of the above apparatus, the corresponding relationship between the forward oil concentration and the download oil mixture amount corresponding to each intermediate station and the transportation terminal station includes:
concentration distribution formula:
D T =17.4VRe 2/3
the oil mixing amount calculation formula:
or is or
Wherein K is A As a function of the concentration of the forward oil product, phi, pe a Is Becky Lei number, v is fluid flow rate, L 1 For mileage of first intermediate yard, D T Is a turbulence diffusion coefficient, V is the average kinematic viscosity of the fluid, re is the Reynolds number, C is the length of the mixed oil, alpha is a correction coefficient, Z is a value corresponding to the concentration of the symmetrically cut mixed oil head, d is the inner diameter of a pipeline, and C * C, to make the mixed oil length not considering the mixed oil download effect of the intermediate station yard 0 For the length of the mixed oil of the last intermediate station, L 2 Is the mileage of the corresponding intermediate yard other than the first intermediate yard.
In a further arrangement of the above arrangement, the calculation module calculates the maximum allowable concentration K of the forward oil A blended with the backward oil B based on the preset storage tank volume and the forward oil A AB Maximum allowable concentration K of the downstream oil product mixed with the upstream oil product BA The method is particularly used in the treatment process of determining the theoretical total amount of the forward oil product and the backward oil product which can be diluted by means of the surplus index at the tail station of transportation:
determining the preset storage tank volume and the maximum allowable concentration K of the forward oil product A doped with the backward oil product B AB Maximum allowable concentration K of the downstream oil product mixed with the upstream oil product BA The product value of (2) enables the product value to be used as a transportation terminal station to dilute the theoretical total amount of the forward oil product and the backward oil product by means of the surplus index.
Since the apparatus according to the embodiment of the present invention is the same as the method according to the above embodiment, the details of the explanation will not be repeated here.
It should be noted that, in the embodiment of the present invention, the related functional modules may be implemented by a hardware processor (hardware processor).
According to the oil mixing treatment device for the finished oil pipeline, provided by the invention, the maximum safety coefficient of full-line distributed back blending is determined under the constraint of the corresponding relation between the forward oil concentration and the downloaded oil mixing amount respectively corresponding to each intermediate station and the transportation terminal based on the oil concentration and the oil mixing amount corresponding to each station, and the oil mixing amount V required to be downloaded in each intermediate station is further obtained under the constraint of the maximum safety coefficient Mi And the maximum concentration of the forward oil in the mixed oil, so that complete full-line oil mixing and back blending are achieved on the premise of ensuring the quality of the oil, and the transportation efficiency is improved.
Fig. 3 illustrates a physical schematic diagram of an electronic device, as shown in fig. 3, where the electronic device may include: processor 31, communication interface (Communications Interface) 32, memory 33 and communication bus 34, wherein processor 31, communication interface 22 and memory 23 communicate with each other via communication bus 24. The processor 21 may call logic instructions in the memory 23 to perform the following method:
determining the maximum allowable concentration K of the preceding oil product A doped with the following oil product B AB And the maximum allowable concentration K of the oil product mixed with the downstream oil product BA ;
Determining the number N of intermediate yards contained in the target oil mixing section, and according to the planned downloading amount V of the backward oil product in each intermediate yard i And a maximum allowable concentration K AB I is 1-N, and the maximum volume V of the forward oil product diluted by the surplus index of the backward oil product in each intermediate station is obtained Ai ;
Diluting the maximum volume V of the forward oil product according to the surplus index of the backward oil product in each intermediate station Ai Maximum allowable concentration K of the preceding oil product A doped with the following oil product B AB And the maximum allowable concentration K of the oil product mixed with the downstream oil product BA The corresponding forward oil concentration and download oil mixing quantity of each intermediate station and transport terminal stationThe corresponding relation and the preset storage tank volume determine the maximum safety coefficient n of the full-line distributed back doping;
determining that the total quantity of the forward oil products in the mixed oil required to be diluted in each intermediate station is V according to the maximum safety coefficient and the corresponding relation between the forward oil product concentration and the downloaded mixed oil quantity respectively corresponding to each intermediate station Ai At the time of/n, the mixed oil quantity V needs to be downloaded in each intermediate station Mi And maximum concentration K of forward oil in the mixed oil Ai 。
Further, the logic instructions in the memory 33 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, are capable of performing the methods provided by the methods described above, the method comprising:
determining the maximum allowable concentration K of the preceding oil product A doped with the following oil product B AB And the maximum allowable concentration K of the oil product mixed with the downstream oil product BA ;
Determining the number N of intermediate yards contained in the target oil mixing section, and according to the planned downloading amount V of the backward oil product in each intermediate yard i And a maximum allowable concentration K AB I is 1 to N,obtaining the maximum volume V of the forward oil product diluted by the surplus index of the backward oil product in each intermediate station Ai ;
Diluting the maximum volume V of the forward oil product according to the surplus index of the backward oil product in each intermediate station Ai Maximum allowable concentration K of the preceding oil product A doped with the following oil product B AB And the maximum allowable concentration K of the oil product mixed with the downstream oil product BA The corresponding relation between the forward oil concentration and the downloaded oil mixing quantity, which correspond to each intermediate station and each transportation terminal station, and the preset storage tank volume determine the maximum safety coefficient n of full-line distributed back doping;
Determining that the total quantity of the forward oil products in the mixed oil required to be diluted in each intermediate station is V according to the maximum safety coefficient and the corresponding relation between the forward oil product concentration and the downloaded mixed oil quantity respectively corresponding to each intermediate station Ai At the time of/n, the mixed oil quantity V needs to be downloaded in each intermediate station Mi And maximum concentration K of forward oil in the mixed oil Ai 。
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the method provided by the above embodiments, for example, comprising:
determining the maximum allowable concentration K of the preceding oil product A doped with the following oil product B AB And the maximum allowable concentration K of the oil product mixed with the downstream oil product BA ;
Determining the number N of intermediate yards contained in the target oil mixing section, and according to the planned downloading amount V of the backward oil product in each intermediate yard i And a maximum allowable concentration K AB I is 1-N, and the maximum volume V of the forward oil product diluted by the surplus index of the backward oil product in each intermediate station is obtained Ai ;
Diluting the maximum volume V of the forward oil product according to the surplus index of the backward oil product in each intermediate station Ai Maximum allowable concentration K of the preceding oil product A doped with the following oil product B AB And the maximum allowable concentration K of the oil product mixed with the downstream oil product BA Corresponding relation between forward oil concentration and download oil mixing amount of each intermediate station and transport terminalDetermining the maximum safety coefficient n of full-line distributed back doping according to the system and the preset storage tank volume;
determining that the total quantity of the forward oil products in the mixed oil required to be diluted in each intermediate station is V according to the maximum safety coefficient and the corresponding relation between the forward oil product concentration and the downloaded mixed oil quantity respectively corresponding to each intermediate station Ai At the time of/n, the mixed oil quantity V needs to be downloaded in each intermediate station Mi And maximum concentration K of forward oil in the mixed oil Ai 。
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.