version 3.10-dev
Tools for adaptive grids

Tools for simulations using adaptive grids. More...

Description

Files

file  adapt.hh
 A free function for h-adaptivity.
 
file  adaptive/griddatatransfer.hh
 Interface to be used by classes transferring grid data on adaptive grids.
 
file  initializationindicator.hh
 Class defining an initialization indicator for grid adaption.
 
file  markelements.hh
 A function to mark element for refinement or coarsening.
 

Classes

class  Dumux::GridDataTransfer< Grid >
 Interface to be used by classes transferring grid data on adaptive grids. More...
 
class  Dumux::GridAdaptInitializationIndicator< TypeTag >
 Class defining an initialization indicator for grid adaption. Refines at sources and boundaries. Use before computing on the grid. More...
 

Functions

template<class Grid >
bool Dumux::adapt (Grid &grid, GridDataTransfer< Grid > &dataTransfer)
 Adapt the grid and reconstruct the user data. More...
 
template<class Grid , class Indicator >
bool Dumux::markElements (Grid &grid, const Indicator &indicator, bool verbose=true)
 A function to mark element for refinement or coarsening. More...
 

Function Documentation

◆ adapt()

template<class Grid >
bool Dumux::adapt ( Grid &  grid,
GridDataTransfer< Grid > &  dataTransfer 
)
Parameters
gridThe grid to adapt
dataTransferA class that performs the data transfer from the old to the new grid.

◆ markElements()

template<class Grid , class Indicator >
bool Dumux::markElements ( Grid &  grid,
const Indicator &  indicator,
bool  verbose = true 
)
Parameters
gridthe grid to mark the entities on
indicatorindicated per element whether to refine, coarsen, do nothing. It has a ()-operator taking an element
verboseIf verbose output to std::cout is enabled
Returns
bool whether or not anything has been marked