MFEM v2.0
|
Class for constant FE on triangle. More...
#include <fe.hpp>
Public Member Functions | |
P0TriangleFiniteElement () | |
Construct P0 triangle finite element. | |
virtual void | CalcShape (const IntegrationPoint &ip, Vector &shape) const |
evaluate shape function - constant 1 | |
virtual void | CalcDShape (const IntegrationPoint &ip, DenseMatrix &dshape) const |
evaluate derivatives of shape function - constant 0 | |
virtual void | ProjectDelta (int vertex, Vector &dofs) const |
P0TriangleFiniteElement::P0TriangleFiniteElement | ( | ) |
Construct P0 triangle finite element.
Definition at line 1841 of file fe.cpp.
References IntegrationRule::IntPoint(), FiniteElement::Nodes, IntegrationPoint::x, and IntegrationPoint::y.
void P0TriangleFiniteElement::CalcDShape | ( | const IntegrationPoint & | ip, |
DenseMatrix & | dshape | ||
) | const [virtual] |
evaluate derivatives of shape function - constant 0
Implements FiniteElement.
void P0TriangleFiniteElement::CalcShape | ( | const IntegrationPoint & | ip, |
Vector & | shape | ||
) | const [virtual] |
evaluate shape function - constant 1
Implements FiniteElement.
virtual void P0TriangleFiniteElement::ProjectDelta | ( | int | vertex, |
Vector & | dofs | ||
) | const [inline, virtual] |
Compute a representation (up to multiplicative constant) for the delta function at the vertex with the given index.
Reimplemented from FiniteElement.