NuTo
Numerics Tool
InterpolationTrussLinear.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, 2, 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  Line mShape;
31 };
32 } /* NuTo */
static Eigen::Matrix< double, 1, 1 > LocalCoords(int rNodeIndex)
Definition: InterpolationTrussLinear.cpp:36
Definition: Line.h:8
static Eigen::Matrix< double, 2, 1 > DerivativeShapeFunctions()
Definition: InterpolationTrussLinear.cpp:54
Eigen::VectorXd GetShapeFunctions(const NaturalCoords &naturalIpCoords) const override
calculates the shape functions
Definition: InterpolationTrussLinear.cpp:11
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: InterpolationTrussLinear.cpp:26
const Shape & GetShape() const override
Definition: InterpolationTrussLinear.cpp:31
Definition: Shape.h:20
Eigen::MatrixXd GetDerivativeShapeFunctions(const NaturalCoords &) const override
calculates the derivative shape functions
Definition: InterpolationTrussLinear.cpp:16
static Eigen::Matrix< double, 2, 1 > ShapeFunctions(const Eigen::VectorXd &rCoordinates)
Definition: InterpolationTrussLinear.cpp:49
Definition: Exception.h:6
Definition: SerializeStreamOut.h:9
Definition: InterpolationTrussLinear.h:8
NaturalCoords GetLocalCoords(int nodeId) const override
returns the local node coordinates
Definition: InterpolationTrussLinear.cpp:21
std::unique_ptr< InterpolationSimple > Clone() const override
Definition: InterpolationTrussLinear.cpp:6