a problem about optimization

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

Moderator: bguster

Locked
jiangx3
Posts: 32
Joined: Fri Apr 30, 2010 9:33 pm

a problem about optimization

Post by jiangx3 » Tue May 25, 2010 10:52 pm

Dear All,

I want to optimize a strained graphene, which is expanded in y direction(zigzag direction). While, actually, I have to fix the atoms in y-direction, and atoms can move in y and z direction. I attach the input file here. However, I got BUG as followings:

fxphas : BUG -
The eigenvector number 1 has zero norm.
Action : contact ABINIT group.

It seems that all of the coordinates go to zero.

Did anyone have this problem before? Would you please tell me how to optimize such structure? Thanks in advance!
Attachments
g.in
(1.81 KiB) Downloaded 464 times

jiangx3
Posts: 32
Joined: Fri Apr 30, 2010 9:33 pm

Re: a problem about optimization

Post by jiangx3 » Tue May 25, 2010 10:55 pm

I am sorry that the attachment is not easy to read. I tried to attach it in .txt form but the system tells me that this form is not allowed.

mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

Re: a problem about optimization

Post by mverstra » Wed May 26, 2010 9:20 am

Hello Jiang,

the input file looks more or less ok except:
1) you should specify shiftk 0 0 0 as you originally did. The default 0.5 0.5 0.5 is inappropriate for graphene
2) your rprim is not precise enough. If you want a 60 degree unit cell you need to give sqrt(3)/2 ~ 0.866 with much more precision (10 digits by default). Also your a and b are not equal. Abinit will never find the correct symmetries this way.
3) your ecut is quite low. Even with PAW (which you are not using yet) 12 Ha is very low for carbon. This could be the source of your zero length vector

For more analysis of the error you got we need to see the output.

Matthieu
Matthieu Verstraete
University of Liege, Belgium

jiangx3
Posts: 32
Joined: Fri Apr 30, 2010 9:33 pm

Re: a problem about optimization

Post by jiangx3 » Wed May 26, 2010 3:09 pm

Hi Matthieu,

Thanks very much! I modify the input variables you pointed out to see if I can get the correct answer.
I am doing strained graphene, which means a or b is expanded or compressed, so a and b are different in this condition.
I attach the output file here and could you take a look at that? Thanks so much!


Best regards,
Xueping Jiang
Attachments
g.out
(118.1 KiB) Downloaded 289 times

mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

Re: a problem about optimization

Post by mverstra » Wed May 26, 2010 4:51 pm

Hello again,

* you should probably not be fixing the atomic positions. Leave that to the symmetry and start with reduced coordinates.
Further, your positions are not relaxing very quickly, though the stress is very small so something seems wrong.
* Again, your ecut is probably too small.
* Your optcell may be incorrect - how do you actually want to relax the cell?

Matthieu
Matthieu Verstraete
University of Liege, Belgium

jiangx3
Posts: 32
Joined: Fri Apr 30, 2010 9:33 pm

Re: a problem about optimization

Post by jiangx3 » Thu May 27, 2010 10:37 pm

Dear Matthieu,

I took your advice and changed the input variables:
1. ecut is changed to be 30
2. rprim is more precise
But warning says that nstep=50 is not enough for gradient to converge.

fconv : WARNING -
ntime= 50 was not enough Broyd/MD steps to converge gradients:
max grad (force/stress) = 1.2683E-02 > tolmxf= 5.0000E-05 ha/bohr (free atoms)

I can see the gradient is far from the set value, and it seems that it would not converge at all.


because for this optimization, I have to fix the positions of atoms in y-direction, I can only relax the atoms in x- and z-directions. Also, I can optimize the acell.

What optcell should I choose?

I attach the input file and output file here. Could you take a look at that? Thanks so much!

Best regards,
Xueping Jiang
Attachments
g.in
the input file
(1.82 KiB) Downloaded 340 times
g.out
the output file
(158.63 KiB) Downloaded 270 times

riemann
Posts: 2
Joined: Sat Oct 27, 2012 10:21 pm

Re: a problem about optimization

Post by riemann » Sat Oct 27, 2012 11:14 pm

Dear Abinit User

I want to construct graphene nanoribbon lattice in Abinit for relaxation, But since i am beginer i dont know

how i should write down input file for relaxation running.

You do favor if You give me any file about it as sample.

Sincerely Yours

Riemann

maryamsajedi
Posts: 11
Joined: Thu Sep 20, 2012 4:07 pm

Re: a problem about optimization

Post by maryamsajedi » Sat Dec 22, 2012 1:08 pm

Dear all users,
I have a difficulty in relaxation of 47 atoms of Si. Below is the input file that I give. #Unit cell definition acell. (xred is in angstrom). How can I modify the input file to run it without any comments , warning or errors and what should I do to lessen the time taken for running relaxation structure?
Thank you for your time.
Attachments
si_relaxedion.in
(3.94 KiB) Downloaded 268 times

maxim
Posts: 78
Joined: Wed May 19, 2010 1:17 pm
Location: Institute of Silicate Chemistry of Russian Academy of Sciences, Saint-Petersburg, Russia

Re: a problem about optimization

Post by maxim » Sat Dec 22, 2012 1:49 pm

Dear maryamsajedi!

For geom. optim. replace "xred" with "xangst", set occopt to 1, remove ndtset and jdtset - I can not understand in the input file that will change in your datasets?
If you use PAW pseudopotentials, then iscf=17 is correct, otherwise remove it or set it to 7.
M.Yu. Arsent'ev
Institute of Silicate Chemistry of RAS
tikhonov_p-a@mail.ru

maryamsajedi
Posts: 11
Joined: Thu Sep 20, 2012 4:07 pm

Re: a problem about optimization

Post by maryamsajedi » Sat Dec 22, 2012 7:36 pm

Dear Maxim,
Thank you very much for your help. I took your advice and changed the input variables. By the way, I have choosen 14-Si.nlcc.UPF for pseudopotential.
But in output these warnings and comments appeared.

WARNING - These should obey zval-nelect_occ=charge to better than 0.10E-10
Action : check input file for occ,wtk, and charge.
Note that wtk is NOT automatically normalized when occopt=2,
but IS automatically normalized otherwise.


setmqgrid : COMMENT -
The number of points "mqgrid" in reciprocal space used for the
description of the pseudopotentials has been set automatically
by abinit to : 10804.

I attach the input file here. Maybe you can tell me what to do to fix it. Thanks so much!

Best regards,
Maryam
Attachments
si_relaxedion.in
(3.88 KiB) Downloaded 227 times

maxim
Posts: 78
Joined: Wed May 19, 2010 1:17 pm
Location: Institute of Silicate Chemistry of Russian Academy of Sciences, Saint-Petersburg, Russia

Re: a problem about optimization

Post by maxim » Sat Dec 22, 2012 10:35 pm

Pls give me your output file. Remove nband - this warning will disappear, but abinit will set it's own nband, which is more than your 120 bands. Run without nband and look at "occ" in output file - then set nband to number of filled bands.

Best wishes, Maxim.
M.Yu. Arsent'ev
Institute of Silicate Chemistry of RAS
tikhonov_p-a@mail.ru

maryamsajedi
Posts: 11
Joined: Thu Sep 20, 2012 4:07 pm

Re: a problem about optimization

Post by maryamsajedi » Sun Dec 23, 2012 9:28 am

Dear Maxim,
I removed nband and ran it, but the same warning occurred, abinit set its own nband to 100. Then, I ran it with nband 100.
This is the out put file (log file).
Thank you very much indeed for your time.
Warm regards,
Maryam
Attachments
si_relaxedion.log
(31.86 KiB) Downloaded 220 times

maxim
Posts: 78
Joined: Wed May 19, 2010 1:17 pm
Location: Institute of Silicate Chemistry of Russian Academy of Sciences, Saint-Petersburg, Russia

Re: a problem about optimization

Post by maxim » Sun Dec 23, 2012 10:39 am

Try another psp (e. g. FHI) - note ecut should be different. You can try PAW psps (http://www.abinit.org/downloads/PAW2/AT ... index.html) - it could be even better - see examples for Tutorial PAW 1.

Best wishes, Maxim.
M.Yu. Arsent'ev
Institute of Silicate Chemistry of RAS
tikhonov_p-a@mail.ru

maryamsajedi
Posts: 11
Joined: Thu Sep 20, 2012 4:07 pm

Re: a problem about optimization

Post by maryamsajedi » Sun Dec 23, 2012 12:14 pm

Dear Maxim,
I tried Si_ps.abinit.paw for psp but I have no idea for ixc. The warning did not disapeared. Would you please check the new input file?
Thanks a lot.
Regards,
Maryam
Attachments
si_relaxedion.in
(3.88 KiB) Downloaded 226 times

maryamsajedi
Posts: 11
Joined: Thu Sep 20, 2012 4:07 pm

Re: a problem about optimization

Post by maryamsajedi » Sun Dec 23, 2012 12:14 pm

This is the output file.
Attachments
si_relaxedion.log
(31.83 KiB) Downloaded 204 times

maryamsajedi
Posts: 11
Joined: Thu Sep 20, 2012 4:07 pm

Re: a problem about optimization

Post by maryamsajedi » Sun Dec 23, 2012 1:26 pm

I forgot to say that the code stops with tihis error:
chkpawovlp : ERROR -
PAW SPHERES ARE OVERLAPPING !
Distance between atoms 7 and 33 is : 1.78461
PAW radius of the sphere around atom 7 is: 1.90454
PAW radius of the sphere around atom 33 is: 1.90454
This leads to a (voluminal) overlap ratio of 34.87 %

maxim
Posts: 78
Joined: Wed May 19, 2010 1:17 pm
Location: Institute of Silicate Chemistry of Russian Academy of Sciences, Saint-Petersburg, Russia

Re: a problem about optimization

Post by maxim » Sun Dec 23, 2012 1:47 pm

Have you performed convergence in ecut? Put pawecutdg at least twice bigger than ecut. Remove ixc, occopt and tsmear. Your cell is very big - is it a supercel? If yes, tnan ngkpt should be less dense. Try another ngkpt (e. g. 4 4 4 for 1 unit cell, but if you have e. g. 2x2x2 supercell, then it should be 2 2 2). Then to save CPU time perform convergence in toldfe in forces - if your forces are not converget at even 10^-12, then use tolvrs 10^-22. To solve PAW overlapping problem select psps with small PAW radius (http://www.abinit.org/downloads/PAW2/AT ... index.html). Plot your structure in e.g. Diamond and check that all interatomic distances are relevant.

Best wishes, Maxim.
M.Yu. Arsent'ev
Institute of Silicate Chemistry of RAS
tikhonov_p-a@mail.ru

maryamsajedi
Posts: 11
Joined: Thu Sep 20, 2012 4:07 pm

Re: a problem about optimization

Post by maryamsajedi » Sun Dec 23, 2012 11:10 pm

Dear Maxim,
Thank you so much indeed for your help. The warning has vanished as I took your advice. It is now running without any problem. By the way its not a supercell.
Regards,
Maryam

maxim
Posts: 78
Joined: Wed May 19, 2010 1:17 pm
Location: Institute of Silicate Chemistry of Russian Academy of Sciences, Saint-Petersburg, Russia

Re: a problem about optimization

Post by maxim » Tue Dec 25, 2012 7:25 am

I forgot to tell you - are you sure that these shiftk and ngkpt are suitable for your structure? I'm not sure - for proper kpoint grid remove shiftk and ngkpt and set prtkpt 1, and set kptrlen to 60-70, see viewtopic.php?f=8&t=96&p=300&hilit=prtkpt+1+kptrlen#p300 .

Best wishes, Maxim.
M.Yu. Arsent'ev
Institute of Silicate Chemistry of RAS
tikhonov_p-a@mail.ru

Locked