|
| BlackOilModel (Simulator &simulator) |
|
void | finishInit () |
| Apply the initial conditions to the model. More...
|
|
std::string | primaryVarName (int pvIdx) const |
| Given an primary variable index, return a human readable name. More...
|
|
std::string | eqName (int eqIdx) const |
| Given an equation index, return a human readable name. More...
|
|
Scalar | primaryVarWeight (int globalDofIdx, int pvIdx) const |
| Returns the relative weight of a primary variable for calculating relative errors. More...
|
|
Scalar | eqWeight (int globalDofIdx, int eqIdx) const |
| Returns the relative weight of an equation. More...
|
|
void | updateBegin () |
| Called by the update() method before it tries to apply the newton method. This is primary a hook which the actual model can overload. More...
|
|
void | switchPrimaryVars_ () |
|
template<class DofEntity > |
void | serializeEntity (std::ostream &outstream, const DofEntity &dof) |
| Write the current solution for a degree of freedom to a restart file. More...
|
|
template<class DofEntity > |
void | deserializeEntity (std::istream &instream, const DofEntity &dof) |
| Reads the current solution variables for a degree of freedom from a restart file. More...
|
|
template<class Restarter > |
void | deserialize (Restarter &res) |
| Deserializes the state of the model. More...
|
|
template<class Context > |
void | supplementInitialSolution_ (PrimaryVariables &priVars, const Context &context, int dofIdx, int timeIdx) |
|
void | registerOutputModules_ () |
|
bool | phaseIsConsidered (int phaseIdx) const |
| Returns true iff a fluid phase is used by the model. More...
|
|
void | globalPhaseStorage (EqVector &storage, int phaseIdx) |
| Compute the total storage inside one phase of all conservation quantities. More...
|
|
template<class TypeTag>
class Ewoms::BlackOilModel< TypeTag >
A fully-implicit black-oil flow model.
The black-oil model is a three-phase, three-component model widely used for oil reservoir simulation. The phases are denoted by lower index ("water", "gas" and "oil") and the components by upper index ("Water", "Gas" and "Oil"). The model assumes partial miscibility:
- Water and the gas phases are immisicible and are assumed to be only composed of the water and gas components respectively-
- The oil phase is assumed to be a mixture of the gas and the oil components.
The densities of the phases are determined by so-called formation volume factors:
Since the gas and water phases are assumed to be immiscible, this is sufficint to calculate their density. For the formation volume factor of the the oil phase determines the density of saturated oil, i.e. the density of the oil phase if some gas phase is present.
The composition of the oil phase is given by the gas dissolution factor , which defined as the volume of gas at atmospheric pressure that is dissolved in a given amount of oil at reservoir pressure:
This allows to calculate all quantities required for the mass-conservation equations for each component, i.e.
where is the filter velocity of the phase .
By default is determined by using the standard multi-phase Darcy approach, i.e.
although the actual approach which is used can be specified via the FluxModule
property. For example, the velocity model can by changed to the Forchheimer approach by
The primary variables used by this model are:
- The pressure of the phase with the lowest index
- The two saturations of the phases with the lowest indices