Class documentation of Concepts

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

#include <bilinearForm.hh>

Inheritance diagram for hp1D::IdentityParallel< F >:
concepts::BilinearForm< F, G > hp1D::BilinearFormHelper< i, j, F > concepts::Cloneable concepts::OutputOperator

Public Member Functions

 IdentityParallel (const concepts::ElementFormulaContainer< F > frm=concepts::ElementFormulaContainer< F >(), const concepts::Real3d shiftX=concepts::Real3d(), const concepts::Real3d shiftY=concepts::Real3d(), const bool negShift=false)
 
void operator() (const concepts::Element< Real > &elmX, const concepts::Element< Real > &elmY, concepts::ElementMatrix< F > &em) const
 
virtual IdentityParallel< F > * clone () const
 
virtual void operator() (const Element< G > &elmX, const Element< G > &elmY, ElementMatrix< F > &em) const =0
 
virtual void operator() (const Element< G > &elmX, const Element< G > &elmY, ElementMatrix< F > &em, const ElementPair< G > &ep) const
 

Protected Member Functions

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

Detailed Description

template<class F = Real>
class hp1D::IdentityParallel< F >

A function class to calculate element matrices for the mass matrix for elements that are shifted. There are two independent coordinate shifts for the trial and test function. In contrast to hp1D::Identity the elements do not need to have overlapping support but their shifted start and end points have to be identical. Note that the orientation of the two elements may also be of reverse direction. If negShift is set to true it is checked as well whether a coordinate shift with opposite sign matches the criterion.

Author
Dirk Klindworth, 2011

Definition at line 93 of file bilinearForm.hh.

Constructor & Destructor Documentation

◆ IdentityParallel()

template<class F = Real>
hp1D::IdentityParallel< F >::IdentityParallel ( const concepts::ElementFormulaContainer< F >  frm = concepts::ElementFormulaContainer< F >(),
const concepts::Real3d  shiftX = concepts::Real3d(),
const concepts::Real3d  shiftY = concepts::Real3d(),
const bool  negShift = false 
)

Constructor

Parameters
frmFormula of the bilinear form
shiftXCoordinate shift of the trial function
shiftYCoordinate shift of the test function
negShiftBoolean indicating whether shift can be understood also in negative direction

Member Function Documentation

◆ clone()

template<class F = Real>
virtual IdentityParallel< F > * hp1D::IdentityParallel< F >::clone ( ) const
virtual

Virtual constructor. Returns a pointer to a copy of itself. The caller is responsible to destroy this copy.

Implements concepts::BilinearForm< F, G >.

◆ info()

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

Returns information in an output stream.

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

◆ operator()() [1/2]

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

Evaluates the bilinear form for all shape functions on elmX and elmY and stores the result in the matrix em.

Postcondition
The returned matrix em has the correct size.
Parameters
elmXLeft element (test functions)
elmYRight element (trial functions)
emReturn element matrix

Implemented in vectorial::BilinearForm< F, G >, concepts::BilinearFormLiCo< F, G >, concepts::BilinearFormContainer< F, G >, concepts::BilinearF_Sum< F, H, J, G >, and concepts::BilinearF_W< F, H, J, G >.

◆ operator()() [2/2]

template<class F , class G = typename Realtype<F>::type>
virtual void concepts::BilinearForm< F, G >::operator() ( const Element< G > &  elmX,
const Element< G > &  elmY,
ElementMatrix< F > &  em,
const ElementPair< G > &  ep 
) const
inlinevirtualinherited

Evaluates the bilinear form for all shape functions on elmX and elmY and stores the result in the matrix em. If this method is not reimplemented in a derived class, the default behaviour is to call the application operator without ep.

Postcondition
The returned matrix em has the correct size.
Parameters
elmXLeft element
elmYRight element
emReturn element matrix
epElement pair holding more information on the pair elmX and elmY

Reimplemented in vectorial::BilinearForm< F, G >.

Definition at line 57 of file bilinearForm.hh.


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