What should a 3D magnetization plot (task 73) sum up to?
If I have the " total moment" per cell about 1 - I expect the 3D magnetization plot to integrate to (roughly) the same value.
And, I know that for Elk 3D files, the integral over cell equals S * V / N, where S is the sum of values of the 3D file, V is cell volume and N is the number of points in the 3D file.
Or, which is the same, the integral is the sum times the voxel volume.
For my 3D files, I get the value of about 0.15, which coincides with the ratio between cubic Angstrom and cubic Bohr.
Is there any change that the magnetization density is written in the units of Angstrom^-3?
Best regards.
Andrew
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear Developers,
What should a 3D magnetization plot (task 73) sum up to?
If I have the " total moment" per cell about 1 - I expect the 3D magnetization plot to integrate to (roughly) the same value.
And, I know that for Elk 3D files, the integral over cell equals S * V / N, where S is the sum of values of the 3D file, V is cell volume and N is the number of points in the 3D file.
Or, which is the same, the integral is the sum times the voxel volume.
For my 3D files, I get the value of about 0.15, which coincides with the ratio between cubic Angstrom and cubic Bohr.
Is there any change that the magnetization density is written in the units of Angstrom^-3?
Best regards.
Andrew
Dear Andrew,
Unless stated explicitly, all of Elk's output units are atomic.
Your formula is correct: if S is the sum of the data from MAG3D.OUT, then the moment in the unit cell should be S * V /N.
However, your sampling grid may not be sufficient for resolving the muffin-tin moment. Try increasing the plot3d grid and this should fix the problem.
Regards,
Kay.
Dear Kay,
I've made a test on system with a 10.4 Angstrom side lengh and a 108x108x108 g-vector grid.
The integral as a function of the NxNxN 3D plot grid is:
The best result is obtained without the interpolation (when N_plot = N_g_vector), and the value is what it should be.
The bug was in my integration code: there was a conversion to Angstrom which I was not aware of.
Anyway, I am happy this piece of information is now public :)
Best regards.
Andrew