To calculate an a posteriori estimator of the solution. More...
#include <Estimator.h>
Public Types | |
| enum | EstimatorType { ESTIM_ZZ = 0 , ESTIM_ND_JUMP = 1 } |
Public Member Functions | |
| Estimator () | |
| Default Constructor. | |
| Estimator (Mesh &m) | |
| Constructor using finite element mesh. | |
| ~Estimator () | |
| Destructor. | |
| void | setType (EstimatorType t=ESTIM_ZZ) |
| Select type of a posteriori estimator. | |
| void | setSolution (const Vect< real_t > &u) |
| Provide solution vector in order to determine error index. | |
| void | getElementWiseIndex (Vect< real_t > &e) |
| Get vector containing elementwise error index. | |
| void | getNodeWiseIndex (Vect< real_t > &e) |
| Get vector containing nodewise error index. | |
| void | getSideWiseIndex (Vect< real_t > &e) |
| Get vector containing sidewise error index. | |
| real_t | getAverage () const |
| Return averaged error. | |
| Mesh & | getMesh () const |
| Return a reference to the finite element mesh. | |
To calculate an a posteriori estimator of the solution.
This class enables calculating an estimator of a solution in order to evaluate reliability. Estimation uses the so-called Zienkiewicz-Zhu estimator.
| enum EstimatorType |
| void getElementWiseIndex | ( | Vect< real_t > & | e | ) |
Get vector containing elementwise error index.
| [in,out] | e | Vector that contains once the member function setError is invoked a posteriori estimator at each element |
| void getNodeWiseIndex | ( | Vect< real_t > & | e | ) |
Get vector containing nodewise error index.
| [in,out] | e | Vector that contains once the member function setError is invoked a posteriori estimator at each node |
| void getSideWiseIndex | ( | Vect< real_t > & | e | ) |
Get vector containing sidewise error index.
| [in,out] | e | Vector that contains once the member function setError is invoked a posteriori estimator at each side |
| void setSolution | ( | const Vect< real_t > & | u | ) |
Provide solution vector in order to determine error index.
| [in] | u | Vector containing solution at mesh nodes |
| void setType | ( | EstimatorType | t = ESTIM_ZZ | ) |
Select type of a posteriori estimator.
| [in] | t | Type of estimator. It has to be chosen among the enumerated values:
|