Menu

Parameter optimization / defauld lmaxapw

Elk Users
2024-01-19
2024-01-23
  • Andrew Shyichuk

    Andrew Shyichuk - 2024-01-19

    Dear Users,

    I am running a project with YPO4. With default parameters (including RMTs and LOs) the calculated charge error was about 0.18e out of total (correct) 172e - which is a lot.

    So, I went to the forum, read the posts on RMTs of Si, found no posts on phosphates, messed around with LO's, lo's, LAPW, number of points, rgkmax, gmaxvr, none of which helped noteworthy. Finally, I optimized the RMTs in a primitive steepest-descent style and got an improvement: the error got reduced to about 0.008, confirming the idea that RMTs must be tested for convergence/optimized.

    The next plateau was with the further improvement. I need it for a larger system, and this phosphate is a mere test case. I tried rgkmax, lmaxi, and eventually lmaxo and lmaxapw. The best result so far 0.002 with lmaxo = lmaxapw = 6 and lmaxi = 3, albeit the latter likely makes almost no effect.

    So, I just leave it here for the Elk people of the future. The question is: why is the default lmaxapw so large? Shouldn't this cause the problem where the higher-l plane waves do not have anything to stick to at muffin-tin surface, due to lmaxo not being enough?

    Anyway, the input is below, maybe someone would like to mess around more.

    tasks
        1  
    
    xctype
      22
    
    rgkmax
      7.5
    
    gmaxvr
     17
    
    chgexs
      0
    
    ! rgkmax/2
    isgkmax
     -2
    
    ngridk
     3 3 3
    
    spinpol
     f
    
    spinorb
     f
    
    cmagz
     t
    
    lradstp
     1
    
    dosmsum
     t
    
    nwrite
     10
    
    lmaxapw
      5
    
    lmaxi
      2
    
    lmaxo
      5
    
    ! Atomic positions generated by spacegroup version 1.2.01
    !  Hermann-Mauguin symbol : I41/amd:2
    !  Hall symbol            : -I 4bd 2
    !  Schoenflies symbol     : D4h^19
    !  space group number     : 141:2
    !  lattice constants (a,b,c) :    13.02900000       13.02900000       11.39100000    
    !  angles in degrees (bc,ac,ab) :    90.00000000       90.00000000       90.00000000    
    !  number of conventional unit cells :    1   1   1
    !  reduction to primitive cell : T
    !  Wyckoff positions :
    !   species :    1, Y
    !      0.000000000      0.7500000000      0.1250000000    
    !   species :    2, P
    !      0.000000000      0.2500000000      0.3750000000    
    !   species :    3, O
    !      0.000000000      0.7530000000E-01  0.2158000000    
    
    avec
       6.514500000       6.514500000       5.695500000    
       6.514500000       6.514500000      -5.695500000    
       6.514500000      -6.514500000       5.695500000    
    
    atoms
       3                                    : nspecies
    'Y.in'                                  : spfname
       2                                    : natoms; atposl, bfcmt below
        0.87500000    0.87500000    0.25000000    0.00000000  0.00000000  0.00000000
        0.12500000    0.12500000    0.75000000    0.00000000  0.00000000  0.00000000
    'P.in'                                  : spfname
       2                                    : natoms; atposl, bfcmt below
        0.62500000    0.62500000    0.75000000    0.00000000  0.00000000  0.00000000
        0.37500000    0.37500000    0.25000000    0.00000000  0.00000000  0.00000000
    'O.in'                                  : spfname
       8                                    : natoms; atposl, bfcmt below
        0.29110000    0.78420000    0.92470000    0.00000000  0.00000000  0.00000000
        0.70890000    0.21580000    0.07530000    0.00000000  0.00000000  0.00000000
        0.21580000    0.70890000    0.42470000    0.00000000  0.00000000  0.00000000
        0.78420000    0.29110000    0.57530000    0.00000000  0.00000000  0.00000000
        0.64050000    0.78420000    0.57530000    0.00000000  0.00000000  0.00000000
        0.35950000    0.21580000    0.42470000    0.00000000  0.00000000  0.00000000
        0.21580000    0.35950000    0.07530000    0.00000000  0.00000000  0.00000000
        0.78420000    0.64050000    0.92470000    0.00000000  0.00000000  0.00000000
    
    
         'O'                                        : spsymb
     'oxygen'                                   : spname
      -8.00000                                  : spzn
       29165.12202                              : spmass
      0.707107E-06    1.12734    30.4661   300    : rminsp, rmt, rmaxsp, nrmt
       4                                        : nstsp
       1   0   1   2.00000    T                 : nsp, lsp, ksp, occsp, spcore
       2   0   1   2.00000    F
       2   1   1   2.00000    F
       2   1   2   2.00000    F
       1                                        : apword
        0.1500   0  F                           : apwe0, apwdm, apwve
       0                                        : nlx
       2                                        : nlorb
       0   2                                    : lorbl, lorbord
        0.1500   0  F                           : lorbe0, lorbdm, lorbve
        0.1500   1  F
       1   2                                    : lorbl, lorbord
        0.1500   0  F                           : lorbe0, lorbdm, lorbve
        0.1500   1  F
    
    
    
     'P'                                        : spsymb
     'phosphorus'                               : spname
      -15.0000                                  : spzn
       56461.71226                              : spmass
      0.516398E-06    1.12734  39.7177   400    : rminsp, rmt, rmaxsp, nrmt
       7                                        : nstsp
       1   0   1   2.00000    T                 : nsp, lsp, ksp, occsp, spcore
       2   0   1   2.00000    F
       2   1   1   2.00000    F
       2   1   2   4.00000    F
       3   0   1   2.00000    F
       3   1   1   1.00000    F
       3   1   2   2.00000    F
       1                                        : apword
        0.1500   0  F                           : apwe0, apwdm, apwve
       0                                        : nlx
       5                                       : nlorb
       0   2                                    : lorbl, lorbord
        0.1500   0  F                           : lorbe0, lorbdm, lorbve
        0.1500   1  F
       1   2                                    : lorbl, lorbord
        0.1500   0  F                           : lorbe0, lorbdm, lorbve
        0.1500   1  F
       2   2                                    : lorbl, lorbord
        0.1500   0  F                           : lorbe0, lorbdm, lorbve
        0.1500   1  F
       0   2                                    : lorbl, lorbord
        0.1500   0  F                           : lorbe0, lorbdm, lorbve
       -5.3      0  T
       1   2                                    : lorbl, lorbord
        0.1500   0  F                           : lorbe0, lorbdm, lorbve
       -4.3      0  T
        0   2                                    : lorbl, lorbord
    
    
    
     'Y'                                        : spsymb
     'yttrium'                                  : spname
      -39.0000                                  : spzn
       162065.4502                              : spmass
      0.320256E-06   1.89517   53.7982   600    : rminsp, rmt, rmaxsp, nrmt
      14                                        : nstsp
       1   0   1   2.00000    T                 : nsp, lsp, ksp, occsp, spcore
       2   0   1   2.00000    T
       2   1   1   2.00000    T
       2   1   2   4.00000    T
       3   0   1   2.00000    T
       3   1   1   2.00000    T
       3   1   2   4.00000    T
       3   2   2   4.00000    T
       3   2   3   6.00000    T
       4   0   1   2.00000    F
       4   1   1   2.00000    F
       4   1   2   4.00000    F
       4   2   2   1.00000    F
       5   0   1   2.00000    F
       1                                        : apword
        0.1500   0  F                           : apwe0, apwdm, apwve
       0                                        : nlx
       5                                        : nlorb
       0   2                                    : lorbl, lorbord
        0.1500   0  F                           : lorbe0, lorbdm, lorbve
        0.1500   1  F
       1   2                                    : lorbl, lorbord
        0.1500   0  F                           : lorbe0, lorbdm, lorbve
        0.1500   1  F
       2   2                                    : lorbl, lorbord
        0.1500   0  F                           : lorbe0, lorbdm, lorbve
        0.1500   1  F
       0   2                                    : lorbl, lorbord
        0.1500   0  F                           : lorbe0, lorbdm, lorbve
       -1.7619   0  T
       1   2                                    : lorbl, lorbord
        0.1500   0  F                           : lorbe0, lorbdm, lorbve
       -1.0082   0  T
    
     
  • J. K. Dewhurst

    J. K. Dewhurst - 2024-01-23

    Dear Andrew,

    I used the following input file:

    tasks
      0
    
    xctype
      22
    
    mrmtav
      1
    
    nrmtscf
      2.0
    
    ngridk
      4 4 4
    
    ! Atomic positions generated by spacegroup version 1.2.01
    !  Hermann-Mauguin symbol : I41/amd:2
    !  Hall symbol            : -I 4bd 2
    !  Schoenflies symbol     : D4h^19
    !  space group number     : 141:2
    !  lattice constants (a,b,c) :    13.02900000       13.02900000       11.39100000    
    !  angles in degrees (bc,ac,ab) :    90.00000000       90.00000000       90.00000000    
    !  number of conventional unit cells :    1   1   1
    !  reduction to primitive cell : T
    !  Wyckoff positions :
    !   species :    1, Y
    !      0.000000000      0.7500000000      0.1250000000    
    !   species :    2, P
    !      0.000000000      0.2500000000      0.3750000000    
    !   species :    3, O
    !      0.000000000      0.7530000000E-01  0.2158000000    
    
    avec
       6.514500000       6.514500000       5.695500000    
       6.514500000       6.514500000      -5.695500000    
       6.514500000      -6.514500000       5.695500000    
    
    atoms
       3                                    : nspecies
    'Y.in'                                  : spfname
       2                                    : natoms; atposl, bfcmt below
        0.87500000    0.87500000    0.25000000    0.00000000  0.00000000  0.00000000
        0.12500000    0.12500000    0.75000000    0.00000000  0.00000000  0.00000000
    'P.in'                                  : spfname
       2                                    : natoms; atposl, bfcmt below
        0.62500000    0.62500000    0.75000000    0.00000000  0.00000000  0.00000000
        0.37500000    0.37500000    0.25000000    0.00000000  0.00000000  0.00000000
    'O.in'                                  : spfname
       8                                    : natoms; atposl, bfcmt below
        0.29110000    0.78420000    0.92470000    0.00000000  0.00000000  0.00000000
        0.70890000    0.21580000    0.07530000    0.00000000  0.00000000  0.00000000
        0.21580000    0.70890000    0.42470000    0.00000000  0.00000000  0.00000000
        0.78420000    0.29110000    0.57530000    0.00000000  0.00000000  0.00000000
        0.64050000    0.78420000    0.57530000    0.00000000  0.00000000  0.00000000
        0.35950000    0.21580000    0.42470000    0.00000000  0.00000000  0.00000000
        0.21580000    0.35950000    0.07530000    0.00000000  0.00000000  0.00000000
        0.78420000    0.64050000    0.92470000    0.00000000  0.00000000  0.00000000
    

    ...which gave a charge error of 0.04 e.

    To improve on this, you may need to promote some core electrons to the valence, but I think the error is negligible for most purposes.

    lmaxpaw is large (8 by default) in order to converge the matching of the orbitals at the muffin-tin boundary. lmaxo can be smaller than this because the density is averaged over all orbitals and is thus more 'spherical'.

    Regards,
    Kay.

     

Log in to post a comment.