OOF2: The Manual
SymTensorIndex — Index a symmetric 3×3 tensor
SymTensorIndex is a
subclass used to refer to the components of a
(symmetric 3×3 matrix or tensor) object. Most of the
functionality comes from the base class, and is documented
The argument to
function and the value returned by
are both pointers to
length 2. The two
ints are the row and column
numbers of the matrix component, with x=0, y=1, and z=2.
integer method returns the
Voigt representation of the
SymTensorIndex, as shown in Table 8.1.
Methods that are not defined in the base classes are listed here.
bool diagonal() const
This function indicates whether or not the
SymTensorIndex refers to one of the
diagonal entries, xx, yy, or zz.
static int str2voigt(const std::string& str)
This is a utility function that returns the integer Voigt representation of a symmetric tensor index, given as a string. Because OOF2 is written in C++, Voigt indices start from 0. See Table 8.1.
static int ij2voigt(int i, int j)
This is a utility function that returns the integer Voigt representation of a symmetric tensor index, given as a pair of integers. Because OOF2 is written in C++, Voigt indices start from 0. See Table 8.1.