NuTo
Numerics Tool
InterpolationTetrahedronQuadratic.h
Go to the documentation of this file.
1 #pragma once
4 
5 namespace NuTo
6 {
8 {
9 public:
10  static Eigen::Matrix<double, 3, 1> LocalCoords(int rNodeIndex);
11 
12  static Eigen::Matrix<double, 10, 1> ShapeFunctions(const Eigen::VectorXd& rCoordinates);
13 
14  static Eigen::Matrix<double, 10, 3> DerivativeShapeFunctions(const Eigen::VectorXd& rCoordinates);
15 
16  std::unique_ptr<InterpolationSimple> Clone() const override;
17 
18  Eigen::VectorXd GetShapeFunctions(const NaturalCoords& naturalIpCoords) const override;
19 
20  Eigen::MatrixXd GetDerivativeShapeFunctions(const NaturalCoords& coords) const override;
21 
22  NaturalCoords GetLocalCoords(int nodeId) const override;
23 
24  int GetNumNodes() const override;
25 
26  const Shape& GetShape() const override;
27 
28 private:
29  Tetrahedron mShape;
30 };
31 } /* NuTo */
static Eigen::Matrix< double, 10, 3 > DerivativeShapeFunctions(const Eigen::VectorXd &rCoordinates)
Definition: InterpolationTetrahedronQuadratic.cpp:108
const Shape & GetShape() const override
Definition: InterpolationTetrahedronQuadratic.cpp:32
Definition: InterpolationTetrahedronQuadratic.h:7
std::unique_ptr< InterpolationSimple > Clone() const override
Definition: InterpolationTetrahedronQuadratic.cpp:6
Base class for the interpolation. The derived classes provide information about the actual interpolat...
Definition: InterpolationSimple.h:12
int GetNumNodes() const override
returns the number of nodes
Definition: InterpolationTetrahedronQuadratic.cpp:27
static Eigen::Matrix< double, 10, 1 > ShapeFunctions(const Eigen::VectorXd &rCoordinates)
Definition: InterpolationTetrahedronQuadratic.cpp:67
Definition: Shape.h:20
Definition: Tetrahedron.h:8
Definition: Exception.h:6
Definition: SerializeStreamOut.h:9
Eigen::MatrixXd GetDerivativeShapeFunctions(const NaturalCoords &coords) const override
calculates the derivative shape functions
Definition: InterpolationTetrahedronQuadratic.cpp:17
static Eigen::Matrix< double, 3, 1 > LocalCoords(int rNodeIndex)
Definition: InterpolationTetrahedronQuadratic.cpp:37
Eigen::VectorXd GetShapeFunctions(const NaturalCoords &naturalIpCoords) const override
calculates the shape functions
Definition: InterpolationTetrahedronQuadratic.cpp:11
NaturalCoords GetLocalCoords(int nodeId) const override
returns the local node coordinates
Definition: InterpolationTetrahedronQuadratic.cpp:22