NuTo
Numerics Tool
EngineeringStress.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <eigen3/Eigen/Core>
5 
6 namespace NuTo
7 {
30 template <int TDim>
31 class EngineeringStress : public Eigen::Matrix<double, Voigt::Dim(TDim), 1>
32 {
34 
35 public:
36  EngineeringStress() = default;
37 
39  template <typename OtherDerived>
40  EngineeringStress(const Eigen::MatrixBase<OtherDerived>& other)
41  : Parent(other)
42  {
43  }
44 
46  template <typename OtherDerived>
47  EngineeringStress(Eigen::MatrixBase<OtherDerived>&& other)
48  : Parent(other)
49  {
50  }
51 
53  template <typename OtherDerived>
54  EngineeringStress& operator=(const Eigen::MatrixBase<OtherDerived>& other)
55  {
56  this->Parent::operator=(other);
57  return *this;
58  }
59 
61  template <typename OtherDerived>
62  EngineeringStress& operator=(Eigen::MatrixBase<OtherDerived>&& other)
63  {
64  this->Parent::operator=(other);
65  return *this;
66  }
67 };
68 } /* namespace NuTo */
EngineeringStress(const Eigen::MatrixBase< OtherDerived > &other)
This constructor allows you to construct EngineeringStress from Eigen expressions.
Definition: EngineeringStress.h:40
EngineeringStress & operator=(Eigen::MatrixBase< OtherDerived > &&other)
This method allows you to assign Eigen expressions to EngineeringStress.
Definition: EngineeringStress.h:62
EngineeringStress(Eigen::MatrixBase< OtherDerived > &&other)
This constructor allows you to construct EngineeringStress from Eigen expressions.
Definition: EngineeringStress.h:47
EngineeringStress & operator=(const Eigen::MatrixBase< OtherDerived > &other)
This method allows you to assign Eigen expressions to EngineeringStress.
Definition: EngineeringStress.h:54
Engineering stress.
Definition: EngineeringStress.h:31
Definition: Exception.h:6
Definition: SerializeStreamOut.h:9