Diffpack Documentation


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

IntegrandCalc Class Reference

functor for defining integrands in weak forms (FEM). More...

#include <FEM.h>

Inheritance diagram for IntegrandCalc::

HandleId MassMatIntg SmoothDerivField SmoothField List of all members.

Public Methods

 IntegrandCalc ()
virtual ~IntegrandCalc ()
virtual void integrands (ElmMatVec &elmat, const FiniteElement &fe)
virtual void integrandsV (Vec(real) &elmat, const FiniteElement &fe)
virtual void integrandsG (const FiniteElement &fe)
virtual void integrands4side (int side, int boind, ElmMatVec &elmat, const FiniteElement &fe)
virtual void integrands4sideG (int side, int boind, const FiniteElement &fe)

Detailed Description

functor for defining integrands in weak forms (FEM).

NAME: IntegrandCalc - functor for defining integrands in weak forms (FEM)

DESCRIPTION:

The class is a functor, defining a virtual function "integrands" that can be used for computing the integrand in the element matrix and vector in finite element problems. The functor is an alternative to the "FEM integrands" function (a class derived from "FEM" has only one function of this type, so if the problem needs several finite element algorithms, and e.g., splitting of the integrand when using reduced selective integration, the "IntegrandCalc" functor is useful). Note that an alternative to an integrand functor is to have an indicator variable in the "integrands" function derived from "FEM" and call special local functions that samples the integrands.


Constructor & Destructor Documentation

IntegrandCalc::IntegrandCalc ( ) [inline]
 

There is only a constructor without arguments (the default C++ constructor). Problem dependent derived classes will usually have references to a simulator class containing all the problem dependent data. These constructor can conveniently take that reference as a parameter.

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


Member Function Documentation

void IntegrandCalc::integrands ( ElmMatVec & elmat,
const FiniteElement & fe ) [virtual]
 

adds the contributions to the element matrix and vector. Should perform the same tasks as an ordinary virtual "integrands" function in the "FEM" hierarchy.

Reimplemented in MassMatIntg, SmoothDerivField, and SmoothField.

void IntegrandCalc::integrands4side ( int side,
int boind,
ElmMatVec & elmat,
const FiniteElement & fe ) [virtual]
 

Should perform the same tasks as an ordinary virtual "integrands4side" function in the "FEM" hierarchy.

void IntegrandCalc::integrands4sideG ( int side,
int boind,
const FiniteElement & fe ) [virtual]
 

void IntegrandCalc::integrandsG ( const FiniteElement & fe ) [virtual]
 

void IntegrandCalc::integrandsV ( Vec(real) & elmat,
const FiniteElement & fe ) [virtual]
 

as "integrands", but stores the result in a plain array


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