Wrong symmetry identified by cellconstructor symph package #179
-
|
Dear developers, I have encountered a weird issue. The symmetries detected by I know the correct symmetry is The problem lies in the Could you suggest a solution to this issue? Perhaps provide a new version of the function Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
I made a quick test with SrTiO3 and obtained the same symmetries with both spglib and cellconstructor symph. On the other hand with your system, cellconstructor symph doubles the symmetries obtained by spglib. |
Beta Was this translation helpful? Give feedback.
-
|
I saw this problem on another system, it was due to the different threshold
for symmetrization in QE and SPGLIB.
In particular QE treat the system in cristalline coordinates, therefore, in
case of a big cell, or big vacuum, the crystalline coordinates can be very
small and much closer to higher symmetry positions.
There is an open issue of some days ago. The patch is trivial, but I had
not the time to publish it
Il Mar 12 Dic 2023, 07:59 Diego Martinez Gutierrez ***@***.***>
ha scritto:
… I made a quick test with SrTiO3 and obtained the same symmetries with both
spglib and cellconstructor symph.
—
Reply to this email directly, view it on GitHub
<#179 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGZMNVABFA5Y7A6DMVE22VTYI76F3AVCNFSM6AAAAABAQWG3HKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQMRXGM3DO>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
|
Hi,
that is not an error, the symmetry of the bravais lattice refer to the
maximum possible amount of symmetries in the primitive cell considered
(ignoring the actual positions of the atoms). The real symmetries of the
structure (those used by the code) is indicated as symmetries of the
crystal (12 which is correct).
Then also the symmetries of the small q point are written, which in the
default case (q equal to gamma) corresponds to all the synmetries (12 in
your case).
So it is working correctly!
Bests,
Lorenzo
Il Mar 19 Dic 2023, 23:12 chenyubi14 ***@***.***> ha scritto:
… Dear Lorenzo,
Thank you for addressing the issue with CellConstructor. The symmetry has
largely improved, yet there's still a discrepancy in the bravais lattice
symmetry, showing 24 instead of the expected 12. See below *Symmetries of
the bravais lattice: 24*. Could you kindly implement another fix to this
issue?
Many thanks,
Yubi
>>> import cellconstructor as CC, cellconstructor.Phonons
>>> import spglib
>>>
>>> ## symmetry by spglib directly
>>> dyn = CC.Phonons.Phonons('harm_dyn', nqirr=4)
>>> symm1_spglib = spglib.get_spacegroup(dyn.structure.get_ase_atoms(), symprec = 1e-5)
>>> print(symm1_spglib)
P6/m (175)
>>>
>>> ## symmetry by CC spglib
>>> symm2_spglib = CC.symmetries.QE_Symmetry(dyn.structure)
>>> symm2_spglib.SetupFromSPGLIB()
>>> print(symm2_spglib.QE_nsym)
12
>>>
>>> ## symmetry by CC symph
>>> symm3_symph = CC.symmetries.QE_Symmetry(dyn.structure)
>>> symm3_symph.SetupQPoint(verbose = True)
Symmetries of the bravais lattice: 24
Symmetries of the crystal: 12
Symmetries of the small group of q: 12
>>>
>>> print(symm3_symph.QE_nsym)
12
—
Reply to this email directly, view it on GitHub
<#179 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGZMNVG6MRIXATCRR32PMNLYKIGORAVCNFSM6AAAAABAQWG3HKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TSMBSGM2DI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Here is the fix: SSCHAcode/CellConstructor@511f2b7
I just cherry-picked this fix into the master branch of CellConstructor.
If you are using the development version (the master branch in github), you can update CellConstructor and it should now work. Let me know (I have not tasted with your dyn).
Anyway, if you have use_spglib = True, the symmetries of quantum espresso (the symph module as you guessed is a wrapper of the quantum espresso subroutines for symmetry identification) should be ignored in the actual minimization of the code (just printed in output, could be confusing, but helps to spot potential bugs like this one. For sure, we can at least improve the clarity on which they are …