NuTo
Numerics Tool
InterpolationTrussQuadratic.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, 1, 1> LocalCoords(int rNodeIndex);
12 
13  static Eigen::Matrix<double, 3, 1> ShapeFunctions(const Eigen::VectorXd& rCoordinates);
14 
15  static Eigen::Matrix<double, 3, 1> DerivativeShapeFunctions(const Eigen::VectorXd& rCoordinates);
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& naturalIpCoords) 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  Line mShape;
31 };
32 } /* NuTo */
Definition: Line.h:8
int GetNumNodes() const override
returns the number of nodes
Definition: InterpolationTrussQuadratic.cpp:27
NaturalCoords GetLocalCoords(int nodeId) const override
returns the local node coordinates
Definition: InterpolationTrussQuadratic.cpp:22
Definition: InterpolationTrussQuadratic.h:8
Eigen::VectorXd GetShapeFunctions(const NaturalCoords &naturalIpCoords) const override
calculates the shape functions
Definition: InterpolationTrussQuadratic.cpp:11
Eigen::MatrixXd GetDerivativeShapeFunctions(const NaturalCoords &naturalIpCoords) const override
calculates the derivative shape functions
Definition: InterpolationTrussQuadratic.cpp:17
std::unique_ptr< InterpolationSimple > Clone() const override
Definition: InterpolationTrussQuadratic.cpp:6
const Shape & GetShape() const override
Definition: InterpolationTrussQuadratic.cpp:32
static Eigen::Matrix< double, 1, 1 > LocalCoords(int rNodeIndex)
Definition: InterpolationTrussQuadratic.cpp:37
Base class for the interpolation. The derived classes provide information about the actual interpolat...
Definition: InterpolationSimple.h:12
Definition: Shape.h:20
static Eigen::Matrix< double, 3, 1 > ShapeFunctions(const Eigen::VectorXd &rCoordinates)
Definition: InterpolationTrussQuadratic.cpp:52
Definition: Exception.h:6
Definition: SerializeStreamOut.h:9
static Eigen::Matrix< double, 3, 1 > DerivativeShapeFunctions(const Eigen::VectorXd &rCoordinates)
Definition: InterpolationTrussQuadratic.cpp:61