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