Opm::LinearisedBlackoilResidual Struct Reference

#include <LinearisedBlackoilResidual.hpp>

Public Types

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

Public Member Functions

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

Public Attributes

std::vector< ADBmaterial_balance_eq
 
ADB well_flux_eq
 
ADB well_eq
 
std::vector< double > matbalscale
 

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 Typedef Documentation

A type alias for the automatic differentiation type.

Member Function Documentation

int Opm::LinearisedBlackoilResidual::sizeNonLinear ( ) const

The size of the non-linear system.

Member Data Documentation

std::vector<double> Opm::LinearisedBlackoilResidual::matbalscale
std::vector<ADB> Opm::LinearisedBlackoilResidual::material_balance_eq
ADB Opm::LinearisedBlackoilResidual::well_eq
ADB Opm::LinearisedBlackoilResidual::well_flux_eq

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.

Referenced by Opm::BlackoilModelBase< Grid, Implementation >::addWellFluxEq(), Opm::BlackoilModelBase< Grid, Implementation >::computeResidualNorms(), Opm::BlackoilModelBase< Grid, Implementation >::convergenceReduction(), and Opm::BlackoilModelBase< Grid, Implementation >::solveWellEq().


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