Unable to reproduce magnetic moment for YbN

Total energy, geometry optimization, DFT+U, spin....

Moderator: bguster

Locked
fhssn1
Posts: 36
Joined: Mon Feb 26, 2018 7:52 pm

Unable to reproduce magnetic moment for YbN

Post by fhssn1 » Thu Apr 12, 2018 6:27 am

I'm trying to reproduce the results of one REN (YbN) out of the many REN (rare-earth nitrides) that the following paper has published:

Topsakal, Wentzcovich - Accurate projected augmented wave (PAW) datasets for rare-earth elements (RE = La–Lu)

I'm using their PAW dataset, with GGA-PBE for Yb, while I'm using JTH-GGA-PBE PAW dataset for N. I've set nsppol to 2. For spinat I'm not sure what to use but I've tried various options like:

0.0 0.0 4.0
0.0 0.0 -4.0

and so on. I have done convergence studies and the lattice parameter matches that in the paper.

Here is the problem. The magnetic moment in the main calculation turns out to be much smaller than their published value: 8e-5 (mine) vs 0.14 (published). (The units used are either Bohr-magneton-per-cell, uB-per-cell or just Bohr-magneton (uB), but I haven't been able to tell which. The paper uses uB-per-cell in the caption of one figure, but then simply uses Bohr-magneton uB in the table in the supplement. By uB, I mean mu-sub-B).

As a result, the spin-up and spin-down DoS plots look identical. Whereas the paper shows the up and down plots to be different enough to be noticeable.

The input file is as follows. Kindly let me know what I'm doing wrong (I had not problem going through the spin tutorial but when I run my own system, I'm unable to get a reasonable value of magnetic moment).

Code: Select all

kptopt 1
nshiftk 4
shiftk
    0.5 0.5 0.5
    0.5 0.0 0.0
    0.0 0.5 0.0
    0.0 0.0 0.5

ngkpt  6 6 6
toldfe 1.0e-9

occopt 3
tsmear 0.01

#nsym 0
#chkprim 0
pawovlp -1
prteig 0
prtden 1
prtcif 0
usexcnhat -1
#chksymbreak 0
paral_kgb 0

# Structural parameters
ntypat   2
znucl    70 7
natom    2

            acell      6.4463871158E+00  6.4463871158E+00  6.4463871158E+00
            rprim      0.0000000000E+00  7.0710678119E-01  7.0710678119E-01
                       7.0710678119E-01  0.0000000000E+00  7.0710678119E-01
                       7.0710678119E-01  7.0710678119E-01  0.0000000000E+00
            typat      1  2
           xangst      0.0000000000E+00  0.0000000000E+00  0.0000000000E+00
                       2.4121400262E+00  2.4121400262E+00  2.4121400262E+00

nband 40
nsppol 2
spinat
    0.0 0.0 4.0
    0.0 0.0 -4.0

#Definition of the planewave basis set
ecut 20.0         # Maximal kinetic energy cut-off, in Hartree
pawecutdg 40

#Definition of the SCF procedure
nstep 100          # Maximal number of SCF cycles
ixc -101130
Last edited by fhssn1 on Thu Apr 12, 2018 7:58 am, edited 1 time in total.

fhssn1
Posts: 36
Joined: Mon Feb 26, 2018 7:52 pm

Re: Unable to reproduce magnetic moment for YbN

Post by fhssn1 » Thu Apr 12, 2018 6:30 am

Just to add, this is the VLab PAW RE datasets paper, which is also recommended on this forum by the ABINIT team. (http://www.vlab.msi.umn.edu/resources/repaw/index.shtml)

So is it possible any members of the ABINIT team have already run and verified at least part of that paper, and if yes, are they willing to share their input file?

Or does anyone know if the authors of the paper are easily reachable (someone from the ABINIT team might be in touch with them) and I could get an abinit input file from them.

Any help highly appreciated. Thanks.

edit: I emailed the address listed on the VLab website but I got an address not found error.

fhssn1
Posts: 36
Joined: Mon Feb 26, 2018 7:52 pm

Re: Unable to reproduce magnetic moment for YbN

Post by fhssn1 » Tue Apr 17, 2018 10:57 am

Ok, after a lot of trial and error, I've been able to do a calculation that can at least give 'Total magnetization (exact up - dn)' that is not in the 1e-5 range, but higher. This is as a result of discovering two keywords magconon and magcon_lambda, which have absolutely no mention in the tutorial on spin.

I have used magconon as 1, with various values of magcon_lambda (from 1e-5, all the way up to the default of 1e-2).

For 1e-5, I get a total magnetic moment of around 0.2x,
For 1e-4, I get 0.5x
For 1e-3, I get 0.8x

and so on (the exact values might be off). Point being, there is no way to know which is the correct value. I'm not having convergence issues for a small k-point grid (ngkpt 2 2 2) for any of these magcon_lambda values. And I know my system's magnetic moment beforehand (0.14 uB-per-cell based on PAW dataset that I'm using, 0.22 uB-per-cell based on an AE calculation, as referenced in the supplementary pdf of the Topsakal, Wentzcovitch paper). By carefully choosing the value of magcon_lambda, I can reproduce either 0.14 or 0.22, or any other value I like. Conclusion: This result is probably nonsense.

Kindly advise on how to go about doing a proper magnetic moment calculation for my system, how to know if this is collinear magnetism, or non-collinear, what combination of parameters have to be used, what additional convergence studies have to be carried out (beyond k-point, ecut, relaxation studies).

I have three more questions pending in this Ground State section of this forum, and for more than a week there haven't been any answers (in addition to two question unanswered for probably almost a month).

ebousquet
Posts: 469
Joined: Tue Apr 19, 2011 11:13 am
Location: University of Liege, Belgium

Re: Unable to reproduce magnetic moment for YbN

Post by ebousquet » Wed Apr 18, 2018 10:00 pm

Dear fhssn1,
Easter vacation period slowed down the activities on the forum...
I would advise to start your calculation with a much higher spinat, don't hesitate to put 10 or more, the problem is that at the beginning of the SCF the noise is so large that the magnetisation is fluctuating a lot. I don't advise you to use constrained magnetic moment for these calculations, you should get the right ground state without constraints otherwise, as you mention, hard to tell which value is correct, though you could plot the total energy versus the moment amplitude to find the minimum.
We are working right now on the magnetic part of Abinit (mostly the non-collinear+SOC) and once this will be done we will update the tuto on spins that has not been updated since a long while...
The rare-earth with f-electrons will be tricky once away from Gd/Eu and you have to make your own experience. Reproducing the Wentzcovich results is a very good point. In the paper there is also an email address, right? Otherwise try to find it on the University website.
I would also remark that the moment is very small and this could be very sensitive to convergence parameters, test how it goes by increasing ecut and k-points.
All the best,
Eric

fhssn1
Posts: 36
Joined: Mon Feb 26, 2018 7:52 pm

Re: Unable to reproduce magnetic moment for YbN

Post by fhssn1 » Wed Apr 18, 2018 10:36 pm

Thanks so much Eric for the quick responses today. I will take your advice into account.

fhssn1
Posts: 36
Joined: Mon Feb 26, 2018 7:52 pm

Re: Unable to reproduce magnetic moment for YbN

Post by fhssn1 » Thu Apr 19, 2018 7:25 am

I have done ndtset studies for both unconstrainted (spinat ranging from [0,0,1.0] going up to [0,0,12.0]) as well as constrained (magconon_lambda at 1e-5, 1e4, 1e-3, 1e-2, etc, at fixed spinat [0,0,4]). I'm unable to reach any conclusions:

- I am using spinat for Yb and N like this: [0,0,value], [0,0,-value]. At [0,0,5] and beyond I started receiving a warning that atom type 2 (Nitrogen) has spinat value higher than zion(ia) (I don't know what that is). So I stopped increasing Nitrogen's spinat past [0,0,-5].

- I am using nstep of 100 and toldfe of 1e-10, I'm using very low ngkpt (2, 2, 2) but I have tried (4, 4, 4) too but it doesn't improve the trends while taking way longer in computational time.

- For an initial ndtset of 6 values [0,0,1] up to [0,0,6], the magnetization (the line 'Total magnetization (exact up - down)' in log file) started increasing beyond 1e-5 uB so this was good, but after [0,0,4] it would run for all 100 SCF iterations and report convergence failure.

- In the second run I went from [0,0,4.0] up to [0,0,6.0] in steps of [0,0,0.2] and that's when I found out about the zion(ia) warning. So I pinned Nitrogen spinat at [0,0,-4.8] and increased Yb spinat only. But now magnetization would decrease back to 1e-5 order range even with SCF convergence, past let's say [0,0,4.4]

- So I started looking at the range [0,0,4.0] to [0,0,4.4], but now I have to ask myself, am I trying to "maximize" the value of Total magnetization. If yes, then I should see some kind of "trend" like an inverse parabolic relationship between spinat value (x-axis) and magnetic moment value (y-axis), but that's not the case, there's a bit of randomness to it, plus some unpredictability to when it converges within 100 iterations and when it fails.

- All said above is for unconstrained. For constrained, SCF converges for magcon_lambda of 1e-5, 1e-4, and 1e-3, and fails for 1e-2 and above (this is for spinat fixed at Yb:[0,0,4], N:[0,0,-4]). Well, can we get a trend from the 3 converged datapoints? The total energy keeps decreasing going from 1e-5 to 1e-3, while the magnetic moment (this time using the 'Magnetization (Bohr magneton' line in log file) is 0.026, 0.21, 0.61. But 0.61 is already 3 times higher than the reported 0.14 or 0.22, so it doesn't look like total-energy-vs-magnetic-moment estimation is going to help.

As for the f-electron problem, that's going to be an issue for all REN systems in Topsakal-Wentzcovich paper. And if I have to do something more reliable first (i.e., some known magnetic system that doesn't have f-electrons), could you point me to a known non-f-electron system for which I could do unconstrained magnetic moment calculation and the result matches (or is close to) a known value (whether ab initio or empirical)?

I appreciate your response. (In the meantime, I'll keep trying to get in touch with Topsakal, also maybe I should try GdN instead of YbN which is a much smaller magnetic moment, 0.14 uB compared to GdN's 7 uB).

fhssn1
Posts: 36
Joined: Mon Feb 26, 2018 7:52 pm

Re: Unable to reproduce magnetic moment for YbN

Post by fhssn1 » Thu Apr 19, 2018 8:29 am

To elaborate further, I think the randomness may have been due to using too little k-points (ngkpt 2 2 2). I ran it again with ngktp 6 6 6 and the magnetization goes even lower. The values so far are as follows:

Magnetization (Bohr magneton)= 5.29398019E-08
Magnetization (Bohr magneton)= 2.28816879E-06
Magnetization (Bohr magneton)= 6.90091637E-06
Magnetization (Bohr magneton)= 6.83527776E-06
Magnetization (Bohr magneton)= 1.17640749E-07

These are for Yb:[0,0,z], N:[0,0,-z] with z values of 4.62, 4.64, 4.66, 4.68, 4.70.

As you can see, magnetization increases to 6.9e-6 uB then starts going down again. So I'm not sure what to make of this.

ebousquet
Posts: 469
Joined: Tue Apr 19, 2011 11:13 am
Location: University of Liege, Belgium

Re: Unable to reproduce magnetic moment for YbN

Post by ebousquet » Thu Apr 19, 2018 9:28 am

Dear fhssn1,
I think the problem here is regarding physics of magnetism. What gives magnetism is when you have partially filed electronic states and so in YbN only Yb is magnetic (and whatever RE nitrites). Why do you want to initialize a magnetic moment on N? This will clearly not help the SCF to converge, thought the program should ends up to the ground state.
Another point is that you are considering the ferromagnetic states, while antiferromagnetic phase might be the ground state (I don't remember it, but please check in the literature). To what I see, in the ferromagnetic configuration you obtain a magnetic moment that is zero.
At this level, I think you are right to train with a simpler system, you could do it with FeO or MnO, which have the same crystallographic symmetry as rare earth nitrites and where you can find much more literature.
Best wishes,
Eric

fhssn1
Posts: 36
Joined: Mon Feb 26, 2018 7:52 pm

Re: Unable to reproduce magnetic moment for YbN

Post by fhssn1 » Thu Apr 19, 2018 9:36 am

I increased ngkpt to 8 8 8, nstep to 200, ecut is 20.0, pawecutdg 40.0. And used very high values for z component of Yb's spinat (from 10 to 32). And following are the results (spinat vs magnetic-moments):

1.0000000000E+01 1.75317468E+00
1.2000000000E+01 2.33364378E-06
1.4000000000E+01 5.18211156E-07
1.6000000000E+01 9.06064415E-08
1.8000000000E+01 3.40028130E-06
2.0000000000E+01 5.01829896E-01
2.4000000000E+01 3.72375927E+00
2.8000000000E+01 5.36824214E-06
3.2000000000E+01 2.94426838E-06

the rows for which magnetic moment is not too low (e.g., first row, and sixth, seventh rows) are because of SCF convergence failure. Otherwise we can see that the computation is unable to raise the magnetic moment to a significant enough level to be close to 0.14 or 0.22 uB reference values. Furthermore, there is no trend that could be inferred from the low values.

The email address of Dr. Topsakal in the paper and VLab website gives a could-not-reach error return. I'm trying to see if there is any other way to contact Dr. Topsakal.

ebousquet
Posts: 469
Joined: Tue Apr 19, 2011 11:13 am
Location: University of Liege, Belgium

Re: Unable to reproduce magnetic moment for YbN

Post by ebousquet » Thu Apr 19, 2018 9:40 am

In view of the smallness of the magnetic moment, ecut=20 might be too low for this complicated case. You are playing with difficult system, Yb3+ is 4f13, which is not an easy guy...

fhssn1
Posts: 36
Joined: Mon Feb 26, 2018 7:52 pm

Re: Unable to reproduce magnetic moment for YbN

Post by fhssn1 » Thu Apr 19, 2018 9:42 am

Eric, thanks for your two responses. Between FeO, MnO, higher ecut, and turning N spinat off, I think I have a handful of direction to try. I will work on it and see if I get more updates.

fhssn1
Posts: 36
Joined: Mon Feb 26, 2018 7:52 pm

Re: Unable to reproduce magnetic moment for YbN

Post by fhssn1 » Sat Apr 21, 2018 11:03 pm

Eric, I just realized I missed a line in PAW paper that mentioned that the calculations were carried out using '+U' formalism (I originally thought +U was used only to generate U fitting values but not for non-AE result validation against AE).

I hope this turns out to be a key point and fixes my result (after I use +U myself). I've been putting off use of '+U' because I haven't been through the tutorial yet. But it looks like I need it now.

I will keep you updated. Thanks.

fhssn1
Posts: 36
Joined: Mon Feb 26, 2018 7:52 pm

Re: Unable to reproduce magnetic moment for YbN

Post by fhssn1 » Sun Apr 22, 2018 12:54 am

Eric, I have good news. I conducted a '+U' run with the U value reported in the paper and, with a few other changes in the input file (increase of ecut from 20 Ha to 25 Ha and pawecutdg from 40 Ha to 60 Ha, setting N spinat to zero), I was able to get a magnetic moment of 0.183 uB, which is between the reported non-AE (0.14) and AE (0.22) values.

Though I used a J value as 10% of U (U: 3.0 eV, J: 0.3 eV) but the paper says it didn't consider J (meaning probably they used J: 0 eV) which would require further investigation and extend the scope of the paper.

In addition, they reported U values for both f shells, and d shells. I realized we can only specify one of f or d using lpawu. Is it possible to use both U_f and U_d in one calculation in ABINIT?

ebousquet
Posts: 469
Joined: Tue Apr 19, 2011 11:13 am
Location: University of Liege, Belgium

Re: Unable to reproduce magnetic moment for YbN

Post by ebousquet » Sun Apr 22, 2018 2:11 pm

Great, this is a very good news :)
The problem with DFT+U is that you have to check how the different properties change with the U/J parameters, usually the ones reproducing the experiments are the one to use...
It is not (yet) possible to apply a different U for two different orbitals of the same atom in Abinit, but correcting the f is already quite good for the rare earths, thought it can understood to apply one on the d too (or to use hybrid functionals).
All the best,
Eric

Locked