template<class TypeTag, bool adaptive>
class Dumux::GridAdapt< TypeTag, adaptive >
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.
|
| | GridAdapt (Problem &problem) |
| void | init () |
| | Initalization method of the h-adaptive module.
|
| void | adaptGrid () |
| | Standard method to adapt the grid.
|
| template<class Indicator> |
| void | adaptGrid (Indicator &indicator) |
| | Method to adapt the grid with individual indicator vector.
|
| template<class Indicator> |
| void | markElements (Indicator &indicator) |
| bool | wasAdapted () |
| | Returns true if grid cells have been marked for adaptation.
|
| void | setLevels (int levMin, int levMax) |
| int | getMaxLevel () const |
| | Returns maximum refinement level.
|
| int | getMinLevel () const |
| | Returns minimum refinement level.
|
| AdaptionIndicator & | adaptionIndicator () |
| AdaptionIndicator & | adaptionIndicator () const |
template<class TypeTag, bool adaptive>
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
template<class TypeTag, bool adaptive>
template<class Indicator>
Method to adapt the grid with individual indicator vector.
- Parameters
-
| 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