Standard Module for h-adaptive simulations. More...
#include <dumux/porousmediumflow/sequential/gridadapt.hh>
Standard Module for h-adaptive simulations.
This class is created by the problem class with the template parameters <TypeTag, true> and provides basic functionality for adaptive methods:
A standard implementation adaptGrid() will prepare everything to calculate the next pressure field on the new grid.
Public Member Functions | |
GridAdapt (Problem &problem) | |
void | init () |
Initalization method of the h-adaptive module. More... | |
void | adaptGrid () |
Standard method to adapt the grid. More... | |
template<class Indicator > | |
void | adaptGrid (Indicator &indicator) |
Method to adapt the grid with individual indicator vector. More... | |
template<class Indicator > | |
void | markElements (Indicator &indicator) |
bool | wasAdapted () |
Returns true if grid cells have been marked for adaptation. More... | |
void | setLevels (int levMin, int levMax) |
int | getMaxLevel () const |
Returns maximum refinement level. More... | |
int | getMinLevel () const |
Returns minimum refinement level. More... | |
AdaptionIndicator & | adaptionIndicator () |
AdaptionIndicator & | adaptionIndicator () const |
|
inline |
Constructor for h-adaptive simulations (adaptive grids)
problem | The problem |
|
inline |
Standard method to adapt the grid.
This method is called from IMPETProblem::preTimeStep() if adaptive grids are used in the simulation. It uses the standard indicator (selected by the property AdaptionIndicator) and forwards to with it to the ultimate method adaptGrid(indicator), which uses a standard procedure for adaptivity: 1) Determine the refinement indicator 2) Mark the elements 3) Store primary variables in a map 4) Adapt the grid, adapt variables sizes, update mappers 5) Reconstruct primary variables, regain secondary variables
|
inline |
Method to adapt the grid with individual indicator vector.
indicator | The refinement indicator that is applied |
This method is called by an user-defined preTimeStep() of the applied problem and takes a given vector with indicator values.
It uses a standard procedure for adaptivity: 1) Determine the refinement indicator 2) Mark the elements 3) Store primary variables in a map 4) Adapt the grid, adapt variables sizes, update mappers 5) Reconstruct primary variables, regain secondary variables
|
inline |
|
inline |
|
inline |
Returns maximum refinement level.
The value is the assign maximum possible level, not the actual maximum level of the grid.
|
inline |
Returns minimum refinement level.
The value is the assign minimum possible level, not the actual minimum level of the grid.
|
inline |
Initalization method of the h-adaptive module.
Prepares the grid for simulation after the initialization of the problem. The applied indicator is selectable via the property AdaptionInitializationIndicator
|
inline |
Mark Elements for grid refinement according to applied Indicator
|
inline |
Sets minimum and maximum refinement levels
levMin | minimum level for coarsening |
levMax | maximum level for refinement |
|
inline |
Returns true if grid cells have been marked for adaptation.