abacus-develop icon indicating copy to clipboard operation
abacus-develop copied to clipboard

How to switch the direction of the quantization axis of spin from z axis to x or y axis

Open fangrh opened this issue 1 year ago • 4 comments

Details

I have a trivial question. When calculating two-dimensional materials, the normal vector should not set to the z axis to improve performance. When setting the spin, the quantization axis defaults to the z direction. But in most cases, in 2D material, the quantization axis is oriented to the normal vector of the 2D materials. I would like to ask, how to set the default quantization axis to the x or y axes?

Have you read FAQ on the online manual http://abacus.deepmodeling.com/en/latest/community/faq.html

  • [X] Yes, I have read the FAQ part on online manual.

Task list for Issue attackers (only for developers)

  • [ ] Understand the problem or question described by the user.
  • [ ] Check if the issue is a known problem or has been addressed in the documentation.
  • [ ] Test the issue or problem on a similar system or environment, if possible.
  • [ ] Identify the root cause or provide clarification on the user's question.
  • [ ] Provide a step-by-step guide, including any necessary resources, to resolve the issue or answer the question.
  • [ ] If the issue is related to documentation, update the documentation to prevent future confusion (optional).
  • [ ] If the issue is related to code, consider implementing a fix or improvement (optional).
  • [ ] Review and incorporate any relevant feedback from users or developers.
  • [ ] Ensure the user's issue is resolved or their question is answered and close the ticket.

fangrh avatar Dec 26 '23 22:12 fangrh

In my practice in Fe5C2 (510) surface, this problem does NOT EXIST, the TMAG and AMAG are both 143 - 145 and 154 - 156 no matter I set normal vector to y-axis or z-axis. I am using 405 function of ATOMKIT, which can switch the x/y/z lattice vector in cell. and when normal vector is set along y-vector, the MPI parallel function will be accelerated.

In my opinion, the nspin=2 does NOT mean that the spin axis is fixed along z-direction, but means that spin-up and spin-down is collinear, and the freedom of spin is 2.

QuantumMisaka avatar Dec 27 '23 02:12 QuantumMisaka

That's quite reasonable. The distinct spin axis orientations correspond to different state bases, which will not influence the result(in most cases ? I am not sure.).

However, I'm curious about the impact when applying a magnetic field. It seems that the Hamiltonian might become off-diagonal if the spin axis is not parallel with magnetic field, refers to page 175 of Doctor Warren's thesis. Could this off-diagonal feature potentially influence the performance or the results of the calculations?

I apologize for the numerous questions; I'm relatively new to DFT, and I appreciate your patience.

fangrh avatar Dec 27 '23 19:12 fangrh

@mohanchen Any comments ?

QuantumMisaka avatar Jan 03 '24 07:01 QuantumMisaka

I may not be familiar with this isseu, @dyzheng do you have comments?

mohanchen avatar Jan 28 '24 08:01 mohanchen