Class including the data of a grid cell needed if an adaptive grid is used. More...
#include <dumux/porousmediumflow/2p/sequential/celldataadaptive.hh>
Class including the data of a grid cell needed if an adaptive grid is used.
The class provides model-specific functions needed to adapt the stored cell data to a new (adapted) grid. Additionally, it provides the storage-infrastructure for explicit front tracking.
TypeTag | The problem TypeTag |
bool | Used for specialization for case of compressible flow (true ) or incompressible flow (false ) |
Classes | |
struct | AdaptedValues |
Collection of variables that have to be mapped if the grid is adapted For an immiscible two-phase model, the following data has to be transferred to a new grid. More... | |
Public Types | |
using | LoadBalanceData = AdaptedValues |
Public Member Functions | |
CellData2PAdaptive () | |
Constructs an adaptive CellData object. More... | |
void | storeAdaptionValues (AdaptedValues &adaptedValues, const Element &element) |
Stores values to be adapted in an adaptedValues container. More... | |
void | setAdaptionValues (AdaptedValues &adaptedValues, const Element &element) |
Set adapted values in CellData. More... | |
Static Public Member Functions | |
static void | storeAdaptionValues (AdaptedValues &adaptedValues, AdaptedValues &adaptedValuesFather, const Element &fatherElement) |
Stores sons entries into father element for averaging. More... | |
static void | reconstructAdaptionValues (Dune::PersistentContainer< Grid, AdaptedValues > &adaptionMap, const Element &father, const Element &son, const Problem &problem) |
Reconstructs sons entries from data of father cell. More... | |
using Dumux::CellData2PAdaptive< TypeTag, enableCompressibility >::LoadBalanceData = AdaptedValues |
|
inline |
Constructs an adaptive CellData object.
|
inlinestatic |
Reconstructs sons entries from data of father cell.
Reconstructs a new solution from a father cell into a newly generated son cell. New cell is stored into the global adaptationMap.
adaptionMap | Global map storing all values to be adapted |
father | Entity Pointer to the father cell |
son | Entity Pointer to the newly created son cell |
problem | The problem |
|
inline |
Set adapted values in CellData.
This methods stores reconstructed values into the cellData object, by this setting a newly mapped solution to the storage container of the sequential models.
adaptedValues | Container for model-specific values to be adapted |
element | The element where things are stored. |
|
inlinestatic |
Stores sons entries into father element for averaging.
Sum up the adaptedValues (sons values) into father element. We store from leaf upwards, so sons are stored first, then cells on the next leaf (=fathers) can be averaged.
adaptedValues | Container for model-specific values to be adapted |
adaptedValuesFather | Values to be adapted of father cell |
fatherElement | The element of the father |
|
inline |
Stores values to be adapted in an adaptedValues container.
Stores values to be adapted from the current CellData objects into the adaptation container in order to be mapped on a new grid.
adaptedValues | Container for model-specific values to be adapted |
element | The element to be stored |