convergence and large stochastic error #154
-
I have asked about the large stochastic error before. It seems like the current release version has not fix the issue of very large stochastic error. I understand I can set meaningful_factor to minimize the FC gradient. In the same time, for very large supercells (>300 atoms), is it possible that I optimize the structure in the first few populations, and when it is somehow small, I turn off the strcutural minimization and only allow minimization of FC gradient. Please look at the following output:
The final force on the structure is less than 0.01 ev/A and I only allow minimization of FC gradient. Is it safe to say it is converged? I do not want to turn on the structural minimization since the primitive cell is very large and there are so many degreees of freedom on forces, which makes the convergence speed so slow. Another question is about the bubble correction (or it is called static correction?). Do you have any idea why the SSCHA matrix looks correct (positive definite and nice) but the SSCHA + bubble correction matrix is very bad (lots of imaginary modes even at Gamma points). Somehow I feel like it is due to the SSCHA matrix is not well converged and in the same time I need to add more configurations into the last population to converge the bubble correction? In the same time I am also afraid it is due to I turn off the structural minimization. Can you give me any idea? By the way, I am using ensemble.get_free_energy_hessian to get the SSCHA + bubble correction and I also see the Spectral.get_static_correction_interpolated can do the same thing. Do these two functions give consistent results or I should use one rather than the other? This is a quite long question. Many thanks for any help. Kang |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, the error fix is currently in the
Yes, this is a good approach to speed up the calculation.
The forces' values seem small; however, it depends a bit on the system if it is enough. Anyway, the larger the supercell, the more negligible the number of degrees of freedom of the structure with respect to the auxiliary FC is, so the complete minimization should be mostly unaffected by the minimization of the structure. Have you tested with the same ensemble to run the minimization of the structure? $ sscha-plot-data.py minim If you set up the saving of the frequencies as explained in the tutorials: (for example, here )
This depends on the system. The Free energy hessian in the bubble approximation requires more configurations than the SSCHA minimization; therefore, it may be harder to converge. For example, see this FAQ for a more detailed explanation of how to do it.
The Free energy hessian computes the Hessian only in the q grid commensurate with the supercell. It can use the bubble approximation (if you set include_v4=False) or even the full hessian beyond the bubble approximation (if include_v4=True). Hope this helps, |
Beta Was this translation helpful? Give feedback.
-
Dear Lorenzo, Many thanks for your response. It is really helpful. I have read the mentioned 3 tutorials before but now you explanation makes me more clear. I tried to use 512 configurations and then added 512 more confugurations (use ensemble.merge and 1024 totally) to calculate the bubble correction. I saved the odd correction matrix and it really changes a lot. Although both give many imaginary modes at gamma point, the 1024 one gives much smaller imaginary values. I checked the odd correction matrix and the 1024 one has smaller matrix elements (50% of the 512 one). I will add more configurations to see if the bubble is converged. Best wishes, |
Beta Was this translation helpful? Give feedback.
Hi, the error fix is currently in the
fourier_gradient
branch and will be merged in version 1.4, to be released.Yes, this is a good approach to speed up the calculation.
The force…