Using spgroup in Abinit

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

Moderator: bguster

Locked
M.Hocine TEDJINI
Posts: 17
Joined: Tue Jun 30, 2015 4:49 am

Using spgroup in Abinit

Post by M.Hocine TEDJINI » Thu Nov 19, 2015 1:36 pm

Dear Abinit users :)
Hello,
i want to start calculation of material but i want to use spgroup without Xred or Rprim;
also i read about natrd and brvltt and i try to use that without Xred and Rprim, but calculation don't running Abinit told me it must to put Xred; also i was reading all question here about spgroup in Abinit forum; So my question is:
How to use spgrooup in abinit without Xred and Rprim ( because my problem when i didn't find the primitive vectors & atoms position of some compounds) ?
if there is solution by using PositionsWyckoff in Bilbao Crystallographic Server ( http://www.cryst.ehu.es/ ) ; i want to know it ?
thanks a lot all members
kind regards!

M.Hocine TEDJINI

raul_l
Posts: 74
Joined: Sun Jan 08, 2012 7:45 pm

Re: Using spgroup in Abinit

Post by raul_l » Thu Nov 19, 2015 3:51 pm

Here is an example to get you started. CaWO4 is in space group 88 (tetragonal). If you know rprim and xred, the input can be something like

Code: Select all

scalecart 2*5.2429 11.3737 angstrom
rprim
 -0.5  0.5  0.5
  0.5 -0.5  0.5
  0.5  0.5 -0.5
ntypat 3
znucl  20 74 8
natom  12
typat  1  2  3  3  1  2  3  3  3  3  3  3
xred
  5.0000000000E-01  5.0000000000E-01  0.0000000000E+00
  0.0000000000E+00  0.0000000000E+00  0.0000000000E+00
  2.3630000000E-01  3.2700000000E-01  3.9210000000E-01
  9.3490000000E-01  8.4420000000E-01  6.0790000000E-01
  2.5000000000E-01  7.5000000000E-01  5.0000000000E-01
  7.5000000000E-01  2.5000000000E-01  5.0000000000E-01
  7.7000000000E-02  1.8490000000E-01  5.9070000000E-01
  5.9420000000E-01  4.8630000000E-01  4.0930000000E-01
  5.1370000000E-01  9.2300000000E-01  1.0790000000E-01
  8.1510000000E-01  4.0580000000E-01  8.9210000000E-01
  6.7300000000E-01  6.5100000000E-02  9.0930000000E-01
  1.5580000000E-01  7.6370000000E-01  9.0700000000E-02

If you wanted to use space group information, the input can be

Code: Select all

spgroup   88
brvltt   -1
scalecart 2*5.2429 11.3737 angstrom
ntypat    3
znucl     20 74 8
natom     12
natrd     3
typat     1 2 3
xred
 0 0 0.5
 0 0 0
 0.2414 0.1507 0.0856

Note that you need to know the reduced coordinates of at least some atoms, i.e., typat and xred must always be present. Spacegroup alone is not enough to uniquely identify the material.
Also, If you used the second option, I suggest to copy rprim from the log file into the input file and use that instead. I've found spgroup and brvltt not to work in some circumstances, such as when using spinors.
Raul Laasner
Netherlands Institute for Space Research

M.Hocine TEDJINI
Posts: 17
Joined: Tue Jun 30, 2015 4:49 am

Re: Using spgroup in Abinit

Post by M.Hocine TEDJINI » Sun Nov 22, 2015 3:06 pm

Dear Mr raul_l,
thanks a lot for your reply;
Firstly, I understand all your input variables in your input but in your example i compared your values of this Material CaOZ4 with values in Materials project website ( see this link https://www.materialsproject.org/materials/mp-19426/ ) i think there are not a same why ?, also about scalecart 2*5.2429 11.3737 angstrom ( i think 5.2429 it's mean value of acell " lattice parameter") but i didn't understand why you multiple in 2; and the value of 11.3737 ?
for typat i think it's 1 2 3 3 3 3 not like what do you put " typat 1 2 3 3 1 2 3 3 3 3 3 3 " ? if yes why ?
finally in second option i didn't understand how you generate this values of xred :
xred
0 0 0.5
0 0 0
0.2414 0.1507 0.0856

kind regads!

M.Hocine TEDJINI

raul_l
Posts: 74
Joined: Sun Jan 08, 2012 7:45 pm

Re: Using spgroup in Abinit

Post by raul_l » Mon Nov 23, 2015 11:06 pm

I can't log in to the website that you posted and am thus unable to comment on the differences in the lattice constants. Perhaps they used a different reference. "2*5.2429" is short for "5.2429 5.2429", meaning that that line is parsed into

Code: Select all

 scalecart 5.2429 5.2429 11.3737 angstrom
by abinit. The numbers following typat can be in any order as long as they are coherent with xred. As for xred, I took those numbers from PRB 57, 12 738 (1998). For this particular system, the minimum one should specify are the position of a Ca, W, and O atom. natrd can in principle be greater than 3, but here that would be redundant.
Raul Laasner
Netherlands Institute for Space Research

M.Hocine TEDJINI
Posts: 17
Joined: Tue Jun 30, 2015 4:49 am

Re: Using spgroup in Abinit

Post by M.Hocine TEDJINI » Thu Nov 26, 2015 12:18 pm

dear Mr Raul Laasner,
thanks for reply
for the website, it's easy to log it by google+ or mail like yahoo or by facebook, it's must to log it by this if you want to use this website ( https://www.materialsproject.org/materials/mp-19426/ ),
other way i still don't understand scalecart, what's does mean this values ?? :

Code: Select all

 scalecart 5.2429 5.2429 11.3737 angstrom 


thanks a lot
kind regards!

M.Hocine TEDJINI

raul_l
Posts: 74
Joined: Sun Jan 08, 2012 7:45 pm

Re: Using spgroup in Abinit

Post by raul_l » Thu Nov 26, 2015 2:59 pm

These are the scaling factors for the Cartesian coordinates, which also serve as lattice constants for this system. Instead of writing

Code: Select all

scalecart 2*5.2429 11.3737 angstrom
rprim
 -0.5  0.5  0.5
  0.5 -0.5  0.5
  0.5  0.5 -0.5

you could also write

Code: Select all

rprim
 -4.95382  4.95382  10.7466
  4.95382 -4.95382  10.7466
  4.95382  4.95382 -10.7466

Notice that rprim is given in units of bohr and thererefore the conversion from Å must be performed first. See the documentation for rprim, acell, and scalecart.
Raul Laasner
Netherlands Institute for Space Research

M.Hocine TEDJINI
Posts: 17
Joined: Tue Jun 30, 2015 4:49 am

Re: Using spgroup in Abinit

Post by M.Hocine TEDJINI » Mon Nov 30, 2015 12:55 pm

thanks A lot again,
Now I understood that; thanks
so how about Xred in 2nd option?

Code: Select all

spgroup   88
brvltt   -1
scalecart 2*5.2429 11.3737 angstrom
ntypat    3
znucl     20 74 8
natom     12
natrd     3
typat     1 2 3
xred
 0 0 0.5
 0 0 0
 0.2414 0.1507 0.0856


Kind regards!

M.Hocine TEDJINI

raul_l
Posts: 74
Joined: Sun Jan 08, 2012 7:45 pm

Re: Using spgroup in Abinit

Post by raul_l » Sat Dec 12, 2015 5:04 am

M.Hocine TEDJINI wrote:so how about Xred in 2nd option?

In the caption of Table I in the referenced paper, the A, B, and O atoms (Ca, W, and O in this case) are given the coordinates (0,1/4,5/8), (0,1/4,1/8), and (x,y,z). Using the alternative origin or coordinates, as mentioned in the text, you get the numbers that are supplied to xred. This choice is not unique and is a matter of preference.
Raul Laasner
Netherlands Institute for Space Research

kongkkk
Posts: 3
Joined: Tue Jan 19, 2016 6:44 am

Re: Using spgroup in Abinit

Post by kongkkk » Tue Jan 19, 2016 3:00 pm

raul_l wrote:Here is an example to get you started. CaWO4 is in space group 88 (tetragonal). If you know rprim and xred, the input can be something like

Code: Select all

scalecart 2*5.2429 11.3737 angstrom
rprim
 -0.5  0.5  0.5
  0.5 -0.5  0.5
  0.5  0.5 -0.5
ntypat 3
znucl  20 74 8
natom  12
typat  1  2  3  3  1  2  3  3  3  3  3  3
xred
  5.0000000000E-01  5.0000000000E-01  0.0000000000E+00
  0.0000000000E+00  0.0000000000E+00  0.0000000000E+00
  2.3630000000E-01  3.2700000000E-01  3.9210000000E-01
  9.3490000000E-01  8.4420000000E-01  6.0790000000E-01
  2.5000000000E-01  7.5000000000E-01  5.0000000000E-01
  7.5000000000E-01  2.5000000000E-01  5.0000000000E-01
  7.7000000000E-02  1.8490000000E-01  5.9070000000E-01
  5.9420000000E-01  4.8630000000E-01  4.0930000000E-01
  5.1370000000E-01  9.2300000000E-01  1.0790000000E-01
  8.1510000000E-01  4.0580000000E-01  8.9210000000E-01
  6.7300000000E-01  6.5100000000E-02  9.0930000000E-01
  1.5580000000E-01  7.6370000000E-01  9.0700000000E-02

If you wanted to use space group information, the input can be

Code: Select all

spgroup   88
brvltt   -1
scalecart 2*5.2429 11.3737 angstrom
ntypat    3
znucl     20 74 8
natom     12
natrd     3
typat     1 2 3
xred
 0 0 0.5
 0 0 0
 0.2414 0.1507 0.0856

Note that you need to know the reduced coordinates of at least some atoms, i.e., typat and xred must always be present. Spacegroup alone is not enough to uniquely identify the material.
Also, If you used the second option, I suggest to copy rprim from the log file into the input file and use that instead. I've found spgroup and brvltt not to work in some circumstances, such as when using spinors.

Dear Mr raul_l,
Here you mentioned that " I've found spgroup and brvltt not to work in some circumstances, such as when using spinors.". Would you notice that "spinors" changes the spgroup to be another one.Just like the trouble I meet today.viewtopic.php?f=8&t=3181
Would you mind giving me a hand! Thank you very much!!!

raul_l
Posts: 74
Joined: Sun Jan 08, 2012 7:45 pm

Re: Using spgroup in Abinit

Post by raul_l » Mon Feb 01, 2016 3:01 am

kongkkk wrote:Would you notice that "spinors" changes the spgroup to be another one.

I don't remember the details anymore, unfortunately. It wasn't anything obvious like changing the spgroup. Instead, I got a segfault in the middle of the calculation for no reason, and this only happened to some systems. Maybe it's fixed by now.
P.S. If the OP is happy with the replies, this thread can marked Solved.
Raul Laasner
Netherlands Institute for Space Research

Locked