Calculating piezoelectric tensors

Duplicate question: Calculation of piezoelectric modulus