AMDiS  0.1 The Adaptive Multi-Dimensional Simulation Toolbox
ProblemStatBase Class Referenceabstract

Interface for time independent problems. Concrete problems must override all pure virtual methods. The method adaptMethodStat() should initiate the adaption loop which in turn uses the other pure virtual functions. The default stationary adaption loop is implemented in the class AdaptStationary. More...

#include <ProblemStatBase.hpp>

Inherited by ProblemStat< Traits >.

## Public Member Functions

Marks mesh elements for refinement and coarsening.

Assembling of system matrices and vectors after coarsening. By the last two parameters, assembling can be restricted to either matrices or vectors only.

Refinement/coarsening of the grid.

virtual Flag globalCoarsen (int n)=0

virtual Flag globalRefine (int n)=0

Solves the assembled system. The result is an approximative solution. The last two boolean arguments can be used to controll successive solutions of systems with the same matrix. More...

A posteriori error estimation of the calculated solution. Should store a local error estimation at each elements leaf data and return the total error sum.

virtual std::string const & name () const =0
Returns the name of the problem.

## Detailed Description

Interface for time independent problems. Concrete problems must override all pure virtual methods. The method adaptMethodStat() should initiate the adaption loop which in turn uses the other pure virtual functions. The default stationary adaption loop is implemented in the class AdaptStationary.

## ◆ globalCoarsen()

 virtual Flag globalCoarsen ( int n )
pure virtual

Uniform global grid coarsening by up to n level. Returns MESH_ADAPTED if grid was changed

Implemented in ProblemStat< Traits >.

## ◆ globalRefine()

 virtual Flag globalRefine ( int n )
pure virtual

Uniform global refinement by n level Returns MESH_ADAPTED if grid was changed

Implemented in ProblemStat< Traits >.

## ◆ solve()

 virtual void solve ( AdaptInfo & adaptInfo, bool createMatrixData = true, bool storeMatrixData = false )
pure virtual

Solves the assembled system. The result is an approximative solution. The last two boolean arguments can be used to controll successive solutions of systems with the same matrix.

Parameters
 adaptInfo Reference to an AdaptInfo object. createMatrixData If false, the solver assumes that all of its internal data structures for the system matrix are already created. This is the case, if we solve different systems but with the same matrix. After the first call to this function (with this parameter set to true), all other calls may set it to false. storeMatrixData If true, all internal data structures for the system matrix are not deleted such that they can be used for next solutions with the same system matrix.

Implemented in ProblemStat< Traits >.

Referenced by StandardProblemIteration::oneIteration().

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