Linear form in 2D. More...

#include <linearForm.hh>

Inheritance diagram for hp2D::l2::Riesz< F >:
concepts::LinearForm< Real > hp2D::LinearFormHelper_2< 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...
 
 Riesz (const concepts::ElementFormulaContainer< F > frm, bool ignoreMissingElem=false)
 Constructor. More...
 
virtual ~Riesz ()
 

Protected Member Functions

void computeIntermediate_ (const BaseQuad< concepts::Real > &elm) const
 Compute the intermediate data for element matrix computation. More...
 
virtual std::ostream & info (std::ostream &os) const
 

Protected Attributes

concepts::ElementFormulaContainer< Real > frm_
 ElementFormula. More...
 
ArrayElementFormula< Real > intermediateValue_
 Intermediate vector (on each quadrature point) More...
 

Private Member Functions

void operator() (const Quad< Real > &elm, concepts::ElementMatrix< F > &em) const
 

Private Attributes

bool ignoreMissingElem
 

Detailed Description

template<class F = Real>
class hp2D::l2::Riesz< F >

Linear form in 2D.

This linear form computes

\[ \int_K f v \, dx. \]

Currently only on quadrilaterals.

Author
Kersten Schmidt, 2015

Definition at line 235 of file linearForm.hh.

Constructor & Destructor Documentation

◆ Riesz()

template<class F = Real>
hp2D::l2::Riesz< F >::Riesz ( const concepts::ElementFormulaContainer< F >  frm,
bool  ignoreMissingElem = false 
)

Constructor.

Parameters
frmThe formula, given elementwise

◆ ~Riesz()

template<class F = Real>
virtual hp2D::l2::Riesz< F >::~Riesz ( )
virtual

Member Function Documentation

◆ computeIntermediate_()

void hp2D::LinearFormHelper_2< Real >::computeIntermediate_ ( const BaseQuad< concepts::Real > &  elm) const
protectedinherited

Compute the intermediate data for element matrix computation.

This method is important for the derivated linear forms.

◆ info()

template<class F = Real>
virtual std::ostream& hp2D::l2::Riesz< F >::info ( std::ostream &  os) const
protectedvirtual

Reimplemented from concepts::LinearForm< Real >.

◆ operator()() [1/3]

template<class F = Real>
void hp2D::l2::Riesz< 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/3]

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

◆ operator()() [3/3]

template<class F = Real>
void hp2D::l2::Riesz< F >::operator() ( const Quad< Real > &  elm,
concepts::ElementMatrix< F > &  em 
) const
private

Member Data Documentation

◆ frm_

concepts::ElementFormulaContainer<Real > hp2D::LinearFormHelper_2< Real >::frm_
protectedinherited

ElementFormula.

Definition at line 186 of file linearFormHelper.hh.

◆ ignoreMissingElem

template<class F = Real>
bool hp2D::l2::Riesz< F >::ignoreMissingElem
private

Definition at line 261 of file linearForm.hh.

◆ intermediateValue_

ArrayElementFormula<Real > hp2D::LinearFormHelper_2< Real >::intermediateValue_
mutableprotectedinherited

Intermediate vector (on each quadrature point)

\[f(F_K(\xi))\]

Definition at line 183 of file linearFormHelper.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