Dear ATK users,
Please pardon my ignorance, as I am a new user! I would like to export electron density
in a CUBE format. I can do this in VNL just fine, and I can also have the data outputted into
my output file. Here's what I do in my job file to ask for the CUBE of electron density:
electron_density = ElectronDensity(
configuration=bulk_configuration,
spin=Spin.Sum,
)
nlsave('density.nc', electron_density)
nlprint(electron_density)
I am having a problem though -- the coordinate information for the atoms is not included
in the cubefile and I have to add it manually. Is there a script, or a way to have to get the
cube file in the proper format?
Here's the problem:
CUBE FILE.
OUTER LOOP: X, MIDDLE LOOP: Y, INNER LOOP: Z
0 0.000000e+00 0.000000e+00 0.000000e+00
28 0.000000e+00 1.558687e-01 1.558687e-01
28 1.558687e-01 0.000000e+00 1.558687e-01
28 1.558687e-01 1.558687e-01 0.000000e+00
1.04643e-04 6.94395e-01 1.03695e+00 8.03578e-01 5.12214e-01 3.04839e-01
......(the rest of the file)
In the CUBE FILE, It is saying that there are 0 atoms in my unit cell on line 3. I have to
fix this manually, and then manually insert the missing atomic number & coordinates on
line 7.
Any ideas on how to get this without the extra editing?
Thanks for your help,
John