pymatgen.analysis.piezo module

class PiezoTensor[source]

Bases: pymatgen.analysis.elasticity.tensors.Tensor

This class describes the 3x6 piezo tensor in Voigt-notation

Create an PiezoTensor object. The constructor throws an error if the shape of the input_matrix argument is not 3x3x3, i. e. in true tensor notation. Note that the constructor uses __new__ rather than __init__ according to the standard method of subclassing numpy ndarrays.

Parameters:input_matrix (3x3x3 array-like) – the 3x6 array-like representing the piezo tensor