3.2.4.12. Porous Flow Equations
In what follows we use a subscript to denote a component index and
is the total number of components. We use a subscript
to
denote a phase and the total number of phases is
. The subscript
is used to refer to the solid phase of the porous skeleton; this phase is not
included in
. Summations over
and
are assumed to
range from one to
and
, respectively, unless otherwise
specified.
3.2.4.12.1. Generalized Equations
This write up follows, directly, the reports of [8], [9] and [10].
Porosity and Void Ratio
In modeling of porous materials, one often needs to know the relative volume of
pore space () and the solid porous skeleton (
). The most common
measure of this is the porosity,
, which is defined as the ratio
of the volume of pore space (
) per unit total volume (
),
viz.,
The void ratio () is sometimes used as well and is defined as the
ratio of the pore volume to the solid volume, viz.,
Clearly the porosity and void ratio are related,
Component Mass Balances
The mass balance for each component across all phases can be written
(3.42)
where is mass concentration of component
across all phases,
is time,
is the total mass flux of component
relative to a
fixed frame of reference and
is the volumetric source of component
.
The mass concentration of component can be written as
(3.43)
where is the interstitial volume fraction, a.k.a. the porosity, that
ranges from zero to one,
denotes mass fraction so that
is the mass
fraction of component
in phase
,
is mixture density of
phase
and
is saturation which is defined as the fraction of
the interstitial pore space occupied by phase
.
For completeness it is noted here that the mass fractions sum to one in each phase and that the saturations of all phases sum to unity,
(3.44)
(3.45)
The macroscopic mass flux in phase ,
is obtained from the
extended Darcy’s Law,
(3.46)
where is the relative permeability of phase
and
is the
permeability tensor which are both intrinsic properties of the porous material
and so may vary spatially. The mixture viscosity of phase
is
,
is the pressure in phase
and
is the gravitational
acceleration.
The component mass flux, can be written as the sum of the component mass
fluxes across each phase,
(3.47)
Within each phase, the component mass flux can be decomposed in its convective and diffusive components,
(3.48)
where is the diffusive flux of component
in phase
. For
example, for a gaseous, dilute binary mixture the diffusive flux may be modeled
using Fick’s Law,
(3.49)
where is the diffusion coefficient of component
in phase
.
Porous Species
The porous species equation is identical to the mass balance equation, with all quantities being molar concentrations. The porous species equation is written as
(3.50)
where is the molar concentration, defined analogously to
(3.43),
is the molar flux, and
is the
volumetric molar source of component
. The porous species equation
exists to facilitate using expressions derived for use with the non porous-flow
species equation. An analogous set of terms to those found in the mass balance
equation can be derived on a molar concentration basis.
Energy Balance
In order to accommodate multicomponent transport problems we employ a enthalpy based energy conservation law,
(3.51)
where is the total internal energy,
is the total heat flux relative to
a stationary frame of reference and
is the volumetric source of energy.
The total internal energy is written as a sum of the energies of all components
across all phases as well as the internal energy of the solid porous structure,
(3.52)
where and
are the mixture density and internal energy of phase
. Generally, thermodynamic relations are required to relate these
quantities to the component specific quantities.
The total heat flux can be decomposed into different modes of transport. Typically,
(3.53)
where is the effective thermal conductivity,
is the temperature
and
is the partial enthalpy of component
in phase
which
is interpreted as the enthalpy of pure component
at the temperature and
pressure of phase
. Using equation (3.48), we can expand
equation (3.53) such that
where is the mixture enthalpy of phase
.
Thus, the total heat flux can be expressed as the sum of conductive, convective
and diffusive contributions,
(3.54)
3.2.4.12.2. Porous Flow Systems
To facilitate various flavors of single phase and multiphase flow in Aria, the porous flow system model was created to manage expression creation. In addition to the single phase model (Single Phase, Single Component, Isothermal Flow and Single Phase, Single Component, Non-isothermal Flow), there are several others available including: mixed single phase, CO2-salt-brine, two-phase-immiscible (Two-Phase Immiscible and Pressure-pressure Formulation for Two-phase Immiscible), Two-phase Air-Water, and Organic Material Decomposition (OMD). The basic purpose of the porous flow system model is to create the necessary expressions for each system. There are examples of each flow system in the regression tests, which are the best place to start when developing an input for a similar system. The input syntax for a porous flow system is given in Material Properties in addition to the required parameters for each porous flow system.
Single Phase, Single Component, Isothermal Flow
The simplest possible case is for a single phase flow (,
) with
a single component (
,
) at a fixed temperature. This is the
single phase porous flow system. For a single component flow, there is no
diffusive mass flux so
and
where
(3.55)
In this case, the mass balance equation is all that is needed to solve for the
unknown pressure field .
(3.56)
Since the density is most likely a function of temperature, the constant uniform
temperature will have to be specified. Finally, in this special case,
equation (3.43) reduces to .
Single Phase, Single Component, Non-isothermal Flow
Building on the simple case developed in the section above (Single Phase, Single Component, Isothermal Flow),
the next step is to accommodate a non-isothermal flow. Here, we still have a single phase
flow (,
) with a single component (
,
). For a
single component flow, there is no diffusive mass flux so
and
where
(3.57)
Again, the mass balance equation is all that is needed to solve for the unknown
pressure field .
(3.58)
Again, in this special case, equation (3.43) reduces to .
In order to solve for the unknown temperature, , we solve an energy transport
equation in the enthalpy form as described in Energy Balance.
Here, the energy flux in equation (3.53) reduces to
where is the pure component enthalpy which may be a function of
and
.
Two-Phase Immiscible
In this section, we define a formulation for two-phase flow of immiscible fluids, that is, without mass transfer between the phases. Common examples include oil/water, under pressure and temperature conditions where phase transitions are negligible, and systems involving non- aqueous phase liquids (NAPL) occurring in subsurface contamination by organic liquids, e.g., solvents, fuels, oils. If we disallow partitioning of components across phases, then we get the following system of mass balance equations for a wetting and non-wetting phase,
In these equations, the subscript w represents wetting phase properties and the subscript n nonwetting phase properties. We have also incorporated the Darcy flux terms, including pressure and gravitational forces, as well as capillary pressure:
The symbol in the equations is used in place of wetting phase pressure, pw.
Also, the pore space is assumed saturated with fluids,
This constraint has been incorporated in the wetting phase mass balance. In addition to the density models described in the previous section, models for density and viscosity can be specified as constant, polynomial with respect to other primary or secondary variables, or by tabular functions, or a user-defined plug-in.
Both the capillary pressure and relative permeability are functions of phase saturations. Either of these can be specified by the user in a tabular form, as a function of either phase saturation. A plug-in can also be written by the user for either of these functions. Several commonly used functions are built-in to the code.
Pressure-pressure Formulation for Two-phase Immiscible
The formulation is generally known to have superior numerical behavior
for
, however, the capillary pressure in heterogeneous media
creates a problem for a vertex-centered (e.g. FEM) numerical scheme. In FEM,
because a node straddles a material interface, which separates two materials
with different texture and therefore different wetting properties, the capillary
pressure is continuous across the interface, but the saturation is not. So, a
(
,:math:S_n) formulation in FEM would require dealing with discontinuous DOF
for
. One alternative is to instead solve for two pressures. Two pairs of
pressure-based DOFs available in Aria include (
) and (
). (Note
that in single phase regions, where
or 1, then
or
are
undefined. The formulation should work for the thermal battery problem so long
as
.
The following system of mass balance equations for a wetting and non-wetting phase describes an immiscible flow,
In these equations, the subscript w represents wetting phase properties and the subscript n non-wetting phase properties. We have also incorporated the Darcy flux terms, including pressure and gravitational forces, as well as capillary pressure:
Also, the pore space is assumed saturated with fluids,
The current implementation in Aria uses a van Genuchten function to model the relationship between the capillary pressure and the saturation. This relationship is inverted for saturation given the capillary pressure in the pressure-pressure formulation.
Two-phase Air-Water
This model describes the nonisothermal two-component, two-phase transport of water and air in a porous medium. The air is treated as a non-condensible gas, but it can dissolve in the liquid phase. The water can exist as water vapor or liquid. The model allows the fluids to partition between the two phases, depending on pressure and temperature conditions. Two single phase states (all liquid or all gas) and one two-phase state are allowed.
The component mass balance equations describing two-phase transport of water, air and energy are:
where
is the gas-phase binary diffusion flux for water vapor through air. In these
equations, subscript refers to the liquid phase and
to the gas phase. In
addition to previously defined variables:
is the mass fraction
of component
(
for water,
for air) in phase
,
is the saturation of phase
,
is the phase density,
is the internal energy of phase
,
is the
effective thermal heat conduction,
is the enthalpy of phase
and
is the component enthalpy in the gas phase.
The liquid and gas phase Darcy velocities are
In addition, the following constraints hold:
CO2-salt-brine
The CO2-salt-brine system is intended to model the interaction of CO2 gas, solid salt, and liquid brine. In this system there are three mass balance equations that must be solved for the saturations of each. This formulation describes a 3-component 2-phase flow for the water-CO2-NaCl system. The two phases are brine, denoted by subscript w, a liquid phase of water with salt and CO2 dissolved in it, and “gas” denoted by subscript g, a CO2-rich phase, with some water dissolved in it, but no salt. The formulation also deals with precipitation of salt from the liquid phase.
To deal with the precipitation of NaCl from the liquid to form solid salt, the fluid system is treated as a three-phase system, with two flowing phases composed of the brine and CO2 phases, and one non-flowing solid phase, which is the solid salt precipitate. Obviously, the formulation holds for other chloride salts, e.g. CaCl, KCl.
In the equations above, we have used the following nomenclature, is the
saturation of solid salt precipitate,
is the brine phase saturation,
is the CO2-rich phase saturation,
is the mass fraction of water in the
brine phase,
is the mass fraction of CO2 in the brine phase,
is the mass fraction of salt dissolved in the brine phase,
is the mass fraction of CO2 in the CO2-rich (“gas”) phase,
is the mass
fraction of water in the gas phase,
is the density of solid
precipitate, and
is the diffusion flux of component
in phase
which can also include dispersion. The subscript ‘w’
refers to the brine phase, ‘g’ refers to the CO2 phase and ‘s’ refers to the
solid salt phase.
This model treats all the separate-phase CO2 as a single CO2-rich phase. The phase diagram for the CO2-H20 system displays a saturation line where liquid water, liquid CO2 and a vapor phase can co-exist. The saturated water vapor pressure on this line is small, so the vapor phase is mostly CO2.
We also have the constraint on the over-all composition, which can replace either of the last two constraints above,
To solve for the pressure, in all compositional situations, we can solve a pressure equation, obtained by summing all component balances. Since the resulting equation is not independent, it replaces one of the three mass balance equations presented earlier.
In the numerical implementation, this equation could be obtained after all BCs have been applied to the discrete equations, by summing the three residual equations together.
Recall, the primary variables for this system are defined as a set of variables
that allow one to compute all the remaining (secondary) variables appearing in
the mass and energy balance equations. For this problem, the primary solution
vector (assuming we will also solve an energy balance for ) is
, where
is the over-all mass fraction of CO2 in the flowing phases. We have introduced the fraction of gas, defined as,
Similarly, the overall density of salt is defined by,
where we have introduced, for later convenience, the following mass density,
Note that the accumulation term in the CO2 balance can be written as .
In this formulation, is solved for from the pressure equation,
from the CO2 mass balance equation,
from the NaCl mass balance and
from the energy balance equation. We assume the phase equilibrium for this
system is done ahead of time.
The thermodynamics algorithm for this system is still in development and has not yet been completed.
Organic Material Decomposition (OMD)
Organic material decomposition (OMD) models currently define two-phase (solid
and gas) problems in which the solid (or porous) species react to produce
additional gas species that pressurize a system and volumetric heat transfer
between phases. The notation used above does not include the porous solid as a
phase, but since for OMD we are solving equations for the solid phase including
reactions, we set , with it being understood that one of these
phases is the solid phase. OMD problems will extend to include a liquid phase in
the future. The OMD equations described here are based on the combustion
model [11]. Further details about coupling
boundary conditions between fluid-only and porous regions are provided in
Coupling BCs for Organic Material Decomposition.
There are separate mass balance equations for
the solid phase and gas phase. The solid phase mass balance equation is used to
solve for solid phase density:
(3.59)
where is the solid phase density and
is the
rate of formation of gases due to heterogenous reaction kinetics. The mass
balance equation for the gas phase solves for the pressure (from the gas phase
density via the ideal gas law),
(3.60)
where is the gas-phase density and
is the mixture-averaged
solid-phase porosity. The porosity is the void space not taken up by the volume
fractions of each solid phase species, typically defined as a function of the
volume fractions of each solid species,
The volume fraction of each solid species is calculated as
where is the solid (non-porous) density for each species. In
equation (3.60),
is the gas-phase velocity and
gets computed from Darcy’s approximation as
(3.61)
where is the mixture-averaged solid-phase permeability tensor
defined as the normalized volume average of the solid phase species’
permeabilities,
where
The intrinsic permeability is the product of the intrinsic permeability scaling and the intrinsic permeability. The reason it is separated in this way is that scalar models have access to many generic functions, whereas tensor entries can only be constants. A more complex function for the intrinsic permeability tensor would have to be written as a user subroutine.
In equation (3.61) the parameter is the gas-phase
viscosity and
is the gravity vector. The ideal gas law gets used for the
gas density in the pressure form of equation (3.60)
Therefore the actual equation for pressure being solved here is
(3.62)
where is the mass averaged molecular weight,
where are the gas phase mass fractions ans
are the
molecular weights of the gaseous species.
The solid phase species equations solve for the solid phase mass fractions,
, of species
(3.63)
where is the formation rate of species
and
is its destruction rate. The gas-phase species
equations solve for the gas-phase mass fraction
of species
(3.64)
No source terms are included in this model. The gas-phase species diffusion flux
vector is modeled as
where is the gas-phase mass diffusivity for species
.
Enthalpy equations are used to solve for temperature, and OMD type problems allow for different temperature fields in the gas and solid phases, so these are described separately here.
The solid phase enthalpy equation for the solid phase temperature
is given by
(3.65)
There is no advection term here since the solid phase is stationary. The solid
phase energy diffusive flux vector is given by Fourier’s law,
where is the thermal conductivity.
The gas-phase enthalpy equation within a porous region, to be solved for the
gas-phase enthalpy (and corresponding temperature) , is
(3.66)
where is the mixture-averaged gas-phase enthalpy,
is the
volumetric heat transfer coefficient which gets set outside of the solid/gas
phases of the material definition,
is the porous solid-phase
temperature and
is the gas phase temperature. The gas-phase energy
diffusive flux vector
is modeled as
where is the mixture-averaged gas-phase mass diffusivity. The
compressible pressure source term for the enthalpy equation has been derived in
the context of Darcy flow. The volumetric transfer source accounts for the heat
transfer between the solid and gas phases.
3.2.4.12.3. Porosity Models
There are several models for porosity in the porous flow capabilities in Aria. The following list provides a brief description for each.
Mesh Deforming
In the mesh (or solid) deforming porosity model, the expression for the porosity is given as
where is the initial porosity,
is the Biot coefficient, and
is the mesh deformation gradient.
Rock Compressible
For the Rock Compressible porosity model, the porosity is given as
where again, is the initial porosity,
is a rock compressibility
coefficient,
is the pore pressure, and
is a reference pore
pressure defined in the input parameters.
Coussy
For the Coussy porosity model, the expression for porosity is
where represents the formation compressibility,
is the divergence of the solid deformation vector,
is the Biot coefficient,
is the pore pressure, and
is a reference
pore pressure.