estimator::ExactEstimator< F > Class Template Reference

Abstract class representing the explicit residual a posteriori error estimator. More...

#include <exactEstimator.hh>

Inheritance diagram for estimator::ExactEstimator< F >:

Public Member Functions

template<class G , class H >
void addErrorContr (const concepts::ElementFormula< G > *efrm, const concepts::ElementFormula< H > *afrm, Real s=1.0, const concepts::ElementFormula< F > *w=0)
 Sets individual norm contributions up to now everything in L2 norm. More...
 
virtual ExactEstimator< F > * clone () const
 
void compute ()
 
 ExactEstimator (const concepts::SpaceOnCells< F > &spc, const concepts::Vector< F > &sol)
 Constructur of the exact error estimator. More...
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 

Private Attributes

concepts::Sequence< const concepts::ElementFormula< F > * > norm_apprx_fs_
 
concepts::Sequence< const concepts::ElementFormula< F > * > norm_exact_fs_
 
concepts::Sequence< Real > norm_s_
 
concepts::Sequence< const concepts::ElementFormula< F > * > norm_ws_
 

Detailed Description

template<class F = Real>
class estimator::ExactEstimator< F >

Abstract class representing the explicit residual a posteriori error estimator.

At the moment just one underlying space is supported, i.e. with that robin conditions cannot be handeled for the residuals, atm

Definition at line 30 of file exactEstimator.hh.

Constructor & Destructor Documentation

◆ ExactEstimator()

template<class F = Real>
estimator::ExactEstimator< F >::ExactEstimator ( const concepts::SpaceOnCells< F > &  spc,
const concepts::Vector< F > &  sol 
)
inline

Constructur of the exact error estimator.

Parameters
spcUnderlying 2d Space, i.e. a AdaptiveSpace
solsolution vector of the approximated FEM solution

Definition at line 41 of file exactEstimator.hh.

Member Function Documentation

◆ addErrorContr()

template<class F = Real>
template<class G , class H >
void estimator::ExactEstimator< F >::addErrorContr ( const concepts::ElementFormula< G > *  efrm,
const concepts::ElementFormula< H > *  afrm,
Real  s = 1.0,
const concepts::ElementFormula< F > *  w = 0 
)
inline

Sets individual norm contributions up to now everything in L2 norm.

example 1) efrm = Grad(u), afrm = Grad(u_{hp}), w = 0 , s = 1.0 implies norm contribution || Grad(u) - Grad[u_{hp}] ||_{L^2(K)} on each element K.

example 2) efrm = u, afrm = u_{hp} w = ParsedFormula("(1/sqrt(x^2+y^2))") s = lambda implies the contribution lambda * || w * (u_{hp}-u) ||_{L^2(K)} on each element K where u_{hp} is the approximate solution

Definition at line 64 of file exactEstimator.hh.

◆ clone()

template<class F = Real>
virtual ExactEstimator<F>* estimator::ExactEstimator< F >::clone ( ) const
inlinevirtual

Definition at line 105 of file exactEstimator.hh.

◆ compute()

template<class F = Real>
void estimator::ExactEstimator< F >::compute ( )
inline

Definition at line 92 of file exactEstimator.hh.

◆ info()

template<class F = Real>
virtual std::ostream& estimator::ExactEstimator< F >::info ( std::ostream &  os) const
inlineprotectedvirtual

Definition at line 109 of file exactEstimator.hh.

Member Data Documentation

◆ norm_apprx_fs_

template<class F = Real>
concepts::Sequence<const concepts::ElementFormula<F>* > estimator::ExactEstimator< F >::norm_apprx_fs_
private

Definition at line 119 of file exactEstimator.hh.

◆ norm_exact_fs_

template<class F = Real>
concepts::Sequence<const concepts::ElementFormula<F>* > estimator::ExactEstimator< F >::norm_exact_fs_
private

Definition at line 118 of file exactEstimator.hh.

◆ norm_s_

template<class F = Real>
concepts::Sequence<Real> estimator::ExactEstimator< F >::norm_s_
private

Definition at line 121 of file exactEstimator.hh.

◆ norm_ws_

template<class F = Real>
concepts::Sequence<const concepts::ElementFormula<F>* > estimator::ExactEstimator< F >::norm_ws_
private

Definition at line 120 of file exactEstimator.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich