Estimator Class Reference
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. 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. | |
Detailed Description
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.
- Copyright
- GNU Lesser Public License
Member Enumeration Documentation
◆ EstimatorType
enum EstimatorType |
Constructor & Destructor Documentation
◆ Estimator()
Member Function Documentation
◆ getElementWiseIndex()
Get vector containing elementwise error index.
- Parameters
-
[in,out] e Vector that contains once the member function setError is invoked a posteriori estimator at each element
◆ getNodeWiseIndex()
Get vector containing nodewise error index.
- Parameters
-
[in,out] e Vector that contains once the member function setError is invoked a posteriori estimator at each node
◆ getSideWiseIndex()
Get vector containing sidewise error index.
- Parameters
-
[in,out] e Vector that contains once the member function setError is invoked a posteriori estimator at each side
◆ setSolution()
Provide solution vector in order to determine error index.
- Parameters
-
[in] u Vector containing solution at mesh nodes
◆ setType()
void setType | ( | EstimatorType | t = ESTIM_ZZ | ) |
Select type of a posteriori estimator.
- Parameters
-
[in] t Type of estimator. It has to be chosen among the enumerated values: -
ESTIM_ZZ
: The Zhu-Zienckiewicz estimator (Default value) -
ESTIM_ND_JUMP
: An estimator based on the jump of normal derivatives of the solution across mesh sides
-