Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Protected Member Functions | Private Attributes
linearFEM::CIdentity1d Class Reference

Discrete equivalent for a reaction term in 1D for linear FEM. More...

#include <bilinearForm1D.hh>

Inheritance diagram for linearFEM::CIdentity1d:
Inheritance graph
[legend]
Collaboration diagram for linearFEM::CIdentity1d:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CIdentity1d (const concepts::Formula< Real > &frm, const uint gauss_p=1)
 Constructor.
virtual CIdentity1dclone () const
 Virtual constructor.
virtual void operator() (const Element< typename Realtype< Real >::type > &elmX, const Element< typename Realtype< Real >::type > &elmY, ElementMatrix< Real > &em)=0
 Evaluates the bilinear form for all shape functions on elmX and elmY and stores the result in the matrix em.
virtual void operator() (const Element< typename Realtype< Real >::type > &elmX, const Element< typename Realtype< Real >::type > &elmY, ElementMatrix< Real > &em, const ElementPair< typename Realtype< Real >::type > &ep)
 Evaluates the bilinear form for all shape functions on elmX and elmY and stores the result in the matrix em.
virtual void operator() (const concepts::Element< Real > &elmX, const concepts::Element< Real > &elmY, concepts::ElementMatrix< Real > &em)

Protected Member Functions

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

Private Attributes

std::auto_ptr< const
concepts::Formula< Real > > 
frm_
 Formula.
const concepts::Quadrature< 4 > quad_
 Quadrature rule.

Detailed Description

Discrete equivalent for a reaction term in 1D for linear FEM.

This bilinear form computes the mass matrix resulting from the discretization of a reaction term with a varying reaction coefficient c given by a formula frm (to be specified in the constructor):

\[ \int_K c(x) \phi_i \phi_j \, dx \]

for the element shape functions $\phi_i$.

Author:
Philipp Frauenfelder, 2002

Definition at line 64 of file bilinearForm1D.hh.


Constructor & Destructor Documentation

linearFEM::CIdentity1d::CIdentity1d ( const concepts::Formula< Real > &  frm,
const uint  gauss_p = 1 
) [inline]

Constructor.

Parameters:
frmFormula for the coefficients
gauss_pNumber of points for the Gaussian quadrature rule

Definition at line 70 of file bilinearForm1D.hh.


Member Function Documentation

virtual CIdentity1d* linearFEM::CIdentity1d::clone ( ) const [inline, virtual]

Virtual constructor.

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

Implements concepts::Cloneable.

Definition at line 76 of file bilinearForm1D.hh.

Here is the call graph for this function:

virtual std::ostream& concepts::BilinearForm< Real , typename Realtype<Real >::type >::info ( std::ostream &  os) const [protected, virtual, inherited]
virtual void concepts::BilinearForm< Real , typename Realtype<Real >::type >::operator() ( const Element< typename Realtype<Real >::type > &  elmX,
const Element< typename Realtype<Real >::type > &  elmY,
ElementMatrix< Real > &  em,
const ElementPair< typename Realtype<Real >::type > &  ep 
) [inline, virtual, inherited]

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

Definition at line 53 of file bilinearForm.hh.

Here is the call graph for this function:

virtual void concepts::BilinearForm< Real , typename Realtype<Real >::type >::operator() ( const Element< typename Realtype<Real >::type > &  elmX,
const Element< typename Realtype<Real >::type > &  elmY,
ElementMatrix< Real > &  em 
) [pure virtual, inherited]

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
virtual void linearFEM::CIdentity1d::operator() ( const concepts::Element< Real > &  elmX,
const concepts::Element< Real > &  elmY,
concepts::ElementMatrix< Real > &  em 
) [virtual]

Member Data Documentation

std::auto_ptr<const concepts::Formula<Real> > linearFEM::CIdentity1d::frm_ [private]

Formula.

Definition at line 80 of file bilinearForm1D.hh.

Quadrature rule.

Definition at line 82 of file bilinearForm1D.hh.


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

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)