pwtools.crys.tensor2voigt

pwtools.crys.tensor2voigt(tensor)[source]

Convert stress tensor to Voigt notation.

Parameters:

tensor ((3,3))

Returns:

voigt – [xx,yy,zz,yz,xz,xy]

Return type:

1d array