3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
Dumux::CellData2PAdaptive< TypeTag, enableCompressibility > Class Template Reference

Class including the data of a grid cell needed if an adaptive grid is used. More...

#include <dumux/porousmediumflow/2p/sequential/celldataadaptive.hh>

Inheritance diagram for Dumux::CellData2PAdaptive< TypeTag, enableCompressibility >:
Inheritance graph

Description

template<class TypeTag, bool enableCompressibility = getPropValue<TypeTag, Properties::EnableCompressibility>()>
class Dumux::CellData2PAdaptive< TypeTag, enableCompressibility >

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.

Template Parameters
TypeTagThe problem TypeTag
boolUsed 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...
 

Member Typedef Documentation

◆ LoadBalanceData

template<class TypeTag , bool enableCompressibility = getPropValue<TypeTag, Properties::EnableCompressibility>()>
using Dumux::CellData2PAdaptive< TypeTag, enableCompressibility >::LoadBalanceData = AdaptedValues

Constructor & Destructor Documentation

◆ CellData2PAdaptive()

template<class TypeTag , bool enableCompressibility = getPropValue<TypeTag, Properties::EnableCompressibility>()>
Dumux::CellData2PAdaptive< TypeTag, enableCompressibility >::CellData2PAdaptive ( )
inline

Constructs an adaptive CellData object.

Member Function Documentation

◆ reconstructAdaptionValues()

template<class TypeTag , bool enableCompressibility = getPropValue<TypeTag, Properties::EnableCompressibility>()>
static void Dumux::CellData2PAdaptive< TypeTag, enableCompressibility >::reconstructAdaptionValues ( Dune::PersistentContainer< Grid, AdaptedValues > &  adaptionMap,
const Element &  father,
const Element &  son,
const Problem &  problem 
)
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.

Parameters
adaptionMapGlobal map storing all values to be adapted
fatherEntity Pointer to the father cell
sonEntity Pointer to the newly created son cell
problemThe problem

◆ setAdaptionValues()

template<class TypeTag , bool enableCompressibility = getPropValue<TypeTag, Properties::EnableCompressibility>()>
void Dumux::CellData2PAdaptive< TypeTag, enableCompressibility >::setAdaptionValues ( AdaptedValues adaptedValues,
const Element &  element 
)
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.

Parameters
adaptedValuesContainer for model-specific values to be adapted
elementThe element where things are stored.

◆ storeAdaptionValues() [1/2]

template<class TypeTag , bool enableCompressibility = getPropValue<TypeTag, Properties::EnableCompressibility>()>
static void Dumux::CellData2PAdaptive< TypeTag, enableCompressibility >::storeAdaptionValues ( AdaptedValues adaptedValues,
AdaptedValues adaptedValuesFather,
const Element &  fatherElement 
)
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.

Parameters
adaptedValuesContainer for model-specific values to be adapted
adaptedValuesFatherValues to be adapted of father cell
fatherElementThe element of the father

◆ storeAdaptionValues() [2/2]

template<class TypeTag , bool enableCompressibility = getPropValue<TypeTag, Properties::EnableCompressibility>()>
void Dumux::CellData2PAdaptive< TypeTag, enableCompressibility >::storeAdaptionValues ( AdaptedValues adaptedValues,
const Element &  element 
)
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.

Parameters
adaptedValuesContainer for model-specific values to be adapted
elementThe element to be stored

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