QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: yongjunwinwin on June 4, 2011, 18:19

Title: how to export the data of bloch state
Post by: yongjunwinwin on June 4, 2011, 18:19
If I want to plot the isosurface of bloch state with other software like origin. Is there anyway to export the data for plotting because through the 'export' in result viewer panel, I cannot get the detailed data for plotting.
Title: Re: how to export the data of bloch state
Post by: Anders Blom on June 5, 2011, 23:41
True. The problem is, in a nutshell, that the Bloch function is a complex quantity, and as far as I know, at least, the Cube file format can only handle real numbers. So one has to make a choice: do you want the real part, the imaginary part, or the absolute value (or even the phase) in each point? Right now this choice isn't implemented, but I can give some customized script solutions.

In the attached script, you only have to modify the last few lines to indicate

Once you have entered these parameters, run the script on the terminal as "atkpython bloch_to_cube.py", or drop it on Job Manager, but in that case you must specify the full path of the input and output files (if you run on the terminal, and the files reside in the same folder as you are running in, only the file name is needed).