Closed pablogila closed 3 weeks ago
Phonopy doesn't read masses from scf.in
. You have to specify them with mass tag, https://phonopy.github.io/phonopy/setting-tags.html#mass. If you want to support reading masses from scf.in
, you have to modify https://github.com/phonopy/phonopy/blob/develop/phonopy/interface/qe.py. However, this is also related to crystal symmetry. When your input is not a primitive cell, then you have to carefully check the relationship between crystal symmetry and a list of masses of your input file. To avoid this complexity, phonopy accepts masses of primitive cell.
Sorry for the confusion, and thanks for the clarification. Moved the relevant discussion to #412.
Hello there,
I am creating supercells for a fully deuterated material in Quantum ESPRESSO. The
scf.in
input file to create the supercells contains the followingATOMIC_SPECIES
. Note thatH
has been provided with the deuterium mass (2 amu) in order to perform a deuterium calculation:The bug occurs when creating supercells with
This creates supercells with the default mass of hydrogen instead of deuterium.
See the ATOMIC_SPECIES in all the new supercell files:
Of course, the expected behaviour would be to preserve the atomic mass introduced in the input, instead of the default one.
This behaviour was not observed when the atomic species symbol was unknown to Phonopy and was replaced by a random one, as mentioned in issue #412, where the atomic mass remained as originally introduced, although the atomic symbol was changed.