MFEM v2.0
|
#include <fe.hpp>
Public Member Functions | |
RT_HexahedronElement (const int p) | |
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 | GetLocalInterpolation (ElementTransformation &Trans, DenseMatrix &I) const |
virtual void | Project (VectorCoefficient &vc, ElementTransformation &Trans, Vector &dofs) const |
virtual void | Project (const FiniteElement &fe, ElementTransformation &Trans, DenseMatrix &I) const |
virtual void | ProjectCurl (const FiniteElement &fe, ElementTransformation &Trans, DenseMatrix &curl) const |
Private Attributes | |
Poly_1D::Basis & | cbasis1d |
Poly_1D::Basis & | obasis1d |
Vector | shape_cx |
Vector | shape_ox |
Vector | shape_cy |
Vector | shape_oy |
Vector | shape_cz |
Vector | shape_oz |
Vector | dshape_cx |
Vector | dshape_cy |
Vector | dshape_cz |
Array< int > | dof_map |
Array< int > | dof2nk |
Static Private Attributes | |
static const double | nk [18] |
RT_HexahedronElement::RT_HexahedronElement | ( | const int | p | ) |
Definition at line 7176 of file fe.cpp.
References Poly_1D::ClosedPoints(), FiniteElement::Dof, dof2nk, dof_map, dshape_cx, dshape_cy, dshape_cz, IntegrationRule::IntPoint(), FiniteElement::Nodes, Poly_1D::OpenPoints(), IntegrationPoint::Set3(), Vector::SetSize(), shape_cx, shape_cy, shape_cz, shape_ox, shape_oy, and shape_oz.
void RT_HexahedronElement::CalcDivShape | ( | const IntegrationPoint & | ip, |
Vector & | divshape | ||
) | const [virtual] |
This virtual function evaluates the divergence of all shape functions at the given IntegrationPoint. The result is stored in the Vector divshape (of size Dof).
Reimplemented from FiniteElement.
Definition at line 7381 of file fe.cpp.
References cbasis1d, dof_map, dshape_cx, dshape_cy, dshape_cz, Poly_1D::Basis::Eval(), obasis1d, FiniteElement::Order, shape_cx, shape_cy, shape_cz, shape_ox, shape_oy, shape_oz, IntegrationPoint::x, IntegrationPoint::y, and IntegrationPoint::z.
virtual void RT_HexahedronElement::CalcVShape | ( | ElementTransformation & | Trans, |
DenseMatrix & | shape | ||
) | const [inline, virtual] |
Reimplemented from FiniteElement.
Definition at line 1452 of file fe.hpp.
References VectorFiniteElement::CalcVShape_RT().
void RT_HexahedronElement::CalcVShape | ( | const IntegrationPoint & | ip, |
DenseMatrix & | shape | ||
) | const [virtual] |
This virtual function evaluates the values of all components of all shape functions at the given IntegrationPoint. The result is stored in the DenseMatrix shape (Dof x Dim) so that each row contains the components of one shape function.
Reimplemented from FiniteElement.
Definition at line 7319 of file fe.cpp.
References cbasis1d, dof_map, Poly_1D::Basis::Eval(), obasis1d, FiniteElement::Order, shape_cx, shape_cy, shape_cz, shape_ox, shape_oy, shape_oz, IntegrationPoint::x, IntegrationPoint::y, and IntegrationPoint::z.
virtual void RT_HexahedronElement::GetLocalInterpolation | ( | ElementTransformation & | Trans, |
DenseMatrix & | I | ||
) | const [inline, virtual] |
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 FiniteElement.
Definition at line 1457 of file fe.hpp.
References dof2nk, VectorFiniteElement::LocalInterpolation_RT(), and nk.
virtual void RT_HexahedronElement::Project | ( | VectorCoefficient & | vc, |
ElementTransformation & | Trans, | ||
Vector & | dofs | ||
) | const [inline, 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 FiniteElement.
Definition at line 1461 of file fe.hpp.
References dof2nk, nk, and VectorFiniteElement::Project_RT().
virtual void RT_HexahedronElement::Project | ( | const FiniteElement & | fe, |
ElementTransformation & | Trans, | ||
DenseMatrix & | I | ||
) | const [inline, 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 FiniteElement.
Definition at line 1464 of file fe.hpp.
References dof2nk, nk, and VectorFiniteElement::Project_RT().
virtual void RT_HexahedronElement::ProjectCurl | ( | const FiniteElement & | fe, |
ElementTransformation & | Trans, | ||
DenseMatrix & | curl | ||
) | const [inline, virtual] |
Compute the discrete curl matrix from the given FiniteElement onto 'this' FiniteElement. The ElementTransformation is included to support cases when the matrix depends on it.
Reimplemented from FiniteElement.
Definition at line 1467 of file fe.hpp.
References dof2nk, nk, and VectorFiniteElement::ProjectCurl_RT().
Poly_1D::Basis& RT_HexahedronElement::cbasis1d [private] |
Definition at line 1441 of file fe.hpp.
Referenced by CalcDivShape(), and CalcVShape().
Array<int> RT_HexahedronElement::dof2nk [private] |
Definition at line 1446 of file fe.hpp.
Referenced by GetLocalInterpolation(), Project(), ProjectCurl(), and RT_HexahedronElement().
Array<int> RT_HexahedronElement::dof_map [private] |
Definition at line 1446 of file fe.hpp.
Referenced by CalcDivShape(), CalcVShape(), and RT_HexahedronElement().
Vector RT_HexahedronElement::dshape_cx [mutable, private] |
Definition at line 1444 of file fe.hpp.
Referenced by CalcDivShape(), and RT_HexahedronElement().
Vector RT_HexahedronElement::dshape_cy [mutable, private] |
Definition at line 1444 of file fe.hpp.
Referenced by CalcDivShape(), and RT_HexahedronElement().
Vector RT_HexahedronElement::dshape_cz [mutable, private] |
Definition at line 1444 of file fe.hpp.
Referenced by CalcDivShape(), and RT_HexahedronElement().
const double RT_HexahedronElement::nk [static, private] |
{ 0.,0.,-1., 0.,-1.,0., 1.,0.,0., 0.,1.,0., -1.,0.,0., 0.,0.,1. }
Definition at line 1439 of file fe.hpp.
Referenced by GetLocalInterpolation(), Project(), and ProjectCurl().
Poly_1D::Basis & RT_HexahedronElement::obasis1d [private] |
Definition at line 1441 of file fe.hpp.
Referenced by CalcDivShape(), and CalcVShape().
Vector RT_HexahedronElement::shape_cx [mutable, private] |
Definition at line 1443 of file fe.hpp.
Referenced by CalcDivShape(), CalcVShape(), and RT_HexahedronElement().
Vector RT_HexahedronElement::shape_cy [mutable, private] |
Definition at line 1443 of file fe.hpp.
Referenced by CalcDivShape(), CalcVShape(), and RT_HexahedronElement().
Vector RT_HexahedronElement::shape_cz [mutable, private] |
Definition at line 1443 of file fe.hpp.
Referenced by CalcDivShape(), CalcVShape(), and RT_HexahedronElement().
Vector RT_HexahedronElement::shape_ox [mutable, private] |
Definition at line 1443 of file fe.hpp.
Referenced by CalcDivShape(), CalcVShape(), and RT_HexahedronElement().
Vector RT_HexahedronElement::shape_oy [mutable, private] |
Definition at line 1443 of file fe.hpp.
Referenced by CalcDivShape(), CalcVShape(), and RT_HexahedronElement().
Vector RT_HexahedronElement::shape_oz [mutable, private] |
Definition at line 1443 of file fe.hpp.
Referenced by CalcDivShape(), CalcVShape(), and RT_HexahedronElement().