The present invention relates to a method for simulating the thermo-fluid dynamic behavior of multiphase fluids in a hydrocarbons production and transport system in a multiplicity of operating conditions, such as closing or reopening the line, reducing or increasing the flow rate, the fluid cooling process.
In the present disclosure, reference shall be made, in particular, to systems that carry the hydrocarbons extracted from wells to the inlet of the distribution network.
However, the simulation method of the present invention can also be applied to the distribution network.
Currently, simulating the thermo-fluid dynamic behavior of multiphase hydrocarbons through thermo-fluid dynamic simulators that solve the Navier-Stokes equations by finite volume discretization methods is known.
These finite volume thermo-fluid dynamic simulators have good reliability, but they also present a sizable computational cost which determines high simulation times, which grow as complexity and the dimensions of the analyzed system grow.
Simulation times are critical during the studies for the development of a hydrocarbon production and distribution system, design steps in which it can be extremely useful to very rapidly identify potentially critical situations for the productive life of the system.
An object of the present invention is to overcome the aforementioned drawbacks and in particular to devise a method for simulating the thermo-fluid dynamic behavior of multiphase fluids in a hydrocarbons production and transport system that is able to obtain reliable results, while entailing requiring shorter simulation times than prior art finite volume thermo-fluid dynamic simulators.
This and other objects according to the present invention are achieved by a method for simulating the thermo-fluid dynamic behavior of multiphase fluids in a hydrocarbons production and transport system according to claim 1.
Additional characteristics of the method for simulating the thermo-fluid dynamic behavior of multiphase fluids in a hydrocarbons production and transport system are the subject of the dependent claims.
The characteristics and advantages of a method for simulating the thermo-fluid dynamic behavior of multiphase fluids in a hydrocarbons production and transport system according to the present invention shall become more readily apparent from the following exemplifying and non-limiting description, referred to the accompanying schematic drawings in which:
With reference to the figures, a simulation method is shown for simulating the thermo-fluid dynamic behavior of multiphase fluids in a hydrocarbons production and transport system, indicated in its entirety with the number 100.
Said simulation method 100 comprises an initial step 110 in which the transport system is outlined as a plurality of interconnected component blocks thus obtaining a schematic representation such as the one shown in
The system shown in
It is stressed that each of the two wells P1 and P2 of the two reservoirs was modeled according to the simplified conduit model.
Each of these simplified analytical mathematical models is represented by a plurality of constitutive equations adapted to describe the thermo-fluid dynamic behavior of the corresponding component block. In particular, the constitutive equations describe the evolution of a plurality of variables between inlet and outlet of the individual component block, as well as the evolution of these variables over time; the simulation method of the present patent is able to describe the characteristic transients in the operational scenarios described above.
The aforesaid variables are, for example, the flow rates of the different phases, the pressures, the temperatures and so on.
Preferably, the modeling step 120 further comprises the step in which for each simplified analytical mathematical model a plurality of corrective coefficients is applied to the constitutive equations, where the corrective coefficients are estimated so as to adapt the results obtained from the simplified analytical mathematical model to reference data. These reference data can be, in particular, derived from actual field measurements or from known finite volume thermo-fluid dynamic simulators.
The corrective coefficients are defined in such a way as to assume a value equal to 1 in case of perfect agreement between the simplified analytical mathematical model and the reference date. Therefore, greater discrepancies or inadequacies of the simplified model relative to the reference date are expressed by the progressive departure of the corrective coefficients from the unitary value.
In modelling the discrete elements of the system, it must be considered that the conduit element and the separator element are dynamic elements, i.e. provided with memory, whereas the reservoir element and the valve element are static, i.e. without memory.
In the present description, the subscript L refers to a liquid, the subscript G refers to a gas, the subscript M refers to a liquid-gas mixture, the subscript IN refers to an inlet, the subscript OUT refers to an outlet, the subscript UP refers to the upstream side of a valve, the subscript DO refers to the downstream side of a valve, the subscript RES refers to a reservoir, the subscript W refers to a well, the subscript V refers to a valve, the subscript P refers to a conduit (“pipeline”), the subscript SEP refers to a separator. Preferably, the simplified analytical mathematical conduit model can comprise the following constitutive equations:
where mL indicates the mass of liquid per unit of volume, mG indicates the mass of gas per unit of volume, mL0 indicates the mass of liquid per unit of volume in the previous conduit, mG0 indicates the mass of gas per unit of volume in the previous conduit, ΔL indicates the length of the conduit, vL,IN and vL,OUT indicate the velocity of the liquid respectively at the inlet and at the outlet, vG,IN and vG,OUT indicate the velocity of the gas respectively at the inlet and at the outlet, ψG indicates the mass flow rate per unit of volume that changes from the liquid phase to the gaseous phase.
where Gout indicates the mass flow rate out, A indicates the cross section area of the conduit, ΔL indicates the length of the conduit, vL,IN and vL,OUT indicate the velocity of the liquid respectively in and out, vG,IN and vG,OUT indicate the velocity of the gas respectively in and out, mL indicates the mass of liquid per unit of volume, mG indicates the mass of gas per unit of volume, mL0 indicates the mass of liquid per unit of volume in the previous conduit, mG0 indicates the mass of gas per unit of volume in the previous conduit, Γ indicates the head loss per unit of length (which depends on the flow regime), R indicates the friction loss per unit of length (which depends on the flow regime), pin and pout indicate the pressure respective at the inlet and at the outlet.
where mL indicates the mass of liquid per unit of volume, mG indicates the mass of gas per unit of volume, mL0 indicates the mass of liquid per unit of volume in the previous conduit, mG0 indicates the mass of gas per unit of volume in the previous conduit, ΔL indicates the length of the conduit, vL,IN and vL,OUT indicate the velocity of the liquid respectively in and out, vG,IN and vG,OUT indicate the velocity of the gas respectively in and out, A indicates the cross section area of the conduit, ΔL indicates the length of the conduit, S indicates the perimeter of the section of the conduit, U indicates the relative heat transfer coefficient of the walls of the conduit (including the insulation layers), Tout and Text indicate the temperature respectively at the outlet and external, g indicates the acceleration due to gravity, hL and hG indicate the specific enthalpy, respectively, of the liquid and of the gas, hL0 and hG0 indicate the specific enthalpy in the previous conduit respectively of the liquid of the gas, zin and zout indicate, respectively, the elevation of the inlet and of the outlet of the conduit relative to a reference level;
where mL and mG indicate the mass per unit of volume respectively of liquid and of gas, mL0 and mG0 indicate the mass per unit of volume in the previous conduit respectively of liquid and of gas, vL,IN and vL,OUT indicate the velocity of the liquid respectively in and out, vG,IN and vG,OUT indicate the velocity of the gas respectively in and out, p indicates pressure, ΔL indicates the length of the conduit, ρL and ρG indicate the density respectively of the liquid and of the gas, xG indicates the quality of the gas, {tilde over (ψ)}G indicates a flow rate per unit of volume obtained from the mass flow rate per unit of volume ψG defined above, αL indicates volume percent of liquid.
Using a single momentum conservation equation instead of two distinct ones for each phase, it is necessary to introduce an algebraic relationship to take into account the difference in velocity (“slip”) between the two phases. Therefore, in addition to the aforementioned equations for each flow regime (stratified, dispersed bubble, slug, etc.), the simplified conduit model can also comprise the following equations:
For example, for the stratified regime the following equations are considered:
where RL and RG indicate the friction losses respectively of the liquid phase and of the gaseous phase, A indicates the cross section area of the conduit, fL and fG indicate the friction coefficients respectively of liquid and of gas, ρL and ρG indicate respectively the densities of liquid and of gas, vL and vG indicate respectively the velocities of liquid and of gas, SL and SG indicate the parts of circumference of the section of the conduit that are “wet” respectively by liquid and by gas;
where mL and mG indicate the mass per unit of volume respectively of liquid and of gas, g indicates the acceleration due to gravity, θ indicates the inclination of the conduit relative to the horizontal;
where RL and RG indicate the friction losses respectively of the liquid and gaseous phase, RI indicates the friction loss between the two phases, g indicates the acceleration due to gravity, θ indicates the inclination of the conduit relative to the horizontal, ρL and ρG indicate the density respectively of the liquid and of the gas, uL indicates the volume percent of liquid.
For the bubbly regime, the following equations are considered:
where A indicates the cross section area of the conduit, fM indicates the friction coefficient of the liquid-gas mixed phase, ρM indicates the density of the liquid-gas mixture, νM indicates the velocity of the fluid, D indicates the diameter of the conduit;
where mL and mG indicate the mass per unit of volume respectively of liquid and of gas, g indicates the acceleration due to gravity, θ indicates the inclination of the conduit relative to the horizontal;
νL and νG indicate the velocities respectively of liquid and of gas, g indicates the acceleration due to gravity, θ indicates the inclination of the conduit relative to the horizontal, ρL and ρG indicate the density respectively of the liquid and of the gas, σ indicates the surface tension of the liquid.
For the slug regime, the following equations are considered:
where RS and RT indicate the friction losses in the “slug” section and in the “Taylor bubble” section of the slug unit, A indicates the section of the conduit, fS and fGT indicates the friction coefficients of the fluid in the “slug” and “Taylor bubble” sections, ρS and ρG indicate the densities of the fluid respectively in the “slug” and in the gas section, vM and vGT indicate the velocities of the fluid and respectively in the “slug” section and of the gas contained in the “Taylor bubble”, S and SGT indicate respectively the circumference of the section of the conduit and the part of circumference “wet” by the gas of the “Taylor bubble”, lS the length of the “slug” section and lT the length of the “Taylor bubble” section, ls+T indicates the total length of the slug unit;
where g indicates the acceleration due to gravity, θ indicates, ρS and ρT indicate the density respectively in “slug” regime and in “Taylor bubbly” regime, lS the length of the “slug” section, lT indicates the length of the “Taylor bubbly” section, lS+T indicates the total length of the slug unit;
v
G
−C
0T
v
M
−v
0T=0
where C0T is a flow distribution coefficient and v0T is the velocity of a gas bubble that rises along a conduit of stagnating liquid (vL=0).
As corrective coefficients can be selected, for example, multiplicative coefficients that correct:
In particular, for the stratified regime, the λS coefficient is inserted in the slip equation as follows:
where RL and RG indicate the friction losses respectively of the liquid and gaseous phase, RI indicates the friction loss between the two phases, αL and αG indicate the volume percentages respectively of liquid and of gas, g indicates the acceleration due to gravity, θ indicates the inclination of the conduit relative to the horizontal, ρL and ρG indicate the density respectively of the liquid and of the gas.
For the bubbly regime, the λS coefficient is inserted in the slip equation as follows:
νL and νG indicate the velocities respectively of liquid and of gas, g indicates the acceleration due to gravity, θ indicates the inclination of the conduit relative to the horizontal, ρL and ρG indicate the density respectively of the liquid and of the gas.
For the slug regime, the λS coefficient is inserted in the slip equation as follows:
v
G−λSC0TvM−V0T=0
where vG is the velocity of the gas, vM the velocity of the fluid, C0T is a flow distribution coefficient and v0T is the velocity of a gas bubble that rises along a conduit of stagnating liquid (vL=0).
The corrective coefficient λf is multiplied times the friction coefficient of the liquid phase fL in case of stratified regime, times the friction coefficient of the mixed liquid-gas phase fM in case of “bubbly”, times the friction coefficient of the “slug” phase fs regime in case of “slug” regime.
The corrective coefficient λdx,P is multiplied times the derivative of gas quality with respect to pressure
The simplified conduit model can thus be written in state-space representation:
{dot over (x)}
P
=f
P(xP,uP;λP)
y
P
=h
P(xP,uP;λP);
where uP is the vector of the “forcing” variables, e.g.:
xP is the vector of the state variables, e.g.:
yP is the variable output vector, e.g.:
λP is the vector containing the aforementioned corrective multiplicative coefficients.
Preferably, the simplified analytical mathematical valve model can comprise the following constitutive equations:
where ATH is the section area of the throat of the valve, AUP is the section of the valve inlet, pTH and pup indicate the pressure respectively at the throat and at the inlet of the valve, xG indicates gas quality, n indicates the polytropic expansion exponent, Φ and η are parameters related to the mass percentages of liquid and gas, G indicates the total mass flow rate that traverses the valve and ρ indicates the density of the fluid;
where GG,UP and GG,DO indicate the mass flow rates of gas respectively at the inlet and at the outlet of the valve, AUP is the inlet section area of the valve, indicates the mass flow rate of gas that becomes liquid per unit of surface area, mL,UP and mL,DO indicates the liquid mass per unit of volume respectively at the inlet and at the outlet of the valve, p indicates pressure, Δp indicates the pressure difference between the inlet and the outlet of the valve;
where xG,UP and xG,DO indicate gas quality respectively at the inlet and at the outlet of the valve, hL,UP and hL,DO indicate the specific enthalpy of the liquid respectively at the inlet and at the outlet of the valve, hG,UP and hG,DO indicate the specific enthalpy of the gas respectively at the inlet and at the outlet of the valve.
As corrective coefficients can be selected, for example, multiplicative coefficients CD, λx,V, λ∂x,V that correct:
The simplified valve model can then be written in representation in the following way:
y
V
=h
V(uV;λV)
where uV is the vector of the “forcing” variables, e.g.:
yV is the variable output vector, e.g.:
λV is the vector containing the aforementioned corrective coefficients.
Preferably, the simplified analytical mathematical reservoir model can comprise the following constitutive equations:
G=ϕ
IRP(pRES−pW)
where ΦIPR( ) is a function that represents the IPR curve known to the persons skilled in the art, pRES and pW indicates respectively the pressure in the reservoir and in the well;
G
G
=R
S,RES
G
where RS,RES indicates the mass flow rate percentage of gas in the reservoir;
T
IN
:x
G,RES
h
G,RES+(1−xG,RES)hL,RES=xG,WhG,W+(1−xG,W)hL,W,
where xG,RES and xG,W indicates gas quality respectively in the reservoir and in the well, hL,RES and hL,W indicate the specific enthalpy of the liquid respectively in the reservoir and in the well, hG,RES and hG,W indicate the specific enthalpy of the gas respectively in the reservoir and in the well.
As corrective coefficients can be selected, for example, a single multiplicative coefficient λx,R which corrects gas quality xG as a function of pressure p and of temperature T; in this case, the following correspondence applies xG(p,T)→λx,RxG(p,T).
The simplified reservoir model can then be written in representation in the following way:
y
2
=h
R(uR;λR)
where uR is the vector of the “forcing” variables, e.g.:
yR is the variable output vector, e.g.:
λR is the aforementioned corrective coefficient.
Preferably, the simplified analytical mathematical separator model can comprise the following constitutive equations:
where GDRAIN indicates the maximum drain rate of the separator;
G
G,OUT
=G
G,IN
where GL,IN and GL,OUT are respectively the mass flow rate of liquid flowing in and out and ρL is the density of the liquid at the separation conditions of temperature TSEP and pressure pSEP.
As corrective coefficients can be selected, for example, a single multiplicative coefficient λρ,Sep which corrects the density of the liquid gas ρL as a function of the pressure and of the temperature at the separator.
The simplified separator model can then be written in representation in the following way:
{dot over (x)}
S
=f
S(xS,uS;λS)
y
S
=h
S(xS,uS;λS)
where uS is the vector of the “forcing” variables, e.g.:
yS is the variable output vector, e.g.:
xS is a state variable coinciding with one of the outputs, i.e. the volume of liquid VL,
λS is the aforementioned corrective coefficient.
The constitutive equations of the above simplified analytical mathematical models are derived from fluid dynamics law that are known in themselves; the parameters and the variables contained in these equations can be calculated in a known manner.
As stated above, the corrective coefficients of each simplified model are estimated in such a way as to adapt the results obtained by the model to reference date.
For this purposes, the step of modeling the component blocks 120 preferably comprises a learning step 200 in which the corrective coefficients are estimated for each simplified model for at least one stationary or transient flow regime (stratified, dispersed bubbly, slug and so on) and/or for at least one stationary or transient heat regime.
This learning step 200 can be carried out with different mathematical methods for the minimization of the discrepancy between the data obtained from the simplified model and the reference data.
For example, the least squares method can be used, considering as reference data the values of interest of pressure, temperature, flow rates, etc. measured in the field or calculated by means of finite volume thermo-fluid dynamic simulators.
Let yX and uX be the vectors of the reference data to be used respectively as reference output variables and forcing variables of the simplified model X.
Consider the case in which the simplified model X is the one relating to a conduit; in this case xP is the vector of state variables of reference, which can be calculated starting from yP and uP with an equation
x
P=φP(yP,uP).
The system to be solved with the least squares technique to estimate the corrective coefficients λP of the conduit model is for example
where t0 is an instant in stationary state conditions. Solving the system indicated above is equivalent to imposing that, at the instant t0, the state xP is stationary and that the output variables of the simplified model are equal to the reference variables (measured or simulated with a reference model).
Let us consider the case in which the simplified model X is the one relating to a valve.
The system to be solved with the least squares technique to estimate the corrective coefficients λV of the valve model is for example
where t0 . . . tN is the sequence of instants belonging to the time interval of interest. Solving the system indicated above is equivalent to imposing that the output variables of the simplified model are equal to the reference variables (measured or simulated).
Let us consider the case in which the simplified model X is the one relating to a reservoir.
The system to be solved with the least squares technique to estimate the corrective coefficients λR of the valve model is for example
where t0 . . . tN is the sequence of instants belonging to the time interval of interest. Solving the system indicated above is equivalent to imposing that the output variables of the simplified model are equal to the reference variables (measured or simulated).
Consider the case in which the simplified model X is the one relating to a separator.
The system to be solved with the least squares technique to estimate the corrective coefficients λS of the separator model is for example
where t0 . . . tN is the sequence of instants belonging to the time interval of interest. Solving the system indicated above is equivalent to imposing that the output variables of the simplified model are equal to the reference variables (measured or simulated).
In any case, the simulation method can comprise estimating the corrective coefficients for each flow and/or thermal regime, selecting as a reference the one corresponding to corrective coefficients that more closely approach the unit.
As stated above, a production and transport system can be described by a schematic representation like the one in
The simulation method 100, according to the present invention, advantageously comprises a step in which an oriented graph is generated 130 on the basic of the aforesaid schematic representation. An example of oriented graph is shown in
The graph presents a plurality of edges j, a plurality of nodes I and a plurality of loops k. The loop are the cyclical paths of the graph, or a set of adjacent edges in which the last edge ends in the node from which the first one starts. It can be demonstrated that their number is M−N+1, where M is the number of edges and N the number of nodes.
To each node I is associated a set of scalar values, e.g. values of pressure, temperature or mass of liquid or gas per unit of volume.
To each edge j is associated a set of pairs of scalar values:
These quantities are not equal in each point of the conduit and of the valve, therefore they can only be associated to inlets and outlets thereof.
Each edge j represents a component block of the set comprising at least the following blocks:
Each edge j, with the exception of those representing the IPR of the reservoir, connects one of the nodes I of the graph to an individual reference node (ref) which has no corresponding “physical” node in the system and to which are associated zero values of pressure, temperature and so on. In this way, each edge has a uniquely defined gradient ψ. This mathematical representation provides the algebraic instruments to write in analytical matrix form the relations of continuity of multiphase flow rate, of pressure, of temperature, etc. described below.
The simulation method 100 thus comprises a topological description step in which the topology of the system is described 140 by means of a set of topological equations derived from the aforementioned oriented graph and called topological system ΣT.
In particular, in the first place a first incidence matrix A=[aij] is generated that has as many rows as are the nodes of the graph and as many columns as are the edges of the graph. In detail, the element aij=1 if there is an edge that connects the nodes i and j; otherwise, the element aij=0.
From the first incidence matrix A is obtained a second incidence matrix B=[bij] and a loop matrix C=[ckj].
In detail, the second incidence matrix takes into account the orientation of the edges of the graph and therefore the element bij=1 if the flow ξj is flowing out of the ith node, the element bij=−1 if the flow ξj is flowing into the ith, bij=0 if aij=0.
Once the second incidence matrix B is obtained, it is possible to write the equations Bξ=0 that impose the continuity of the mass flow rates of the liquid and gaseous phases at each node.
With regard to the loop matrix C, the element ck1=1 if the flow ξj is oriented like the kth loop, the element ckj=−1 if the flow ξj is not oriented like the kth loop, ckj=0 if the vertex j is not part of the loop k.
With the loop matrix C it is possible to write the equations at the loops Cψ=0, which impose the continuity of pressure, temperature and mass of the liquid and gaseous phases at each node of the system.
The set of equations:
is indicated as topological system ΣT. The set of equations of the simplified models of valves, reservoirs and separators and of the non-differential equations of the simplified conduit models is indicated as static system ΣS. The set of differential equations of the simplified conduit models is indicated as thermo-fluid dynamic system ΣD.
The simulation method 100 according to the present invention, thus, comprises the step of solving 150 the complete system of equations comprising the plurality of topological equations and of the constitutive equations. The variables obtained by solving the aforesaid equations describe the thermo-fluid dynamic behavior of the production and transport system to be investigated.
Preferably, the step of solving 150 the complete system of equations can be represented schematically as shown in
In detail, consider that xn is the set of state variables of all the conduits at the generic instant tn, un is the set of forcing variables and boundary conditions of the system at the same instant tn, i.e.
The ODE solver performs the step-by-step numerical integration of the time derivative of the state variables tn+1, calculating the state variables at the next instant:
where fN( ) is the set of all equations of the static system ΣS, of the thermo-fluid dynamic system ΣD and of the topological system ΣT and Λ is the set of corrective coefficients of all the simplified models.
The complete system fN( ) comprises “stiff” equations, i.e. whose numeric resolution with explicit integration methods is unstable. Therefore, a possible ODE solver that provides a good compromise between calculation rapidity and accuracy is the Trapezoidal Rule with the 2nd order Backward Differentiation Formula, i.e. an implicit method that provides a first trapezoidal step and a second “2nd order backward differentiation” step, methodologies known in themselves to the persons skilled in the art.
The step-by-step integration carried out by the ODE solver expressed by the equation (1) needs, at the first step, knowledge of the initial state x0. Preferably, the initial state x0 is estimated imposing that said initial state x0 be a system equilibrium state, i.e.
f
N(x0,u0;Λ)=0
The step of solving 150 the complete system of equations, with reference to
The main differences between simulation method 100 and method used by the reference simulator consist of the reduction of the number of segments per individual conduit (from 100 to 1) and in of the reduction of the number of layers of insulation for the thermal description (from 21 to 1).
The above description clearly illustrates the characteristics of the simulation method of the present invention, as well as its advantages.
In fact, the simulation method according to the present invention, using simplified analytical mathematical models to describe the various components of a hydrocarbons production and transport system, makes it possible to simulate in a simple and accurate manner the thermo-fluid dynamic behavior of the system.
The simplification of the present invention assures a significant performance increase in terms of calculation time, while maintaining adequate adherence to the physics of the system and sufficient reliability of the simulation.
The simplified models provided by the simulation method of the present invention comprise a set of corrective coefficients that are estimated through learning processes based on results obtained with finite volume thermo-fluid dynamic simulators or with actual measurements carried out on the field. In this way, the simulation method can be “trained” to describe the behavior of a specific geometry of the system in one or more operating regimes. Subsequently, it can be used to carry out simulations of the specific geometry of the system in other operating regimes or even partly modifying the geometry of the system, since the physics of the system is also represented in the simulation method. This technique can be extended to the simulation of the entire productive life of the system.
This type of simulation requires markedly shorter times than finite volume thermo-fluid dynamic simulators and it makes it possible to identify very rapidly potentially critical situations for flow assurance (e.g. danger of formation of waxes, hydrates, etc.).
The instrument of the patent also allows to select the situations in which it may be advisable to rely on a complete simulation for a more detailed and accurate analysis of the phenomena.
The combined use of finite volume thermo-fluid dynamic simulators and of a simulator based on the simulation method of the present invention makes it possible to reduce total simulation times and the computational burden for the analysis of a system, compared to the use of finite volume thermo-fluid dynamic simulators alone.
Lastly, it is clear that the simulation method thus conceived can be subject to numerous modifications and variations, without departing from the scope of the invention; moreover, all details can be replaced by technically equivalent elements.
Number | Date | Country | Kind |
---|---|---|---|
102016000034302 | Apr 2016 | IT | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/EP2017/057900 | 4/3/2017 | WO | 00 |