Voskov2017 (OBL Isotermico. Add No Referencial Teorico)
Voskov2017 (OBL Isotermico. Add No Referencial Teorico)
Voskov2017 (OBL Isotermico. Add No Referencial Teorico)
Denis V. Voskov
PII: S0021-9991(17)30144-4
DOI: http://dx.doi.org/10.1016/j.jcp.2017.02.041
Reference: YJCPH 7173
Please cite this article in press as: D.V. Voskov, Operator-based linearization approach for modeling of multiphase multi-component flow in
porous media, J. Comput. Phys. (2017), http://dx.doi.org/10.1016/j.jcp.2017.02.041
This is a PDF file of an unedited manuscript that has been accepted for publication. As a service to our customers we are providing
this early version of the manuscript. The manuscript will undergo copyediting, typesetting, and review of the resulting proof before it is
published in its final form. Please note that during the production process errors may be discovered which could affect the content, and all
legal disclaimers that apply to the journal pertain.
Operator-based linearization approach for modeling of
multiphase multi-component flow in porous media
Denis V. Voskov
Delft University of Technology
Department of Geoscience & Engineering
Stevinweg 1, 2628 CN Delft, NL
d.v.dvoskov@tudelft.nl
Introduction
2
tion [12, 17]. This approach is based on an analysis of compositional displace-
ment in the hyperbolic limit, which indicates that the solution is localized only
around the displacement path in tie-line space [18]. In this approach, tie-lines
are adaptively parameterized along the displacement solution and the composi-
tional problem is solved using tie-line parameters as nonlinear unknowns. The
new tie-line-based approach improves the nonlinear convergence of composi-
tional simulations and the general performance due to a significant reduction in
phase equilibrium computations. Recently, the parametrization approach based
on sparse grids was suggested for improving the performance of phase behav-
ior [19]. The authors reports significant improvements in CPU time, but their
conventional flash algorithm demonstrates a unrealistically high reference time.
While enough attention has been paid to the linearization technique and the
solution of the phase behavior problem, the application of the nonlinear solver
has also been the object of considerable interest. In the course of the simulation,
nonlinear unknowns are updated based on the solution of a linear system. It
is a common practice in reservoir simulation to modify the update. Different
versions of global or local chopping procedures exist for the nonlinear update.
One of the most commonly used in practice is the Appleyard chop [9], where
the saturation updates are corrected locally according to the end-points of a
relative-permeability function. Another approach is to control unknowns from
crossing an inflection point of the fractional flow function [20], which becomes
more complex when compositional effects [21], gravity [22], or capillarity with
upstream changes [23] are present. All of these methods are trying to resolve the
most severe nonlinearities, which are introduced by a combination of properties
in the governing equations after the conventional linearization is applied.
In reservoir simulation, we always deal with approximations of discretiza-
tions in space and time while resolving all the features of the physical descrip-
tion very accurately. In a lot of cases, this forces the nonlinear solver to struggle
and requires advanced methods. In this paper, we present a completely different
approach to the linearization of the governing equations that follows the ideas
developed by Zaydullin et al. [12]. The discretized version of the conserva-
3
tion equations is written in an operator form where each term is presented as
a product of two operators. The first type of operators depends on the phys-
ical properties of the rock and the fluid while the second type depends on the
properties altered in space. The first type of operators is parametrized in the
physical space of a simulation problem in pre-processing stage. In the course
of the simulation, multilinear interpolation is applied for physics-based opera-
tors while the second type of operators is evolved conventionally. It is shown
that using a limited number of points in the proposed physical representation,
the main nonlinearity of a simulation model can be captured quite precisely.
The numerical results of an approximation in the linearized space demonstrate
better nonlinear convergence with the error in the approximation controlled by
the accuracy of the interpolation. In addition, any expensive property eval-
uations required by the physical model are limited to a few parametrization
points, which significantly improves the performance of the simulation. Several
additional advantages of the proposed Operator-Based Linearization (OBL) ap-
proach are discussed in the last section.
Modeling approach
Conservation equations
4
• φ(ξ, ω) – porosity,
where
where V is the volume of a control volume and qj = q̃j V the source of a phase.
Here we neglected capillarity, gravity and used a Two-Point Flux Approximation
5
(TPFA) with upstream weighting introducing the summation over all interfaces
L connecting the control volume with another grid blocks. Based on these
simplifications, Δψ l becomes a simple difference in pressures between blocks a
and b, where Tjl is a phase transmissibility. These assumptions are not required
by the method, but help to simplify the further description.
Nonlinear unknowns
The system of equations (3) is the discretized form of flow and transport
equations for general multi-component fluid. Here, we used a Fully Implicit
Method (FIM) time approximation. It requires the (xlcj ρlj Tjl Δψ l ) flux term to
be defined based on nonlinear unknowns at a new timestep (n+1) and introduces
nonlinearity to the system of governing equations. Another source of nonlinear-
ities comes from the additional assumption on instantaneous thermodynamic
equilibrium, which is required to close the system.
Several different strategies exists for the nonlinear solution of the resulting
system, see [1], and [11] for an extensive description and examples. Here, we used
the overall molar formulation suggested by Collins et al. [3]. In this formulation,
thermodynamic equilibrium is assumed at every nonlinear iteration of solution
of Eq. 3. For the control volume at multiphase conditions with np -phases, the
following system of equations needs to be solved:
np
Fc = zc − νj xcj = 0, (4)
j=1
Fc+nc = fc1 (p, T, x1 ) − fcj (p, T, xj ) = 0, (5)
nc
Fj+nc ×np = (xc1 − xcj ) = 0, (6)
c=1
np
Fnp +nc ×np = νj − 1 = 0. (7)
j=1
Here zc = j xcj ρj sj / j ρj sj is overall composition and fcj (p, T, xcj ) is the
fugacity of component c in phase j. This procedure is called a multiphase flash
[24]. For a given overall composition zc , the solution of (4)-(7) provides molar
fractions for each component xcj and phase fractions νj .
6
In the overall molar formulation, the unknowns are p and zc . They fully
define the physical state ω for a given control volume. Once multiphase flash is
solved, it can provide derivatives of all properties in (3) with respect to nonlinear
unknowns using the inverse theorem, see [11] for details.
Here, we defined
αc (ω) = (1 + cr (p − pref )) xcj ρj sj , (9)
j
a(ξ) = V (ξ)φ0 (ξ), (10)
krj
βc (ω) = xcj ρj , (11)
p
μj
b(ξ, ω) = ΔtT ab (ξ)(pb − pa ), (12)
θc (ξ, ω, u) = Δt ρj xcj qj (ξ, ω, u). (13)
j
7
Linearization methods
Operator-based linearization
Here, we propose a new strategy for the linearization of the reservoir simu-
lation problem described by Eq. 8. As can be seen from the structure of each
operator in (9)-(12), this system is based on a complex combination of different
nonlinear properties and relations. Since we fixed our space and time approx-
imation, the discretization error can be controlled only by the variation of the
8
timestep size Δt and the characteristic size of the mesh embedded in the T ab
term. Both of these errors are controlled by the operators ψ and θc .
The operators αc and βc represent the physics-based terms. The accuracy of
the nonlinear physics representation is controlled by these two operators (and a
part of θc ). In conventional simulation, we introduce all the nonlinear properties
into the conservation equation as is. Next, the nonlinear solver tries to resolve all
the details of the nonlinear description, struggling sometimes with unimportant
features due to the numerical nature of the property representations.
The Operator-Based Linearization (OBL) strategy, proposed in this work,
is based on the simplified representation of the nonlinear operators αc and βc
in the parameter-space of a simulation problem. For simplicity, let us assume
in the following derivations and implementation that the system of equations
(8) describes flow and transport in a binary system. In this case, we only have
two independent variables in the overall molar formulation - pressure p and
one independent overall composition z (the second is dependent based on the
constraint z1 + z2 = 1). For an isothermal reservoir simulation, the range in
the parameter space for pressure is fully defined by the injection/production
conditions on wells. The range of z is obviously restrained by [0, 1].
In the further numerical examples, we uniformly discretize the parameter
space with a fixed number of points N . The interpolation intervals are defined as
[P1 , P2 , . . . , PN ] and [Z1 , Z2 , . . . , ZN ]. Next for p ∈ [Pi , Pi+1 ] and z ∈ [Zj , Zj+1 ]
we define
p − Pi z − Zj
pi = , zj = , (15)
Pi+1 − Pi Zj+1 − Zj
and the auxiliary relation fi,j = f (Pi , Zj ). Based on pi , zj and fi,j , the inter-
polant of function Ff can be defined as
9
with corresponding gradients
Similarly to [17], the error between an interpolant and function can be evaluated
based on the following relation
2
Vω2
∂ f
|f − Ff | ≤ sup
, (19)
4 ω ∂ω
α̂c (p, z) = Fαc (p, z), β̂c (p, z) = Fβc (p, z). (20)
10
Figure 1: All operators for a binary compositional system parameterized at N = 64.
Solution method
Once each operator in (8) is linearized, the residual vector r and the Jacobian
J can be assembled. The overall-molar formulation does not require a secondary
set of equations [3, 11] and we can apply the linear solver directly to system (14).
In this work, we employed GMRES with the two-stage Constrained Pressure
Residual (CPR) preconditioner [27] as a linear solver. For details on the linear
solution of general-purpose simulation problems, see [8]. Once the linear solution
is found, we need to update the nonlinear unknowns. Here we applied a standard
Newton-Raphson update with the maximum allowed local change in the overall
composition Δz = 0.1.
An important part of the nonlinear solver is a timestep control. This control
may include different types of heuristics to connect timestep size changes in
11
different variables from the previous timestep [28]. Here, we employ a simple
strategy:
• finally, if the timestep is cut to the minimal acceptable value (10−8 days),
the simulation is stopped.
In the examples below, we use a fixed set of parameters, where Δtmin = 10−3
days, Ni = 30, γ = 2 and Δtmax = 10 days. The convergence of the nonlinear
solver is based on the following criterion: maxi |Ri /(αai )| < 10−5 , where i is a
grid block number.
Numerical results
12
apply a finite-volume discretization on a standard Cartesian grid with block size
Δx = 1, Δy = 10 and Δz = 10 m. For the well discretization, the Peaceman
formula [29] is used. The injection well is controlled by a water rate qw = 20
m3 /day, and the production well is controlled by a bottom hole pressure pw =
100 bars.
We run a set of simulations and compare the reference solution, based on
a conventional linearization method, with results performed at different resolu-
tions of interpolation tables in the OBL approach. For simplicity, we use the
equal number of points for each unknown (p and z) with uniformly distributed
values in the range between pmin and pmax for pressure, and between 0 and 1
for the composition.
In the immiscible displacement problem, pmin = 50 and pmax = 650 were
used to cover the parameter space completely. The corresponding average maxi-
mum CFL number for this problem is equal to 13.0, which can be interpreted as
the ratio between the timestep size of the performed (Fully Implicit) simulation
and the timestep restricted by an explicit transport approximation (e.g., in the
Implicit Pressure Explicit Saturation (IMPES) method). The total number of
timesteps in this simulation is Nt = 63.
The results of the first simulation are displayed in Table 1. The number of
points used by each unknown for representation of operators αc and βc is in the
first column. The second column indicates the number of nonlinear iterations
used in the solution. The third and fourth columns correspond to errors in
pressure and composition solution, compared to the reference simulation, that
are introduced by the method. The last column shows the CPU time for each
simulation.
In Fig. 2, we present a spatial distribution of the water overall molar fraction
and pressure by the end of the simulation at time t = 500 days. In this figure
you can see the difference between the solution with conventional linearization of
nonlinear physics vs. the parametrized solutions with four different resolutions
of parameter space. The finest resolution shown in the figure contained only
16 points for each unknown. However, it manages to reproduce standard sim-
13
Table 1: Results of 1D immiscible displacements simulation
Resolution Iters. Ep , % Ez , % CPU, sec
Standard 528 - - 2.0
64 × 64 521 0.02 0.01 2.0
32 × 32 468 0.06 0.04 1.8
16 × 16 422 0.27 0.19 1.6
8×8 365 1.04 0.75 1.4
4×4 316 6.40 3.66 1.3
2×2 146 51.23 22.68 0.8
14
Figure 2: Comparison between overall molar fraction (upper) and pressure (lower) solutions
for different resolutions of parametrization in the immiscible displacement test case
With the increasing resolution, the error between the parametrized and the con-
ventional solutions decreases while the number of nonlinear iterations increases.
Notice that in this case, the conventional simulation requires significantly larger
time than any simulation based on OBL. It can be explained by a more expen-
sive linearization step in the conventional approach which requires multiphase
flash and solution of EoS to the evaluate properties and their derivatives in each
control volume at every nonlinear iteration. In contrast, the OBL approach re-
quires these calculations only in a limited number of interpolation points at
the pre-processing stage. This explains a significant difference in performance
between conventional and OBL approaches.
Displacement profiles for both overall molar fraction of the first component
(C1 ) and pressure are shown in Fig. 3 at time t = 500 days. Again, the finest
resolution shown in the figure with only 16 points is capable of reproducing the
conventional simulation results with the reduced number of nonlinear iterations.
In Fig. 4, the most nonlinear operator for this system β2 is shown for different
15
Table 2: Results of 1D miscible displacement simulation
Resolution Iters. Ep , % Ez , % CPU, sec
Standard 448 - - 10.8
64 × 64 386 0.03 0.01 2.7
32 × 32 364 0.12 0.04 1.9
16 × 16 343 0.65 0.16 1.6
8×8 337 2.36 0.82 1.4
4×4 335 3.74 3.34 1.2
2×2 145 62.24 16.39 0.8
16
Figure 3: Comparison between overall molar fraction (upper) and pressure (lower) solutions
for different resolutions of parametrization in the miscible displacement test case
17
Figure 4: Operator β2 for miscible displacement case at end-point pressures and different
resolutions in composition
simulation time for the OBL approach is still quite significant in comparison to
the conventional approach due to the reduction in expensive EoS computations
and more efficient assembly of the Jacobian.
The approach proposed here translates all the nonlinear relations into lin-
earized versions. This approximation is directly based on nonlinear unknowns,
which significantly improves the behavior of the nonlinear solver. One can bal-
ance between the more accurate representation of physics and the performance
of the nonlinear solver in the simulation. A significant improvement in simula-
tion time can be achieved due to the reduction in expensive property evaluations
in the course of simulation.
18
Figure 5: Overall molar fractions: the reference solution based on conventional approach,
the error between reference solution and OBL solution with 8x8 interpolation table and cross-
section solution at several OBL resolutions for immiscible displacement simulations in reservoir
contains 5 upper layers of the SPE10 problem
19
Figure 6: Overall molar fractions: the reference solution based on conventional approach, the
error between reference solution and OBL solution with 8x8 interpolation table and cross-
section solution at several OBL resolutions for miscible displacement simulations in reservoir
contains 5 upper layers of the SPE10 problem
where
∂αi ∂βi
A= , B= , i, j = 1, . . . , nc (23)
∂ωj ∂ωj
20
Table 4: Results of the 3D miscible displacement simulation
Resolution Iters. Ep , % Ez , % CPU, sec
Standard 1025 - - 2074.4
64 × 64 951 0.06 0.01 1101.7
32 × 32 922 0.30 0.03 1079.2
16 × 16 869 1.40 0.11 1015.1
8×8 807 4.28 0.47 950.1
4×4 783 22.81 3.15 966.3
2×2 488 70.49 6.77 612.7
two matrix
⎡ ⎤T ⎡ ⎤T
−γβi−1 × ep γBi−1 (pi − pi−1 )
⎢ ⎥ ⎢ ⎥
J = J p + Jz = ⎢ ⎥ ⎢ ⎥
⎣γ(βi + βi−1 ) × ep ⎦ + ⎣Ai − γBi (pi+1 − pi )⎦ (24)
−γβi × ep 0
where Jp corresponds to the mostly elliptic part of the problem and Jz corre-
sponds to the mostly hyperbolic part. For the consistent solution of the original
problem, the matrix Jp expressed in the conventional form of βi should be
diagonally dominated. It is clear that the diagonal dominance of Jp will not
be affected by the errors in interpolation of βi since these errors will cancel
each other in diagonal and off-diagonal part. This conclusion is also valid in a
multi-dimensional case.
It is more complicated to perform the analysis of matrix Jz in general case.
In the incompressible limit, the error bound defined by (19) will guarantee that
the approximation schema is contractive for interpolation operators when the
original scheme is contractive which is sufficient for the stability. The eigenval-
ues of sub-matrices Âi and B̂i related to derivatives of composition will define
the hyperbolicity of solution. Notice, that transport in binary systems is always
hyperbolic since the only eigenvalue is always real. For systems with a larger
number of components, the simulation for a coarse resolution of parameter space
with uniform parametrization may fail to converge, as was observed by Khait
and Voskov in [26]. This can be explained by the potential loss of hyperbol-
21
icity in systems with a large number of components. As the solution for this
problem, the parametriation can be adjusted to follow tie-lines which describe
the phase equilibrium in a system. As demonstrated in [12], the convexity in
tie-line parametrization provides a consistent numerical solution for a gas in-
jection problems with multiple components (up to nc = 8) even in the case of
an extremely coarse parametrization and a significant compressibility. We leave
these aspects for future investigation.
We presented a new approach for the assembly of the residual and the Ja-
cobian in reservoir simulation. In this approach, the governing equations are
transformed into an operator form where each term is presented as a product of
two operators. The first type of operators is fully defined by the physical state
of the problem and usually corresponds to the most significant nonlinearities.
The second operator depends on both spatial and state variables. Next, we pa-
rameterize the first type of operators using a uniformly distributed mesh in the
parameter space while treating the second type of operators in a conventional
manner. By example of two different binary systems, we demonstrated that a
simple linear interpolation in the space of state variables (p and z) can repro-
duce the results of the reference system quite accurately even in the case of a
coarse interpolation table. The resolution study in physical space for simplified
1D homogeneous and realistic 3D highly heterogeneous models demonstrated a
good convergence for the two types of nonlinear physics related to immiscible
and miscible displacement processes. The performance of the nonlinear solver
demonstrated an improvement due to operation in a linearized physical space.
The proposed approach has several benefits. The first of them is the sim-
plicity of the application. The fully implicit approximation is a very attrac-
tive method due to its unconditional stability. However, the complexity of the
evaluation and the storage of all the nonlinear properties and their derivatives
makes development and further extension of fully implicit code quite challeng-
ing. The proposed approach simplifies the residual and the Jacobian assembly
22
significantly and provides a unique opportunity for the extension of the phys-
ical model. The performance of the Jacobian and the residual assembly can
be improved and adjusted to the modern computational architectures by using
vectorization of the interpolation operator.
Another benefit of the proposed method is related to nonlinear solvers. Most
of them in reservoir simulation are based on a version of Newton’s method. The
interpolation of residual operators as an explicit function of nonlinear unknowns
provides an opportunity for better nonlinear strategies. Advanced nonlinear
solvers for the proposed formulation can be designed based on a trust-region
method in interpolation tables, similar to the approach proposed in [21] for
conventional molar formulation. Following this nonlinear strategy, the potential
problems introduced by rapid changes of gradients in the coarse tables can be
resolved as well. The fact that the physical kernel of a problem has a multi-linear
representation based on nonlinear unknowns may also help to achieve a better
preconditioning on a linear level similar to Algebraic Multi-Scale methods [31].
The general-purpose application of the introduced method requires dealing
with multi-linear interpolation in a highly dimensional space, especially for com-
positional problems. The adaptive parametrization approach, developed in [12]
for representation of compositional properties, can help in the extension of the
method for problems with a large number of components. The accuracy of the
approach can be controlled by the error estimator and adaptive resolution in pa-
rameter space. An example of a simple error estimator applied for a limited case
of property interpolation can be found in [17]. The extension to systems with
more than two-phases can be performed based on a tie-simplex parametrization
approach [32, 33].
In general, reservoir simulation is always based on the approximation of spa-
tial and temporal discretization. In a lot of cases, this approximation has only a
first order of accuracy. At the same time, the description of complex nonlinear
physics, embedded into a model, is always very precise. The current realization
of the approach, described in this paper, can be seen as a compromise between
the accuracy of the nonlinear representation of physics and the performance
23
of the nonlinear solver. Finding the balance among the different coarsening
strategies is the target for the future research.
Acknowledgement
We would like to acknowledge Rustem Zaydullin for the research ideas that
inspired this work and Mark Khait for the code optimization. We also thank
the Stanford University Petroleum Research Institute for Reservoir Simulation
(SUPRI-B) program for the permission to use ADGPRS in this research.
References
24
[7] D. Voskov, An extended natural variable formulation for compositional sim-
ulation based on tie-line parameterization, Transport Porous Med. 92 (3)
(2012) 541–557. doi:10.1007/s11242-011-9919-2.
[10] R. Younis, Modern advances in software and solution algorithms for reser-
voir simulation, PhD Thesis, Stanford University, 2011.
25
[17] R. Zaydullin, D. Voskov, H. Tchelepi, Formulation and solution of compo-
sitional displacements in tie-simplex space, in: SPE Reservoir Simulation
Symposium 2013, Vol. 2, 2013, pp. 1268–1282. doi:doi:10.2118/163668-MS.
[24] M. Michelsen, The isothermal flash problem: Part ii. phase-split calcula-
tion, Fluid Phase Equilibr. 9 (1982) 21–40.
26
[26] M. Khait, D. Voskov, Operator-based linearization for non-isothermal mul-
tiphase compositional flow in porous media, in: ECMOR XIV-15th Euro-
pean Conference on the Mathematics of Oil Recovery, 2016, pp. 1–15.
27
Appendix A. Fluid and rock properties
The parameters defined in Table A1 are common for all the models. In this
table index p means water in the immiscible displacement model and gas in
the miscible displacement model. The Corey-type relative permeabilities are
defined as
The component mole fractions for this model are defined as xoo = xww = 1 and
xow = xow = 0. Initial saturation Sini = 0 and pressure pini = 200 bars were
28
applied for the initialization of the models.
The next table defines the main parameters for the compositional model de-
scribing the gas injection case. In this model, Peng and Robinson [34] Equation
of State was used to compute density ρp . For phase viscosity, the LBC correla-
tion [35] was applied. Phase fractions were defined based on a flash calculation
[24]. For the initialization of the compositional model, the initial composition
zini = {0.1, 0.9} and pressure pini = 100 bars was used.
29