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

Symmetry for magnetic calculation #5786

Open
kluophysics opened this issue Dec 30, 2024 · 8 comments
Open

Symmetry for magnetic calculation #5786

kluophysics opened this issue Dec 30, 2024 · 8 comments
Assignees
Labels
Bugs Bugs that only solvable with sufficient knowledge of DFT Symmetry This issue is related to symmetry

Comments

@kluophysics
Copy link

Discussed in #5780

Originally posted by kluophysics December 29, 2024
I recently tried a system with STRU file

ATOMIC_SPECIES
Mn   54.938  Mn.UPF
Cr   51.996  Cr.UPF
S   32.060  S.UPF

NUMERICAL_ORBITAL
Mn_gga_8au_100Ry_4s2p2d1f.orb
Cr_gga_8au_100Ry_4s2p2d1f.orb
S_gga_7au_100Ry_2s2p1d.orb

LATTICE_CONSTANT
1.889726

LATTICE_VECTORS
0.000000000000  5.059500222100  5.059500222100
5.059500222100  0.000000000000  5.059500222100
5.059500222100  5.059500222100  0.000000000000

ATOMIC_POSITIONS
Direct

Mn
0.000
2
0.000000000000  0.000000000000  0.000000000000  1  1  1  mag  -4.0
0.250000000000  0.250000000000  0.250000000000  1  1  1  mag  -4.0 

Cr
0.000
4
0.625000000000  0.625000000000  0.625000000000  1  1  1  mag  2.0 
0.625000000000  0.625000000000  0.125000000000  1  1  1  mag  2.0
0.625000000000  0.125000000000  0.625000000000  1  1  1  mag  2.0
0.125000000000  0.625000000000  0.625000000000  1  1  1  mag  2.0

S 
0.000
8
0.864000022000  0.864000022000  0.864000022000  1  1  1  mag  0.0 
0.864000022000  0.864000022000  0.407999933000  1  1  1  mag  0.0 
0.864000022000  0.407999933000  0.864000022000  1  1  1  mag  0.0 
0.407999933000  0.864000022000  0.864000022000  1  1  1  mag  0.0 
0.385999978000  0.385999978000  0.842000067000  1  1  1  mag  0.0 
0.385999978000  0.385999978000  0.385999978000  1  1  1  mag  0.0 
0.385999978000  0.842000067000  0.385999978000  1  1  1  mag  0.0 
0.842000067000  0.385999978000  0.385999978000  1  1  1  mag  0.0 

In INPUT I have collinear calculation

nspin                          2
symmetry                       1
noncolin                       0
lspinorb                       0

The ending magnetic moments are

Total Magnetism on atom:  Mn        -4.665702289
Total Magnetism on atom:  Mn        -4.665740501
Total Magnetism on atom:  Cr         2.965500864
Total Magnetism on atom:  Cr         3.022808420
Total Magnetism on atom:  Cr         3.017705694
Total Magnetism on atom:  Cr         3.012714203
Total Magnetism on atom:  S      -0.08423095692
Total Magnetism on atom:  S      -0.08725110486
Total Magnetism on atom:  S      -0.08733743511
Total Magnetism on atom:  S      -0.08678134768
Total Magnetism on atom:  S      -0.08724969023
Total Magnetism on atom:  S      -0.08422655088
Total Magnetism on atom:  S      -0.08733595580
Total Magnetism on atom:  S      -0.08677960017

The magnetic moments of each species are not identical but somewhat close. In contrast, I checked against VASP and QE. Each code (QE and VASP) gives the same magnetic moments for Mn atom and Cr atom (as well as S atom in this case), respectively. Why is it so since symmetry is imposed?

A side note is that the magnetic moments are different from those obtained in VASP and QE. For record,

QE xml output has

       <SiteMagnetization species="Mn" atom="1" charge="12.9155210730199">-3.972369329343096E+000</SiteMagnetization>
        <SiteMagnetization species="Mn" atom="2" charge="12.9155210730200">-3.972369329343080E+000</SiteMagnetization>
        <SiteMagnetization species="Cr" atom="3" charge="11.9087376722326">2.659180873233858E+000</SiteMagnetization>
        <SiteMagnetization species="Cr" atom="4" charge="11.9087376722326">2.659180873233876E+000</SiteMagnetization>
        <SiteMagnetization species="Cr" atom="5" charge="11.9087376722326">2.659180873233858E+000</SiteMagnetization>
        <SiteMagnetization species="Cr" atom="6" charge="11.9087376722326">2.659180873233857E+000</SiteMagnetization>
        <SiteMagnetization species="S" atom="7" charge="4.08901398485960">-9.747697744481396E-002</SiteMagnetization>
        <SiteMagnetization species="S" atom="8" charge="4.08901398421616">-9.747697729427619E-002</SiteMagnetization>
        <SiteMagnetization species="S" atom="9" charge="4.08901398421616">-9.747697729427580E-002</SiteMagnetization>
        <SiteMagnetization species="S" atom="10" charge="4.08901398421616">-9.747697729427582E-002</SiteMagnetization>
        <SiteMagnetization species="S" atom="11" charge="4.08901398421614">-9.747697729427603E-002</SiteMagnetization>
        <SiteMagnetization species="S" atom="12" charge="4.08901398485959">-9.747697744481432E-002</SiteMagnetization>
        <SiteMagnetization species="S" atom="13" charge="4.08901398421614">-9.747697729427580E-002</SiteMagnetization>
        <SiteMagnetization species="S" atom="14" charge="4.08901398421614">-9.747697729427587E-002</SiteMagnetization>

VASP give closer moments, though different from QE and I suspect the pseudopotentials are really different. For QE, I used ONCV of PBE type while the PAW is quite unique. So VASP is not directly comparable, out of the game. For QE and Abacus, both used the same ONCV pseudopotentials and PBE xc functionals, they differ by 0.8 for Mn and 0.4 for Cr. I used DZP basis set and 100 Ry energy cutoff. Hope someone could give me some insight and that would be greatly appreciated!

@kluophysics
Copy link
Author

I move it from the Discussions so it gets more attention in the Issues.

@mohanchen
Copy link
Collaborator

Thanks. @dyzheng @WHUweiqingzhou any thoughts?

@mohanchen mohanchen added the Questions Raise your quesiton! We will answer it. label Dec 31, 2024
@dyzheng
Copy link
Collaborator

dyzheng commented Dec 31, 2024

@kluophysics Hello, how about the k-points after symmetry is on, does ABACUS differ from QE or VASP?

@kluophysics
Copy link
Author

@dyzheng They are the same, all being 8x8x8 Monkhorst-Pack kmesh. Increasing to 12x12x12 does not change much.

@dyzheng
Copy link
Collaborator

dyzheng commented Jan 3, 2025

I have checked code of symmetry.cpp in ABACUS, it deals with atoms of different non-negative initial magnetisms as same atoms, which is obviously wrong.

@dyzheng dyzheng added Bugs Bugs that only solvable with sufficient knowledge of DFT and removed Questions Raise your quesiton! We will answer it. labels Jan 3, 2025
@dyzheng dyzheng self-assigned this Jan 3, 2025
@dyzheng
Copy link
Collaborator

dyzheng commented Jan 3, 2025

I will try to fix it, or turn off symmetry analysis for magnetic calculations.

@QuantumMisaka
Copy link
Collaborator

QuantumMisaka commented Jan 3, 2025

@dyzheng This problem may have same origin of #5433

@mohanchen mohanchen added the Symmetry This issue is related to symmetry label Jan 6, 2025
@kluophysics
Copy link
Author

I have checked code of symmetry.cpp in ABACUS, it deals with atoms of different non-negative initial magnetisms as same atoms, which is obviously wrong.

Could you be more specific? Maybe point to the lines of code that are relevant for the record. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugs Bugs that only solvable with sufficient knowledge of DFT Symmetry This issue is related to symmetry
Projects
None yet
Development

No branches or pull requests

4 participants