Linear form in 2D. More...

#include <linearForm.hh>

Inheritance diagram for hp2D::PlCurlLinearForm< F >:
hp2D::GradLinearForm< F > concepts::LinearForm< concepts::Real > hp2D::LinearFormHelper_1< concepts::Real > concepts::LinearFormChoice

Public Member Functions

virtual 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< concepts::Real >::type > &elm, ElementMatrix< concepts::Real > &em) const=0
 Computes the element contribution to the function. More...
 
 PlCurlLinearForm (const concepts::ElementFormulaContainer< concepts::Point< F, 2 > > frm)
 Constructor. More...
 
 PlCurlLinearForm (const concepts::ElementFormulaContainer< F > frm1, const concepts::ElementFormulaContainer< F > frm2)
 Constructor. More...
 
virtual void setBasis (Basis basis)
 

Public Attributes

Basis basis_
 

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< concepts::Point< concepts::Real, 2 > > frm_
 ElementFormula. More...
 
ArrayElementFormula< concepts::Point< concepts::Real, 2 > > intermediateVector_
 Intermediate vector (on each quadrature point) More...
 

Private Member Functions

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

Private Attributes

bool ignoreMissingElem_
 

Detailed Description

template<class F>
class hp2D::PlCurlLinearForm< F >

Linear form in 2D.

This linear form computes

\[ \int_K \vec{f} \cdot \mbox{\bf curl}_{\mbox{2D}}{v} \, dx\]

Currently only on quadrilaterals.

Author
Kersten Schmidt, 2005

Definition at line 202 of file linearForm.hh.

Constructor & Destructor Documentation

◆ PlCurlLinearForm() [1/2]

template<class F >
hp2D::PlCurlLinearForm< F >::PlCurlLinearForm ( const concepts::ElementFormulaContainer< F >  frm1,
const concepts::ElementFormulaContainer< F >  frm2 
)

Constructor.

Parameters
frm1First component of the formula
frm2Second component of te formula

◆ PlCurlLinearForm() [2/2]

Constructor.

Parameters
frmVectorial formula

Member Function Documentation

◆ computeIntermediate_()

void hp2D::LinearFormHelper_1< concepts::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 >
virtual std::ostream& hp2D::PlCurlLinearForm< F >::info ( std::ostream &  os) const
protectedvirtual

Reimplemented from hp2D::GradLinearForm< F >.

◆ operator()() [1/3]

template<class F = concepts::Real>
virtual void hp2D::GradLinearForm< F >::operator() ( const concepts::Element< Real > &  elm,
concepts::ElementMatrix< F > &  em 
) const
virtualinherited

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< concepts::Real , typename Realtype<concepts::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 = concepts::Real>
virtual void hp2D::GradLinearForm< F >::operator() ( const Quad< Real > &  elm,
concepts::ElementMatrix< F > &  em 
) const
privatevirtualinherited

◆ setBasis()

virtual void concepts::LinearFormChoice::setBasis ( Basis  basis)
inlinevirtualinherited

Definition at line 68 of file linearForm.hh.

Member Data Documentation

◆ basis_

Basis concepts::LinearFormChoice::basis_
mutableinherited

Definition at line 71 of file linearForm.hh.

◆ frm_

ElementFormula.

Definition at line 139 of file linearFormHelper.hh.

◆ ignoreMissingElem_

template<class F = concepts::Real>
bool hp2D::GradLinearForm< F >::ignoreMissingElem_
privateinherited

Definition at line 172 of file linearForm.hh.

◆ intermediateVector_

ArrayElementFormula<concepts::Point<concepts::Real ,2> > hp2D::LinearFormHelper_1< concepts::Real >::intermediateVector_
mutableprotectedinherited

Intermediate vector (on each quadrature point)

\[\underline{f}(F_K(\xi))^\top \mbox{adj}(J)^\top\]

Definition at line 136 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