#include <innerResidual.hh>

Inheritance diagram for concepts::InnerResidual< F >:
concepts::OutputOperator

Public Member Functions

template<class G >
void add (LinearForm< F, G > &lform, const F a=1)
 Add routine to build up the local inner Residuals. More...
 
template<class G >
 InnerResidual (const SpaceOnCells< G > &spc)
 Standard constructur builds up the mapping by default of each element of the Space spc. More...
 
template<class G >
 InnerResidual (const SpaceOnCells< G > &spc, LinearForm< F, G > &lform, const F a=1)
 Constructur building the mapping from element key to the local (inner) residuals. More...
 
const F operator() (const hp2D::Quad< F > &quad, const uint locNode)
 Read Operator returning the local inner residual corresponding to the requested first order basis function accessed via local nodal numbering on the given quad. More...
 
const concepts::ElementMatrix< F > & operator() (uint quadKey) const
 Const Read Operator for a requested list of local inner residuals to local basis functions. More...
 
const concepts::ElementMatrix< F > & operator[] (uint quadKey)
 Read Operator for a requested list of local inner residuals to local basis functions. More...
 
virtual ~InnerResidual ()
 

Protected Member Functions

std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 

Private Member Functions

template<class G >
void fillEntries_ (LinearForm< F, G > &lform, const F a=1)
 
uint getPos_ (const uint i, const ushort *p)
 Method returning position of i-th nodal considered first order basis function's inner residual. More...
 

Private Attributes

concepts::HashMap< const ushort * > degP_
 
concepts::HashMap< concepts::ElementMatrix< F > > hashM_
 
const Space< F > & spc_
 

Detailed Description

template<class F>
class concepts::InnerResidual< F >

Definition at line 54 of file innerResidual.hh.

Constructor & Destructor Documentation

◆ InnerResidual() [1/2]

template<class F >
template<class G >
concepts::InnerResidual< F >::InnerResidual ( const SpaceOnCells< G > &  spc)

Standard constructur builds up the mapping by default of each element of the Space spc.

Parameters
spcSpace on which the FEM-Solution was computed, e.g. hpAdaptiveSpaceH1

◆ InnerResidual() [2/2]

template<class F >
template<class G >
concepts::InnerResidual< F >::InnerResidual ( const SpaceOnCells< G > &  spc,
LinearForm< F, G > &  lform,
const F  a = 1 
)

Constructur building the mapping from element key to the local (inner) residuals.

Additional you can hand over a Linearform scaled by a const value.

Parameters
spcSpace on which the fem solution was computed,
linformLinearform derived from the used Billinearforms and Linearforms.
aconst value to multiplace with the Linearform

◆ ~InnerResidual()

template<class F >
virtual concepts::InnerResidual< F >::~InnerResidual ( )
inlinevirtual

Definition at line 76 of file innerResidual.hh.

Member Function Documentation

◆ add()

template<class F >
template<class G >
void concepts::InnerResidual< F >::add ( LinearForm< F, G > &  lform,
const F  a = 1 
)

Add routine to build up the local inner Residuals.

The input Linearform should be defined on the Space given by the Constructor itself. The Linearform have to evaluate only on edge and node basisfunctions (e.g. ) and not on inner ones.

◆ fillEntries_()

template<class F >
template<class G >
void concepts::InnerResidual< F >::fillEntries_ ( LinearForm< F, G > &  lform,
const F  a = 1 
)
private

◆ getPos_()

template<class F >
uint concepts::InnerResidual< F >::getPos_ ( const uint  i,
const ushort p 
)
inlineprivate

Method returning position of i-th nodal considered first order basis function's inner residual.

Definition at line 199 of file innerResidual.hh.

◆ info()

template<class F >
std::ostream& concepts::InnerResidual< F >::info ( std::ostream &  os) const
inlineprotectedvirtual

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Definition at line 134 of file innerResidual.hh.

◆ operator()() [1/2]

template<class F >
const F concepts::InnerResidual< F >::operator() ( const hp2D::Quad< F > &  quad,
const uint  locNode 
)
inline

Read Operator returning the local inner residual corresponding to the requested first order basis function accessed via local nodal numbering on the given quad.

Parameters
quadKeyKey of the requested element

Definition at line 105 of file innerResidual.hh.

◆ operator()() [2/2]

template<class F >
const concepts::ElementMatrix<F>& concepts::InnerResidual< F >::operator() ( uint  quadKey) const
inline

Const Read Operator for a requested list of local inner residuals to local basis functions.

Parameters
quadKeythe key of the requested element's local residuals
Returns
local inner residuals due to local numbering of basis functions

Definition at line 94 of file innerResidual.hh.

◆ operator[]()

template<class F >
const concepts::ElementMatrix<F>& concepts::InnerResidual< F >::operator[] ( uint  quadKey)
inline

Read Operator for a requested list of local inner residuals to local basis functions.

Parameters
quadKeythe key of the requested element's local residuals
Returns
local inner residuals due to local numbering of basis functions

Definition at line 83 of file innerResidual.hh.

Member Data Documentation

◆ degP_

template<class F >
concepts::HashMap<const ushort*> concepts::InnerResidual< F >::degP_
private

Definition at line 150 of file innerResidual.hh.

◆ hashM_

template<class F >
concepts::HashMap<concepts::ElementMatrix<F> > concepts::InnerResidual< F >::hashM_
private

Definition at line 144 of file innerResidual.hh.

◆ spc_

template<class F >
const Space<F>& concepts::InnerResidual< F >::spc_
private

Definition at line 146 of file innerResidual.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