#include <AutoDiffHelpers.hpp>

Public Types

typedef Eigen::SparseMatrix
< double > 
M
 
typedef AutoDiffBlock< double >::V V
 
typedef Eigen::Array< int,
Eigen::Dynamic, 1 > 
IFaces
 A list of internal faces. More...
 
typedef Eigen::Array< int,
Eigen::Dynamic,
2, Eigen::RowMajor > 
TwoColInt
 Non-neighboring connections. More...
 

Public Member Functions

template<class Grid >
 HelperOps (const Grid &grid, Opm::EclipseStateConstPtr eclState=EclipseStateConstPtr())
 Constructs all helper vectors and matrices. More...
 

Public Attributes

IFaces internal_faces
 
M ngrad
 Extract for each internal face the difference of its adjacent cells' values (first - second). More...
 
M grad
 Extract for each face the difference of its adjacent cells' values (second - first). More...
 
M caver
 Extract for each face the average of its adjacent cells' values. More...
 
M div
 Extract for each cell the sum of its adjacent interior faces' (signed) values. More...
 
M fullngrad
 
M fulldiv
 Extract for each cell the sum of all its adjacent faces' (signed) values. More...
 
TwoColInt nnc_cells
 
V nnc_trans
 The NNC transmissibilities. More...
 

Detailed Description

Contains vectors and sparse matrices that represent subsets or operations on (AD or regular) vectors of data.

Member Typedef Documentation

typedef Eigen::Array<int, Eigen::Dynamic, 1> Opm::HelperOps::IFaces

A list of internal faces.

typedef Eigen::SparseMatrix<double> Opm::HelperOps::M
typedef Eigen::Array<int, Eigen::Dynamic, 2, Eigen::RowMajor> Opm::HelperOps::TwoColInt

Non-neighboring connections.

typedef AutoDiffBlock<double>::V Opm::HelperOps::V

Constructor & Destructor Documentation

template<class Grid >
Opm::HelperOps::HelperOps ( const Grid &  grid,
Opm::EclipseStateConstPtr  eclState = EclipseStateConstPtr () 
)
inline

Constructs all helper vectors and matrices.

References Opm::AutoDiffGrid::extractInternalFaces(), Opm::AutoDiffGrid::faceCellsToEigen(), ngrad, and nnc_cells.

Member Data Documentation

M Opm::HelperOps::caver

Extract for each face the average of its adjacent cells' values.

Referenced by Opm::BlackoilModelBase< Grid, Implementation >::computeMassFlux().

M Opm::HelperOps::div

Extract for each cell the sum of its adjacent interior faces' (signed) values.

Referenced by Opm::BlackoilModelBase< Grid, Implementation >::assembleMassBalanceEq().

M Opm::HelperOps::fulldiv

Extract for each cell the sum of all its adjacent faces' (signed) values.

M Opm::HelperOps::fullngrad

Extract for each face the difference of its adjacent cells' values (first - second). For boundary faces, one of the entries per row (corresponding to the outside) is zero.

M Opm::HelperOps::grad

Extract for each face the difference of its adjacent cells' values (second - first).

M Opm::HelperOps::ngrad

Extract for each internal face the difference of its adjacent cells' values (first - second).

Referenced by Opm::BlackoilModelBase< Grid, Implementation >::computeMassFlux(), and HelperOps().

TwoColInt Opm::HelperOps::nnc_cells

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