TB2J 0.9.9rc14__tar.gz → 0.9.9rc16__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/PKG-INFO +2 -1
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/exchange.py +83 -65
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/exchange_params.py +24 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/rotate_siestaDM.py +11 -9
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J.egg-info/PKG-INFO +2 -1
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J.egg-info/SOURCES.txt +2 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J.egg-info/requires.txt +1 -0
- tb2j-0.9.9rc16/docs/_static/Logo-ULG.png +0 -0
- tb2j-0.9.9rc16/docs/_static/logo_TB2J_horizon.png +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/conf.py +6 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/Contributors.rst +1 -1
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/ReleaseNotes.md +3 -1
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/ecosystem.md +2 -4
- tb2j-0.9.9rc16/docs/src/parameters.rst +89 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/requirements.txt +1 -0
- tb2j-0.9.9rc16/scripts/abacus2J.py +62 -0
- tb2j-0.9.9rc16/scripts/siesta2J.py +78 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/scripts/wann2J.py +6 -1
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/setup.py +2 -1
- tb2j-0.9.9rc14/docs/src/parameters.rst +0 -28
- tb2j-0.9.9rc14/scripts/abacus2J.py +0 -146
- tb2j-0.9.9rc14/scripts/siesta2J.py +0 -163
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/.github/workflows/pylint.yml.bak +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/.github/workflows/python-app.yml +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/.gitignore +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/.pre-commit-config.yaml +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/.readthedocs.yml +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/.ruff.toml +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/.travis.yml +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/LICENSE +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/README.md +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/.gitignore +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/Jdownfolder.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/Jtensor.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/MAE.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/MAEGreen.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/Oiju.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/Oiju_epc.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/__init__.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/anisotropy.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/basis.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/citation.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/contour.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/density_matrix.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/epc.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/exchangeCL2.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/exchange_pert.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/exchange_qspace.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/external/__init__.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/external/p_tqdm.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/gpaw_wrapper.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/green.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/greentest.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/interfaces/__init__.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/interfaces/abacus/.gitignore +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/interfaces/abacus/__init__.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/interfaces/abacus/abacus_api.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/interfaces/abacus/abacus_wrapper.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/interfaces/abacus/gen_exchange_abacus.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/interfaces/abacus/orbital_api.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/interfaces/abacus/stru_api.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/interfaces/abacus/test_density_matrix.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/interfaces/abacus/test_read_HRSR.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/interfaces/abacus/test_read_stru.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/interfaces/gpaw_interface.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/interfaces/lawaf_interface.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/interfaces/manager.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/interfaces/siesta_interface.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/interfaces/wannier90_interface.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/io_exchange/__init__.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/io_exchange/io_exchange.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/io_exchange/io_multibinit.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/io_exchange/io_tomsasd.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/io_exchange/io_txt.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/io_exchange/io_uppasd.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/io_exchange/io_vampire.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/io_merge.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/kpoints.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/mathutils/__init__.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/mathutils/fermi.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/mathutils/fibonacci_sphere.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/mathutils/kR_convert.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/mathutils/lowdin.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/mathutils/rotate_spin.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/myTB.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/mycfr.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/orbital_magmom.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/orbmap.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/pauli.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/pert.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/plot.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/rotate_atoms.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/sisl_wrapper.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/spinham/__init__.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/spinham/base_parser.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/spinham/constants.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/spinham/hamiltonian.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/spinham/hamiltonian_terms.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/spinham/plot.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/spinham/qsolver.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/spinham/spin_api.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/spinham/spin_xml.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/spinham/supercell.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/symmetrize_J.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/tensor_rotate.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/thetaphi.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/utest.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/utils.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/versioninfo.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/wannier/__init__.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/wannier/w90_parser.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J/wannier/w90_tb_parser.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J.egg-info/dependency_links.txt +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J.egg-info/entry_points.txt +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/TB2J.egg-info/top_level.txt +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/buildimage.sh +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/Makefile +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/index.rst +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/make.bat +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/requirements.txt +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/BFOvarT.png +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/SrMnO3_DOS.png +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/abacus.md +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/applications.rst +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/convention.rst +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/development.md +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/downfold.md +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/eigen.rst +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/extend.rst +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/faq.rst +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/install.rst +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/mae.md +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/magnon_band.assets/exchange_magnon-1593690872101.png +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/magnon_band.assets/exchange_magnon.png +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/magnon_band.assets/magnon_dos.png +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/magnon_band.rst +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/multibinit.rst +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/openmx.rst +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/orbital_contribution.md +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/output.rst +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/references.rst +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/roadmap.md +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/rotate_and_merge.rst +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/siesta.rst +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/spin_model_assets/canting_DMI.png +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/spin_model_assets/tmulti5_2.png +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/symmetry.md +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/tutorial.rst +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/docs/src/wannier.rst +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/Fe.1.psml +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/TB2J_results/EigenJq.txt +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/TB2J_results/Multibinit/exchange.xml +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/TB2J_results/Multibinit/exchange_kpth.txt +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/TB2J_results/Multibinit/exchange_magnon.png +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/TB2J_results/Multibinit/magnon.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/TB2J_results/Multibinit/magnon_band.json +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/TB2J_results/Multibinit/magnon_band.pdf +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/TB2J_results/Multibinit/magnon_dos.png +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/TB2J_results/Multibinit/magnon_dos.txt +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/TB2J_results/Multibinit/mb.files +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/TB2J_results/Multibinit/mb.in +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/TB2J_results/Multibinit/plot.sh +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/TB2J_results/Multibinit/plot_magnon_dos.sh +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/TB2J_results/Multibinit/plot_magnon_from_json_file.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/TB2J_results/TB2J.pickle +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/TB2J_results/TomASD/exchange.exch +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/TB2J_results/TomASD/exchange.ucf +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/TB2J_results/exchange.out +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/getJ.sh +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/run.sh +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/BccFe/siesta.fdf +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/HcpCo/Co.1.psml +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/HcpCo/TB2J_results/Multibinit/exchange.xml +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/HcpCo/TB2J_results/Multibinit/mb.files +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/HcpCo/TB2J_results/Multibinit/mb.in +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/HcpCo/TB2J_results/TB2J.pickle +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/HcpCo/TB2J_results/TomASD/exchange.exch +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/HcpCo/TB2J_results/TomASD/exchange.ucf +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/HcpCo/TB2J_results/Vampire/input +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/HcpCo/TB2J_results/Vampire/vampire.UCF +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/HcpCo/TB2J_results/Vampire/vampire.mat +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/HcpCo/TB2J_results/exchange.out +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/HcpCo/TB2J_results/summary.txt +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/HcpCo/getJ.sh +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/HcpCo/run.sh +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/Siesta/HcpCo/siesta.fdf +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/TB2J_results/JvsR.pdf +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/TB2J_results/Multibinit/exchange.xml +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/TB2J_results/Multibinit/mb.files +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/TB2J_results/Multibinit/mb.in +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/TB2J_results/TB2J.pickle +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/TB2J_results/TomASD/exchange.exch +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/TB2J_results/TomASD/exchange.ucf +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/TB2J_results/Vampire/input +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/TB2J_results/Vampire/vampire.UCF +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/TB2J_results/Vampire/vampire.mat +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/TB2J_results/assigned_basis.txt +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/TB2J_results/exchange.out +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/TB2J_results/exchange_orb_decomposition.out +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/abinit.files +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/abinit.in +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/abinito_w90_down.win +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/abinito_w90_down_centres.xyz +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/abinito_w90_down_hr.dat +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/abinito_w90_up.win +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/abinito_w90_up_centres.xyz +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/abinito_w90_up_hr.dat +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/get_J.sh +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/psp/Mn.GGA-PBESOL-JTH.xml +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/psp/O.GGA-PBESOL-JTH.xml +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/psp/Sr.GGA-PBESOL-JTH.xml +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/examples/abinit-w90/SrMnO3/run.sh +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/scripts/TB2J_downfold.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/scripts/TB2J_eigen.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/scripts/TB2J_magnon.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/scripts/TB2J_magnon_dos.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/scripts/TB2J_merge.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/scripts/TB2J_rotate.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/scripts/TB2J_rotateDM.py +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/setup.cfg +0 -0
- {tb2j-0.9.9rc14 → tb2j-0.9.9rc16}/upload_to_pip.sh +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: TB2J
|
3
|
-
Version: 0.9.
|
3
|
+
Version: 0.9.9rc16
|
4
4
|
Summary: TB2J: First principle to Heisenberg exchange J using tight-binding Green function method
|
5
5
|
Author: Xu He
|
6
6
|
Author-email: mailhexu@gmail.com
|
@@ -24,6 +24,7 @@ Requires-Dist: packaging>=20.0
|
|
24
24
|
Requires-Dist: HamiltonIO>=0.2.1
|
25
25
|
Requires-Dist: pre-commit
|
26
26
|
Requires-Dist: sympair>0.1.0
|
27
|
+
Requires-Dist: sisl>=0.9.0
|
27
28
|
Dynamic: author
|
28
29
|
Dynamic: author-email
|
29
30
|
Dynamic: classifier
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import os
|
2
2
|
import pickle
|
3
|
-
from collections import
|
3
|
+
from collections import defaultdict
|
4
4
|
|
5
5
|
import numpy as np
|
6
6
|
from tqdm import tqdm
|
@@ -96,78 +96,96 @@ class Exchange(ExchangeParams):
|
|
96
96
|
|
97
97
|
def _prepare_orb_dict(self):
|
98
98
|
"""
|
99
|
-
|
100
|
-
"""
|
101
|
-
# adict: dictionary of {'Fe': ['dxy', 'dyz', ...], ...}
|
102
|
-
adict = OrderedDict()
|
103
|
-
# orb_dict: {ind_atom:[ind_orb,1,2], ...}
|
104
|
-
self.orb_dict = {}
|
105
|
-
# labels: {0:{dxy, ...}}
|
106
|
-
self.labels = {}
|
107
|
-
# magnetic atoms index
|
108
|
-
self.ind_mag_atoms = []
|
109
|
-
|
110
|
-
sdict = symbol_number(self.atoms)
|
111
|
-
|
112
|
-
for i, base in enumerate(self.basis):
|
113
|
-
if i not in self.exclude_orbs:
|
114
|
-
# e.g. Fe2, dxy, _, _
|
115
|
-
if isinstance(base, str):
|
116
|
-
atom_sym, orb_sym = base.split("|")[:2]
|
117
|
-
iatom = sdict[atom_sym]
|
118
|
-
else:
|
119
|
-
try:
|
120
|
-
atom_sym, orb_sym = base[:2]
|
121
|
-
iatom = sdict[atom_sym]
|
122
|
-
except Exception:
|
123
|
-
iatom = base.iatom
|
124
|
-
atom_sym = base.iatom
|
125
|
-
orb_sym = base.sym
|
126
|
-
|
127
|
-
if atom_sym in adict:
|
128
|
-
adict[atom_sym].append(orb_sym)
|
129
|
-
else:
|
130
|
-
adict[atom_sym] = [orb_sym]
|
131
|
-
if iatom not in self.orb_dict:
|
132
|
-
self.orb_dict[iatom] = [i]
|
133
|
-
self.labels[iatom] = [orb_sym]
|
134
|
-
else:
|
135
|
-
self.orb_dict[iatom] += [i]
|
136
|
-
self.labels[iatom] += [orb_sym]
|
99
|
+
Generate orbital and magnetic atom mappings needed for exchange calculations.
|
137
100
|
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
101
|
+
Creates:
|
102
|
+
- self.orb_dict: Maps atom indices to their orbital indices
|
103
|
+
- self.labels: Maps atom indices to their orbital labels
|
104
|
+
- self.ind_mag_atoms: List of indices of magnetic atoms
|
105
|
+
- self._spin_dict: Maps atom indices to spin indices
|
106
|
+
- self._atom_dict: Maps spin indices back to atom indices
|
107
|
+
"""
|
108
|
+
self._create_orbital_mappings()
|
109
|
+
self._identify_magnetic_atoms()
|
110
|
+
self._validate_orbital_assignments()
|
111
|
+
self._create_spin_mappings()
|
112
|
+
self._prepare_orb_mmat()
|
144
113
|
|
145
|
-
|
146
|
-
|
147
|
-
|
114
|
+
def _create_orbital_mappings(self):
|
115
|
+
"""Create mappings between atoms and their orbitals."""
|
116
|
+
self.orb_dict = {} # {atom_index: [orbital_indices]}
|
117
|
+
self.labels = {} # {atom_index: [orbital_labels]}
|
118
|
+
atom_symbols = symbol_number(self.atoms)
|
119
|
+
|
120
|
+
for orb_idx, base in enumerate(self.basis):
|
121
|
+
if orb_idx in self.exclude_orbs:
|
122
|
+
continue
|
123
|
+
|
124
|
+
# Extract atom and orbital info
|
125
|
+
if isinstance(base, str):
|
126
|
+
atom_sym, orb_sym = base.split("|")[:2]
|
127
|
+
atom_idx = atom_symbols[atom_sym]
|
128
|
+
else:
|
129
|
+
try:
|
130
|
+
atom_sym, orb_sym = base[:2]
|
131
|
+
atom_idx = atom_symbols[atom_sym]
|
132
|
+
except Exception:
|
133
|
+
atom_idx = base.iatom
|
134
|
+
atom_sym = base.iatom
|
135
|
+
orb_sym = base.sym
|
136
|
+
|
137
|
+
# Update orbital mappings
|
138
|
+
if atom_idx not in self.orb_dict:
|
139
|
+
self.orb_dict[atom_idx] = [orb_idx]
|
140
|
+
self.labels[atom_idx] = [orb_sym]
|
141
|
+
else:
|
142
|
+
self.orb_dict[atom_idx].append(orb_idx)
|
143
|
+
self.labels[atom_idx].append(orb_sym)
|
144
|
+
|
145
|
+
def _identify_magnetic_atoms(self):
|
146
|
+
"""Identify which atoms are magnetic based on elements/tags."""
|
147
|
+
if self.index_magnetic_atoms is not None:
|
148
|
+
self.ind_mag_atoms = self.index_magnetic_atoms
|
149
|
+
else:
|
150
|
+
self.ind_mag_atoms = []
|
151
|
+
symbols = self.atoms.get_chemical_symbols()
|
152
|
+
tags = self.atoms.get_tags()
|
153
|
+
|
154
|
+
for atom_idx, (sym, tag) in enumerate(zip(symbols, tags)):
|
155
|
+
if (
|
156
|
+
sym in self.magnetic_elements
|
157
|
+
or f"{sym}{tag}" in self.magnetic_elements
|
158
|
+
):
|
159
|
+
self.ind_mag_atoms.append(atom_idx)
|
160
|
+
print(f"Magnetic atoms: {self.ind_mag_atoms}")
|
161
|
+
|
162
|
+
def _validate_orbital_assignments(self):
|
163
|
+
"""Validate that magnetic atoms have proper orbital assignments."""
|
164
|
+
# Check all magnetic atoms have orbitals
|
165
|
+
for atom_idx in self.ind_mag_atoms:
|
166
|
+
if atom_idx not in self.orb_dict:
|
148
167
|
raise ValueError(
|
149
|
-
f"
|
168
|
+
f"Atom {atom_idx} is magnetic but has no orbitals assigned. "
|
169
|
+
"Check Wannier function definitions."
|
150
170
|
)
|
171
|
+
|
172
|
+
# For non-collinear case, check spin-orbital pairing
|
151
173
|
if not self._is_collinear:
|
152
|
-
for
|
153
|
-
|
154
|
-
nsorb = len(self.orb_dict[iatom])
|
155
|
-
if nsorb % 2 != 0 and False:
|
174
|
+
for atom_idx, orbitals in self.orb_dict.items():
|
175
|
+
if len(orbitals) % 2 != 0:
|
156
176
|
raise ValueError(
|
157
|
-
f"
|
158
|
-
|
159
|
-
which means the spin up/down does not have same number of orbitals.
|
160
|
-
This is often because the Wannier functions are wrongly defined,
|
161
|
-
or badly localized. Please check the Wannier centers in the Wannier90 output file.
|
162
|
-
"""
|
177
|
+
f"Atom {atom_idx} has {len(orbitals)} spin-orbitals "
|
178
|
+
"(should be even). Check Wannier function localization."
|
163
179
|
)
|
164
|
-
self._spin_dict = {}
|
165
|
-
self._atom_dict = {}
|
166
|
-
for ispin, iatom in enumerate(self.ind_mag_atoms):
|
167
|
-
self._spin_dict[iatom] = ispin
|
168
|
-
self._atom_dict[ispin] = iatom
|
169
180
|
|
170
|
-
|
181
|
+
def _create_spin_mappings(self):
|
182
|
+
"""Create mappings between atom indices and spin indices."""
|
183
|
+
self._spin_dict = {} # {atom_index: spin_index}
|
184
|
+
self._atom_dict = {} # {spin_index: atom_index}
|
185
|
+
|
186
|
+
for spin_idx, atom_idx in enumerate(self.ind_mag_atoms):
|
187
|
+
self._spin_dict[atom_idx] = spin_idx
|
188
|
+
self._atom_dict[spin_idx] = atom_idx
|
171
189
|
|
172
190
|
def _prepare_orb_mmat(self):
|
173
191
|
self.mmats = {}
|
@@ -15,6 +15,7 @@ class ExchangeParams:
|
|
15
15
|
efermi: float
|
16
16
|
basis = []
|
17
17
|
magnetic_elements = []
|
18
|
+
index_magnetic_atoms = None
|
18
19
|
include_orbs = {}
|
19
20
|
_kmesh = [4, 4, 4]
|
20
21
|
emin: float = -15
|
@@ -55,6 +56,7 @@ class ExchangeParams:
|
|
55
56
|
mae_angles=None,
|
56
57
|
orth=False,
|
57
58
|
ibz=False,
|
59
|
+
index_magnetic_atoms=None,
|
58
60
|
):
|
59
61
|
self.efermi = efermi
|
60
62
|
self.basis = basis
|
@@ -79,6 +81,7 @@ class ExchangeParams:
|
|
79
81
|
self.mae_angles = mae_angles
|
80
82
|
self.orth = orth
|
81
83
|
self.ibz = ibz
|
84
|
+
self.index_magnetic_atoms = index_magnetic_atoms
|
82
85
|
|
83
86
|
def set_params(self, **kwargs):
|
84
87
|
for key, val in kwargs.items():
|
@@ -229,10 +232,30 @@ def add_exchange_args_to_parser(parser: argparse.ArgumentParser):
|
|
229
232
|
default=False,
|
230
233
|
)
|
231
234
|
|
235
|
+
parser.add_argument(
|
236
|
+
"--mae_angles",
|
237
|
+
help="angles for computing MAE, default is 0 0 0",
|
238
|
+
type=float,
|
239
|
+
nargs="*",
|
240
|
+
default=[0.0, 0.0, 0.0],
|
241
|
+
)
|
242
|
+
parser.add_argument(
|
243
|
+
"--index_magnetic_atoms",
|
244
|
+
help="index of magnetic atoms in the unit cell, default is None. If specified, this will be used to determine the atoms to be considered as magnetic atoms, instead of determined from magnetic elements. Note that the index starts from 1 ",
|
245
|
+
type=int,
|
246
|
+
nargs="*",
|
247
|
+
default=None,
|
248
|
+
)
|
249
|
+
|
232
250
|
return parser
|
233
251
|
|
234
252
|
|
235
253
|
def parser_argument_to_dict(args) -> dict:
|
254
|
+
ind_mag_atoms = args.index_magnetic_atoms
|
255
|
+
if ind_mag_atoms is not None:
|
256
|
+
ind_mag_atoms = [int(i) - 1 for i in ind_mag_atoms]
|
257
|
+
else:
|
258
|
+
ind_mag_atoms = None
|
236
259
|
return {
|
237
260
|
"efermi": args.efermi,
|
238
261
|
"magnetic_elements": args.elements,
|
@@ -250,4 +273,5 @@ def parser_argument_to_dict(args) -> dict:
|
|
250
273
|
"orb_decomposition": args.orb_decomposition,
|
251
274
|
"output_path": args.output_path,
|
252
275
|
"orth": args.orth,
|
276
|
+
"index_magnetic_atoms": ind_mag_atoms,
|
253
277
|
}
|
@@ -1,28 +1,28 @@
|
|
1
1
|
import sisl
|
2
2
|
|
3
|
+
|
3
4
|
def rotate_siesta_DM(DM, noncollinear=False):
|
4
|
-
|
5
|
-
angles_list = [ [0.0, 90.0, 0.0], [0.0, 90.0, 90.0] ]
|
5
|
+
angles_list = [[0.0, 90.0, 0.0], [0.0, 90.0, 90.0]]
|
6
6
|
if noncollinear:
|
7
7
|
angles_list += [[0.0, 45.0, 0.0], [0.0, 90.0, 45.0], [0.0, 45.0, 90.0]]
|
8
8
|
|
9
9
|
for angles in angles_list:
|
10
10
|
yield DM.spin_rotate(angles)
|
11
11
|
|
12
|
-
def read_label(fdf_fname):
|
13
12
|
|
14
|
-
|
15
|
-
|
13
|
+
def read_label(fdf_fname):
|
14
|
+
label = "siesta"
|
15
|
+
with open(fdf_fname, "r") as File:
|
16
16
|
for line in File:
|
17
|
-
corrected_line = line.lower().replace(
|
18
|
-
if
|
17
|
+
corrected_line = line.lower().replace(".", "").replace("-", "")
|
18
|
+
if "systemlabel" in corrected_line:
|
19
19
|
label = line.split()[1]
|
20
20
|
break
|
21
21
|
|
22
22
|
return label
|
23
23
|
|
24
|
-
def rotate_DM(fdf_fname, noncollinear=False):
|
25
24
|
|
25
|
+
def rotate_DM(fdf_fname, noncollinear=False):
|
26
26
|
fdf = sisl.get_sile(fdf_fname)
|
27
27
|
DM = fdf.read_density_matrix()
|
28
28
|
label = read_label(fdf_fname)
|
@@ -33,4 +33,6 @@ def rotate_DM(fdf_fname, noncollinear=False):
|
|
33
33
|
rotated_DM.write(f"{label}_{i+1}.DM")
|
34
34
|
DM.write(f"{label}_0.DM")
|
35
35
|
|
36
|
-
print(
|
36
|
+
print(
|
37
|
+
f"The output has been written to the {label}_i.DM files. {label}_0.DM contains the reference density matrix."
|
38
|
+
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: TB2J
|
3
|
-
Version: 0.9.
|
3
|
+
Version: 0.9.9rc16
|
4
4
|
Summary: TB2J: First principle to Heisenberg exchange J using tight-binding Green function method
|
5
5
|
Author: Xu He
|
6
6
|
Author-email: mailhexu@gmail.com
|
@@ -24,6 +24,7 @@ Requires-Dist: packaging>=20.0
|
|
24
24
|
Requires-Dist: HamiltonIO>=0.2.1
|
25
25
|
Requires-Dist: pre-commit
|
26
26
|
Requires-Dist: sympair>0.1.0
|
27
|
+
Requires-Dist: sisl>=0.9.0
|
27
28
|
Dynamic: author
|
28
29
|
Dynamic: author-email
|
29
30
|
Dynamic: classifier
|
Binary file
|
Binary file
|
@@ -59,3 +59,9 @@ html_theme = "sphinx_rtd_theme"
|
|
59
59
|
# relative to this directory. They are copied after the builtin static files,
|
60
60
|
# so a file named "default.css" will overwrite the builtin "default.css".
|
61
61
|
html_static_path = ["_static"]
|
62
|
+
|
63
|
+
html_logo = "_static/TB2J_logo_horizon.png"
|
64
|
+
html_theme_options = {
|
65
|
+
"logo_only": True,
|
66
|
+
"display_version": False,
|
67
|
+
}
|
@@ -11,7 +11,9 @@ This currently requires an non-official SIESTA branch which can seperate the spi
|
|
11
11
|
|
12
12
|
- An improved method of the downfolding method which implements the ligand correction to the exchange based on the Wannier function method. This requires the updated version of LaWaF (https://github.com/mailhexu/lawaf) and the updated version of the TB2J\_downfold.py script.
|
13
13
|
|
14
|
-
-
|
14
|
+
- Added a new parameter (--index_magnetic_atoms) to the wann2J.py, siesta2J.py, and abacus2J.py scripts, so that a more detailed selection of the magnetic atoms than the one in --element is possible. This is useful when we need to select a subset of a specific element in a system.
|
15
|
+
|
16
|
+
- There is a major refactoring of the interface to the DFT codes. The parsing of the electron Hamiltonian from the DFT codes are now in a separate python package called HamiltonIO (github.com/mailhexu/HamiltonIO). This package is used by TB2J but is made general to be used with other packages too.
|
15
17
|
|
16
18
|
|
17
19
|
#### v0.11.0 October 10, 2024
|
@@ -28,11 +28,9 @@ TB2J can provide the input files containing the parameters for Heisenberg models
|
|
28
28
|
|
29
29
|
* [AiiDA\_TB2J\_plugin](https://github.com/antelmor/aiida_tb2j_plugin/tree/groundstate2/aiida_tb2j): AiiDA\_TB2J\_plugin is a AiiDA plugin for high-throughput Siesta-TB2J calculations within the framework of [AiiDA](https://www.aiida.net/).
|
30
30
|
|
31
|
-
#### Codes for
|
32
|
-
|
33
|
-
* [RAD-tools](https://rad-tools.org/): RAD-tools is a python package for the spin Hamiltonian analysis (with built-in notation changes) and magnon band structure calculation. It is interfaced directly with the TB2J .txt output ("exchange.out") and can compute the magnon band structure via the [linear spin wave theory](https://rad-tools.org/en/stable/user-guide/library/magnon-dispersion.html) for **ferromagnetic**, **antiferromagnetic** and **spiral** magnetic structures. Documentation of the usage can be found on the package website: if you know python - [use as library](https://rad-tools.org/en/stable/user-guide/module/magnons/index.html) or if you do not know python - [use console interface](https://rad-tools.org/en/stable/user-guide/scripts/rad-plot-tb2j-magnons.html).
|
34
|
-
|
31
|
+
#### Codes for Spin Wave methods
|
35
32
|
|
33
|
+
* [magnopy](https://magnopy.org/): magnopy is an open-source python package that analyses spin Hamiltonian (with built-in manipulation of notation) on periodic lattices at several levels of spin wave theory. It is interfaced directly with the TB2J's text output ("exchange.out") and can output magnon band structure, among other thing. It can be used as a python library of within the command line interface.
|
36
34
|
|
37
35
|
|
38
36
|
#### Related software without already-built interface with TB2J
|
@@ -0,0 +1,89 @@
|
|
1
|
+
Parameters for Magnetic Interaction Calculations
|
2
|
+
=============================================
|
3
|
+
|
4
|
+
Introduction
|
5
|
+
-----------
|
6
|
+
TB2J provides several command-line tools to calculate magnetic interactions from different electronic structure codes. Each tool shares a common set of parameters for controlling the magnetic interaction calculations, while also having some tool-specific parameters.
|
7
|
+
|
8
|
+
To view the complete list of parameters for any tool, use the --help option:
|
9
|
+
|
10
|
+
::
|
11
|
+
|
12
|
+
wann2J.py --help # For Wannier90-based calculations
|
13
|
+
siesta2J.py --help # For SIESTA-based calculations
|
14
|
+
abacus2J.py --help # For ABACUS-based calculations
|
15
|
+
|
16
|
+
Common Parameters
|
17
|
+
---------------
|
18
|
+
These parameters are available across all TB2J tools and control the core aspects of magnetic interaction calculations.
|
19
|
+
|
20
|
+
System Definition
|
21
|
+
^^^^^^^^^^^^^^^
|
22
|
+
* elements: List of magnetic elements to include in the Heisenberg model. Example: ``--elements Fe Ni``
|
23
|
+
|
24
|
+
* index_magnetic_atoms: Explicitly specify magnetic atoms by their indices (starting from 1) in the unit cell. Overrides element-based selection. Example: ``--index_magnetic_atoms 1 2 4``
|
25
|
+
|
26
|
+
* exclude_orbs: Zero-based indices of orbitals to exclude from magnetic site calculations. Useful for fine-tuning the magnetic model.
|
27
|
+
|
28
|
+
K-space and Real Space Parameters
|
29
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
30
|
+
* kmesh: Three integers defining the Monkhorst-Pack k-point mesh (e.g., ``--kmesh 7 7 7``). This mesh determines:
|
31
|
+
- The k-points used for Green's function calculations
|
32
|
+
- The real-space supercell size for magnetic interactions
|
33
|
+
- For example, a :math:`7 \times 7 \times 7` k-mesh creates a supercell where magnetic interactions are calculated between the central atom and all atoms within this supercell
|
34
|
+
|
35
|
+
* rcut: Maximum distance (in Å) for calculating magnetic interactions between atom pairs. If not specified, includes all pairs within the supercell defined by kmesh.
|
36
|
+
|
37
|
+
Energy Integration Parameters
|
38
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
39
|
+
* efermi: Fermi energy in eV. Handling varies by tool:
|
40
|
+
- siesta2J.py/abacus2J.py: Automatically read from output
|
41
|
+
- wann2J.py: Must be provided from DFT calculation
|
42
|
+
- For insulators: Can be within the band gap
|
43
|
+
- For metals: Should match the DFT value
|
44
|
+
|
45
|
+
* emin, emax: Energy range for integration, relative to efermi:
|
46
|
+
- emin: Should be low enough to include all magnetically relevant states
|
47
|
+
- Check local density of states: spin up/down should be nearly identical below emin
|
48
|
+
- emax: Usually 0.0 (Fermi level). Can be adjusted for charge doping studies
|
49
|
+
- Note: Direct DFT doping is preferred over emax adjustment
|
50
|
+
|
51
|
+
* nz: Number of energy points for numerical integration of :math:`\int_{emin}^{emax} d\epsilon`
|
52
|
+
|
53
|
+
Performance and Output Controls
|
54
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
55
|
+
* np/nproc: Number of CPU cores for parallel processing. Default: 1
|
56
|
+
|
57
|
+
* use_cache: Store wavefunctions and Hamiltonian on disk to reduce memory usage. Useful for large systems. Default: False
|
58
|
+
|
59
|
+
* cutoff: Minimum magnitude of exchange coupling (J) to write to output (in eV). Helps filter numerical noise.
|
60
|
+
|
61
|
+
* output_path: Directory for output files. Default: TB2J_results
|
62
|
+
|
63
|
+
Output Customization
|
64
|
+
^^^^^^^^^^^^^^^^
|
65
|
+
* description: Add essential calculation details to the XML output:
|
66
|
+
- Exchange-correlation functional used
|
67
|
+
- Hubbard U values if applicable
|
68
|
+
- Magnetic state description
|
69
|
+
- Any other relevant parameters
|
70
|
+
|
71
|
+
Advanced Options
|
72
|
+
^^^^^^^^^^^^
|
73
|
+
* orb_decomposition: Analyze orbital contributions in non-collinear calculations. Default: False
|
74
|
+
|
75
|
+
* orth: Apply Löwdin orthogonalization before diagonalization. Usually for testing purposes. Default: False
|
76
|
+
|
77
|
+
Tool-Specific Parameters
|
78
|
+
---------------------
|
79
|
+
|
80
|
+
SIESTA Interface (siesta2J.py)
|
81
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
82
|
+
* fdf_fname: Path to SIESTA's input fdf file. Default: ./
|
83
|
+
* fname: Output exchange parameters XML filename. Default: exchange.xml
|
84
|
+
* split_soc: Enable reading of spin-orbit coupling from SIESTA output. Default: False
|
85
|
+
|
86
|
+
ABACUS Interface (abacus2J.py)
|
87
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^
|
88
|
+
* path: Location of ABACUS calculation files. Default: ./
|
89
|
+
* suffix: ABACUS calculation label (used in OUT.suffix). Default: abacus
|
@@ -0,0 +1,62 @@
|
|
1
|
+
#!/usr/bin/env python3
|
2
|
+
import argparse
|
3
|
+
import sys
|
4
|
+
|
5
|
+
from TB2J.exchange_params import add_exchange_args_to_parser
|
6
|
+
from TB2J.interfaces import gen_exchange_abacus
|
7
|
+
from TB2J.versioninfo import print_license
|
8
|
+
|
9
|
+
|
10
|
+
def run_abacus2J():
|
11
|
+
print_license()
|
12
|
+
parser = argparse.ArgumentParser(
|
13
|
+
description="abacus2J: Using magnetic force theorem to calculate exchange parameter J from abacus Hamiltonian in the LCAO mode"
|
14
|
+
)
|
15
|
+
# Add ABACUS specific arguments
|
16
|
+
parser.add_argument(
|
17
|
+
"--path", help="the path of the abacus calculation", default="./", type=str
|
18
|
+
)
|
19
|
+
parser.add_argument(
|
20
|
+
"--suffix",
|
21
|
+
help="the label of the abacus calculation. There should be an output directory called OUT.suffix",
|
22
|
+
default="abacus",
|
23
|
+
type=str,
|
24
|
+
)
|
25
|
+
|
26
|
+
# Add common exchange arguments
|
27
|
+
parser = add_exchange_args_to_parser(parser)
|
28
|
+
|
29
|
+
args = parser.parse_args()
|
30
|
+
|
31
|
+
index_magnetic_atoms = args.index_magnetic_atoms
|
32
|
+
if not index_magnetic_atoms is None:
|
33
|
+
index_magnetic_atoms = [i-1 for i in index_magnetic_atoms]
|
34
|
+
|
35
|
+
if args.elements is None and index_magnetic_atoms is None:
|
36
|
+
print("Please input the magnetic elements, e.g. --elements Fe Ni")
|
37
|
+
sys.exit()
|
38
|
+
|
39
|
+
# include_orbs = {}
|
40
|
+
|
41
|
+
gen_exchange_abacus(
|
42
|
+
path=args.path,
|
43
|
+
suffix=args.suffix,
|
44
|
+
kmesh=args.kmesh,
|
45
|
+
magnetic_elements=args.elements,
|
46
|
+
include_orbs={},
|
47
|
+
Rcut=args.rcut,
|
48
|
+
emin=args.emin,
|
49
|
+
nz=args.nz,
|
50
|
+
description=args.description,
|
51
|
+
output_path=args.output_path,
|
52
|
+
use_cache=args.use_cache,
|
53
|
+
nproc=args.nproc,
|
54
|
+
exclude_orbs=args.exclude_orbs,
|
55
|
+
orb_decomposition=args.orb_decomposition,
|
56
|
+
index_magnetic_atoms=index_magnetic_atoms,
|
57
|
+
cutoff=args.cutoff,
|
58
|
+
)
|
59
|
+
|
60
|
+
|
61
|
+
if __name__ == "__main__":
|
62
|
+
run_abacus2J()
|
@@ -0,0 +1,78 @@
|
|
1
|
+
#!/usr/bin/env python3
|
2
|
+
import argparse
|
3
|
+
import sys
|
4
|
+
|
5
|
+
from TB2J.exchange_params import add_exchange_args_to_parser
|
6
|
+
from TB2J.interfaces import gen_exchange_siesta
|
7
|
+
from TB2J.versioninfo import print_license
|
8
|
+
|
9
|
+
|
10
|
+
def run_siesta2J():
|
11
|
+
print_license()
|
12
|
+
parser = argparse.ArgumentParser(
|
13
|
+
description="siesta2J: Using magnetic force theorem to calculate exchange parameter J from siesta Hamiltonian"
|
14
|
+
)
|
15
|
+
# Add siesta specific arguments
|
16
|
+
parser.add_argument(
|
17
|
+
"--fdf_fname", help="path of the input fdf file", default="./", type=str
|
18
|
+
)
|
19
|
+
parser.add_argument(
|
20
|
+
"--fname",
|
21
|
+
default="exchange.xml",
|
22
|
+
type=str,
|
23
|
+
help="exchange xml file name. default: exchange.xml",
|
24
|
+
)
|
25
|
+
parser.add_argument(
|
26
|
+
"--split_soc",
|
27
|
+
help="whether the SOC part of the Hamiltonian can be read from the output of siesta. Default: False",
|
28
|
+
action="store_true",
|
29
|
+
default=False,
|
30
|
+
)
|
31
|
+
|
32
|
+
# Add common exchange arguments
|
33
|
+
parser = add_exchange_args_to_parser(parser)
|
34
|
+
|
35
|
+
args = parser.parse_args()
|
36
|
+
|
37
|
+
if args.elements is None:
|
38
|
+
print("Please input the magnetic elements, e.g. --elements Fe Ni")
|
39
|
+
sys.exit()
|
40
|
+
|
41
|
+
# include_orbs = {}
|
42
|
+
# for element in args.elements:
|
43
|
+
# if "_" in element:
|
44
|
+
# elem = element.split("_")[0]
|
45
|
+
# orb = element.split("_")[1:]
|
46
|
+
# include_orbs[elem] = orb
|
47
|
+
# else:
|
48
|
+
# include_orbs[element] = None
|
49
|
+
|
50
|
+
index_magnetic_atoms = args.index_magnetic_atoms
|
51
|
+
if index_magnetic_atoms is not None:
|
52
|
+
index_magnetic_atoms = [i - 1 for i in index_magnetic_atoms]
|
53
|
+
|
54
|
+
gen_exchange_siesta(
|
55
|
+
fdf_fname=args.fdf_fname,
|
56
|
+
kmesh=args.kmesh,
|
57
|
+
# magnetic_elements=list(include_orbs.keys()),
|
58
|
+
# include_orbs=include_orbs,
|
59
|
+
magnetic_elements=args.elements,
|
60
|
+
include_orbs={},
|
61
|
+
Rcut=args.rcut,
|
62
|
+
emin=args.emin,
|
63
|
+
emax=args.emax,
|
64
|
+
nz=args.nz,
|
65
|
+
description=args.description,
|
66
|
+
output_path=args.output_path,
|
67
|
+
use_cache=args.use_cache,
|
68
|
+
nproc=args.np,
|
69
|
+
exclude_orbs=args.exclude_orbs,
|
70
|
+
orb_decomposition=args.orb_decomposition,
|
71
|
+
read_H_soc=args.split_soc,
|
72
|
+
orth=args.orth,
|
73
|
+
index_magnetic_atoms=index_magnetic_atoms,
|
74
|
+
)
|
75
|
+
|
76
|
+
|
77
|
+
if __name__ == "__main__":
|
78
|
+
run_siesta2J()
|
@@ -61,10 +61,14 @@ def run_wann2J():
|
|
61
61
|
if args.efermi is None:
|
62
62
|
print("Please input fermi energy using --efermi ")
|
63
63
|
sys.exit()
|
64
|
-
if args.elements is None:
|
64
|
+
if args.elements is None and args.index_magnetic_atoms is None:
|
65
65
|
print("Please input the magnetic elements, e.g. --elements Fe Ni")
|
66
66
|
sys.exit()
|
67
67
|
|
68
|
+
index_magnetic_atoms = args.index_magnetic_atoms
|
69
|
+
if index_magnetic_atoms is not None:
|
70
|
+
index_magnetic_atoms = [i - 1 for i in index_magnetic_atoms]
|
71
|
+
|
68
72
|
gen_exchange(
|
69
73
|
path=args.path,
|
70
74
|
colinear=(not args.spinor),
|
@@ -89,6 +93,7 @@ def run_wann2J():
|
|
89
93
|
# qspace=args.qspace,
|
90
94
|
write_density_matrix=args.write_dm,
|
91
95
|
orb_decomposition=args.orb_decomposition,
|
96
|
+
index_magnetic_atoms=index_magnetic_atoms,
|
92
97
|
)
|
93
98
|
|
94
99
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env python
|
2
2
|
from setuptools import find_packages, setup
|
3
3
|
|
4
|
-
__version__ = "0.9.
|
4
|
+
__version__ = "0.9.9rc16"
|
5
5
|
|
6
6
|
long_description = """TB2J is a Python package aimed to compute automatically the magnetic interactions (superexchange and Dzyaloshinskii-Moriya) between atoms of magnetic crystals from DFT Hamiltonian based on Wannier functions or Linear combination of atomic orbitals. It uses the Green's function method and take the local rigid spin rotation as a perturbation. The package can take the output from Wannier90, which is interfaced with many density functional theory codes or from codes based on localised orbitals. A minimal user input is needed, which allows for an easily integration into a high-throughput workflows. """
|
7
7
|
|
@@ -43,6 +43,7 @@ setup(
|
|
43
43
|
"HamiltonIO>=0.2.1",
|
44
44
|
"pre-commit",
|
45
45
|
"sympair>0.1.0",
|
46
|
+
"sisl>=0.9.0",
|
46
47
|
],
|
47
48
|
classifiers=[
|
48
49
|
"Development Status :: 3 - Alpha",
|