Class documentation of Concepts

Loading...
Searching...
No Matches
concepts::BilinearFormLiCo< F, G > Class Template Reference

#include <bilinearForm.hh>

Inheritance diagram for concepts::BilinearFormLiCo< F, G >:
concepts::BilinearForm< F, G > concepts::Cloneable concepts::OutputOperator

Public Member Functions

 BilinearFormLiCo (BilinearForm< F, G > &bfA, BilinearForm< F, G > &bfB, const F cA=1.0, const F cB=1.0)
 
 BilinearFormLiCo (const BilinearFormLiCo &b)
 Copy constructor. This copy constructor implements a deep copy.
 
virtual void operator() (const Element< G > &elmX, const Element< G > &elmY, ElementMatrix< F > &em) const
 
virtual BilinearFormLiCo< F, G > * clone () const
 
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, class G = typename Realtype<F>::type>
class concepts::BilinearFormLiCo< F, G >

A linear combination of bilinear forms. The resulting element matrices of the bilinear forms are added into each other with the correct coefficient and can then be assembled.

Author
Philipp Frauenfelder, 2001
Examples
hpFEM2d.cc.

Definition at line 78 of file bilinearForm.hh.

Constructor & Destructor Documentation

◆ BilinearFormLiCo()

template<class F , class G = typename Realtype<F>::type>
concepts::BilinearFormLiCo< F, G >::BilinearFormLiCo ( BilinearForm< F, G > &  bfA,
BilinearForm< F, G > &  bfB,
const F  cA = 1.0,
const F  cB = 1.0 
)
inline

Constructor

Parameters
bfAFirst bilinear form
bfBSecond bilinear form
cACoefficient of bfA
cBCoefficient of bfB

Definition at line 86 of file bilinearForm.hh.

◆ ~BilinearFormLiCo()

template<class F , class G = typename Realtype<F>::type>
virtual concepts::BilinearFormLiCo< F, G >::~BilinearFormLiCo ( )
inlinevirtual

Definition at line 96 of file bilinearForm.hh.

Member Function Documentation

◆ clone()

template<class F , class G = typename Realtype<F>::type>
virtual BilinearFormLiCo< F, G > * concepts::BilinearFormLiCo< F, G >::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 , class G = typename Realtype<F>::type>
virtual std::ostream & concepts::BilinearFormLiCo< F, G >::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::BilinearFormLiCo< F, G >::operator() ( const Element< G > &  elmX,
const Element< G > &  elmY,
ElementMatrix< F > &  em 
) const
virtual

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

Implements concepts::BilinearForm< F, 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: