Operation of an undersea oil and/or gas production field typically involves complex installations of equipment to gather, route and control fluids produced from the wells in the field. Sensors are commonly installed with the fluid collection/distribution elements to detect conditions such as pressure, temperature and/or mass flow at particular points in the installed equipment. The equipment may include pipes, valves (also sometimes referred to as “chokes”), manifolds and/or other elements through which fluids may flow.
To supplement data directly available from sensors, the concept of “virtual flow metering” has arisen. Virtual flow metering may use mathematical modeling techniques to estimate conditions at various points in the installed equipment. However, existing examples of virtual flow meter (VFM) modeling are limited in their capabilities, may suffer from significant inaccuracies in the resulting estimates, and may be insufficient to support modeling of complex and extensive equipment installations. Moreover, existing VFM approaches may require repeated and extensive tuning, and may eventually go out of tune in a manner which is not reversible, possibly necessitating abandonment of the model itself at the installation in question.
According to some embodiments, a method of operating a hydrocarbon extraction field is performed with the aid of a computer. The method may include programming the computer with a virtual flow meter model. The model may be written with a notation that represents mass flow, temperature and/or pressure at extremities of a plurality of pressure loss elements (PLEs). The PLEs may include a plurality of wells located in the hydrocarbon extraction field. The method may further include estimating, by the computer, using the virtual flow meter model, respective mass flow rates from a plurality of the wells. Elements of the hydrocarbon extraction field may then be controlled based at least in part on the estimated mass flow rates.
In some embodiments, the hydrocarbon extraction field 102 may be on the ocean floor; i.e., the field may be an undersea field. Accordingly, at least a portion of the equipment represented by block 106 may be located below the ocean surface. It will be understood that inclusion of the sensors 108 with the equipment installation 106 may be expensive and the sensors may placed in a limited number of locations relative to the installed equipment so as to provide data only at a portion of the possible locations for which knowledge of conditions may be desired. It will also be understood that sensors may fail at times and that it may not be feasible to replace the sensors that have failed.
Block 110 represents elements of equipment by which chemical effluents may be injected into the hydrocarbon extraction field in accordance with known practices to stimulate production of oil and/or gas from the wells 104. The injection elements may be controlled by a human operator (not shown) via a control panel 112. In some embodiments, the control panel may also be operable to control one or more elements (e.g., valves) included in the installed equipment 106.
The data provided by the sensors 108 may be received at and by a computer 114 provided according to some embodiments. A suitable interface or interfaces (not shown in
In some embodiments, the hardware making up the computer 114 may overlap with the control panel 112 and/or there may be a data communication channel between the computer 114 and the control panel 112.
The computer 114 comprises a processor 210, such as one or more commercially available Central Processing Units (CPUs) in the form of one-chip microprocessors, coupled to a communication device 220 configured to communicate via a communication network (not shown in
The processor 210 also communicates with a storage device 230. The storage device 230 may comprise any appropriate information storage device, including combinations of magnetic storage devices (e.g., a hard disk drive), optical storage devices, mobile telephones, and/or semiconductor memory devices. The storage device 230 stores a data acquisition and conditioning program 212 for controlling the processor 210 so that the processor 210 can arrange the sensor data in appropriate form for processing by the computer 114. The storage device 230 also stores the above-mentioned virtual flow meter model 116. Further, the storage device 230 may store a reporting program 214 to allow the computer 114 to report via the output device 250 results of estimates produced by the virtual flow meter model 116. The processor 210 performs instructions of the programs/model 212, 116, 214, and thereby operates in accordance with any of the embodiments described herein. For example, the processor 210 may receive sensor data, perform an estimation process by using the virtual flow meter model 116 and report results of the estimation process to a human operator.
The programs 212, 214 and/or the model 116 may be stored in a compressed, uncompiled and/or encrypted format. Programs stored in the storage device 230 may furthermore include other program elements, such as an operating system, a database management system, and/or device drivers used by the processor 210 to interface with peripheral devices.
As used herein, information may be “received” by or “transmitted” to, for example: (i) the computer 114 from another device; or (ii) a software application or module within the computer 114 from another software application, module, or any other source.
In some embodiments (such as shown in
Details of the virtual flow meter model 116 will now be discussed.
As an initial stage of describing the virtual flow meter model 116, a discussion of notation will now be presented.
In this disclosure, vectors are denoted with bold case letters and are column-wise. The symbol T is the transpose operator. Let x be a N×1 vector and I be an ordered set of indexes having values between 1 and N. With xi we denote the ith element of x and with Ii we denote the ith element of I . With x[I] we denote the vector composed of the elements of x having index in I.
Consider x=[a b c d e]T and I={1,3}. Then
x
2
=b, I
2=3, x[I]=[a c]T
x
I
=a, and xI
Time is denoted with the letter t. The models described in this disclsoure, focus on stationary models of pressure and temperature. Toward this goal, we denote with
A Virtual Flow Meter (VFM) is an estimator which attempts to compute relevant properties of a fluid by combining real-time measured data and a variety of models that relate the relevant fluid properties to the measured data. This disclosure proposes one possible notation for an approach for formalizing the VFM problem.
The network of pipes and chokes and other equipment items that transports the fluids from the wells to the processing station and that allows the injection of chemicals with a directed graph G={E;N}. The set E represents the collection of physical elements within which the fluids move. The set N represents the junction points where multiple fluids mingle. The set E is called the set of edges and the set N is called the set of nodes. The letters E and N denote the number of edges and nodes in the graph respectively. The graph G is called pressure loss graph (PLG) and the elements of the sets E and N are called pressure loss elements (PLEs).
PLEs are ordered and we can refer to the jth PLE, where j takes integer values from 1 to N+E, independently from whether the jth PLE is a node or an edge. PLEs have extremities where the fluid enters or exits the PLE. An extremity where the fluid enters a PLE is called an inlet. An extremity where the fluid leaves a PLE is called an outlet. Inlets and outlets of PLEs are classified based on the direction of the edges.
Extremities in the graph have a global order. Every PLE is associated to a set of indexes which identifies the extremity of the PLE. With Ij we denote the set of indexes of extremities associated with the jth PLE. With +Ij we denote the set of indexes of inlets associated with the jth PLE. With −Ijwe denote the set of indexes of outlets associated with the jth PLE. By construction we have that
I
j=+Ij∪−Ij and +Ij∩−Ij=Ø, for all j=1, . . . , N+E.
Edges have one inlet and one outlet only. Nodes can have multiple inlets and outlets. We consider the following convention:
the inlet of an edge is connected to an outlet of a node;
the outlet of an edge is connected to the inlet of a node.
I
1={1}, I2={2, 3}, I3={4, 5, 6}, I4={7, 9},
I
5={10}, I6={8, 11}, I7={13, 12}, I8={14, 15}, I9={16}
+
I
1=Ø, −I1={1}, +I2={3}, −I2={2}, +I3={5, 6}, −I3={4}
The model now being described is concerned with a 3-phase fluid composed of oil, water and gas. The presence of solids is neglected. Between the oil and the gas phase there is a continuous exchange of mass and the amount of fluid that stays in the gas, or in the oil phase, depends on the temperature and pressure conditions of the fluid. In this disclosure, we consider the rates at which the phases move through the system as if they were at standard conditions (SC). (SC are defined as 0° C. and 100,000 kPa.)
Among the key properties of a fluid, we consider mass flow, temperature, and pressure . Mass flow is measured in kilogram per second [kg/s], temperature is measured in degree Celsius [C], and pressure is measured in kilo-Pascal (kPa).
With Pj(
In general, the phases of a fluid can cross an extremity with different directions. This is a rare event under stationary conditions, and for present purposes it is sufficient to implement the model on the simplified case where all of the phases move along the same direction and we define the fluid direction as the direction of its phases.
If j is an inlet, then a positive value of mj(
Mass flow, pressure, and temperature values in a PLG can be grouped into vectors denoted with M(
Between two connected extremities, mass flow, temperature, and pressure values are identical. The relationships can be expressed as
AM(
where A and B are matrices of appropriate dimensions and whose elements take values in the set [−1,0,1}.
(|Due|[LP1] to the way the matrices M(
where denotes the Kronecker product.)
With respect to the PLG in
{1, 2}, {3,4}, {5, 7}, {6, 8}, {9, 10}, {11, 12 }
The matrix B is therefore:
Subsequent portions of this disclosure will discuss how various elements of a PLG may be modeled in accordance with some embodiments.
Modeling of junction points will now be discussed.
Junction points are physical locations where fluids join or divide. Junction points are nodes of a PLG, e.g., node 3 in
and the relationship among the pressure values can be written as
P
k(
Modeling of wells will now be discussed.
Wells may be modeled as nodes of the PLG with only one extremity, which is an outlet. Wells can be considered as nodes where the pressure at the outlet is constant and independent of the mass flow. In other embodiments, more complex relationships among pressure, mass flow and temperature may be defined in modeling wells. For example, in some embodiments, inflow performance relationships (IPR), could be used, as discussed below.
Let j be the index of an extremity of a PLE representing a well. A well modeled as a source of mass flow at constant pressure could be represented as:
P
j(
IPR models may be considered via the generic function
F
well,j(mj(
In some embodiments, more complex models of wells may be employed, including models in which wells are considered to have more than one extremity
Modeling of chokes (i.e., valves) will now be discussed.
Chokes may be modeled as edges or nodes of a PLG. Chokes have one inlet and one outlet only and the mass flow at the inlet equals the mass flow at the outlet. A generic relationship between mass flow, temperature and pressure between the inlet and the outlet can be written as
F
choke, j(mI
m
I
(
The function Fchoke, j represents the pressure and temperature drop model used for the choke having index j. Examples of suitable models are the Sachdeva model or models available in the “OLGA” software simulation package. Those who are skilled in the art are familiar with such models.
Modeling of pipes will now be discussed.
Pipes have one inlet and one outlet and are naturally represented as edges of the PLG. Pressure and temperature drop models for pipes may describe the pressure and temperature gradient with respect to the length of the pipe. With Lj we denote the length of the pipe having index j and with xj we denote a point in the interval [0, Lj]. In some embodiments, length may be measured in meters [m]. The inlet of the pipe coincides with xj=0 and the outlet coincides with xj=Lj.
For pipes, the mass flow at the inlet equals the mass flow at the outlet. This can be written as
m
I
(
With P(
we denote the gradients of pressure and temperature along the length of the pipe respectively.
The pressure and temperature drop models of a pipe can be written as
Modeling of the PLG as a whole will now be discussed.
An overall model of a PLG may be obtained by combining the models of the PLEs as described above into a unified system of equations. The equality relationships discussed above can be rewritten in terms of matrix multiplication operations and grouped with Equation 1. The overall equality constraints can then be rewritten as
A
M(
Modeling of measured data will now be discussed.
Data collected from sensors at time t are collected into a vector z(t) of dimension M×1. The function that relates mass flow, temperature and pressure to the measured data can be generically described as
{circumflex over (z)}(
, where the vector {circumflex over (Z)}(
In some embodiments, the model addresses the case where data are collected with a fixed sampling period of length T. Data collected over the kth sampling time are denoted as z(k)=z(t0+kT) for a certain t0. Equation 13 can be rewritten as
{circumflex over (z)}(k)=h(M(k), P(k), T(k)) (Eq. 14)
There will now be a discussion of representing the VFM estimation problem as an optimization problem.
Let W denote the set of indexes of PLEs associated with wells and let k denote the current data sample. In some embodiments of the VFM model, the VFM estimation problem may be formalized as a deterministic optimization problem. For this approach, a cost function of the optimization problem is to be identified. Constraints for the optimization problem may be those that have been discussed previously in this disclosure.
In some embodiments, the cost function may be the square value of the difference between the expected sensor output and the measured sensor output over a discrete time interval of length H, i.e., the optimization problem may consider the data sampled at times k−H,k−H+1, . . . , k.
The optimization problem can now be written as (Eq. 15, immediately below)
subject to
{circumflex over (z)}(i)=h(M(i), P(i), T(i)),
Model constraints previously discussed,
Mass-flow continuity constraints,
Pressure continuity constraints,
Temperature continuity constraints,
Additional constraints (e.g., GOR, WLR constraints)
(In the above, “GOR” refers to the gas-oil ratio; “WLR” refers to the water-liquid ratio.)
The optimization problem, as stated in Equation 14, does not include equations that relate the value of M (i) to the value of M (i+1). In view of this, the optimization problem can be rewritten as H+1 independent optimization problems, each of which considers data and equations only at a specific point in time.
A potential issue with this approach is that the lack of time dependence could lead to large variations on the estimated mass flow from time i to time i+1. To address this issue, a new equation may be introduced which bounds the rate at which mass flow can change over time steps. The addition of such an equation would lead to a dynamic estimation problem where estimated mass flow at time i affects the estimated mass flow at time i+1.
In other embodiments, constant mass flow may be assumed over the interval k−H, k−H+1, . . . , k. In such embodiments, the solution of Equation 15 would be the value of the constant well mass flow that minimizes the error between the expected and measured data over the interval k−H, k−H+1, . . . , k. This assumption of constant mass flow over the stated interval does not imply that the solution of the optimization problems solved at different times are identical. Let m*(k−H) denote the solution of the optimization problem as solved at time k, i.e., the optimization problem which considers measured data over the interval k−H, k−H+1, . . . , k. It can be expected that m*(k−H) would be different from m *(k−H+1). This difference is due to the different time horizons that the two optimization problems consider. That is, the optimization problem solved at time k, considers the measured data over the interval k−H, k−H+1, . . . , k, whereas the optimization problem solved at time k+1 considers the measured data over the interval k−H+1, k−H+2, . . . , k+1. This approach may lead to solutions which are allowed to vary over time, but whose variations are likely to be smooth. This approach may be referred to as receding horizon.
Some alternative embodiments of the VFM model will now be discussed.
In previously described embodiments, the estimation problem was formalized as a deterministic optimization problem. That is, no uncertainty was considered in the data and no uncertainty was provided in the computed well mass flow. In other embodiments, uncertainty may be included in the data and in the estimated values, and the overall uncertainty may be measured by using a probabilistic approach. If a Bayesian approach is employed, then the model embodiment previously discussed may be interpreted in terms of relationships among the probability distributions of mass flow, pressure, and temperature. In addition, the measured data are associated with a probability distribution and the goal of the VFM model according to such embodiments is the computation of the distribution of the well mass flow given the sequence of measured data over the interval k−H, k−H+1, . . . , k. With appropriate notation, which those who are skilled in the art can readily arrive at based on the foregoing, an optimization problem over the probability distributions can be formulated.
It may be desirable, for some embodiments, to rewrite the pressure and temperature models for pipe elements so that the models appear to be lumped models in the estimation problem. This may overcome potential issues—that might otherwise be encountered—relating to solving two-point boundary value problems. Use of lumped models may also improve computational efficiency and may generally make solution of the estimation problem easier.
An example of lumped models that may be used is set forth below, with equality of pressure and temperature across coupled extremities being neglected.
This solution to this differential equation can be rewritten as
Equation 18 shows that the pressure and temperature at the outlet of a pipe can be obtained via a lumped model from the mass flow, temperature and pressure at the inlet.
The solution of Equation 16 would return temperature and pressure value at the inlet and outlet of a pipe as a function of mass flow, and the vector
It is to be noted that this approach breaks continuity of pressure and temperature of the fluid across a few extremities of the PLG.
It may be the case, in some situations, that the estimation problem may have more than one solution. It may well be the case that constraints on continuity of mass flow, pressure and temperature over the PLG will reduce the number of solutions. It may further be the case that a sufficient number of measurements will tend to produce a unique solution.
There will now be a discussion of another form in which the optimization problem may be written. One alternative form follows:
subject to (Equations 20, 21, 22, 23 and 24, respectively as follows)
The vector yM represents the vector of data measured from the hydrocarbon extraction field. The vector y represents the vector of predicted measurements from the field. The vector u is the vector of mass flow that is to be estimated. The vector z represents the vector of temperature and pressure restraints along the length of pipes or other elements when present. Equation 20 represents the constraints given by lumped models such as IPRs and choke models. Equation 21 represents constraints on mass flow continuity and mass flow ratio such as GOR and WLR constraints. These constraints may be linear in u and may reduce the dimension over which the optimization problem is solved. Equation 22 represents constraints on the continuity of pressure and temperature across adjacent extremities. Equation 23 represents constraints on temperature and pressure evolution along pipes in the PLG. These latter constraints do not depend on the vector y. Equation 24 represents the boundary conditions for the distributed models. The latter set of constraints is the only relationship between the vectors y and z. The matrix Q is the cost function used to weight differences among measured and predicted data.
At S610 in
At S620, the computer 114 receives data output from the sensors 108 (
At S630, the sensor data is provided to the VFM model.
At S640, the VFM model is used to estimate mass flow rates from wells 104 (
At S650, the computer 114 (e.g., via an output device 250,
At S660, the human operator, if he/she deems it advisable in view of the estimation results presented at S650, may control one or more elements of the installed equipment, such as controlling one or more effluent injection elements and/or one or more valves.
The steps S620 through S660 may be performed as a continuing process. In some situations, the operator may use the information presented at S650 to determine whether one or more maintenance operations should be performed.
In some embodiments, the computer 114 may employ machine intelligence based on the results of S640 to directly and automatically control controllable elements of the equipment installation.
In some embodiments, the VFM model may be arranged to estimate flows in the extraction field other than or in addition to mass flows from wells.
In some embodiments, the VFM model may include bounds that are input by the human operator based on his/her knowledge of characteristics of the extraction field. This may aid in obtaining unique solutions to the estimation problem.
It is believed that the type of VFM model described above may provide greater accuracy in its estimates than VFM models that have previously proposed. Further, unlike previous models, the VFM models described herein may facilitate modeling together of disparate sections of an extraction field. It is to be expected that some tuning of the VFM model described herein may be required, but after initial tuning the model may operate in a manner such that it essentially self-tunes, so that subsequent tuning operations will not be needed and/or eventual disablement of the model due to going out of tune will not occur.
The VFM model described above may be flexible enough to continue to make accurate estimates even as, over time, certain sensors fail and cease to provide ongoing data.
The particular example hydrocarbon extraction field illustrated herein was assumed to be an undersea field, but the teachings of this disclosure, and the VFM modeling described herein, are also applicable to hydrocarbon extraction operations on land.
The flow chart described herein should not be taken to imply a fixed order to the steps, and embodiments of the present invention may be practiced in any order that is practicable, including simultaneous performance of at least some steps. Note that any of the methods described herein may be performed by hardware, software, or any combination of these approaches. For example, a computer-readable storage medium may store thereon instructions that when executed by a machine result in performance according to any of the embodiments described herein.
It is to be understood that not necessarily all such objects or advantages described above may be achieved in accordance with any particular embodiment. Thus, for example, those skilled in the art will recognize that the systems and techniques described herein may be embodied or carried out in a manner that achieves or optimizes one advantage or group of advantages as taught herein without necessarily achieving other objects or advantages as may be taught or suggested herein.
While only certain features of the invention have been illustrated and described herein, many modifications and changes will occur to those skilled in the art. It is, therefore, to be understood that the appended claims are intended to cover all such modifications and changes as fall within the true spirit of the invention.