Diffpack Documentation


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

ElmMatVecCalc Class Reference

functor for calculating element matrix/vector. More...

#include <FEM.h>

Inheritance diagram for ElmMatVecCalc::

HandleId ElmMatVecCalcStd List of all members.

Public Methods

 ElmMatVecCalc ()
virtual ~ElmMatVecCalc ()
virtual void calcElmMatVec (int elm_no, ElmMatVec &elmat, FiniteElement &fe, IntegrandCalc &integrand, FEM &fem)
virtual void calcElmMatVec (int elm_no, ElmMatVec &elmat, FiniteElement &fe, FEM &fem)

Detailed Description

functor for calculating element matrix/vector.

NAME: ElmMatVecCalc - functor for calculating element matrix/vector

DESCRIPTION:

The class is a functor, defining (overloaded) virtual functions "calcElmMatVec" that can be used for computing the element matrix and vector in finite element problems. The functor is an alternative to the "FEM calcElmMatVec" function (a class derived from "FEM" has only one function of this type, if the problem needs several finite element algorithms the "ElmMatVecCalc" functor is useful in addition).


Constructor & Destructor Documentation

ElmMatVecCalc::ElmMatVecCalc ( ) [inline]
 

There is only an empty (default C++) constructor. Problem dependent derived classes will usually have references to an simulator class containing all the problem dependent data. However, it is common to just apply a default implementation of this functor, provided by the "ElmMatVecCalcStd" class.

ElmMatVecCalc::~ElmMatVecCalc ( ) [inline, virtual]
 


Member Function Documentation

void ElmMatVecCalc::calcElmMatVec ( int elm_no,
ElmMatVec & elmat,
FiniteElement & fe,
FEM & fem ) [virtual]
 

See documentation of one of the overloaded functions.

void ElmMatVecCalc::calcElmMatVec ( int elm_no,
ElmMatVec & elmat,
FiniteElement & fe,
IntegrandCalc & integrand,
FEM & fem ) [virtual]
 

calculates the element matrix and vector. Same purpose as the "FEM calcElmMatVec", but implemented as a functor instead of as a virtual function in the user''s problem class. As a functor, there can be multiple versions of the element matrix/vector computation function.

Reimplemented in ElmMatVecCalcStd.


The documentation for this class was generated from the following file:
Copyright © 2003 inuTech GmbH. All rights reserved.