help to correct input file

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

Moderator: bguster

Locked
ziedhosni
Posts: 19
Joined: Fri Dec 30, 2011 11:41 am

help to correct input file

Post by ziedhosni » Fri Dec 30, 2011 11:46 am

Hello friends,
I try to optimize the cell of fluorapatite. But I am not able to detect the errors in my configuration. So would you help me. I put the input and the log.
thanks
Attachments
test1.in
(2.03 KiB) Downloaded 401 times
log.log
(8.51 KiB) Downloaded 335 times

david.waroquiers
Posts: 138
Joined: Sat Aug 15, 2009 12:45 am

Re: help to correct input file

Post by david.waroquiers » Fri Dec 30, 2011 1:14 pm

Hello,

The typat variable is wrong :

typat 1*10 2*6 3*24 4*2 should be :
typat 10*1 6*2 24*3 2*4

David

ziedhosni
Posts: 19
Joined: Fri Dec 30, 2011 11:41 am

Re: help to correct input file

Post by ziedhosni » Fri Dec 30, 2011 7:45 pm

Thank you very much mr david.
I have already corrected this error and 3 more. But I am blocked by another message:

symatm.F90:212:ERROR
Largest error (above) is so large (0.01) that either input atomic coordinates (xred)
are wrong or space group symmetry data is wrong.
Action : correct your input file.

jolafc
Posts: 34
Joined: Wed Aug 26, 2009 5:37 am

Re: help to correct input file

Post by jolafc » Sun Jan 01, 2012 10:13 pm

Hi,

There is also 2 errors with acell :

Code: Select all

acell 9.430723*2 6.917214    Angstr

should be :

Code: Select all

acell 2*9.430723 6.917214    angstrom

Given your error message, you probably have corrected already 9.430723*2 into 2*9.430723, but writing Angstr instead of angstrom will cause the code to fail to recognise the units and it will therefore suppose you're using bohr instead. That would likely cause an error such as the one you have.

For further advice, it would be helpful that you repost the most recent version of your input and the corresponding .log, so that we can more precisely troubleshoot the problem.

Jonathan

ziedhosni
Posts: 19
Joined: Fri Dec 30, 2011 11:41 am

Re: help to correct input file

Post by ziedhosni » Tue Jan 03, 2012 12:04 am

hello,
I used the following parameters:
brvltt -1
spgroup 176
rprim 9.43072300 0.00000000 0.00000000 -4.71536150 8.16724569 0.00000000 0.00000000 0.00000000 6.91721400 angstrom

so, the program stops after some seconde and i have in output "chkorthsy: ERROR -
The symmetry operation number 2 does not preserve
vector lengths and angles.
The value of the residual is 8.8476E-10.
Action : modify rprim, acell and/or symrel so that
vector lengths and angles are preserved.
Beware, the tolerance on symmetry operations is very small."

then I removed
brvltt -1
spgroup 176
I receive:
"duming stacktrace.."and the program stops
so, i removed comletely these lines
it gives me this output and log.
Sincerely I want to put them as the experiment gave it to me (from CIF file) because it is nearest to the reality when i put more parameters.
Please he me (i use abinit-6.2.3_core2) in windows 7 i5 4gram
Attachments
test1.in
(1.32 KiB) Downloaded 397 times
test1.out
(68.38 KiB) Downloaded 340 times

ziedhosni
Posts: 19
Joined: Fri Dec 30, 2011 11:41 am

Re: help to correct input file

Post by ziedhosni » Tue Jan 03, 2012 8:29 am


jolafc
Posts: 34
Joined: Wed Aug 26, 2009 5:37 am

Re: help to correct input file

Post by jolafc » Tue Jan 03, 2012 10:18 pm

Hi,

What abinit complains about is that the numbers in your rprim aren't precisely enough respecting the symmetries of your space group (spgroup 172). You need to put more significant digits so that the first and second vectors in rprim have the same norm. Four your given values, we have :

9.43072300 - sqrt(-4.71536150^2 + 8.16724569^2) = 0.00000000351103

Abinit whants the number to be precise up to 16 significant digits. So, recalculate your second vector more precisely and it will be OK. You can alternatively just use

Code: Select all

acell 9.430723 9.430723 6.917214
angdeg 90 90 30

(dropping rprim altogether) and you will avoid that kind of problems.

Same thing for the atomic coordinates (xred) : you only give 4 significant digits. This will quite surely make abinit crash. Give 16 digits that respect the symmetry group for each atomic coordinate, to be safe.

By the way, what kind of calculation are you trying to run? I ask because I see in your imput file :

Code: Select all

kpt 2 2 3

which is needed only if you want to run the calculation at a specific k-point in the Brillouin zone and, without kptopt 0, is not even read by the code anyways. If you want to run a calculation with many k-point (to do a ground state calculation), use something like

Code: Select all

kptopt 1
ngkpt 2 2 3
nshiftk 1
shiftk 0.0 0.0 0.5

and do a convergence study on ngkpt (as you do on ecut, for instance), as described in tutorial 3 (see http://www.abinit.org/documentation/helpfiles/for-v6.10/tutorial/lesson_3.html).

Good luck,

Jonathan

ziedhosni
Posts: 19
Joined: Fri Dec 30, 2011 11:41 am

Re: help to correct input file

Post by ziedhosni » Tue Jan 03, 2012 10:58 pm

Thank you very much Jonathan.

I corrected my input according to your advice. Only I want to know how can I enhance my xred cordinate because I have already taken hose values from experimental data (CIF file XDR)

Zied

nleconte
Posts: 9
Joined: Sat Apr 17, 2010 6:52 pm

Re: help to correct input file

Post by nleconte » Wed Jan 04, 2012 10:30 am

It is ok to use the experimental data as a starting point for your relaxation, but in the end, your simulated data may be different from experiment, depending on the approximations you're using. And here, we're even only talking about significant numbers, which is even many orders of smaller lower than what you will get as agreement between experiment and simulation. So, just follow jolafc's advice, and use

Code: Select all

acell 9.430723 9.430723 6.917214
angdeg 90 90 30

to be sure to have the right starting symmetries. Or, recalculate your second vector as to have its norm equal to the first one up to 16 significant digits.

ziedhosni
Posts: 19
Joined: Fri Dec 30, 2011 11:41 am

Re: help to correct input file

Post by ziedhosni » Wed Jan 04, 2012 9:11 pm

Hello everybody,
I think you did not understand me. I am obliged to use the experimental coordinates because I have not another ones. And the abinit accepts only the "perfect" positions to fit space group symmetries. So, have anyone some ideas how to correct the atoms positions to be accepted by the program. I hope I am more understrood.
Zied

nleconte
Posts: 9
Joined: Sat Apr 17, 2010 6:52 pm

Re: help to correct input file

Post by nleconte » Thu Jan 05, 2012 9:06 am

Maybe I still misunderstand you, let's try again :)

The experimental positions you have are almost perfectly symmetric. But ABINIT needs perfectly symmetric positions. So, just make them perfect by hand (using one of both techniques mentioned before). This is no problem, since, after a structural relaxation using LDA, GGA etc, the position of the atoms will change to have the lowest simulated energy configuration. This configuration will, if the the approximations implied by the simulation are sufficient, be very close to your original experimental configuration. If you don't do such relaxation and keep the experimental positions of the atoms as is, you may end up having huge forces on the atoms which is no good working base for future simulations.

I hope this clears things up, otherwise, I still didn't understand your issue...

ziedhosni
Posts: 19
Joined: Fri Dec 30, 2011 11:41 am

Re: help to correct input file

Post by ziedhosni » Thu Jan 05, 2012 9:47 pm

Hi again, :D
Sorry for disturbing you again. :oops:
I send you in this link the experimental parameters as shown by Diamond program. It mentions some atoms of the system:
http://hpics.li/a964e91
I understand for example that it show the position of 2 positions of calcium the 10 calcium of the cell and it conclude the other positions by symmetry.
So, I erased what I put in xred (all the 42 atomes positions) and I put only the "necessairy" positions and I put space group:
I give the link for input.

Do you think it is correct what I do. If it is that, should I mention in natom 42 atoms or only the 7 without counting the atomes deduced by translations.
I give also the errors in the log file:
"
symatm : WARNING -
Trouble finding symmetrically equivalent atoms
Applying inv of symm number 12 to atom number 5 of typat 3
gives tratom= -1.2530E-01 -5.8700E-01 2.5000E-01.
This is further away from every atom in crystal than the allowed tolerance.
The inverse symmetry matrix is -1 -1 0
1 0 0
0 0 -1
and the nonsymmorphic transl. tnons = -0.0000000 -0.0000000 0.5000000
The nearest coordinate differs by 2.877E-01 -4.870E-02 0.000E+00
for indsym(nearest atom)= 5

symatm : WARNING -
Trouble finding symmetrically equivalent atoms
Applying inv of symm number 12 to atom number 6 of typat 3
gives tratom= -8.7200E-02 -3.4940E-01 4.2010E-01.
This is further away from every atom in crystal than the allowed tolerance.
The inverse symmetry matrix is -1 -1 0
1 0 0
0 0 -1
and the nonsymmorphic transl. tnons = -0.0000000 -0.0000000 0.5000000
The nearest coordinate differs by 3.258E-01 1.889E-01 1.701E-01
for indsym(nearest atom)= 5

symatm : WARNING -
Trouble finding symmetrically equivalent atoms
Applying inv of symm number 12 to atom number 7 of typat 4
gives tratom= 3.0815E-33 3.0815E-33 2.4988E-01.
This is further away from every atom in crystal than the allowed tolerance.
The inverse symmetry matrix is -1 -1 0
1 0 0
0 0 -1
and the nonsymmorphic transl. tnons = -0.0000000 -0.0000000 0.5000000
The nearest coordinate differs by 6.163E-33 3.081E-33 -2.400E-04
for indsym(nearest atom)= 7
symatm: atom number 1 is reached starting at atom
1 2 1 2 1 2 1 1 1 1 1 1
symatm: atom number 2 is reached starting at atom
2 2 2 1 1 2 1 1 2 2 2 2
symatm: atom number 3 is reached starting at atom
3 3 3 3 3 3 3 3 3 3 3 3
symatm: atom number 4 is reached starting at atom
4 6 4 5 5 6 5 5 6 4 6 4
symatm: atom number 5 is reached starting at atom
5 6 5 4 5 4 4 5 4 5 6 5
symatm: atom number 6 is reached starting at atom
6 4 5 5 6 4 5 5 6 6 6 5
symatm: atom number 7 is reached starting at atom
7 7 7 7 7 7 7 7 7 7 7 7
symatm: maximum (delta t)= 5.00000E-01 is larger than tol= 1.0000E-08

symatm : ERROR -
Largest error (above) is so large (0.01) that either input atomic coordinates (xred)
are wrong or space group symmetry data is wrong.
Action : correct your input file.

leave_new : decision taken to exit ..."


thank you

zied
Attachments
test1.in
(475 Bytes) Downloaded 328 times

jolafc
Posts: 34
Joined: Wed Aug 26, 2009 5:37 am

Re: help to correct input file

Post by jolafc » Mon Jan 09, 2012 8:08 pm

Hi,

For abinit to generate all the atomic coordinates in the primitive cell from the irreducible set, you need to put

Code: Select all

natom 44
natrd 7


and not

Code: Select all

natom 7


Now, I realize you have only 42 atoms in your cell. Only, abinit finds 44 from your 7 positions and spacce group 176. I also see only 42 atoms when checking a 3D representation of the 44 atoms abinit generated from your 7 experimental positions. That means there are 2 aotms among the 44 that are found 2 times. You need to find which and adjust the position of the atom they were generated from so that abinit understant that it is at a more symmetric positions than he thought.

So, change your input file, run it with abinit (with a low cutoff, for instance 54eV, since the result is unimportant, you just want abinit to generate the symmetrized coordinates), find the 2 coordinates that appear 2 times, find which of the 7 irreducibles cooridnates generated these and correct it.

Good luck,

Jonathan

ziedhosni
Posts: 19
Joined: Fri Dec 30, 2011 11:41 am

Re: help to correct input file

Post by ziedhosni » Sat Jan 14, 2012 8:15 pm

Hello friends,
I liked to use 44 atoms as you said in natom but abinit stop with error related to inability to find 2 extra atom by symmetry. In addition, I do not know the types of the extra atomes. So, I put 42.

Next, I emplyed the irreductible set of atoms =7 from cif file and I specified typat 10*1 6*2 24*3 2*4. The calculation finished without warnings. when I used typat 2*1 1*2 3*3 1*4 to be coherent with irreductible atom set. the calculation finished with this warning:

mkdenpos : WARNING -
Density went < 0 at 336 points
and was set to 1.00E-14. Lowest was -0.12E-01.
Likely due to too low boxcut or too low ecut for pseudopotential core charge.

So, which of typat should I use next time. And is it normal that calculation finishes in some seconds.????
After, I tried optcell 1 and ionmov 3 with the both previous choices. I had no warnings but I found that in output after some seconds:
Components of total free energy (in Hartree) :

Kinetic energy = 0.00000000000000E+00
Hartree energy = 0.00000000000000E+00
XC energy = 0.00000000000000E+00
Ewald energy = 0.00000000000000E+00
PspCore energy = 0.00000000000000E+00
Loc. psp. energy= 0.00000000000000E+00
NL psp energy= 0.00000000000000E+00
>>>>>>>>> Etotal= 0.00000000000000E+00

Other information on the energy :
Total energy(eV)= 0.00000000000000E+00 ; Band energy (Ha)= 0.0000000000E+00

Is this normal.
Thank you.

input:
# Crystalline fluorapatite

# Definition of the unit cell: hexagonal
acell 9.430723 9.430723 6.917214 angstrom
angdeg 90.0 90.0 120.0
ntypat 4
spgroup 176
brvltt -1
znucl 20 15 8 9 # Ca P O F
natom 42
natrd 7
typat 2*1 1*2 3*3 1*4
xred
1/3 2/3 0.0063
0.0193 0.2533 1/4
0.4068 0.3705 1/4
0.3080 0.4924 1/4
0.587 0.4617 1/4
0.3494 0.2622 0.0799
1.0000 0.0000 0.0000
ecut 54 eV
kptopt 1
ngkpt 2 2 3
nshiftk 1
shiftk 0.0 0.0 0.5
nstep 1000
optforces 1
toldfe 1.0d-5 eV

ziedhosni
Posts: 19
Joined: Fri Dec 30, 2011 11:41 am

Re: help to correct input file

Post by ziedhosni » Tue Jan 17, 2012 6:05 pm

please help me!!!!

david.waroquiers
Posts: 138
Joined: Sat Aug 15, 2009 12:45 am

Re: help to correct input file

Post by david.waroquiers » Tue Jan 17, 2012 9:50 pm

Hello,

Your ecut is incredibly low ... 54 eV is ... 2 Hartrees. Even for silicon, you should use an ecut of minimum 8 Hartrees, depending on the property you aim to look for. I would start by increasing the ecut to 30 Hartrees or so (you have oxygen so its at east this cutoff energy). You should then make a convergence study (try with ecut 30, ecut 35, ecut 40 .... until the properties you are looking for do not change anymore within some tolerance ... You can check also with a very high ecut : convergence study from 30 to 60 by step of 5 and then one calculation with ecut 100 for example). Note that if you omit the "eV" in the ecut definition, the default units is Hartrees (1 Hartree ~ 27.211 eV).

You might do the basic tutorial lessons before doing complex systems ... : http://www.abinit.org/documentation/helpfiles/for-v6.10/tutorial/welcome.html => lesson 1, 2, 3 and 4, you will learn many things that you do not need to ask here. And these do not take more than 1 or 2 hours each.

I hope it helps!

David

ziedhosni
Posts: 19
Joined: Fri Dec 30, 2011 11:41 am

Re: help to correct input file

Post by ziedhosni » Tue Jan 17, 2012 10:58 pm

Excuse me!! But I think you have not understand me another time.
I have read the 4 lessons more than 5 times carefully. And I know exactely how it is important a convergence study by increasing ecut. And i know the relation between hartree and eV. This is the chemistry and not abinit ;) .
I chose 54 eV to test the programme. Only when I use ionmov 2 and optcell 1 the programme gives:
Kinetic energy = 0.00000000000000E+00
Hartree energy = 0.00000000000000E+00
XC energy = 0.00000000000000E+00
Ewald energy = 0.00000000000000E+00
PspCore energy = 0.00000000000000E+00
Loc. psp. energy= 0.00000000000000E+00
NL psp energy= 0.00000000000000E+00
>>>>>>>>> Etotal= 0.00000000000000E+00

Other information on the energy :
Total energy(eV)= 0.00000000000000E+00 ; Band energy (Ha)= 0.0000000000E+00



I have tied to add ionmov 2 and optcell 1 to t11.in in lesson 1 to see. the same problem with H2. :o :o :?:
When I do a ground state calculation. It is Ok but in the moment I add ionmov/=0 it gives me those 00000000....
I do not understand why. Normally, the programme shoould be able to calculate the enrgy after cell optimization. :idea:
I hope i am not making you bored with my "stupid" questions of someone who wants to have results without spending time reading help file as you see.
Be sure that if I am posting a question that mean I read all the forum subjects and I did not find my aim.
thank you for your comprehension :roll:

ziedhosni
Posts: 19
Joined: Fri Dec 30, 2011 11:41 am

Re: help to correct input file

Post by ziedhosni » Sun Jan 22, 2012 5:57 pm

I am blocked in my calculation and I did not found anybody to help me to resolve my problem. Please guide me even with flashpoint ... :(

nparikh102
Posts: 1
Joined: Wed Aug 01, 2018 7:25 pm

Re: help to correct input file

Post by nparikh102 » Wed Aug 01, 2018 7:30 pm

Were you able to fix your issue? If so, can you please share final version of your .in file? I am a 10th grader. I need fluorapatite file to interact with TiO2 file. With my skill level I am able to create TiO2 .in file. fluorapatite for now is beyond me. Would appreciate if you can share its file. Thank you.

Locked