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

Defining anisotropies #570

Open
davidcortesortuno opened this issue Jun 21, 2020 · 3 comments
Open

Defining anisotropies #570

davidcortesortuno opened this issue Jun 21, 2020 · 3 comments

Comments

@davidcortesortuno
Copy link

Hi, is it possible to add more than a single uniaxial anisotropy in the inpute file? Or is it possible through the Python API? Can I also add a cubic anisotropy?
I could not find any information in the docs, I only saw that there is a way to specify anisotropy from a file.

@MSallermann
Copy link
Member

Hi, in the input file you can specify multiple uniaxial anisotropies by a syntax like this:

n_anisotropy 2
i Kx Ky Kz K
0  0  0  1  2
1  1  0  0  1

The feature is briefly described in here https://spirit-docs.readthedocs.io/en/latest/core/docs/Input.html.
The first column is the index of the spin in the basis cell to which the anisotropy is applied. Then we have the components of the normalized direction vector and lastly the strength of the anisotropy.
Unfortunately, a cubic aniostropy is not implemented at this time.

@Zeleznyj
Copy link
Contributor

Hi, I've implemented a cubic anisotropy, based on suggestions provided by @GPMueller. You can check the code here, I've tested it and it seems to be working fine. It is a fairly old version of Spirit though, I've implemented it a year ago and did not update to the newest version.

@GPMueller
Copy link
Member

@Zeleznyj if you'd like you could try to branch from the most recent develop version and create a pull request, would be cool to have cubic anisotropy in Spirit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants