Crude oil virtual component average boiling point calculation method, system, equipment and medium
By constructing a cubic spline function and calculating the average boiling point of virtual components through a method based on the Newton-Leibniz formula, the problem of large errors in the existing technology is solved, the accuracy of characterization of the thermodynamic properties of crude oil is improved, and more accurate information is provided for petroleum engineering. data support.
Patent Information
- Application Number
- CN202410752918.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-10-11
AI Technical Summary
The existing virtual component average boiling point calculation method has the problem of large errors in petroleum engineering, especially when using cubic spline functions for integration, it is difficult to accurately characterize the thermodynamic properties of crude oil.
A method based on the Newton-Leibniz formula is used to construct a cubic spline function, determine the boundary conditions and coefficients, cut the interval and calculate the integral function, and then calculate the average boiling point of the virtual component to improve the calculation accuracy.
It improves the calculation accuracy of the average boiling point of virtual components, can more accurately characterize oil properties, and provides more reliable data support for engineering calculations.
Smart Images

Figure CN118760822A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of petroleum engineering, and in particular to a method, system, equipment and medium for calculating the average boiling point of virtual components of crude oil. Background Art
[0002] Petroleum, coal tar, shale oil and their fractions belong to polydisperse systems, and their actual components are as many as hundreds or even more. It is very difficult, time-consuming and labor-intensive for researchers to obtain all of their hydrocarbon components through chemical analysis. The current common practice is to use virtual components to approximate the thermodynamic properties of crude oil fractions, that is, to use an intermittent kettle distillation device to cut the crude oil into several narrow fractions according to the boiling point, and obtain a series of discretely distributed real boiling point data. At present, in engineering calculations, the real boiling point data obtained by processing with a cubic spline function with small calculation amount and good smoothness at the segmentation point is generally selected to obtain a smooth and continuous curve. The curve is cut according to a certain interval to obtain virtual components, and the virtual components obtained after cutting are integrated to obtain their average boiling point temperature. The thermodynamic parameters of the virtual components are calculated based on the average boiling point temperature of the component. Therefore, the calculation of the average boiling point temperature of the virtual component is the basis for the calculation of crude oil physical properties, and it is particularly important to choose a suitable integration method.
[0003] Integration methods are generally divided into two categories. One is to calculate the definite integral or indefinite integral of a continuous function based on the Newton-Leibniz formula, that is, to calculate the integral value based on the original function of the integrand. This calculation method obtains an exact integral value; the other is to use the sum of finite terms to approximate the Riemann limit to divide the small interval to zero. The integral formula is usually given by the linear combination of the function values at discrete points. Common ones include trapezoidal integral, Romberg integral, Simpson integral and Gauss integral. However, using the sum of finite terms to approximate the true value will inevitably result in errors, and only approximate integral values can be obtained. At the same time, for more complex functions such as cubic splines, the integral calculation basically uses the second type of calculation method, that is, using the sum of finite terms to obtain the approximate integral value.
[0004] According to the current literature, researchers in this field are mainly concerned with what mathematical formula can more perfectly characterize the distillation curve, and the calculation method of the average boiling point (NBP) of the virtual component also adopts approximate integration methods such as Simpson integration. Summary of the invention
[0005] In view of the above problems, the object of the present invention is to provide a method, system, device and medium for calculating the average boiling point of virtual components of crude oil, which can determine the virtual components of the curve based on a cubic spline function.
[0006] To achieve the above object, the present invention adopts the following technical solutions: In the first aspect, a method for calculating the average boiling point of crude oil virtual components is provided, comprising:
[0007] Obtaining oil product distillation data to obtain a number of segmented intervals, and establishing a cubic spline function of mass fraction and distillation temperature according to the segmented intervals of the oil product distillation data to determine boundary conditions;
[0008] Based on the oil distillation data, determine the coefficients of the cubic spline function of mass fraction and distillation temperature;
[0009] Determine the cutting interval of the oil product distillation data, and determine the integral function of each cutting interval based on the established cubic spline function and the determined boundary conditions and coefficients;
[0010] According to the number of segmentation points of the oil product distillation data spanned by the cutting interval, the integral function corresponding to the cutting interval is determined, and then the integral value of the cutting interval is obtained to determine the average boiling point of the virtual components of the oil product distillation data.
[0011] Furthermore, the oil product distillation data is obtained to obtain a plurality of segmented intervals, and a cubic spline function of mass fraction and distillation temperature is established according to the segmented intervals of the oil product distillation data to determine boundary conditions, including:
[0012] Obtain oil product distillation data, and determine the distillation temperatures and corresponding mass fractions at n+1 different nodes in the oil product distillation data, with a total of n segment intervals;
[0013] A cubic spline function is established in each segmented interval of the oil distillation data to determine the boundary conditions.
[0014] Furthermore, the cubic spline function S j (x) is:
[0015] S j (x) = a j +b j (xx j )+c j (xx j ) 2 +d j (xx j ) 3
[0016] Among them, x j is the mass fraction of oil distillation data; x is the mass fraction; S j (x) is the distillation temperature of the constructed cubic spline curve at the x value; a j 、b j 、c j ,d j There are 4n unknown coefficients.
[0017] Furthermore, the step of determining the cutting interval of the oil product distillation data and determining the integral function of each cutting interval according to the established cubic spline function and the determined boundary conditions and coefficients includes:
[0018] Determine the cutting interval of oil distillation data;
[0019] The cutting interval of the oil product distillation data is integrated according to the established cubic spline function, and the x-axis value of the cutting point of the oil product distillation data is set to x i , the value of the y-axis is y i , according to the x-axis value of the segmentation point of the oil distillation data curve is x j , the value of the y-axis is y j , determine the integral function of each cutting interval.
[0020] Furthermore, the integral functions of the cutting intervals are divided into three categories:
[0021] ① The two cutting points do not pass through the segmentation point x of the oil distillation data curve j , the cutting interval is x i-1 -x i ;
[0022] ② There is a segmentation point x between the two cutting points on the oil product distillation data curve. j , the cutting interval is x i-1 -x i ,x i-1 The integral function is Y j-1 (x), the cutting interval is x i The integral function is Y j (x);
[0023] ③ There are m+1 segmentation points x between the two cutting points. j , the cutting interval is x i-1 -x i ,x i-1 The piecewise function is Y j-1 (x), the cutting interval is x i The integral function is Y j+m (x), the number of complete cubic spline piecewise function intervals passed by the cutting interval is m.
[0024] Furthermore, when the integral function of the cutting interval is of the first type, the integral function of the two cutting points is:
[0025]
[0026] ΔY a =Y j (xi )-Y j (x i-1 )
[0027] Among them, ΔY a is the integral value of the cutting interval;
[0028] When the integral function of the cutting interval is of the second type, the integral functions of the two cutting points include:
[0029] Cutting interval x i-1 -x j The integral function of :
[0030]
[0031] Cutting interval x j -x i The integral function of :
[0032]
[0033] ΔY b =Y j (x i )-Y j (x j )+Y j-1 (x j )-Y j-1 (x i-1 )
[0034] Among them, ΔY b is the integral value of the cutting interval;
[0035] When the integral function of the cutting interval is of the third type, the integral functions of the two cutting points include:
[0036] Head end Y j-1 (x i-1 )-Y j-1 (x j ) and the end Y j+m (x i )-Y j+m (x j+m ) are calculated respectively with the cutting interval x in ② i-1 -x j and cutting interval x j -x i The calculation formula is the same as;
[0037] Cutting interval x j -x j+1 The integral function of is:
[0038]
[0039]
[0040] The integral function of the middle cutting interval is:
[0041]
[0042] Furthermore, the virtual component average boiling point NBP of the oil product distillation data is i-1 :
[0043]
[0044] Among them, △Y is the integral value of the cutting interval; x i -x i-1 The cutting interval.
[0045] In a second aspect, a system for calculating the average boiling point of a crude oil virtual component is provided, comprising:
[0046] A cubic spline function establishment module is used to obtain oil product distillation data to obtain a number of segmented intervals, and to establish a cubic spline function of mass fraction and distillation temperature according to the segmented intervals of the oil product distillation data to determine boundary conditions;
[0047] A coefficient determination module, used to determine the coefficients of the cubic spline function of mass fraction and distillation temperature according to the oil distillation data;
[0048] An integral function determination module is used to determine the cutting interval of the oil product distillation data, and determine the integral function of each cutting interval according to the established cubic spline function and the determined boundary conditions and coefficients;
[0049] The virtual component average boiling point determination module is used to determine the integral function corresponding to the cutting interval according to the number of segmentation points of the oil product distillation data spanned by the cutting interval, and then obtain the integral value of the cutting interval to determine the virtual component average boiling point of the oil product distillation data.
[0050] In a third aspect, a processing device is provided, comprising computer program instructions, wherein the computer program instructions, when executed by the processing device, are used to implement the steps corresponding to the above-mentioned method for calculating the average boiling point of virtual components of crude oil.
[0051] In a fourth aspect, a computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions, when executed by a processor, are used to implement the steps corresponding to the above-mentioned method for calculating the average boiling point of virtual components of crude oil.
[0052] The present invention adopts the above technical solution, which has the following advantages:
[0053] 1. The present invention constructs several segmented cubic spline functions according to the oil distillation data, cuts the constructed cubic spline distillation curve as needed, and selects which formula to use to calculate the average boiling point of the virtual component according to the number of segmentation points in the cutting interval. The virtual components calculated by this method can more accurately characterize the properties of the oil and provide convenience for engineering calculations.
[0054] 2. The present invention provides a method and formula for obtaining the primitive function of a cubic spline curve based on the Newton-Leibniz formula, calculating the numerical solution of the definite integral, and using it for calculating the average boiling point of virtual components, which can greatly improve the accuracy of calculating the physical properties of oil products. All integral values in the present invention are derived based on the Newton-Leibniz formula.
[0055] In summary, the present invention can be widely used in the field of petroleum engineering. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Throughout the accompanying drawings, the same reference numerals are used to represent the same components. In the accompanying drawings:
[0057] Figure 1 It is a schematic diagram of a method flow provided by an embodiment of the present invention;
[0058] Figure 2 It is a schematic diagram of a situation where the integral interval provided by an embodiment of the present invention does not pass through the segmentation point of the oil product distillation data;
[0059] Figure 3 It is a schematic diagram of a situation where an integral interval provided by an embodiment of the present invention passes through a segmentation point of oil product distillation data;
[0060] Figure 4 It is a schematic diagram of a situation where an integral interval passes through m+1 segmentation points of oil product distillation data provided by an embodiment of the present invention;
[0061] Figure 5 It is a schematic diagram of the system structure provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0062] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.
[0063] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0064] Although the terms first, second, third, etc. can be used in the text to describe multiple elements, components, regions, layers and / or sections, these elements, components, regions, layers and / or sections should not be limited by these terms. These terms can only be used to distinguish an element, component, region, layer or section from another region, layer or section. Unless the context clearly indicates, terms such as "first", "second" and other numerical terms do not imply order or sequence when used in the text. Therefore, the first element, component, region, layer or section discussed below can be referred to as the second element, component, region, layer or section without departing from the teaching of the example embodiments.
[0065] Since researchers' focus is mainly on what kind of mathematical formula can be used to more perfectly characterize the distillation curve, according to the current literature records, the calculation method for the average boiling point (NBP) of the virtual component is also to use the approximate integration method such as Simpson integration. In response to the above problems, an embodiment of the present invention provides a method for calculating the average boiling point of the virtual component of crude oil, including: obtaining oil product distillation data to obtain a number of segmented intervals, and establishing a cubic spline function of mass fraction and distillation temperature according to the segmented intervals of the oil product distillation data, and determining the boundary conditions; according to the oil product distillation data, determining the coefficients of the cubic spline function of mass fraction and distillation temperature; determining the cutting interval of the oil product distillation data, and determining the integral function of each cutting interval according to the established cubic spline function and the determined boundary conditions and coefficients; judging the integral function corresponding to the cutting interval according to the number of segmented points of the oil product distillation data spanned by the cutting interval, and then obtaining the integral value of the cutting interval, and determining the average boiling point of the virtual component of the oil product distillation data. The present invention obtains the original function of the crude oil real boiling point curve based on the Newton-Leibniz formula to calculate the numerical solution of the definite integral, which can improve the accuracy of oil product calculation.
[0066] Example 1
[0067] like Figure 1 As shown, this embodiment provides a method for calculating the average boiling point of crude oil virtual components, comprising the following steps:
[0068] 1) Obtain oil product distillation data to obtain several segmented intervals, and establish a cubic spline function of mass fraction and distillation temperature according to the segmented intervals of the oil product distillation data, and determine the boundary conditions, specifically:
[0069] 1.1) Obtain oil product distillation data and determine the distillation temperatures (TBP) (y0, y1...y j ...y n ) and the corresponding mass fraction (x0,x1...x j ...x n ), there are n segment intervals in total.
[0070] 1.2) In each segment interval (x j ,x j+1 ), (j=0,1,…,n-1) to establish the cubic spline function S j (x), determine the boundary conditions.
[0071] Specifically, the cubic spline function S j (x) is:
[0072] S j (x) = a j +b j (xx j )+c j (xx j ) 2 +d j (xx j ) 3 (1)
[0073] Among them, x j is the mass fraction of oil distillation data; x is the mass fraction; S j (x) is the distillation temperature of the constructed cubic spline curve at the x value; a j 、b j 、c j ,d j There are 4n unknown coefficients.
[0074] Specifically, boundary conditions include free boundaries, fixed boundaries and non-node boundaries, wherein a free boundary is one in which there is no restriction on the direction of the curve at the boundary point, allowing it to extend naturally, and the second-order derivative value of the given boundary point is 0; a fixed boundary is one in which a first-order derivative value is artificially given as needed to extend the curve in a specific direction. For example, for the oil distillation data in this embodiment, the higher the distillation temperature, the steeper the curve will be, but the actual distillation curve that can be obtained is only a relatively gentle part in the middle. Therefore, based on engineering experience, a suitable first-order derivative value of the boundary is artificially given to make the curve have an upward trend; a non-node boundary is one in which the third-order derivatives of the two end points are equal to the third-order derivatives of the adjacent points of the two end points.
[0075] 2) According to the oil distillation data, determine the cubic spline function S of mass fraction and distillation temperature j The coefficient of (x).
[0076] Specifically, according to the known oil product distillation data, the distillation temperatures (y0, y1...y j ...y n ) and the corresponding mass fraction (x0,x1...x j ...x n ), determine the cubic spline function S of each segment interval j The coefficient of (x).
[0077] 3) Determine the cutting interval of the oil distillation data, and determine the integral function of each cutting interval based on the established cubic spline function and the determined boundary conditions and coefficients, specifically:
[0078] 3.1) Determine the cutting interval of oil distillation data:
[0079] Specifically, for the distillation temperature range (y0,y n ) performs equal step temperature cutting, the number of cutting points is n-1 (excluding the starting point and the end point), the temperature step is △T, and there are n cutting intervals in total:
[0080]
[0081] Specifically, or, cutting can be performed according to specific requirements, for example, cutting can be performed according to a fixed mass fraction; or cutting can be performed according to a specific distillation temperature range to determine the corresponding virtual component distribution.
[0082] 3.2) Integrate the cutting interval of the oil product distillation data according to the established cubic spline function, and let the x-axis value of the cutting point of the oil product distillation data be x i , the value of the y-axis is y i , according to the x-axis value of the segmentation point of the oil distillation data curve is x j, the value of the y-axis is y j , determine the integral function Y of each cutting interval j (x) is:
[0083]
[0084] Among them, Y j (x) is the integral value of the cutting interval; x is the cutting point of the oil distillation data, i.e., the mass fraction.
[0085] Specifically, because the oil distillation data is a piecewise cubic spline function, the integral function of the cutting interval can be divided into three categories:
[0086] ① The two cutting points do not pass through the segmentation point x of the oil distillation data curve j , the cutting interval is x i-1 -x i ,like Figure 2 As shown in the shaded part, the integral function of the two cutting points is Y j (x) is:
[0087]
[0088]
[0089] ΔY a =Y j (x i )-Y j (x i-1 ) (6)
[0090] Among them, ΔY a is the integral value of the cutting interval, such as Figure 2 Shown as shaded area.
[0091] ② There is a segmentation point x between the two cutting points on the oil product distillation data curve. j , the cutting interval is x i-1 -x i ,x i-1 The integral function is Y j-1 (x), the cutting interval is x i The integral function is Y j (x), such as Figure 3 As shown in the shaded part, the integral function of the two cutting points is Y j (x) is:
[0092] Cutting interval x i-1 -x j The integral function of :
[0093]
[0094] Cutting interval x j -x i The integral function of :
[0095]
[0096] ΔY b =Y j (x i )-Y j (x j )+Y j-1 (x j )-Y j-1 (x i-1 ) (11)
[0097] Among them, ΔY b is the integral value of the cutting interval, such as Figure 3 Shown as shaded area.
[0098] ③ There are m+1 segmentation points x between the two cutting points. j , the cutting interval is x i-1 -x i ,x i-1 The piecewise function is Y j-1 (x), the cutting interval is x i The integral function is Y j+m (x), the number of complete cubic spline piecewise function intervals that the cutting interval passes through is m, such as Figure 4 As shown:
[0099] ΔY c =Y j-1 (x j )-Y j-1 (x i-1 )+Y j (x j+1 )-Y j (x j )+…+Y j+m-1 (x j+m )-Y j (x j+m-1 )+Y j+m (x i )-Y j+m (x j+m ) (12)
[0100] Among them, the first end Y j-1 (x i-1 )-Y j-1 (x j ) and the end Y j+m (x i )-Y j+m (xj+m ) are calculated respectively with the cutting interval x in ② i-1 -x j and cutting interval x j -x i The calculation formula is the same as ΔY c is the integral value of the cutting interval, such as Figure 4 Shown as shaded area.
[0101] Cutting interval x j -x j+1 The integral function of is:
[0102]
[0103]
[0104] By analogy, the integral function of the middle cutting interval is:
[0105]
[0106] 4) According to the number of segmentation points of the oil product distillation data curve spanned by the cutting interval, determine which of the three categories determined above the cutting interval belongs to, and use the corresponding integral function to obtain the integral value of the cutting interval, and then determine the average boiling point NBP of the virtual component of the oil product distillation data i-1 :
[0107]
[0108] Among them, △Y is the integral value of the cutting interval; x i -x i-1 The cutting interval.
[0109] The method for calculating the average boiling point of crude oil virtual components of the present invention is described in detail below through specific embodiments:
[0110] 1) Obtain oil product distillation data to obtain several segmented intervals, and establish a cubic spline function of mass fraction and distillation temperature according to the segmented intervals of the oil product distillation data to determine the boundary conditions.
[0111] Specifically, the oil distillation data is obtained, as shown in Table 1 below, which provides data for three oil fields in the North, South and West regions:
[0112] Table 1: Oil distillation data
[0113]
[0114]
[0115] For the oil product distillation data of each oil region, for example, the mass fraction of the oil product distillation data of the northern region is 0%-1% interval, 1%-3% interval, 3%-6% interval, and so on. j ,x j+1 ) to establish the cubic spline function S j (x), the first-order differential value A of the leading end boundary is determined to be 16.5 when the leading end mass fraction is 0%, and the first-order differential value B of the trailing end boundary is determined to be 6.5 when the mass fraction is 100%.
[0116] 2) According to the oil distillation data, determine the cubic spline function S of mass fraction and distillation temperature j The coefficient of (x).
[0117] Specifically, according to the distillation temperature and corresponding mass fraction of n+1 nodes with different known oil product distillation data, the cubic spline function S of each segment interval is determined. j For example, for the 0%-1% segmented interval, the four coefficients of the cubic spline function of the segmented interval are determined according to the boundary first-order differential value A, point (0,144) and point (1,181). For another example, for the 1%-3% segmented interval, the four coefficients of the cubic spline function of the segmented interval are determined according to point (1,181) and point (3,241).
[0118] 3) Determine the cutting interval of the oil distillation data, and determine the integral function of each cutting interval based on the established cubic spline function and the determined boundary conditions and coefficients.
[0119] Specifically, the distillation temperature interval (144, 1000) of the oil product distillation data in the northern region is cut with equal step temperature, the number of cutting points is 4 (excluding the start and end points), the temperature step is 171.2, and there are 5 cutting intervals in total.
[0120] The distillation temperature interval (144, 1000) of the oil distillation data in the southern area is cut with equal step temperature. The number of cutting points is 4 (excluding the starting point and the end point), the temperature step is 171.2, and there are 5 cutting intervals in total.
[0121] The distillation temperature interval (145, 1010) of the oil distillation data in the western area is cut with equal step temperature. The number of cutting points is 4 (excluding the starting point and the end point), the temperature step is 173, and there are 5 cutting intervals in total.
[0122] 4) According to the number of segmentation points of the oil product distillation data curve spanned by the cutting interval, determine which of the three categories determined above the cutting interval belongs to, and use the corresponding integral function to obtain the integral value of the cutting interval, thereby determining the average boiling point of the virtual components of the oil product distillation data.
[0123] Specifically, based on the average boiling point temperature of the virtual components of the oil product distillation data, the overall mass density is calculated and compared with the actual value, as shown in Tables 2 to 4 below. The oil product distillation data in the northern region is cut into 5 virtual components, the oil product distillation data in the southern region is cut into 15 components, and the oil product distillation data in the western region is cut into 30 components. The integral function is tested, and it can be seen that the basic error between the calculated density value and the actual value is within 1%. It can be verified that the average boiling point of the virtual components calculated according to the method of the present invention meets the requirements of actual use and provides good support for the calculation of oil product physical properties:
[0124] Table 2: Crude oil cutting results in the North Area Oilfield
[0125]
[0126] Table 3: Crude oil cutting results in the South Oilfield
[0127]
[0128] Table 4: Crude oil cutting results of West Oilfield
[0129]
[0130]
[0131] Example 2
[0132] like Figure 5 As shown, this embodiment provides a crude oil virtual component average boiling point calculation system, including:
[0133] The cubic spline function establishment module is used to obtain the oil product distillation data to obtain a number of segmented intervals, and to establish the cubic spline function of the mass fraction and the distillation temperature according to the segmented intervals of the oil product distillation data to determine the boundary conditions.
[0134] The coefficient determination module is used to determine the coefficients of the cubic spline function of mass fraction and distillation temperature according to the oil distillation data.
[0135] The integral function determination module is used to determine the cutting interval of the oil product distillation data, and determine the integral function of each cutting interval based on the established cubic spline function and the determined boundary conditions and coefficients.
[0136] The virtual component average boiling point determination module is used to determine the integral function corresponding to the cutting interval according to the number of segmentation points of the oil product distillation data spanned by the cutting interval, and then obtain the integral value of the cutting interval to determine the virtual component average boiling point of the oil product distillation data.
[0137] The system provided in this embodiment is used to execute the above-mentioned method embodiments. Please refer to the above-mentioned embodiments for specific processes and detailed contents, which will not be repeated here.
[0138] Example 3
[0139] This embodiment provides a processing device corresponding to the method for calculating the average boiling point of crude oil virtual components provided in Embodiment 1. The processing device can be applicable to a client processing device, such as a mobile phone, a laptop computer, a tablet computer, a desktop computer, etc., to execute the method of Embodiment 1.
[0140] The processing device includes a processor, a memory, a communication interface and a bus, and the processor, the memory and the communication interface are connected through the bus to complete mutual communication. The memory stores a computer program that can be run on the processing device, and the processing device executes the method for calculating the average boiling point of the virtual components of crude oil provided in this embodiment 1 when running the computer program.
[0141] In some implementations, the memory may be a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory.
[0142] In some other implementations, the processor may be a central processing unit (CPU), a digital signal processor (DSP), or other general-purpose processors of various types, which are not limited herein.
[0143] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0144] Those skilled in the art will understand that the structure of the above-mentioned computing device is only a partial structure related to the solution of the present invention, and does not constitute a limitation on the computing device to which the solution of the present invention is applied. The specific computing device may include more or fewer components, or combine certain components, or have a different arrangement of components.
[0145] Example 4
[0146] This embodiment provides a computer program product corresponding to the method for calculating the average boiling point of virtual components of crude oil provided in Example 1. The computer program product may include a computer-readable storage medium on which computer-readable program instructions for executing the method for calculating the average boiling point of virtual components of crude oil described in Example 1 are loaded.
[0147] Computer readable storage media can be tangible devices that hold and store instructions used by instruction execution devices. Computer readable storage media can be, for example, but not limited to, electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any combination thereof.
[0148] The above embodiment provides a computer-readable storage medium, whose implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.
[0149] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0150] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0151] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0152] The above embodiments are only used to illustrate the present invention, wherein the structure, connection mode and manufacturing process of each component may be changed. Any equivalent transformations and improvements based on the technical solution of the present invention should not be excluded from the protection scope of the present invention.
Claims
1. A method for calculating the average boiling point of crude oil virtual components, characterized in that: include: Obtaining oil product distillation data to obtain a number of segmented intervals, and establishing a cubic spline function of mass fraction and distillation temperature according to the segmented intervals of the oil product distillation data to determine boundary conditions; Based on the oil distillation data, determine the coefficients of the cubic spline function of mass fraction and distillation temperature; Determine the cutting interval of the oil product distillation data, and determine the integral function of each cutting interval based on the established cubic spline function and the determined boundary conditions and coefficients; According to the number of segmentation points of the oil product distillation data spanned by the cutting interval, the integral function corresponding to the cutting interval is determined, and then the integral value of the cutting interval is obtained to determine the average boiling point of the virtual components of the oil product distillation data.
2. A method for calculating the average boiling point of crude oil virtual components according to claim 1, characterized in that: The oil product distillation data is obtained to obtain a plurality of segmented intervals, and a cubic spline function of mass fraction and distillation temperature is established according to the segmented intervals of the oil product distillation data to determine boundary conditions, including: Obtain oil product distillation data, and determine the distillation temperatures and corresponding mass fractions at n+1 different nodes in the oil product distillation data, with a total of n segment intervals; A cubic spline function is established in each segmented interval of the oil distillation data to determine the boundary conditions.
3. A method for calculating the average boiling point of crude oil virtual components according to claim 1, characterized in that: The cubic spline function S j (x) is: S j (x)=a j +b j (x-x j )+c j (x-x j ) 2 +d j (x-x j ) 3 Among them, x j is the mass fraction of oil distillation data; x is the mass fraction; S j (x) is the distillation temperature of the constructed cubic spline curve at the x value; a j , b j 、c j ,d j There are 4n unknown coefficients.
4. A method for calculating the average boiling point of crude oil virtual components as claimed in claim 3, characterized in that: The step of determining the cutting interval of the oil product distillation data and determining the integral function of each cutting interval according to the established cubic spline function and the determined boundary conditions and coefficients includes: Determine the cutting interval of oil distillation data; The cutting interval of the oil product distillation data is integrated according to the established cubic spline function, and the x-axis value of the cutting point of the oil product distillation data is set to x i , the value of the y-axis is yx, and the value of the x-axis is x according to the segmentation point of the oil distillation data curve j , the value of the y-axis is y j , determine the integral function of each cutting interval.
5. A method for calculating the average boiling point of crude oil virtual components according to claim 4, characterized in that: The integral functions of the cutting interval are divided into three categories: ① The two cutting points do not pass through the segmentation point x of the oil distillation data curve j , the cutting interval is x i-1 -x i ; ② There is a segmentation point x between the two cutting points on the oil product distillation data curve. j , the cutting interval is x i-1 -x i ,x i-1 The integral function is Y j-1 (x), the cutting interval is x i The integral function is Y j (x); ③ There are m+1 segmentation points x between the two cutting points. j , the cutting interval is x i-1 -x i ,x i-1 The piecewise function is Y j-1 (x), the cutting interval is x i The integral function is Y j+m (x), the number of complete cubic spline piecewise function intervals passed by the cutting interval is m.
6. A method for calculating the average boiling point of crude oil virtual components according to claim 5, characterized in that: When the integral function of the cutting interval is of the first type, the integral function of the two cutting points is: ΔY a =Y j (x i )-Y j (x i-1 ) Among them, ΔY a is the integral value of the cutting interval; When the integral function of the cutting interval is of the second type, the integral functions of the two cutting points include: Cutting interval x i-1 -x j The integral function of : Cutting interval x j -x i The integral function of : ΔY b =Y j (x i )-Y j (x j )+Y j-1 (x j )-Y j-1 (x i-1 ) Among them, ΔY b is the integral value of the cutting interval; When the integral function of the cutting interval is of the third type, the integral functions of the two cutting points include: Head end Y j-1 (x i-1 )-Y j-1 (x j ) and the end Y j+m (x i )-Y j+m (x j+m ) are calculated respectively with the cutting interval x in ② i-1 -x j and cutting interval x j -x i The calculation formula is the same as; Cutting interval x j -x j+1 The integral function of is: The integral function of the middle cutting interval is:
7. A method for calculating the average boiling point of crude oil virtual components according to claim 1, characterized in that: The virtual component average boiling point NBP of the oil distillation data i-1 : Among them, △Y is the integral value of the cutting interval; x i -x i-1 The cutting interval.
8. A system for calculating the average boiling point of crude oil virtual components, characterized in that: include: A cubic spline function establishment module is used to obtain oil product distillation data to obtain a number of segmented intervals, and to establish a cubic spline function of mass fraction and distillation temperature according to the segmented intervals of the oil product distillation data to determine boundary conditions; A coefficient determination module, used to determine the coefficients of the cubic spline function of mass fraction and distillation temperature according to the oil distillation data; An integral function determination module is used to determine the cutting interval of the oil product distillation data, and determine the integral function of each cutting interval according to the established cubic spline function and the determined boundary conditions and coefficients; The virtual component average boiling point determination module is used to determine the integral function corresponding to the cutting interval according to the number of segmentation points of the oil product distillation data spanned by the cutting interval, and then obtain the integral value of the cutting interval to determine the virtual component average boiling point of the oil product distillation data.
9. A processing device, characterized in that: It includes computer program instructions, wherein when the computer program instructions are executed by a processing device, they are used to implement the steps corresponding to the method for calculating the average boiling point of virtual components of crude oil according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, wherein the computer program instructions, when executed by a processor, are used to implement the steps corresponding to the method for calculating the average boiling point of virtual components of crude oil according to any one of claims 1 to 7.
Citation Information
Cited By
Simulated cutting method, device and equipment for crude oil molecules
CN121034466A
