Base class holding the variables and discretized data for sequential models. More...
#include <dumux/porousmediumflow/sequential/variableclassadaptive.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 | |
VariableClassAdaptive (const GridView &gridView) | |
Constructs an adaptive VariableClass object. More... | |
void | storePrimVars (const Problem &problem) |
void | reconstructPrimVars (const Problem &problem) |
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... | |
|
inherited |
|
inline |
Constructs an adaptive VariableClass object.
In addition to providing a storage object for cell-centered Methods, this class provides mapping functionality to adapt the grid.
gridView | a DUNE gridview object corresponding to diffusion and transport equation |
|
inlineinherited |
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 |
|
inlineinherited |
Return the cell data of a specific cell.
|
inlineinherited |
|
inlineinherited |
Return the vector holding all cell data.
|
inlineinherited |
|
inlineinherited |
Return mapper for elements (for adaptive grids)
|
inlineinherited |
Return mapper for elements (for static grids)
|
inlineinherited |
Return gridView.
|
inlineinherited |
Get index of element (codim 0 entity)
Get index of element (codim 0 entity).
element | codim 0 entity |
|
inlineinherited |
Get index of vertex (codim dim entity)
Get index of vertex (codim dim entity).
vertex | codim dim entity |
|
inlineinherited |
Initializes the variable class.
Method initializes the cellData vector. Should be called from problem init()
|
inline |
Reconstruct missing primary variables (where elements are created/deleted)
To reconstruct the solution in father elements, problem properties might need to be accessed. Starting from the lowest level, the old solution is mapped on the new grid: Where coarsened, new cells get information from old father element. Where refined, a new solution is reconstructed from the old father cell, and then a new son is created. That is then stored into the general data structure (CellData).
problem | The current problem |
|
inline |
Store primary variables
To reconstruct the solution in father elements, problem properties might need to be accessed. From upper level on downwards, the old solution is stored into an container object, before the grid is adapted. Father elements hold averaged information from the son cells for the case of the sons being coarsened.
problem | The current problem |
|
inlineinherited |
Return mapper for vertices (for adaptive grids)
|
inlineinherited |
Return mapper for vertices (for static grids)