MFEM  v3.1
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mfem::NodalFiniteElement Class Reference

#include <fe.hpp>

Inherits mfem::FiniteElement.

Inherited by mfem::BiCubic2DFiniteElement, mfem::BiLinear2DFiniteElement, mfem::BiQuad2DFiniteElement, mfem::CrouzeixRaviartFiniteElement, mfem::CrouzeixRaviartQuadFiniteElement, mfem::Cubic1DFiniteElement, mfem::Cubic2DFiniteElement, mfem::Cubic3DFiniteElement, mfem::GaussBiLinear2DFiniteElement, mfem::GaussBiQuad2DFiniteElement, mfem::GaussLinear2DFiniteElement, mfem::GaussQuad2DFiniteElement, mfem::H1_HexahedronElement, mfem::H1_QuadrilateralElement, mfem::H1_SegmentElement, mfem::H1_TetrahedronElement, mfem::H1_TriangleElement, mfem::L2_HexahedronElement, mfem::L2_QuadrilateralElement, mfem::L2_SegmentElement, mfem::L2_TetrahedronElement, mfem::L2_TriangleElement, mfem::Lagrange1DFiniteElement, mfem::LagrangeHexFiniteElement, mfem::Linear1DFiniteElement, mfem::Linear2DFiniteElement, mfem::Linear3DFiniteElement, mfem::P0HexFiniteElement, mfem::P0QuadFiniteElement, mfem::P0SegmentFiniteElement, mfem::P0TetFiniteElement, mfem::P0TriangleFiniteElement, mfem::P1OnQuadFiniteElement, mfem::P1SegmentFiniteElement, mfem::P1TetNonConfFiniteElement, mfem::P2SegmentFiniteElement, mfem::PointFiniteElement, mfem::Quad1DFiniteElement, mfem::Quad2DFiniteElement, mfem::Quadratic3DFiniteElement, mfem::RefinedBiLinear2DFiniteElement, mfem::RefinedLinear1DFiniteElement, mfem::RefinedLinear2DFiniteElement, mfem::RefinedLinear3DFiniteElement, mfem::RefinedTriLinear3DFiniteElement, mfem::RotTriLinearHexFiniteElement, and mfem::TriLinear3DFiniteElement.

Collaboration diagram for mfem::NodalFiniteElement:
[legend]

Public Member Functions

 NodalFiniteElement (int D, int G, int Do, int O, int F=FunctionSpace::Pk)
 
virtual void GetLocalInterpolation (ElementTransformation &Trans, DenseMatrix &I) const
 
virtual void Project (Coefficient &coeff, ElementTransformation &Trans, Vector &dofs) const
 
virtual void Project (VectorCoefficient &vc, ElementTransformation &Trans, Vector &dofs) const
 
virtual void Project (const FiniteElement &fe, ElementTransformation &Trans, DenseMatrix &I) const
 
virtual void ProjectGrad (const FiniteElement &fe, ElementTransformation &Trans, DenseMatrix &grad) const
 
virtual void ProjectDiv (const FiniteElement &fe, ElementTransformation &Trans, DenseMatrix &div) const
 
- Public Member Functions inherited from mfem::FiniteElement
 FiniteElement (int D, int G, int Do, int O, int F=FunctionSpace::Pk)
 
int GetDim () const
 Returns the space dimension for the finite element. More...
 
int GetGeomType () const
 Returns the geometry type: More...
 
int GetDof () const
 Returns the degrees of freedom in the FE space. More...
 
int GetOrder () const
 Returns the order of the finite element. More...
 
int Space () const
 Returns the type of space on each element. More...
 
int GetRangeType () const
 
int GetMapType () const
 
virtual void CalcShape (const IntegrationPoint &ip, Vector &shape) const =0
 
virtual void CalcDShape (const IntegrationPoint &ip, DenseMatrix &dshape) const =0
 
const IntegrationRuleGetNodes () const
 
virtual void CalcVShape (const IntegrationPoint &ip, DenseMatrix &shape) const
 
virtual void CalcVShape (ElementTransformation &Trans, DenseMatrix &shape) const
 
virtual void CalcDivShape (const IntegrationPoint &ip, Vector &divshape) const
 
virtual void CalcCurlShape (const IntegrationPoint &ip, DenseMatrix &curl_shape) const
 
virtual void GetFaceDofs (int face, int **dofs, int *ndofs) const
 
virtual void CalcHessian (const IntegrationPoint &ip, DenseMatrix &h) const
 
virtual void ProjectDelta (int vertex, Vector &dofs) const
 
virtual void ProjectCurl (const FiniteElement &fe, ElementTransformation &Trans, DenseMatrix &curl) const
 
virtual ~FiniteElement ()
 

Protected Member Functions

void NodalLocalInterpolation (ElementTransformation &Trans, DenseMatrix &I, const NodalFiniteElement &fine_fe) const
 
void ProjectCurl_2D (const FiniteElement &fe, ElementTransformation &Trans, DenseMatrix &curl) const
 

Protected Attributes

Vector c_shape
 
- Protected Attributes inherited from mfem::FiniteElement
int Dim
 
int GeomType
 
int Dof
 
int Order
 
int FuncSpace
 
int RangeType
 
int MapType
 
IntegrationRule Nodes
 

Additional Inherited Members

- Public Types inherited from mfem::FiniteElement
enum  { SCALAR, VECTOR }
 Enumeration for RangeType. More...
 
enum  { VALUE, INTEGRAL, H_DIV, H_CURL }
 

Detailed Description

Definition at line 199 of file fe.hpp.

Constructor & Destructor Documentation

mfem::NodalFiniteElement::NodalFiniteElement ( int  D,
int  G,
int  Do,
int  O,
int  F = FunctionSpace::Pk 
)
inline

Definition at line 215 of file fe.hpp.

Member Function Documentation

virtual void mfem::NodalFiniteElement::GetLocalInterpolation ( ElementTransformation Trans,
DenseMatrix I 
) const
inlinevirtual

Return the local interpolation matrix I (Dof x Dof) where the fine element is the image of the base geometry under the given transformation.

Reimplemented from mfem::FiniteElement.

Definition at line 230 of file fe.hpp.

void mfem::NodalFiniteElement::NodalLocalInterpolation ( ElementTransformation Trans,
DenseMatrix I,
const NodalFiniteElement fine_fe 
) const
protected

Definition at line 125 of file fe.cpp.

void mfem::NodalFiniteElement::Project ( Coefficient coeff,
ElementTransformation Trans,
Vector dofs 
) const
virtual

Given a coefficient and a transformation, compute its projection (approximation) in the local finite dimensional space in terms of the degrees of freedom.

Reimplemented from mfem::FiniteElement.

Definition at line 177 of file fe.cpp.

void mfem::NodalFiniteElement::Project ( VectorCoefficient vc,
ElementTransformation Trans,
Vector dofs 
) const
virtual

Given a vector coefficient and a transformation, compute its projection (approximation) in the local finite dimensional space in terms of the degrees of freedom. (VectorFiniteElements)

Reimplemented from mfem::FiniteElement.

Definition at line 194 of file fe.cpp.

void mfem::NodalFiniteElement::Project ( const FiniteElement fe,
ElementTransformation Trans,
DenseMatrix I 
) const
virtual

Compute the embedding/projection matrix from the given FiniteElement onto 'this' FiniteElement. The ElementTransformation is included to support cases when the projection depends on it.

Reimplemented from mfem::FiniteElement.

Definition at line 218 of file fe.cpp.

void mfem::NodalFiniteElement::ProjectCurl_2D ( const FiniteElement fe,
ElementTransformation Trans,
DenseMatrix curl 
) const
protected

Definition at line 158 of file fe.cpp.

void mfem::NodalFiniteElement::ProjectDiv ( const FiniteElement fe,
ElementTransformation Trans,
DenseMatrix div 
) const
virtual

Compute the discrete divergence matrix from the given FiniteElement onto 'this' FiniteElement. The ElementTransformation is included to support cases when the matrix depends on it.

Reimplemented from mfem::FiniteElement.

Definition at line 288 of file fe.cpp.

void mfem::NodalFiniteElement::ProjectGrad ( const FiniteElement fe,
ElementTransformation Trans,
DenseMatrix grad 
) const
virtual

Compute the discrete gradient matrix from the given FiniteElement onto 'this' FiniteElement. The ElementTransformation is included to support cases when the matrix depends on it.

Reimplemented from mfem::FiniteElement.

Definition at line 259 of file fe.cpp.

Member Data Documentation

Vector mfem::NodalFiniteElement::c_shape
mutableprotected

Definition at line 211 of file fe.hpp.


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