The flow equations consist of the mass conservation equation
and the Darcy law
Here,
denotes the velocity and
the pressure. The permeability tensor is given by
and
denotes the viscosity.
We solve the flow equations for a Cartesian grid and we set the source term
be zero except at the left-lower and right-upper corner, where it is equal with opposite sign (inflow equal to outflow).
Program walk-through.
We construct a Cartesian grid
int dim = 3;
int nx = 40;
int ny = 40;
int nz = 1;
Opm::GridManager grid(nx, ny, nz);