pwtools.crys.voigt2tensor

pwtools.crys.voigt2tensor(voigt)[source]

Convert Voigt stress array to stress tensor.

Parameters:

voigt (1d array) – [xx,yy,zz,yz,xz,xy]

Returns:

tensor

Return type:

(3,3)