Class defining an initialization indicator for grid adaption. Refines at sources and boundaries. Use before computing on the grid. More...
#include <dumux/adaptive/initializationindicator.hh>
Class defining an initialization indicator for grid adaption. Refines at sources and boundaries. Use before computing on the grid.
Class defining a start indicator for grid adaption.
| TypeTag | The problem TypeTag |
Uses the defined grid adaptation indicator and further accounts for sources and boundaries. Only for grid initialization!
| TypeTag | The problem TypeTag |
Public Member Functions | |
| GridAdaptInitializationIndicator (std::shared_ptr< const Problem > problem, std::shared_ptr< const GridGeometry > gridGeometry, std::shared_ptr< const GridVariables > gridVariables) | |
| Constructor. More... | |
| void | setMinLevel (std::size_t minLevel) |
| Function to set the minimum allowed level. More... | |
| void | setMaxLevel (std::size_t maxLevel) |
| Function to set the maximum allowed level. More... | |
| void | setLevels (std::size_t minLevel, std::size_t maxLevel) |
| Function to set the minumum/maximum allowed levels. More... | |
| void | setRefinementAtDirichletBC (bool refine) |
| Function to set if refinement at Dirichlet boundaries is to be used. More... | |
| void | setRefinementAtSources (bool refine) |
| Function to set if refinement at sources is to be used. More... | |
| void | setRefinementAtFluxBoundaries (bool refine) |
| Function to set if refinement at sources is to be used. More... | |
| template<class SolutionVector > | |
| void | calculate (const SolutionVector &sol) |
| Calculates the indicator used for refinement/coarsening for each grid cell. More... | |
| int | operator() (const Element &element) const |
| function call operator to return mark More... | |
| 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... | |
| int | maxLevel () |
| void | init () |
| Initializes the adaption indicator class. More... | |
| bool | initializeModel () |
| GridAdaptInitializationIndicator (Problem &problem, AdaptionIndicator &adaptionIndicator) | |
| Constructs a GridAdaptionIndicator instance. More... | |
|
inline |
Constructor.
| problem | The problem object |
| gridGeometry | The finite volume geometry of the grid |
| gridVariables | The secondary variables on the grid |
|
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 |
| adaptionIndicator | Indicator whether a be adapted |
|
inline |
Calculates the indicator used for refinement/coarsening for each grid cell.
| sol | The solution for which indicator is to be calculated |
prepare an indicator for refinement
refine any element being below the minimum level
Check if we have to refine around a source term
Check if we have to refine at the boundary
check if scvf is on Neumann boundary
|
inline |
Calculates the indicator used for refinement/coarsening for each grid cell.
|
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 |
|
inline |
|
inline |
function call operator to return mark
| element | A grid element |
|
inline |
Indicator function for marking of grid cells for refinement.
Returns true if an element should be refined.
| element | A grid element |
|
inline |
Function to set the minumum/maximum allowed levels.
|
inline |
Function to set the maximum allowed level.
|
inline |
Function to set the minimum allowed level.
|
inline |
Function to set if refinement at Dirichlet boundaries is to be used.
|
inline |
Function to set if refinement at sources is to be used.
|
inline |
Function to set if refinement at sources is to be used.