mailhexu / TB2J

a python package for computing magnetic interaction parameters
BSD 2-Clause "Simplified" License
67 stars 29 forks source link

TB2J to Vampire.UCF #11

Closed DdoraEmone closed 2 years ago

DdoraEmone commented 2 years ago

dear developer,

I checked the VAMPIRE source code and Manual. (ver 5)

VAMPIRE offer 6 exchange interactions format

Manual say 'normalized' but 'normalised' is correct ;)

I checked double counting issue when calculate Tc.

(https://github.com/richard-evans/vampire/blob/4c9651daecc86c3e6b6df0c8055fcd9e89fd900c/src/exchange/energy.cpp)

please check line 102.

VAMPIRE spin hamiltonians are Hexc

When I solve this problem, i get Tc=1038 K of Fe bcc image

best regards, Jun Gyu Lee

DdoraEmone commented 2 years ago

https://github.com/mailhexu/TB2J/blob/7d7c55fe6ff35ca670341729bb790a8437a19833/TB2J/io_exchange/io_vampire.py

i just change

50: num_interactions=nexch, type_exchange='tensorial')) . . . 63: Jij=**2***val / J))

mailhexu commented 2 years ago

Dear Jun Gyu, Thanks a lot! This is indeed the right conversion. I have released a new version according to your modification. Best wishes, HeXu