Class documentation of Concepts

Loading...
Searching...
No Matches
hp1D::PointEvaluation< F > Class Template Referenceabstract

#include <linearForm.hh>

Inheritance diagram for hp1D::PointEvaluation< F >:
concepts::LinearForm< F, G > concepts::OutputOperator

Public Member Functions

 PointEvaluation (const concepts::Set< concepts::Attribute > attrib, const concepts::ElementFormulaContainer< F > frm=concepts::ConstFormula< F >(1.0))
 
void operator() (const concepts::Element< Real > &elm, concepts::ElementMatrix< F > &em) const
 
virtual void operator() (const Element< G > &elm, ElementMatrix< F > &em) const =0
 

Protected Member Functions

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

Detailed Description

template<typename F = Real>
class hp1D::PointEvaluation< F >

Point evaluation in 1D

This linear form computes $f(x)v(x)$ on vertices $x$ of the mesh with given attribute, where $f$ is a formula to evaluate and $v$ the test function.

Author
Adrien Semin, 2017, Kersten Schmidt, 2017

Definition at line 172 of file linearForm.hh.

Constructor & Destructor Documentation

◆ PointEvaluation()

template<typename F = Real>
hp1D::PointEvaluation< F >::PointEvaluation ( const concepts::Set< concepts::Attribute attrib,
const concepts::ElementFormulaContainer< F >  frm = concepts::ConstFormula<F>(1.0) 
)
inline

Constructor.

Parameters
frmThe formula
attribSet of vertex attributes

Definition at line 179 of file linearForm.hh.

Member Function Documentation

◆ info()

template<typename F = Real>
virtual std::ostream & hp1D::PointEvaluation< F >::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::LinearForm< F, G >.

◆ operator()() [1/2]

template<typename F = Real>
void hp1D::PointEvaluation< F >::operator() ( const concepts::Element< Real > &  elm,
concepts::ElementMatrix< F > &  em 
) const

Computes the element load vector. As for the computation of an element stiffness matrix, there are the loops over all quadrature points and the loops over all shape functions.

Parameters
elmThe element for which the load vector should be computed.
emThe load vector

◆ operator()() [2/2]

template<class F , class G = typename Realtype<F>::type>
virtual void concepts::LinearForm< F, G >::operator() ( const Element< G > &  elm,
ElementMatrix< F > &  em 
) const
pure virtualinherited

Computes the element contribution to the function.

Parameters
elmElement on which the computations should be performed
emThe local matrix

Implemented in vectorial::LinearForm< F, G >.


The documentation for this class was generated from the following file: