Crude oil standard density automatic conversion method, electronic equipment and storage medium
By establishing mathematical models and iterative calculations, the problem of inefficient density conversion at non-standard temperatures in crude oil density experiments is solved, efficient automatic detection of crude oil density is achieved, and the risk of human error and time cost is reduced.
Patent Information
- Application Number
- CN202310534816.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-12
- Publication Date
- 2024-11-12
AI Technical Summary
In crude oil density experiments, density measurements at non-standard temperatures need to be converted by table lookup method, resulting in high risk of human error and increased time cost and inefficient efficiency.
Establish a mathematical model, use the iterative method to calculate the standard density that meets the provisions of the Petroleum Metering Table, derive the standard density of 15℃ and 20℃ of petroleum through formulas, and use computer equipment and storage media to achieve automated conversion.
It improves the efficiency of density detection, reduces calculation steps and data filling, reduces the risk of human error, and makes crude oil density detection more efficient and accurate.
Smart Images

Figure CN118939926A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of crude oil exploitation, and relates to an automatic conversion method for crude oil standard density, electronic equipment and a storage medium. Background Art
[0002] Crude oil is the "blood" of modern industry, and the standard density of crude oil can be used to measure the weight of crude oil and indicate the purity of crude oil. It has a certain guiding role in controlling production, can determine the composition and type of crude oil to a certain extent, and can also approximately evaluate the quality changes of oil products. Therefore, the accuracy of crude oil density is particularly important.
[0003] The national standard defines the oil density at a standard temperature of 20°C as the standard value. Affected by the ambient temperature and the instrument, it is difficult to accurately reach 20°C for the test temperature of crude oil density experiments. The oil density obtained at a non-standard temperature is the apparent density, and the apparent density at different test temperatures needs to be converted into the standard density through the Petroleum Meter (GB / T1885-1998). Since there is a large amount of density data at different temperatures in the table, it is not convenient to find the required standard density. The standard density value cannot be directly found in the table, and it needs to be further calculated by interpolation, which is a cumbersome process.
[0004] In the experiment, the density of crude oil needs to be measured. The efficiency of the above table lookup method is difficult to meet the needs of crude oil density detection. This process will increase the risk of manual table reading errors and time costs. Summary of the invention
[0005] The present invention provides a method for automatically converting the standard density of crude oil, an electronic device and a storage medium, which overcome the shortcomings of the above-mentioned prior art and can effectively solve the problem that when measuring the density of crude oil in an experiment, the table lookup method will increase the risk of manual table lookup reading errors and time cost.
[0006] One of the technical solutions of the present invention is achieved by the following measures: a method for automatically converting the standard density of crude oil, comprising the following steps:
[0007] A mathematical model was established, in which the volume correction coefficient equation at a standard temperature of 15°C was as follows:
[0008]
[0009] Where, e is the base of natural logarithm, dimensionless; △t is the difference between the measured temperature t and 15℃, ℃; α 15 is the volume expansion coefficient of petroleum at standard temperature of 15°C, m / K; t is the measurement temperature, °C;
[0010] Among them, the volume expansion coefficient equation of petroleum at standard temperature of 15°C is as follows:
[0011]
[0012] In the formula, K0 is a constant; K1 is a constant; A is a constant; ρ 15 is the density of petroleum at 15°C, kg / m 3 ;
[0013] Perform logical calculations and derive the standard density of petroleum at 15°C ρ according to the formula 15 、20℃ standard density ρ 20 、20℃ volume correction factor VCF 20 .
[0014] The following are further optimizations and / or improvements to the above technical solutions:
[0015] The above petroleum standard density at 15℃ρ 15 The specific method of finding may include the following steps:
[0016] According to actual density = apparent density × apparent density compensation coefficient, we get:
[0017] ρ t =ρ′×[1-2.3×10 -5 (t-20)-2×10 -8 (t-20) 2 ] (3)
[0018] In the formula, ρ t is the actual density, kg / m 3 ; ρ' is the apparent density, kg / m 3 ; 1-2.3×10(t-20)-2×10(t-20) is the apparent density compensation coefficient;
[0019]
[0020] Where VCF 15 is the volume correction factor at a standard temperature of 15°C; t is the actual density, kg / m 3 ρ 15 is the density of petroleum at 15°C, kg / m 3 ;
[0021] According to formula (3) and (4), we can get:
[0022]
[0023] Assume that the value of ρ' is assigned to ρ 15 , and then assign the value obtained to ρ 15, , through iteration 15 and ρ 15,The absolute value of the difference is less than the given convergence accuracy, find ρ 15 The truth value of .
[0024] The above standard density at 20℃ ρ 20 The specific method of finding may include the following steps:
[0025] According to VCF 15 =ρ 20 / ρ 15 , we get the equation:
[0026]
[0027] In the formula, ρ 20 is the density of petroleum at 20℃, kg / m 3 ρ 15 is the density of petroleum at 15°C, kg / m 3 .
[0028] The method for obtaining the above VCF20 may specifically include the following steps:
[0029] according to Export:
[0030]
[0031] Where VCF 20 It is the volume correction factor at the standard temperature of 20℃.
[0032] The second technical solution of the present invention is achieved through the following measures: a computer device includes a memory and a processor, the memory stores a program that can be run on the processor, and the processor implements the above method when executing the program.
[0033] The third technical solution of the present invention is achieved through the following measures: a storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above method.
[0034] The present invention establishes a mathematical model and uses an iterative method to directly calculate the standard density specified in the "Petroleum Meter". The present invention uses an electric calculation method to effectively improve efficiency. At the same time, through software conversion, it can predict the apparent density of crude oil within a certain range, which is an effective method for solving actual process experiments and flow experiments. The present invention reduces the calculation steps and reduces the filling of data, which can effectively improve the efficiency of density detection. By predicting density at multiple points, a large number of experimental processes are reduced, and data collection such as flow experiments, process experiments, PVT multiple degassing crude oil experiments at different temperatures, and thermal oil experiments at different temperatures becomes possible. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Attached Figure 1 Schematic diagram of a flow chart of an embodiment of the present invention. DETAILED DESCRIPTION
[0036] The present invention is not limited by the following embodiments, and specific implementation methods can be determined based on the technical solution of the present invention and actual conditions.
[0037] In the present invention, for the convenience of description, the description of the relative position relationship of each component is described according to the layout of the drawings in the specification, such as: the position relationship of front, back, up, down, left, right, etc. is determined according to the layout direction of the drawings in the specification.
[0038] The present invention will be further described below in conjunction with embodiments and drawings:
[0039] Embodiment 1: As attached Figure 1 As shown, the method for automatically converting the standard density of crude oil comprises the following steps:
[0040] A mathematical model was established, wherein the volume correction coefficient equation at a standard temperature of 15°C according to the international standard ISO91-1 is as follows:
[0041]
[0042] Where, e is the base of natural logarithm, dimensionless; △t is the difference between the measured temperature t and 15℃, ℃; α 15 is the volume expansion coefficient of petroleum at standard temperature of 15°C, m / K; t is the measurement temperature, °C.
[0043] Among them, the volume expansion coefficient equation of petroleum at standard temperature of 15°C is as follows:
[0044]
[0045] In the formula, K0 is a constant; K1 is a constant; A is a constant; ρ 15 is the density of petroleum at 15°C, kg / m 3 .
[0046] Perform logical calculations and derive the standard density of petroleum at 15°C ρ according to the formula 15 、20℃ standard density ρ 20 、20℃ volume correction factor VCF 20 .
[0047] In the embodiment of the present invention, the standard density of petroleum at 15°C is 15 The specific method of finding includes the following steps:
[0048] When compiling a petroleum meter, two corrections are involved: thermal expansion correction for glass densitometers and thermal expansion correction for oil products. According to actual density = apparent density × apparent density compensation coefficient, we get:
[0049] ρ t =ρ′×[1-2.3×10 -5 (t-20)-2×10 -8 (t-20) 2 ] (3)
[0050] In the formula, ρ t is the actual density, kg / m 3 ; ρ' is the apparent density, kg / m 3 ; 1-2.3×10(t-20)-2×10(t-20) is the apparent density compensation coefficient.
[0051]
[0052] Where VCF 15 is the volume correction factor at a standard temperature of 15°C; t is the actual density, kg / m 3 ρ 15 is the density of petroleum at 15°C, kg / m 3 .
[0053] According to formula (3) and (4), we can get:
[0054]
[0055] The specific process is to assume that the value of ρ' is assigned to ρ 15 , and then assign the value obtained to ρ 15, (ρ obtained by circular reference 15 new value), and iterate to make ρ 15 and ρ 15, The absolute value of the difference is less than the given convergence accuracy, find ρ 15 The truth value of .
[0056] In the embodiment of the present invention, the standard density ρ at 20°C 20 The specific method of finding includes the following steps:
[0057] According to VCF 15 =ρ 20 / ρ 15 , we get the equation:
[0058]
[0059] In the formula, ρ 20 is the density of petroleum at 20℃, kg / m 3 ρ15 is the density of petroleum at 15°C, kg / m 3 .
[0060] In the embodiment of the present invention, the method of obtaining VCF20 specifically includes the following steps:
[0061] according to Export:
[0062]
[0063] Where VCF 20 It is the volume correction factor at the standard temperature of 20℃.
[0064] It should be noted that α and α in the above formula 15 All are the volume expansion coefficients of petroleum at a standard temperature of 15°C.
[0065] The density of oil products tested at non-standard temperatures is the apparent density, and the apparent density at different test temperatures needs to be converted into the standard density through the "Petroleum Meter" (GB / T1885-1998). The interpolation method needs to find out 4 values and calculate the standard density. The use of the iterative method and the computer calculation can reduce the data filling, directly calculate the standard density, and effectively improve the density detection efficiency. According to the needs, computer programming can be used to realize the above-mentioned crude oil standard density automatic conversion method, and it can be run in the computer system in the form of software. The software includes a human-computer interface, and the relevant data can be entered in the human-computer interface. After clicking the pre-designed button with the mouse, the software calculates the standard density through the iterative method and displays it on the human-computer interface. For example, the apparent density detected at 63.25°C by the method of the present invention is 800, and the standard density can be obtained after iterative calculation as 831.4, which is consistent with the result of the "Petroleum Meter" (GB / T1885-1998).
[0066] The embodiment of the present invention establishes a mathematical model, uses an iterative method to directly calculate the standard density specified in the "Petroleum Meter", and performs an electric calculation, which can effectively improve efficiency. The embodiment of the present invention reduces the calculation steps and the data filling, and can effectively improve the density detection efficiency.
[0067] Embodiment 2: As attached Figure 1 As shown, this embodiment includes the following steps: multiple regression analysis is used to predict the apparent density at different temperatures. The specific steps are: assuming that the regression estimation expression is: y = b0 + b1x1 + b2x2 + b3x1x2 + b4x1^2 + b5x2^2
[0068] The correlation coefficients and values are shown in Table 1:
[0069] Table 1
[0070]
[0071] By using the regression equation to predict the standard density and comparing it with the density obtained by looking up the table at different temperatures, it can be seen that the error is less than 0.0001<0.0005 (required by Section 13.1 of Chapter 13 Precision in GBT1884-2000 Densitometer Testing Standard), which is consistent with the high positive correlation indicated by R=0.999998908. The embodiment of the present invention can perform multi-point (temperature point) prediction by the method of multiple regression analysis, and display it in the form of data or curves on the human-machine interface of the software. For example, the apparent density detected at 33°C by the method of the embodiment of the present invention is 777. After iterative calculation, a series of curves can be obtained, and the standard density at each temperature can be obtained, which is consistent with the results of "Petroleum Meter" (GB / T1885-1998).
[0072] The embodiment of the present invention can predict the apparent density of crude oil within a certain range through software conversion, which is an effective method for solving actual process experiments and flow experiments. By predicting density at multiple points (temperature points), a large number of experimental processes are reduced, and data collection of flow experiments, process experiments, PVT multiple degassing crude oil experiments at different temperatures, and heat transfer oil experiments at different temperatures is possible.
[0073] Embodiment 3: An embodiment of the present invention provides an electronic device, which includes a memory, a processor, a communication interface and a communication bus. The memory stores a program that can be run on the processor, and the processor implements the steps in the above embodiment method when executing the program.
[0074] The processor may be a central processing unit, or other general-purpose processors, digital signal processors, application-specific integrated circuits, field programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0075] The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs and units, such as the corresponding program units in the above method embodiments of the present invention. The processor executes various functional applications of the processor and works data processing by running the non-transitory software programs, instructions and modules stored in the memory, that is, implementing the method in the above method embodiments.
[0076] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. The memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. The one or more programs are stored in the memory, and when executed by the processor, the method in the above embodiment is executed.
[0077] Embodiment 4: The embodiment of the present invention provides a storage medium for computer-readable storage, the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of any one of the methods provided in the above method embodiments.
[0078] The storage medium may be an internal storage unit of the electronic device, such as a hard disk or memory of the electronic device. The storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, smart memory card, secure digital card, flash memory card, etc. equipped on the electronic device.
[0079] The above technical features constitute the embodiments of the present invention, which have strong adaptability and implementation effect. Non-essential technical features can be added or reduced according to actual needs to meet the requirements of different situations.
Claims
1. A method for automatically converting the standard density of crude oil, Features The following steps are involved: A mathematical model was established, in which the volume correction coefficient equation at a standard temperature of 15°C was as follows: Where, e is the base of natural logarithm, dimensionless; △t is the difference between the measured temperature t and 15℃, ℃; α 15 is the volume expansion coefficient of petroleum at standard temperature of 15°C, m / K; t is the measurement temperature, °C; Among them, the volume expansion coefficient equation of petroleum at standard temperature of 15°C is as follows: In the formula, K 0 is a constant; K 1 is a constant; A is a constant; ρ 15 is the density of petroleum at 15°C, kg / m 3 ; Perform logical calculations and derive the standard density of petroleum at 15°C ρ according to the formula 15 、20℃ standard density ρ 20 、20℃ volume correction factor VCF 20 .
2. The method for automatically converting the standard density of crude oil according to claim 1, Features Standard density of petroleum at 15℃ρ 15 The specific method of finding includes the following steps: According to actual density = apparent density × apparent density compensation coefficient, we get: r t =ρ′×[1-2.3×10 -5 (t-20)-2×10 -8 (t-20) 2 ] (3) In the formula, ρ t is the actual density, kg / m 3 ; ρ' is the apparent density, kg / m 3 ; 1-2.3×10(t-20)-2×10(t-20) is the apparent density compensation coefficient; Where VCF 15 is the volume correction factor at a standard temperature of 15°C; t is the actual density, kg / m 3 ρ 15 is the density of petroleum at 15°C, kg / m 3 ; According to formula (3) and (4), we can get: Assume that the value of ρ' is assigned to ρ 15 , and then assign the value obtained to ρ 15, , through iteration 15 and ρ 15, The absolute value of the difference is less than the given convergence accuracy, find ρ 15 The truth value of .
3. The method for automatically converting the standard density of crude oil according to claim 1 or 2, Features 20℃ standard density ρ 20 The specific method of finding includes the following steps: According to VCF 15 =ρ 20 / ρ 15 , we get the equation: In the formula, ρ 20 is the density of petroleum at 20℃, kg / m 3 ρ 15 is the density of petroleum at 15°C, kg / m 3 .
4. The method for automatically converting the standard density of crude oil according to claim 1 or 2, Features The method of calculating VCF20 specifically includes the following steps: according to Export: Where VCF 20 It is the volume correction factor at the standard temperature of 20℃.
5. The method for automatically converting the standard density of crude oil according to claim 3, Features The method of calculating VCF20 specifically includes the following steps: according to Export: Where VCF 20 It is the volume correction factor at the standard temperature of 20℃.
6. An electronic device comprising a memory and a processor, wherein the memory stores a program that can be run on the processor, It is characterized in that When the processor executes the program, the method according to any one of claims 1 to 5 is implemented.
7. A storage medium, It is characterized in that The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method according to any one of claims 1 to 5.
