Class defining a standard, saturation dependent indicator for grid adaption. More...
#include <dumux/porousmediumflow/2p/sequential/impes/gridadaptionindicator.hh>
Class defining a standard, saturation dependent indicator for grid adaption.
| TypeTag | The problem TypeTag |
Public Member Functions | |
| void | calculateIndicator () |
| Calculates the indicator used for refinement/coarsening for each grid cell. More... | |
| bool | refine (const Element &element) |
| Indicator function for marking of grid cells for refinement. More... | |
| bool | coarsen (const Element &element) |
| Indicator function for marking of grid cells for coarsening. More... | |
| void | init () |
| Initializes the adaption indicator class. More... | |
| GridAdaptionIndicator2P (Problem &problem) | |
| Constructs a GridAdaptionIndicator instance. More... | |
Protected Attributes | |
| Problem & | problem_ |
| Scalar | refinetol_ |
| Scalar | coarsentol_ |
| Scalar | refineBound_ |
| Scalar | coarsenBound_ |
| ScalarSolutionType | indicatorVector_ |
Static Protected Attributes | |
| static const int | saturationType_ = GET_PROP_VALUE(TypeTag, SaturationFormulation) |
|
inline |
Constructs a GridAdaptionIndicator instance.
This standard indicator is based on the saturation gradient. It checks the local gradient compared to the maximum global gradient. The indicator is compared locally to a refinement/coarsening threshold to decide whether a cell should be marked for refinement or coarsening or should not be adapted.
| problem | The problem object |
|
inline |
Calculates the indicator used for refinement/coarsening for each grid cell.
This standard indicator is based on the saturation gradient.
|
inline |
Indicator function for marking of grid cells for coarsening.
Returns true if an element should be coarsened.
| element | A grid element |
|
inline |
Initializes the adaption indicator class.
|
inline |
Indicator function for marking of grid cells for refinement.
Returns true if an element should be refined.
| element | A grid element |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |