Class defining an initialization indicator for grid adaption. Refines at sources and boundaries. Use before computing on the grid.
More...
template<class TypeTag>
class Dumux::GridAdaptInitializationIndicator< TypeTag >
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.
- Template Parameters
-
| TypeTag | The problem TypeTag |
Uses the defined grid adaptation indicator and further accounts for sources and boundaries. Only for grid initialization!
- Template Parameters
-
| TypeTag | The problem TypeTag |
|
| | GridAdaptInitializationIndicator (std::shared_ptr< const Problem > problem, std::shared_ptr< const GridGeometry > gridGeometry, std::shared_ptr< const GridVariables > gridVariables) |
| | Constructor.
|
| void | setMinLevel (std::size_t minLevel) |
| | Function to set the minimum allowed level.
|
| void | setMaxLevel (std::size_t maxLevel) |
| | Function to set the maximum allowed level.
|
| void | setLevels (std::size_t minLevel, std::size_t maxLevel) |
| | Function to set the minumum/maximum allowed levels.
|
| void | setRefinementAtDirichletBC (bool refine) |
| | Function to set if refinement at Dirichlet boundaries is to be used.
|
| void | setRefinementAtSources (bool refine) |
| | Function to set if refinement at sources is to be used.
|
| void | setRefinementAtFluxBoundaries (bool refine) |
| | Function to set if refinement at sources is to be used.
|
| template<class SolutionVector> |
| void | calculate (const SolutionVector &sol) |
| | Calculates the indicator used for refinement/coarsening for each grid cell.
|
| int | operator() (const Element &element) const |
| | function call operator to return mark
|
| void | calculateIndicator () |
| | Calculates the indicator used for refinement/coarsening for each grid cell.
|
| bool | refine (const Element &element) |
| | Indicator function for marking of grid cells for refinement.
|
| bool | coarsen (const Element &element) |
| | Indicator function for marking of grid cells for coarsening.
|
| int | maxLevel () |
| void | init () |
| | Initializes the adaption indicator class.
|
| bool | initializeModel () |
| | GridAdaptInitializationIndicator (Problem &problem, AdaptionIndicator &adaptionIndicator) |
| | Constructs a GridAdaptionIndicator instance.
|
template<class TypeTag>
template<class SolutionVector>
Calculates the indicator used for refinement/coarsening for each grid cell.
- Parameters
-
| 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