3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Dumux::GridAdaptionIndicator2P< TypeTag > Class Template Reference

Class defining a standard, saturation dependent indicator for grid adaption. More...

#include <dumux/porousmediumflow/2p/sequential/impes/gridadaptionindicator.hh>

Description

template<class TypeTag>
class Dumux::GridAdaptionIndicator2P< TypeTag >

Class defining a standard, saturation dependent indicator for grid adaption.

Template Parameters
TypeTagThe problem TypeTag

Public Member Functions

void calculateIndicator ()
 Calculates the indicator used for refinement/coarsening for each grid cell. More...
 
bool refine (const Element &element)
 Indicator function for marking of grid cells for refinement. More...
 
bool coarsen (const Element &element)
 Indicator function for marking of grid cells for coarsening. More...
 
void init ()
 Initializes the adaption indicator class. More...
 
 GridAdaptionIndicator2P (Problem &problem)
 Constructs a GridAdaptionIndicator instance. More...
 

Protected Attributes

Problem & problem_
 
Scalar refinetol_
 
Scalar coarsentol_
 
Scalar refineBound_
 
Scalar coarsenBound_
 
ScalarSolutionType indicatorVector_
 

Static Protected Attributes

static const int saturationType_ = getPropValue<TypeTag, Properties::SaturationFormulation>()
 

Constructor & Destructor Documentation

◆ GridAdaptionIndicator2P()

template<class TypeTag >
Dumux::GridAdaptionIndicator2P< TypeTag >::GridAdaptionIndicator2P ( Problem &  problem)
inline

Constructs a GridAdaptionIndicator instance.

This standard indicator is based on the saturation gradient. It checks the local gradient compared to the maximum global gradient. The indicator is compared locally to a refinement/coarsening threshold to decide whether a cell should be marked for refinement or coarsening or should not be adapted.

Parameters
problemThe problem object

Member Function Documentation

◆ calculateIndicator()

template<class TypeTag >
void Dumux::GridAdaptionIndicator2P< TypeTag >::calculateIndicator ( )
inline

Calculates the indicator used for refinement/coarsening for each grid cell.

This standard indicator is based on the saturation gradient.

◆ coarsen()

template<class TypeTag >
bool Dumux::GridAdaptionIndicator2P< TypeTag >::coarsen ( const Element &  element)
inline

Indicator function for marking of grid cells for coarsening.

Returns true if an element should be coarsened.

Parameters
elementA grid element

◆ init()

template<class TypeTag >
void Dumux::GridAdaptionIndicator2P< TypeTag >::init ( )
inline

Initializes the adaption indicator class.

◆ refine()

template<class TypeTag >
bool Dumux::GridAdaptionIndicator2P< TypeTag >::refine ( const Element &  element)
inline

Indicator function for marking of grid cells for refinement.

Returns true if an element should be refined.

Parameters
elementA grid element

Member Data Documentation

◆ coarsenBound_

template<class TypeTag >
Scalar Dumux::GridAdaptionIndicator2P< TypeTag >::coarsenBound_
protected

◆ coarsentol_

template<class TypeTag >
Scalar Dumux::GridAdaptionIndicator2P< TypeTag >::coarsentol_
protected

◆ indicatorVector_

template<class TypeTag >
ScalarSolutionType Dumux::GridAdaptionIndicator2P< TypeTag >::indicatorVector_
protected

◆ problem_

template<class TypeTag >
Problem& Dumux::GridAdaptionIndicator2P< TypeTag >::problem_
protected

◆ refineBound_

template<class TypeTag >
Scalar Dumux::GridAdaptionIndicator2P< TypeTag >::refineBound_
protected

◆ refinetol_

template<class TypeTag >
Scalar Dumux::GridAdaptionIndicator2P< TypeTag >::refinetol_
protected

◆ saturationType_

template<class TypeTag >
const int Dumux::GridAdaptionIndicator2P< TypeTag >::saturationType_ = getPropValue<TypeTag, Properties::SaturationFormulation>()
staticprotected

The documentation for this class was generated from the following file: