|
musica (C++)
|
Class for the 2nd-order tensor (3, 3) representation. More...
#include <tensor.hpp>

Public Member Functions | |
| Tensor2 (const Eigen::Matrix< T, 3, 3 > &data) | |
| Constructor for the tensor. | |
| Eigen::Matrix< T, 6, 1 > | toVector () const |
| Convert the tensor to a vector. | |
| void | clearCaches () const |
| Clear caches. | |
| const Eigen::Matrix< T, 3, 3 > & | mean () const |
| Calculate the mean tensor. | |
| const Eigen::Matrix< T, 3, 3 > & | deviatoric () const |
| Calculate the deviatoric tensor. | |
| T | I1 () const |
| Calculate the first invariant of the tensor. | |
| T | I2 () const |
| Calculate the second invariant of the tensor. | |
| T | I3 () const |
| Calculate the third invariant of the tensor. | |
| T | J2 () const |
| Calculate the second deviatoric invariant of the tensor. | |
| T | J3 () const |
| Calculate the third deviatoric invariant of the tensor. | |
| T | p () const |
| Calculate the mean value of the tensor. | |
| T | q () const |
| Calculate the deviatoric value of the tensor. | |
| T | eta () const |
| Calculate the eta value of the tensor. | |
| const Eigen::Matrix< T, 3, 1 > & | principals () const |
| Calculate the principal values of the tensor. | |
| T | p1 () const |
| Calculate the maximum principal value of the tensor. | |
| T | p2 () const |
| Calculate the median principal value of the tensor. | |
| T | p3 () const |
| Calculate the minimum principal value of the tensor. | |
| T | b () const |
| Calculate the b-value of the tensor. | |
| T | R () const |
| Calculate the R-value of the tensor. | |
| T | cos3theta () const |
| Calculate the cosine of 3 times of the Lode angle of the tensor. | |
| T | theta () const |
| Calculate the Lode angle (0, pi/3) of the tensor. | |
| T | lode () const |
| Calculate the Lode angle (-pi/6, pi/6) of the tensor. | |
| T | norm () const |
| Calculate the norm of the tensor. | |
| const Eigen::Matrix< T, 3, 3 > & | normalized () const |
| Calculate the normalized tensor. | |
| Tensor2 | operator+ (const Tensor2 &other) const |
| Add two tensors. | |
| Tensor2 | operator+ (const Eigen::Matrix< T, 3, 3 > &other) const |
| Add a matrix to the tensor. | |
| Tensor2 | operator+ (const T &other) const |
| Add a scalar to the tensor. | |
| Tensor2 | operator- (const Tensor2 &other) const |
| Subtract two tensors. | |
| Tensor2 | operator- (const Eigen::Matrix< T, 3, 3 > &other) const |
| Subtract a matrix from the tensor. | |
| Tensor2 | operator- (const T &other) const |
| Subtract a scalar from the tensor. | |
| Tensor2 | operator* (const Tensor2 &other) const |
| Multiply the tensor by a tensor. | |
| Tensor2 | operator* (const Eigen::Matrix< T, 3, 3 > &other) const |
| Multiply the tensor by a matrix. | |
| Eigen::Matrix< T, 3, 1 > | operator* (const Eigen::Matrix< T, 3, 1 > &other) const |
| Multiply the tensor by a vector. | |
| Tensor2 | operator* (const T &other) const |
| Multiply the tensor by a scalar. | |
| Tensor2 | operator/ (const T &other) const |
| Divide the tensor by a scalar. | |
Static Public Member Functions | |
| static Tensor2 | fromVector (const Eigen::Matrix< T, 6, 1 > &vec) |
| Static method to create a tensor from a vector. | |
Public Attributes | |
| Eigen::Matrix< T, 3, 3 > | matrix |
| Matrix representation of the tensor. | |
Class for the 2nd-order tensor (3, 3) representation.
|
inlineexplicit |
Constructor for the tensor.
| data | Matrix representation of the tensor. |
References matrix.
Referenced by constitutive::FabricTensor< T >::evolve(), fromVector(), constitutive::operator*(), constitutive::operator*(), operator*(), operator*(), operator*(), constitutive::operator+(), constitutive::operator+(), operator+(), operator+(), operator+(), constitutive::operator-(), constitutive::operator-(), operator-(), operator-(), operator-(), and operator/().

|
inline |
Calculate the b-value of the tensor.
References constitutive::CachedVariable< T >::cached, constitutive::CachedScalar< T >::initialize(), p1(), p2(), p3(), principals(), and constitutive::CachedVariable< T >::value().

|
inline |
Clear caches.
References constitutive::CachedVariable< T >::cached.
|
inline |
Calculate the cosine of 3 times of the Lode angle of the tensor.
References constitutive::CachedVariable< T >::cached, cos3theta(), constitutive::CachedScalar< T >::initialize(), J2(), J3(), and constitutive::CachedVariable< T >::value().
Referenced by cos3theta(), and theta().


|
inline |
Calculate the deviatoric tensor.
References constitutive::CachedVariable< T >::cached, constitutive::CachedMatrix33< T >::initialize(), mean(), and constitutive::CachedVariable< T >::value().


|
inline |
Calculate the eta value of the tensor.
References constitutive::CachedVariable< T >::cached, constitutive::CachedScalar< T >::initialize(), p(), q(), and constitutive::CachedVariable< T >::value().

|
inlinestatic |
Static method to create a tensor from a vector.
| vec | Vector representation of the tensor. |
References matrix, and Tensor2().
Referenced by constitutive::StateVariable< T >::strain(), and constitutive::StateVariable< T >::strainp().


|
inline |
Calculate the first invariant of the tensor.
References constitutive::CachedVariable< T >::cached, constitutive::CachedScalar< T >::initialize(), and constitutive::CachedVariable< T >::value().
Referenced by p().


|
inline |
Calculate the second invariant of the tensor.
References constitutive::CachedVariable< T >::cached, constitutive::CachedScalar< T >::initialize(), and constitutive::CachedVariable< T >::value().

|
inline |
Calculate the third invariant of the tensor.
References constitutive::CachedVariable< T >::cached, constitutive::CachedScalar< T >::initialize(), and constitutive::CachedVariable< T >::value().

|
inline |
Calculate the second deviatoric invariant of the tensor.
References constitutive::CachedVariable< T >::cached, deviatoric(), constitutive::CachedScalar< T >::initialize(), and constitutive::CachedVariable< T >::value().
Referenced by cos3theta(), and q().


|
inline |
Calculate the third deviatoric invariant of the tensor.
References constitutive::CachedVariable< T >::cached, deviatoric(), constitutive::CachedScalar< T >::initialize(), and constitutive::CachedVariable< T >::value().
Referenced by cos3theta().


|
inline |
Calculate the Lode angle (-pi/6, pi/6) of the tensor.
References constitutive::CachedVariable< T >::cached, constitutive::CachedScalar< T >::initialize(), PI, theta(), and constitutive::CachedVariable< T >::value().

|
inline |
Calculate the mean tensor.
References constitutive::CachedVariable< T >::cached, constitutive::CachedMatrix33< T >::initialize(), and constitutive::CachedVariable< T >::value().
Referenced by deviatoric().


|
inline |
Calculate the norm of the tensor.
References constitutive::CachedVariable< T >::cached, constitutive::CachedScalar< T >::initialize(), and constitutive::CachedVariable< T >::value().

|
inline |
Calculate the normalized tensor.
References constitutive::CachedVariable< T >::cached, constitutive::CachedMatrix33< T >::initialize(), and constitutive::CachedVariable< T >::value().

|
inline |
Multiply the tensor by a vector.
| other | Vector to be multiplied. |
|
inline |
Multiply the tensor by a matrix.
| other | Matrix to be multiplied. |
References Tensor2().

|
inline |
|
inline |
|
inline |
Add a matrix to the tensor.
| other | Matrix to be added. |
References Tensor2().

|
inline |
|
inline |
|
inline |
Subtract a matrix from the tensor.
| other | Matrix to be subtracted. |
References Tensor2().

|
inline |
|
inline |
|
inline |
|
inline |
Calculate the mean value of the tensor.
References constitutive::CachedVariable< T >::cached, I1(), constitutive::CachedScalar< T >::initialize(), and constitutive::CachedVariable< T >::value().
Referenced by eta().


|
inline |
Calculate the maximum principal value of the tensor.
References constitutive::CachedVariable< T >::cached, constitutive::CachedScalar< T >::initialize(), principals(), and constitutive::CachedVariable< T >::value().


|
inline |
Calculate the median principal value of the tensor.
References constitutive::CachedVariable< T >::cached, constitutive::CachedScalar< T >::initialize(), principals(), and constitutive::CachedVariable< T >::value().
Referenced by b().


|
inline |
Calculate the minimum principal value of the tensor.
References constitutive::CachedVariable< T >::cached, constitutive::CachedScalar< T >::initialize(), principals(), and constitutive::CachedVariable< T >::value().


|
inline |
Calculate the principal values of the tensor.
References constitutive::CachedVariable< T >::cached, constitutive::CachedVector3< T >::initialize(), and constitutive::CachedVariable< T >::value().
Referenced by b(), p1(), p2(), and p3().


|
inline |
Calculate the deviatoric value of the tensor.
References constitutive::CachedVariable< T >::cached, constitutive::CachedScalar< T >::initialize(), J2(), and constitutive::CachedVariable< T >::value().
Referenced by eta().


|
inline |
Calculate the R-value of the tensor.
References constitutive::CachedVariable< T >::cached, constitutive::CachedScalar< T >::initialize(), p1(), p3(), and constitutive::CachedVariable< T >::value().

|
inline |
Calculate the Lode angle (0, pi/3) of the tensor.
References constitutive::CachedVariable< T >::cached, cos3theta(), constitutive::CachedScalar< T >::initialize(), and constitutive::CachedVariable< T >::value().
Referenced by lode().


|
inline |
| Eigen::Matrix<T, 3, 3> constitutive::Tensor2< T >::matrix |
Matrix representation of the tensor.
Referenced by fromVector(), constitutive::operator*(), constitutive::operator*(), constitutive::operator*(), operator*(), constitutive::operator+(), constitutive::operator+(), operator+(), constitutive::operator-(), constitutive::operator-(), operator-(), Tensor2(), and toVector().