Contains vectors and sparse matrices that represent subsets or operations on (AD or regular) vectors of data. More...
#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. | |
typedef Eigen::Array< int, Eigen::Dynamic, 2, Eigen::RowMajor > | TwoColInt |
Non-neighboring connections. | |
Public Member Functions | |
template<class Grid > | |
HelperOps (const Grid &grid, const NNC &nnc=NNC()) | |
Constructs all helper vectors and matrices. | |
Public Attributes | |
IFaces | internal_faces |
M | ngrad |
Extract for each internal face the difference of its adjacent cells' values (first - second). | |
M | grad |
Extract for each face the difference of its adjacent cells' values (second - first). | |
M | caver |
Extract for each face the average of its adjacent cells' values. | |
M | div |
Extract for each cell the sum of its adjacent interior faces' (signed) values. | |
M | fullngrad |
Extract for each face the difference of its adjacent cells' values (first - second). | |
M | fulldiv |
Extract for each cell the sum of all its adjacent faces' (signed) values. | |
TwoColInt | nnc_cells |
V | nnc_trans |
The NNC transmissibilities. | |
TwoColInt | connection_cells |
The set of all connections' cells (face or nnc). |
Contains vectors and sparse matrices that represent subsets or operations on (AD or regular) vectors of data.
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.