Class documentation of Concepts

Loading...
Searching...
No Matches
hp2D::BilinearFormOnePartDeriv< F > Class Template Referenceabstract

#include <bf_partialderiv.hh>

Inheritance diagram for hp2D::BilinearFormOnePartDeriv< F >:
concepts::BilinearForm< F, G > hp2D::BilinearFormHelper_0_1_Part< F > concepts::Cloneable concepts::OutputOperator

Public Member Functions

 BilinearFormOnePartDeriv (const enum partDerivType i, const concepts::ElementFormulaContainer< F > frm=concepts::ElementFormulaContainer< F >())
 
virtual BilinearFormOnePartDeriv< F > * clone () const
 
virtual void operator() (const concepts::Element< Real > &elmX, const concepts::Element< Real > &elmY, concepts::ElementMatrix< F > &em) 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
 
void data (const concepts::RCP< concepts::SharedJacobianAdj< 2 > > d)
 Set the pointer to the shared data.
 
concepts::RCP< concepts::SharedJacobianAdj< 2 > > data () const
 Gets the pointer to the shared data.
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
 
void computeIntermediate_ (const BaseQuad< concepts::Real > &elm, const int i) const
 

Protected Attributes

ArrayElementFormula< concepts::Point< F, 2 > > intermediateVector_
 
concepts::ElementFormulaContainer< F > frm_
 ElementFormula.
 
concepts::RCP< concepts::SharedJacobianAdj< 2 > > sharedData_
 Shared data for vectorial bilinear forms.
 

Detailed Description

template<class F = Real>
class hp2D::BilinearFormOnePartDeriv< F >

A function class to calculate element matrices for the bilinear form related to a partial derivative of the test functions (scalar).

The shape functions on the physical cell $K$ are defined by standard mapping local shape functions defined on the reference square $\hat{K}$.

\[
\int\limits_{K} f(\xi) u \partial_i v \; d\xi
= 
\int\limits_{\hat{K}} f(F_K\hat{\xi})\hat{u}(J^{-\top})_{i,\cdot}\nabla{\hat{v}} \;|\det J| \; d\hat{\xi}  
\]

The class can be used to construct other bilinear forms, also for vectorial functions.

See also
vectorial::BilinearForm
Author
Kersten Schmidt, 2010

Definition at line 85 of file bf_partialderiv.hh.

Constructor & Destructor Documentation

◆ BilinearFormOnePartDeriv()

template<class F = Real>
hp2D::BilinearFormOnePartDeriv< F >::BilinearFormOnePartDeriv ( const enum partDerivType  i,
const concepts::ElementFormulaContainer< F >  frm = concepts::ElementFormulaContainer< F >() 
)

Constructor

Parameters
iDirection of the partial derivative of the test function, X for $partial_x$ and Y for $partial_y$.

◆ ~BilinearFormOnePartDeriv()

template<class F = Real>
virtual hp2D::BilinearFormOnePartDeriv< F >::~BilinearFormOnePartDeriv ( )
inlinevirtual

Definition at line 98 of file bf_partialderiv.hh.

Member Function Documentation

◆ clone()

template<class F = Real>
virtual BilinearFormOnePartDeriv< F > * hp2D::BilinearFormOnePartDeriv< F >::clone ( ) const
inlinevirtual

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

Implements concepts::BilinearForm< F, G >.

Definition at line 100 of file bf_partialderiv.hh.

◆ computeIntermediate_()

template<class F >
void hp2D::BilinearFormHelper_0_1_Part< F >::computeIntermediate_ ( const BaseQuad< concepts::Real > &  elm,
const int  i 
) const
protectedinherited

Compute the intermediate data for element matrix computation

Parameters
itake only i-th column of Jacobian matrix (for test function)

This method is important for the derivated bilinear forms.

◆ info()

template<class F = Real>
virtual std::ostream & hp2D::BilinearFormOnePartDeriv< 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.

Member Data Documentation

◆ frm_

template<class F >
concepts::ElementFormulaContainer<F> hp2D::BilinearFormHelper_0_1_Part< F >::frm_
protectedinherited

ElementFormula.

Definition at line 103 of file bilinearFormHelper.hh.

◆ intermediateVector_

template<class F >
ArrayElementFormula<concepts::Point<F,2> > hp2D::BilinearFormHelper_0_1_Part< F >::intermediateVector_
mutableprotectedinherited

Intermediate vector (on each quadrature point)

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

Definition at line 101 of file bilinearFormHelper.hh.

◆ sharedData_

template<class F >
concepts::RCP<concepts::SharedJacobianAdj<2> > hp2D::BilinearFormHelper_0_1_Part< F >::sharedData_
protectedinherited

Shared data for vectorial bilinear forms.

Definition at line 106 of file bilinearFormHelper.hh.


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