concepts::ExplicitResidual< F > Class Template Referenceabstract
#include <explicitResidual.hh>
Public Types | |
typedef HashMap< Real >::const_iterator | const_iterator |
typedef concepts::Realtype< F >::type | G |
typedef HashMap< Real >::iterator | iterator |
typedef F | value_type |
Public Member Functions | |
void | addHNData (const Set< uint > &nSet) |
Add attributes for homogen neumann boundary conditions. More... | |
void | addHNData (uint attrb) |
void | addINData (const Set< uint > &nSet, concepts::ElementFormulaContainer< F > frm) |
Add inhomogen Neumanndata if exist. More... | |
iterator | begin () |
const_iterator | begin () const |
virtual ExplicitResidual< F > * | clone () const =0 |
Virtual constructor. More... | |
virtual ElementFormula< F, concepts::Realtype< F >::type > * | clone () const=0 |
Virtual copy constructor. More... | |
virtual F & | dflt_value () |
Gives default value. More... | |
virtual const F & | dflt_value () const |
Gives default value. More... | |
iterator | end () |
const_iterator | end () const |
const Real | getGlobal () const |
uint | nelm () const |
virtual F | operator() (const Connector &cntr, const Real p, const Real t=0.0) const |
Gives the value in an particular cell on a particular point. More... | |
virtual F | operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const |
virtual F | operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const |
virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real p, const Real t=0.0) const=0 |
Evaluates the formula. More... | |
virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real2d &p, const Real t=0.0) const=0 |
Evaluates the formula. More... | |
virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real3d &p, const Real t=0.0) const=0 |
Evaluates the formula. More... | |
virtual F | operator() (const ElementWithCell< G > &elm, const Real p, const Real t=0.0) const |
virtual F | operator() (const ElementWithCell< G > &elm, const Real2d &p, const Real t=0.0) const |
virtual F | operator() (const ElementWithCell< G > &elm, const Real3d &p, const Real t=0.0) const |
const Real | operator() (uint key) const |
Return the error on given local element, that belongs to the input key. More... | |
virtual | ~ExplicitResidual () |
Protected Member Functions | |
ExplicitResidual (const SpaceOnCells< F > &spc, const Vector< F > &sol, const ElementFormulaContainer< F > res) | |
Constructur of the explicit residual a posteriori error estimator. More... | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Protected Attributes | |
Sequence< ElementFormulaContainer< F > > | frms_ |
Real | globError_ |
Set< uint > | hNAttrbs_ |
Sequence< Set< uint > > | iNAttrbs_ |
concepts::HashMap< Real > | locError_ |
const ElementFormulaContainer< F > | res_ |
const concepts::Vector< F > & | sol_ |
const concepts::SpaceOnCells< F > & | spc_ |
Private Member Functions | |
virtual void | computeError_ (const ElementFormulaContainer< F > &res, HashMap< Real > &jumpResidual)=0 |
virtual void | computeJumpPart_ (HashMap< Real > &jumpResidual) const =0 |
Private Attributes | |
F | dflt_value_ |
default value More... | |
Detailed Description
template<class F>
class concepts::ExplicitResidual< F >
Definition at line 21 of file explicitResidual.hh.
Member Typedef Documentation
◆ const_iterator
|
inherited |
Definition at line 96 of file estimator.hh.
◆ G
|
inherited |
Definition at line 45 of file piecewiseFormula.hh.
◆ iterator
|
inherited |
Definition at line 95 of file estimator.hh.
◆ value_type
|
inherited |
Definition at line 37 of file elementFormula.hh.
Constructor & Destructor Documentation
◆ ~ExplicitResidual()
|
inlinevirtual |
Definition at line 25 of file explicitResidual.hh.
◆ ExplicitResidual()
|
inlineprotected |
Constructur of the explicit residual a posteriori error estimator.
The input residual is builded outside the class. For given elliptic PDE Lu = f, res = f - L(u_h), where u_h is the FEM approximation.
Example: L = -Laplace + c(x)*ID, use hp2D::Functions as Laplacian, Value and ParsedFormulas
- Parameters
-
spc Underlying 2d Space, i.e. a AdaptiveSpace sol solution vector of the approximated FEM solution res strong Residual.
Definition at line 67 of file explicitResidual.hh.
Member Function Documentation
◆ addHNData() [1/2]
|
inline |
Add attributes for homogen neumann boundary conditions.
Definition at line 41 of file explicitResidual.hh.
◆ addHNData() [2/2]
|
inline |
Definition at line 44 of file explicitResidual.hh.
◆ addINData()
|
inline |
Add inhomogen Neumanndata if exist.
This is needed for computing the jump terms
Definition at line 33 of file explicitResidual.hh.
◆ begin() [1/2]
|
inlineinherited |
Definition at line 100 of file estimator.hh.
◆ begin() [2/2]
|
inlineinherited |
Definition at line 104 of file estimator.hh.
◆ clone() [1/2]
|
pure virtual |
Virtual constructor.
Returns a pointer to a copy of itself. The caller is responsible to destroy this copy.
Implements concepts::LocalEstimator< F >.
Implemented in hp2D::ExplicitResidual2D< F >.
◆ clone() [2/2]
|
pure virtualinherited |
Virtual copy constructor.
◆ computeError_()
|
privatepure virtual |
◆ computeJumpPart_()
|
privatepure virtual |
◆ dflt_value() [1/2]
|
inlinevirtualinherited |
Gives default value.
Definition at line 83 of file piecewiseFormula.hh.
◆ dflt_value() [2/2]
|
inlinevirtualinherited |
Gives default value.
Definition at line 81 of file piecewiseFormula.hh.
◆ end() [1/2]
|
inlineinherited |
Definition at line 108 of file estimator.hh.
◆ end() [2/2]
|
inlineinherited |
Definition at line 112 of file estimator.hh.
◆ getGlobal()
|
inlineinherited |
Definition at line 22 of file estimator.hh.
◆ info()
|
inlineprotectedvirtual |
Returns information in an output stream.
Implements concepts::LocalEstimator< F >.
Reimplemented in hp2D::ExplicitResidual2D< F >, and hp1D::ExplicitResidual1D< F >.
Definition at line 70 of file explicitResidual.hh.
◆ nelm()
|
inlineinherited |
Definition at line 116 of file estimator.hh.
◆ operator()() [1/10]
|
inlinevirtualinherited |
Gives the value in an particular cell on a particular point.
- Parameters
-
cell topological cell p physical coordinates t time
Implements concepts::PiecewiseFormulaBase< F >.
Definition at line 132 of file estimator.hh.
◆ operator()() [2/10]
|
inlinevirtualinherited |
Implements concepts::PiecewiseFormulaBase< F >.
Definition at line 135 of file estimator.hh.
◆ operator()() [3/10]
|
inlinevirtualinherited |
Implements concepts::PiecewiseFormulaBase< F >.
Definition at line 138 of file estimator.hh.
◆ operator()() [4/10]
|
pure virtualinherited |
◆ operator()() [5/10]
|
pure virtualinherited |
◆ operator()() [6/10]
|
pure virtualinherited |
◆ operator()() [7/10]
|
inlinevirtualinherited |
Definition at line 52 of file piecewiseFormula.hh.
◆ operator()() [8/10]
|
inlinevirtualinherited |
Definition at line 57 of file piecewiseFormula.hh.
◆ operator()() [9/10]
|
inlinevirtualinherited |
Definition at line 63 of file piecewiseFormula.hh.
◆ operator()() [10/10]
|
inlineinherited |
Return the error on given local element, that belongs to the input key.
Definition at line 123 of file estimator.hh.
Member Data Documentation
◆ dflt_value_
|
privateinherited |
default value
Definition at line 88 of file piecewiseFormula.hh.
◆ frms_
|
protected |
Definition at line 77 of file explicitResidual.hh.
◆ globError_
|
protectedinherited |
Definition at line 37 of file estimator.hh.
◆ hNAttrbs_
|
protected |
Definition at line 81 of file explicitResidual.hh.
◆ iNAttrbs_
|
protected |
Definition at line 79 of file explicitResidual.hh.
◆ locError_
|
protectedinherited |
Definition at line 151 of file estimator.hh.
◆ res_
|
protected |
Definition at line 74 of file explicitResidual.hh.
◆ sol_
|
protectedinherited |
Definition at line 35 of file estimator.hh.
◆ spc_
|
protectedinherited |
Definition at line 33 of file estimator.hh.
The documentation for this class was generated from the following file:
- estimator/explicitResidual.hh