spirit-code / spirit

Atomistic Spin Simulation Framework
http://spirit-code.github.io
MIT License
117 stars 52 forks source link

Core: cubic anisotropy #531

Open Zeleznyj opened 5 years ago

Zeleznyj commented 5 years ago

As far as I could find, there is currently no support for cubic (4th order) anisotropy.

I can try to implement this myself, however, I'm not sure what exactly would have to be modified. I suppose the main thing is modifying the E_Anisotropy and Gradient_Anisotropy functions within the Hamiltonian_Heisenberg.cpp file and of course the input parsing, however I'm not sure if there is anything else within the code that would need to be changed.

GPMueller commented 5 years ago

This is a good suggestion. I believe we will implement it, but probably not so soon.

I believe you have already figured out how to implement it yourself:

Zeleznyj commented 5 years ago

Thanks, I will try to implement this and if I make it work, I will share the code.