Is there a way to make bader program use a reference charge file specified as gaussian cube file ?
Or is there a free tool to convert my gaussian cube file to vasp format ?
Thank you, Maciek
Bader with Gaussian cube reference
Moderator: moderators
I would appreciate it very much if you could implement reading of cube reference!
I am trying to write cube->chgcar converter but I am stuck with debuging. Integrated number of electron is the same whenever I use cube or converted chgcar but the distribution over atoms is different. I tried different units (Bohr/A), loops ordering for grid (z or x first) but I cant locate bug.
Could you point me to very detailed description of CHGCAR format ?
I cant find on the web so my work is revese engineering.
I am trying to write cube->chgcar converter but I am stuck with debuging. Integrated number of electron is the same whenever I use cube or converted chgcar but the distribution over atoms is different. I tried different units (Bohr/A), loops ordering for grid (z or x first) but I cant locate bug.
Could you point me to very detailed description of CHGCAR format ?
I cant find on the web so my work is revese engineering.
I wrote a simple Cube to CHGCAR converter. I tested it on one of my G98 cube files and it seems to work (The output CHGCAR file gives the same results with Bader program).
Please feel free to use and modify it:
http://www.chem.univ.gda.pl/~maharan/cube2chgcar.c
Please feel free to use and modify it:
http://www.chem.univ.gda.pl/~maharan/cube2chgcar.c
patch for cube format as reference input
I've made a patch which allows bader to read cube files as reference densities:
http://dcwww.camd.dtu.dk/~jovo/bader_cuberef.diff
Run
patch -p1 <somepath/bader_cuberef.diff
inside the bader source directory to apply the patch.
Bader will distinguish between cube and chgcar automatically.
http://dcwww.camd.dtu.dk/~jovo/bader_cuberef.diff
Run
patch -p1 <somepath/bader_cuberef.diff
inside the bader source directory to apply the patch.
Bader will distinguish between cube and chgcar automatically.