Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PROBLEM] canonical_configuration and small positive frequencies #82

Open
flokno opened this issue Aug 1, 2024 · 2 comments
Open

[PROBLEM] canonical_configuration and small positive frequencies #82

flokno opened this issue Aug 1, 2024 · 2 comments
Labels

Comments

@flokno
Copy link
Contributor

flokno commented Aug 1, 2024

When creating samples via canonical_configurations and input dispersions which have very small but positive frequencies, the resulting displacements can be very large. This comes from the fact that TDEP treats frequencies larger than lo_freqtol (=1e-9) as positive: https://github.com/tdep-developers/tdep/blob/main/src/libolle/type_forceconstant_secondorder_aux.f90#L439

If the phonon dispersion is close to zero at a commensurate point, a large displacement will therefore be created.

One possible way out would be to check that the resulting amplitudes are not too big or something, or throw an error

@flokno flokno added the error label Aug 1, 2024
@OrbitalC
Copy link
Collaborator

OrbitalC commented Aug 2, 2024

A solution I have seen for this kind of problem is to set all frequencies lower than some threshold to some positive frequency, a small one but large enough to have sensible displacements. Maybe the positive frequency is something that can be inferred from the rest of the spectra ?
Compared to ignoring the low/imaginary frequencies, this allow to still excite the system on the specific directions of the mode, which helps for the next iteration.
Since at convergence everything should be positive anyway, this have no impact on the final results.
However, I think that throwing a warning when this happens is a good idea.

@mjv500
Copy link
Contributor

mjv500 commented Aug 2, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants