Opm::LinearisedBlackoilResidual Struct Reference

Residual structure of the fully implicit solver. More...

#include <LinearisedBlackoilResidual.hpp>

List of all members.

Public Types

typedef AutoDiffBlock< double > ADB
 A type alias for the automatic differentiation type.

Public Member Functions

int sizeNonLinear () const
 The size of the non-linear system.

Public Attributes

std::vector< ADBmaterial_balance_eq
 The material_balance_eq vector has one element for each active phase, each of which has size equal to the number of cells.
ADB well_flux_eq
 The well_flux_eq has size equal to the number of wells times the number of phases.
ADB well_eq
 The well_eq has size equal to the number of wells.
std::vector< double > matbalscale
bool singlePrecision

Detailed Description

Residual structure of the fully implicit solver.

All equations are given as AD types, with multiple jacobian blocks corresponding to the primary unknowns. The primary unknowns are for a three-phase simulation, in order: p (pressure) sw (water saturation) xvar (gas saturation, gas-oil ratio or oil-gas ratio) qs (well outflows by well and phase) bhp (bottom hole pressures) In the above, the xvar variable will have a different meaning from cell to cell, corresponding to the state in that cell (saturated, undersaturated oil or undersaturated gas). In a two-phase simulation, either sw or xvar is not used, depending on which phase is missing.

Note: this class is strongly coupled to the class FullyImplicitBlackoilSolver, and is separated from that class to facilitate the development of linear solver strategies outside that class.


Member Data Documentation

The material_balance_eq vector has one element for each active phase, each of which has size equal to the number of cells.

Each material balance equation is given in terms of surface volumes (in SI units, that is standard m^3).

The well_eq has size equal to the number of wells.

It contains the well control equations, that is for each well either a rate specification or bottom hole pressure specification.

The well_flux_eq has size equal to the number of wells times the number of phases.

It contains the well flow equations, relating the total well flows to bottom-hole pressures and reservoir conditions.


The documentation for this struct was generated from the following files:

Generated on 26 Mar 2018 by  doxygen 1.6.1