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.
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 minimum/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... | |
|
inline |
Constructor.
problem | The problem object |
gridGeometry | The finite volume geometry of the grid |
gridVariables | The secondary variables on the grid |
|
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 |
function call operator to return mark
element | A grid element |
|
inline |
Function to set the minimum/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.