Base class holding the variables and discretized data for sequential models. More...
#include <dumux/porousmediumflow/sequential/variableclass.hh>
Base class holding the variables and discretized data for sequential models.
Stores global information and variables that are common for all sequential models and also functions needed to access these variables. Can be directly used for a single phase model.
TypeTag | The Type Tag |
Public Types | |
using | CellDataVector = typename std::vector< CellData > |
Public Member Functions | |
VariableClass (const GridView &gridView) | |
Constructs a VariableClass object. More... | |
void | initialize () |
Initializes the variable class. More... | |
void | adaptVariableSize (const int size) |
Resizes sequential variable vectors. More... | |
CellDataVector & | cellDataGlobal () |
Return the vector holding all cell data. More... | |
const CellDataVector & | cellDataGlobal () const |
CellData & | cellData (const int idx) |
Return the cell data of a specific cell. More... | |
const CellData & | cellData (const int idx) const |
int | index (const Element &element) const |
Get index of element (codim 0 entity) More... | |
int | index (const Vertex &vertex) const |
Get index of vertex (codim dim entity) More... | |
const GridView & | gridView () const |
Return gridView. More... | |
ElementMapper & | elementMapper () |
Return mapper for elements (for adaptive grids) More... | |
const ElementMapper & | elementMapper () const |
Return mapper for elements (for static grids) More... | |
VertexMapper & | vertexMapper () |
Return mapper for vertices (for adaptive grids) More... | |
const VertexMapper & | vertexMapper () const |
Return mapper for vertices (for static grids) More... | |
using Dumux::VariableClass< TypeTag >::CellDataVector = typename std::vector<CellData> |
|
inline |
Constructs a VariableClass object.
gridView | a DUNE gridview object corresponding to diffusion and transport equation |
|
inline |
Resizes sequential variable vectors.
Method that change the size of the vectors for h-adaptive simulations.
size | Size of the current (refined and coarsened) grid |
|
inline |
Return the cell data of a specific cell.
|
inline |
|
inline |
Return the vector holding all cell data.
|
inline |
|
inline |
Return mapper for elements (for adaptive grids)
|
inline |
Return mapper for elements (for static grids)
|
inline |
Return gridView.
|
inline |
Get index of element (codim 0 entity)
Get index of element (codim 0 entity).
element | codim 0 entity |
|
inline |
Get index of vertex (codim dim entity)
Get index of vertex (codim dim entity).
vertex | codim dim entity |
|
inline |
Initializes the variable class.
Method initializes the cellData vector. Should be called from problem init()
|
inline |
Return mapper for vertices (for adaptive grids)
|
inline |
Return mapper for vertices (for static grids)