MFEM v2.0
|
#include <fe.hpp>
Public Member Functions | |
ND_TetrahedronElement (const int p) | |
virtual void | CalcVShape (const IntegrationPoint &ip, DenseMatrix &shape) const |
virtual void | CalcVShape (ElementTransformation &Trans, DenseMatrix &shape) const |
virtual void | CalcCurlShape (const IntegrationPoint &ip, DenseMatrix &curl_shape) 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 | ProjectGrad (const FiniteElement &fe, ElementTransformation &Trans, DenseMatrix &grad) const |
Private Attributes | |
static const double | c = 1./4. |
Vector | shape_x |
Vector | shape_y |
Vector | shape_z |
Vector | shape_l |
Vector | dshape_x |
Vector | dshape_y |
Vector | dshape_z |
Vector | dshape_l |
DenseMatrix | u |
Array< int > | dof2tk |
DenseMatrix | T |
Static Private Attributes | |
static const double | tk [18] |
ND_TetrahedronElement::ND_TetrahedronElement | ( | const int | p | ) |
Definition at line 8173 of file fe.cpp.
References c, Poly_1D::CalcBasis(), FiniteElement::Dim, FiniteElement::Dof, dof2tk, dshape_l, dshape_x, dshape_y, dshape_z, IntegrationRule::IntPoint(), DenseMatrix::Invert(), FiniteElement::Nodes, Poly_1D::OpenPoints(), IntegrationPoint::Set3(), DenseMatrix::SetSize(), Vector::SetSize(), shape_l, shape_x, shape_y, shape_z, T, tk, u, IntegrationPoint::x, IntegrationPoint::y, and IntegrationPoint::z.
void ND_TetrahedronElement::CalcCurlShape | ( | const IntegrationPoint & | ip, |
DenseMatrix & | curl_shape | ||
) | const [virtual] |
pure virtual function which evaluates the values of the curl all shape functions at a given point ip and stores them in the matrix curl_shape (Dof x Dim) so that each row contains the curl of one shape function
Reimplemented from FiniteElement.
Definition at line 8362 of file fe.cpp.
References c, Poly_1D::CalcBasis(), FiniteElement::Dim, FiniteElement::Dof, dshape_l, dshape_x, dshape_y, dshape_z, Mult(), FiniteElement::Order, shape_l, shape_x, shape_y, shape_z, T, u, IntegrationPoint::x, IntegrationPoint::y, and IntegrationPoint::z.
virtual void ND_TetrahedronElement::CalcVShape | ( | ElementTransformation & | Trans, |
DenseMatrix & | shape | ||
) | const [inline, virtual] |
Reimplemented from FiniteElement.
Definition at line 1644 of file fe.hpp.
References VectorFiniteElement::CalcVShape_ND().
void ND_TetrahedronElement::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 8320 of file fe.cpp.
References c, Poly_1D::CalcBasis(), FiniteElement::Dim, FiniteElement::Dof, Mult(), FiniteElement::Order, shape_l, shape_x, shape_y, shape_z, T, u, IntegrationPoint::x, IntegrationPoint::y, and IntegrationPoint::z.
virtual void ND_TetrahedronElement::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 1649 of file fe.hpp.
References dof2tk, VectorFiniteElement::LocalInterpolation_ND(), and tk.
virtual void ND_TetrahedronElement::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 1653 of file fe.hpp.
References dof2tk, VectorFiniteElement::Project_ND(), and tk.
virtual void ND_TetrahedronElement::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 1656 of file fe.hpp.
References dof2tk, VectorFiniteElement::Project_ND(), and tk.
virtual void ND_TetrahedronElement::ProjectGrad | ( | const FiniteElement & | fe, |
ElementTransformation & | Trans, | ||
DenseMatrix & | grad | ||
) | const [inline, 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 FiniteElement.
Definition at line 1660 of file fe.hpp.
References dof2tk, VectorFiniteElement::ProjectGrad_ND(), and tk.
const double ND_TetrahedronElement::c = 1./4. [private] |
Definition at line 1630 of file fe.hpp.
Referenced by CalcCurlShape(), CalcVShape(), and ND_TetrahedronElement().
Array<int> ND_TetrahedronElement::dof2tk [private] |
Definition at line 1637 of file fe.hpp.
Referenced by GetLocalInterpolation(), ND_TetrahedronElement(), Project(), and ProjectGrad().
Vector ND_TetrahedronElement::dshape_l [mutable, private] |
Definition at line 1634 of file fe.hpp.
Referenced by CalcCurlShape(), and ND_TetrahedronElement().
Vector ND_TetrahedronElement::dshape_x [mutable, private] |
Definition at line 1634 of file fe.hpp.
Referenced by CalcCurlShape(), and ND_TetrahedronElement().
Vector ND_TetrahedronElement::dshape_y [mutable, private] |
Definition at line 1634 of file fe.hpp.
Referenced by CalcCurlShape(), and ND_TetrahedronElement().
Vector ND_TetrahedronElement::dshape_z [mutable, private] |
Definition at line 1634 of file fe.hpp.
Referenced by CalcCurlShape(), and ND_TetrahedronElement().
Vector ND_TetrahedronElement::shape_l [mutable, private] |
Definition at line 1633 of file fe.hpp.
Referenced by CalcCurlShape(), CalcVShape(), and ND_TetrahedronElement().
Vector ND_TetrahedronElement::shape_x [mutable, private] |
Definition at line 1633 of file fe.hpp.
Referenced by CalcCurlShape(), CalcVShape(), and ND_TetrahedronElement().
Vector ND_TetrahedronElement::shape_y [mutable, private] |
Definition at line 1633 of file fe.hpp.
Referenced by CalcCurlShape(), CalcVShape(), and ND_TetrahedronElement().
Vector ND_TetrahedronElement::shape_z [mutable, private] |
Definition at line 1633 of file fe.hpp.
Referenced by CalcCurlShape(), CalcVShape(), and ND_TetrahedronElement().
DenseMatrix ND_TetrahedronElement::T [private] |
Definition at line 1638 of file fe.hpp.
Referenced by CalcCurlShape(), CalcVShape(), and ND_TetrahedronElement().
const double ND_TetrahedronElement::tk [static, private] |
{ 1.,0.,0., 0.,1.,0., 0.,0.,1., -1.,1.,0., -1.,0.,1., 0.,-1.,1. }
Definition at line 1630 of file fe.hpp.
Referenced by GetLocalInterpolation(), ND_TetrahedronElement(), Project(), and ProjectGrad().
DenseMatrix ND_TetrahedronElement::u [mutable, private] |
Definition at line 1635 of file fe.hpp.
Referenced by CalcCurlShape(), CalcVShape(), and ND_TetrahedronElement().