Numerical Methods
This section describes the specification of numerical methods used by solvers.
XML Element: NumericalMethods
Name |
Type |
Default |
Description |
---|---|---|---|
FiniteElements |
node |
unique |
|
FiniteVolume |
node |
unique |
Finite Element Discretization
We are currently refactoring the finite element infrastructure, and will update the documentation soon to reflect the new structure.
Finite Volume Discretization
Two different finite-volume discretizations are available to simulate single-phase flow in GEOSX, namely, a standard cell-centered TPFA approach, and a hybrid finite-volume scheme relying on both cell-centered and face-centered degrees of freedom. The key difference between these two approaches is the computation of the flux, as detailed below.
Standard cell-centered TPFA FVM
This is the standard scheme implemented in the SinglePhaseFVM flow solver.
It only uses cell-centered degrees of freedom and implements a Two-Point Flux Approximation (TPFA) for the computation of the flux.
The numerical flux is obtained using the following expression for the mass flux between cells and
:
where is the pressure of cell
,
is the average fluid density,
is the depth of cell
, and
is the standard TPFA transmissibility coefficient at the interface.
The fluid density,
, and the fluid viscosity,
, are upwinded using the sign of the potential difference at the interface.
For Compositional Multiphase Flow Solver there are two options to compute the average density, . The desired option can be selected using the gravityDensityScheme parameter:
ArithmeticAverage:
is computed using simple arithmetic average:
, where
and
are densities in the two cells.
PhasePresence: average phase density is computed using checking for phase presence:
if phase is present in both cells
and
if phase is present only in cell
if phase is present only in cell
Hybrid FVM
This discretization scheme overcomes the limitations of the standard TPFA on non K-orthogonal meshes. The hybrid finite-volume scheme–equivalent to the well-known hybrid Mimetic Finite Difference (MFD) scheme–remains consistent with the pressure equation even when the mesh does not satisfy the K-orthogonality condition.
The hybrid FVM scheme uses both cell-centered and face-centered pressure degrees of freedom.
The one-sided face flux, , at face
of cell
is computed as:
where reads:
In the previous equation, is the cell-centered pressure,
is the face-centered pressure,
is the depth of cell
, and
is the depth of face
.
The fluid density,
, and the fluid viscosity,
, are upwinded using the sign of
.
The local transmissibility
of size
satisfies:
Above, is a matrix of size
storing the normal vectors to each face in this cell,
is a matrix of size
storing the vectors from the cell center to the face centers, and
is the permeability tensor.
The local transmissibility matrix,
, is currently computed using the quasi-TPFA approach described in Chapter 6 of this book.
The scheme reduces to the TPFA discretization on K-orthogonal meshes but remains consistent when the mesh does not satisfy this property.
The mass flux
written above is then added to the mass conservation equation of cell
.
In addition to the mass conservation equations, the hybrid FVM involves algebraic constraints at each mesh face to enforce mass conservation.
For a given interior face between two neighboring cells
and
, the algebraic constraint reads:
We obtain a numerical scheme with cell-centered degrees of freedom and
face-centered pressure degrees of freedom.
The system involves
mass conservation equations and
face-based constraints.
The linear systems can be efficiently solved using the MultiGrid Reduction (MGR) preconditioner implemented in the Hypre linear algebra package.