hp1D::PointEvaluation< F > Class Template Referenceabstract

Point evaluation in 1D. More...

#include <linearForm.hh>

Inheritance diagram for hp1D::PointEvaluation< F >:
concepts::LinearForm< Real >

Public Member Functions

void operator() (const concepts::Element< Real > &elm, concepts::ElementMatrix< F > &em) const
 Computes the element load vector. More...
 
virtual void operator() (const Element< typename Realtype< Real >::type > &elm, ElementMatrix< Real > &em) const=0
 Computes the element contribution to the function. More...
 
 PointEvaluation (const concepts::Set< concepts::Attribute > attrib, const concepts::ElementFormulaContainer< F > frm=concepts::ConstFormula< F >(1.0))
 Constructor. More...
 

Protected Member Functions

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

Private Attributes

const concepts::Set< concepts::Attributeattrib_
 Set of vertex attributes. More...
 
const concepts::ElementFormulaContainer< F > frm_
 The element formula. More...
 

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

Reimplemented from concepts::LinearForm< Real >.

◆ 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]

virtual void concepts::LinearForm< Real , typename Realtype<Real >::type >::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

Member Data Documentation

◆ attrib_

template<typename F = Real>
const concepts::Set<concepts::Attribute> hp1D::PointEvaluation< F >::attrib_
private

Set of vertex attributes.

Definition at line 195 of file linearForm.hh.

◆ frm_

template<typename F = Real>
const concepts::ElementFormulaContainer<F> hp1D::PointEvaluation< F >::frm_
private

The element formula.

Definition at line 197 of file linearForm.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