Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core: cubic anisotropy #531

Open
Zeleznyj opened this issue Jun 4, 2019 · 2 comments · Fixed by #617
Open

Core: cubic anisotropy #531

Zeleznyj opened this issue Jun 4, 2019 · 2 comments · Fixed by #617

Comments

@Zeleznyj
Copy link
Contributor

Zeleznyj commented Jun 4, 2019

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
Copy link
Member

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:

  • add the parameter to the constructor of Hamiltonian_Heisenberg in core/include/engine/Hamiltonian_Heisenberg.hpp and core/src/engine/Hamiltonian_Heisenberg.cpp
  • add the parameter parsing to Hamiltonian_Heisenberg_from_Config in core/src/io/Configparser.cpp, where the Hamiltonian is constructed
  • either add a new functions to Hamiltonian_Heisenberg or simply add the cubic term to the E_Anisotropy and Gradient_Anisotropy functions

@Zeleznyj
Copy link
Contributor Author

Zeleznyj commented Jun 9, 2019

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

@GPMueller GPMueller linked a pull request Apr 26, 2022 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants