We currently ignore the contribution of strain to the total energy density in the TDGL equation. The strain energy can be computed as a function of polarization using equation 4 and 5 in
https://aip.scitation.org/doi/pdf/10.1063/1.1377855
We can add this as follows:
- Create a new function to compute strain energy with polarization as input.
- Add the strain contribution to the function that computes TDGL RHS