To calculate an a posteriori estimator of the solution. More...
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. More... | |
~Estimator () | |
Destructor. | |
void | setType (EstimatorType t=ESTIM_ZZ) |
Select type of a posteriori estimator. More... | |
void | setSolution (const Vect< real_t > &u) |
Provide solution vector in order to determine error index. More... | |
void | getElementWiseIndex (Vect< real_t > &e) |
Get vector containing elementwise error index. More... | |
void | getNodeWiseIndex (Vect< real_t > &e) |
Get vector containing nodewise error index. More... | |
void | getSideWiseIndex (Vect< real_t > &e) |
Get vector containing sidewise error index. More... | |
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 |
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 |
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 |
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 |
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:
|