Class defining a standard, saturation dependent indicator for grid adaption. More...
#include <dumux/porousmediumflow/2p/sequential/impes/gridadaptionindicatorlocal.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... | |
void | setIndicatorToRefine (int idx) |
Function for changing the indicatorVector values for refinement. More... | |
void | setIndicatorToCoarse (int idx) |
Function for changing the indicatorVector values for coarsening. More... | |
GridAdaptionIndicator2PLocal (Problem &problem) | |
Constructs a GridAdaptionIndicator instance. More... | |
|
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 |
|
inline |
Function for changing the indicatorVector values for coarsening.
idx | Index of cell which may be coarsen |
|
inline |
Function for changing the indicatorVector values for refinement.
idx | Index of cell which may be refined |