hp2D::LinearFormHelper_2< F > Class Template Reference

Helper class for linearforms l(v), where v is a two form. More...

#include <linearFormHelper.hh>

Public Member Functions

 LinearFormHelper_2 (const concepts::ElementFormulaContainer< F > frm)
 
virtual ~LinearFormHelper_2 ()
 

Protected Member Functions

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

Protected Attributes

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

Detailed Description

template<class F>
class hp2D::LinearFormHelper_2< F >

Helper class for linearforms l(v), where v is a two form.

\[\displaystyle l(v) = \int\limits_K f(x)v(x)\,dx = \int\limits_{\hat{K}} f(F_K(\xi)) \hat{v}(\xi) d\xi\]

Here, $F_K$ is the element mapping from reference element $\hat{K} = [0,1]^2$, $J$ is the Jacobian matrix.

Precomputes intermediate data for element matrix computation, this is

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

which is stored as a single vector intermediateVector_ for each quadrature point.

The class can be used as well for bilinear forms a(u,v) where u is a 0-form and v is a 2-form. One example is the bilinear form hp2Dedge::Graduv.

Author
Kersten Schmidt, 2015

Definition at line 167 of file linearFormHelper.hh.

Constructor & Destructor Documentation

◆ LinearFormHelper_2()

◆ ~LinearFormHelper_2()

template<class F >
virtual hp2D::LinearFormHelper_2< F >::~LinearFormHelper_2 ( )
inlinevirtual

Definition at line 171 of file linearFormHelper.hh.

Member Function Documentation

◆ computeIntermediate_()

template<class F >
void hp2D::LinearFormHelper_2< F >::computeIntermediate_ ( const BaseQuad< concepts::Real > &  elm) const
protected

Compute the intermediate data for element matrix computation.

This method is important for the derivated linear forms.

Member Data Documentation

◆ frm_

template<class F >
concepts::ElementFormulaContainer<F> hp2D::LinearFormHelper_2< F >::frm_
protected

ElementFormula.

Definition at line 186 of file linearFormHelper.hh.

◆ intermediateValue_

template<class F >
ArrayElementFormula<F> hp2D::LinearFormHelper_2< F >::intermediateValue_
mutableprotected

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