#include <FEM.h>
Inheritance diagram for IntegrandCalc::

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) |
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.
|
|
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. |
|
|
|
|
|
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. |
|
|
Should perform the same tasks as an ordinary virtual "integrands4side" function in the "FEM" hierarchy. |
|
|
|
|
|
|
|
|
as "integrands", but stores the result in a plain array |