KSS file with spin polarization?

External optional components of Abinit (BigDFT, Wannier90...) and codes using/providing data from/to Abinit (AtomPAW, ONCVPSP, EXC, DP, Yambo...)

Moderators: ebousquet, bxu

Locked
tchanier
Posts: 12
Joined: Wed Dec 16, 2009 5:29 pm

KSS file with spin polarization?

Post by tchanier » Mon Apr 12, 2010 6:53 pm

Dear colleagues,

I want to generate a KSS file for a spin polarized calculation for post-processing treatment. How can I edit a file.kss which is a binary file? What is the structure of this file?

Best,

Thomas Chanier

dcaliste
Posts: 44
Joined: Thu Oct 22, 2009 9:15 am
Contact:

Re: KSS file with spin polarization?

Post by dcaliste » Mon Apr 19, 2010 9:49 am

Hello,

Do you mean that you want to create a KSS file outside ABINIT and use this file there after ? If indeed, I would suggest to use the ETSF version of this file if your post-processing tool can read ETSF files (based on NetCDF). The ETSF format is based on NetCDF and can thus be edited using ncdump and ncgen (NetCDF executables). The ETSF file format description can be found http://www.etsf.eu/fileformats page.

If you mean that you want to modify / post-process a KSS file generated by ABINIT, here again, use the ETSF file format, putting accesswff = 3 in your input file.

Otherwise, the KSS binary file is a Fortran Binary file whose structure can be guessed reading the Fortran file that handles it : src/67_common/m_io_kss.F90

User avatar
gmatteo
Posts: 291
Joined: Sun Aug 16, 2009 5:40 pm

Re: KSS file with spin polarization?

Post by gmatteo » Tue Apr 20, 2010 3:55 am

We need more information. What kind of postprocessing do you have in mind?
Note that the KSS file is almost equivalent to the WFK file that can be easily
postprocessed via cut3d. You need the KSS file only for performing GW calculations.
The Fortran fileformat of the KSS file is not documented in the abinit tutorial
but for the gory details you might have a look at the Fortran routine that produces it (outkss.F90)
M

Locked