TDEP stands for Temperature Dependent Effective Potential, with the important word being Temperature. This means that the force constants extracted with TDEP will already contains information about the canonical ensemble. In practice, these force constants have to be extracted from configurations representative of the canonical ensemble at the temperature at which you want to extract properties. Yet another way to say this is that these IFC are a thermal average.
This means that an important part of using TDEP is to gather the configurations before extracting IFCs.
Two main approaches exists: using molecular dynamics simulations (MD-TDEP) or a stochastic sampling (sTDEP).
IMPORTANT NOTES:
- the theoretical foundation of MD-TDEP and sTDEP are different, be very careful when comparing results from the two approaches (and don't mix them blindly in the same study !).
- You cannot mix configurations from several temperature when extracting the IFCs, this has no physical sense in the TDEP approach
The idea is simple: molecular dynamics gives us access to a representative sample of the canonical ensemble. Using the forces and displacements from this sample, we can fit the best effective harmonic phonons to reproduce the actual canonical ensemble explored by the system.
More formally, this approach is an application of the mode-coupling theory of anharmonic lattice dynamics. You should have a read of this paper if you want to understand the underlying theory.
Some important consideration when using TDEP with molecular dynamics:
- The molecular dynamics simulations have to be in the NVT ensemble !. This is because we cannot define displacements with a varying cell.
- Do not mix simulations at several temperatures. This completely breaks down the theoretical justification and the phonons would not have a clear physical meaning anymore.
You will find a tutorial on how to use molecular dynamics to extract IFCs in the folder MD-TDEP.
Molecular dynamics can be expensive (particularly when ab initio method are used) and do not give access to nuclear quantum effects. The stochastic sampling approach allows to reduce the number of configurations used and can also include part of the nuclear quantum effects.
Briefly put, the idea is to generate force constants self-consistently by using them to approximate the atomic displacement distribution in the (harmonic) canonical ensemble, and iteratively improve the approximation by true forces in the system. Check out the documentation of canonical_configuration for some background. The scheme was first introduced in [Shulumba2017] and we refer to it as stochastic TDEP (sTDEP).
In the classical case and very simplified mathematical terms, we solve this equation self-consistently for the force constants
where
i.e., instead of sampling the true nuclear distribution as it would be obtained with MD simulations (at much higher cost!), we sample the approximate (effective) harmonic distribution and update the force constants self-consistently after each iteration until convergence. The solution will correspond to the (effective) harmonic model that best mimics the true thermodynamic behavior of the system at the given temperature (defined by
You will find a tutorial for sTDEP in the sTDEP folder.
You should always check the convergence of the property you are interested in! We cannot stress this enough!
On purely harmonic level, this can be the density of states (DOS). Compare the bandstructure and DOS at each step in the self-consistent loop for sTDEP. There is an explicit example in the sTDEP tutorial or with varying number of configurations with MD-TDEP.