The Darcy law gives
where
and
represent the viscosity and the permeability tensor for each phase
. In the two phase case, we have either
or
. In this tutorial, we do not take into account capillary pressure so that
and gravity effects. We denote by
the absolute permeability tensor and each phase permeability is defined through its relative permeability by the expression
The phase mobility are defined as
so that the Darcy law may be rewritten as
The conservation of mass for each phase writes:
where
denotes the saturation of the phase
and
is a source term. Let us consider a two phase flow with oil and water. We assume that the rock and both fluid phases are incompressible. Since
, we may add the conservation equations to get
where we define
Let the total mobility be equal to
Then, we have
The set of equations
is referred to as the pressure equation. We introduce the fractional flow
as
and obtain
which is referred to as the transport equation. The pressure and transport equation are coupled. In this tutorial, we implement a splitting scheme, where, at each time step, we decouple the two equations. We solve first the pressure equation and then update the water saturation by solving the transport equation assuming that
is constant in time in the time step interval we are considering.
Program walk-through.
Main function