TB2J 0.9.9rc7__tar.gz → 0.9.9rc9__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.9rc7 → tb2j-0.9.9rc9}/PKG-INFO +2 -1
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/exchange.py +90 -64
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/exchange_params.py +19 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/io_exchange/io_exchange.py +0 -27
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/mycfr.py +4 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/symmetrize_J.py +12 -23
- tb2j-0.9.9rc9/TB2J/thetaphi.py +16 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J.egg-info/PKG-INFO +2 -1
- tb2j-0.9.9rc9/TB2J.egg-info/SOURCES.txt +101 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J.egg-info/requires.txt +1 -0
- tb2j-0.9.9rc9/scripts/abacus2J.py +59 -0
- tb2j-0.9.9rc9/scripts/siesta2J.py +75 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/scripts/wann2J.py +1 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/setup.py +2 -1
- tb2j-0.9.9rc7/.github/workflows/pylint.yml.bak +0 -23
- tb2j-0.9.9rc7/.github/workflows/python-app.yml +0 -44
- tb2j-0.9.9rc7/.gitignore +0 -131
- tb2j-0.9.9rc7/.pre-commit-config.yaml +0 -11
- tb2j-0.9.9rc7/.readthedocs.yml +0 -28
- tb2j-0.9.9rc7/.ruff.toml +0 -78
- tb2j-0.9.9rc7/.travis.yml +0 -33
- tb2j-0.9.9rc7/TB2J/.gitignore +0 -5
- tb2j-0.9.9rc7/TB2J/interfaces/abacus/.gitignore +0 -2
- tb2j-0.9.9rc7/TB2J/io_exchange/io_matjes.py +0 -225
- tb2j-0.9.9rc7/TB2J.egg-info/SOURCES.txt +0 -214
- tb2j-0.9.9rc7/buildimage.sh +0 -51
- tb2j-0.9.9rc7/docs/Makefile +0 -20
- tb2j-0.9.9rc7/docs/conf.py +0 -61
- tb2j-0.9.9rc7/docs/index.rst +0 -44
- tb2j-0.9.9rc7/docs/make.bat +0 -35
- tb2j-0.9.9rc7/docs/requirements.txt +0 -3
- tb2j-0.9.9rc7/docs/src/BFOvarT.png +0 -0
- tb2j-0.9.9rc7/docs/src/Contributors.rst +0 -44
- tb2j-0.9.9rc7/docs/src/ReleaseNotes.md +0 -208
- tb2j-0.9.9rc7/docs/src/SrMnO3_DOS.png +0 -0
- tb2j-0.9.9rc7/docs/src/abacus.md +0 -103
- tb2j-0.9.9rc7/docs/src/applications.rst +0 -9
- tb2j-0.9.9rc7/docs/src/convention.rst +0 -18
- tb2j-0.9.9rc7/docs/src/development.md +0 -22
- tb2j-0.9.9rc7/docs/src/downfold.md +0 -28
- tb2j-0.9.9rc7/docs/src/ecosystem.md +0 -51
- tb2j-0.9.9rc7/docs/src/eigen.rst +0 -34
- tb2j-0.9.9rc7/docs/src/extend.rst +0 -45
- tb2j-0.9.9rc7/docs/src/faq.rst +0 -79
- tb2j-0.9.9rc7/docs/src/install.rst +0 -86
- tb2j-0.9.9rc7/docs/src/mae.md +0 -127
- tb2j-0.9.9rc7/docs/src/magnon_band.assets/exchange_magnon-1593690872101.png +0 -0
- tb2j-0.9.9rc7/docs/src/magnon_band.assets/exchange_magnon.png +0 -0
- tb2j-0.9.9rc7/docs/src/magnon_band.assets/magnon_dos.png +0 -0
- tb2j-0.9.9rc7/docs/src/magnon_band.rst +0 -98
- tb2j-0.9.9rc7/docs/src/multibinit.rst +0 -89
- tb2j-0.9.9rc7/docs/src/openmx.rst +0 -27
- tb2j-0.9.9rc7/docs/src/orbital_contribution.md +0 -80
- tb2j-0.9.9rc7/docs/src/output.rst +0 -52
- tb2j-0.9.9rc7/docs/src/parameters.rst +0 -28
- tb2j-0.9.9rc7/docs/src/references.rst +0 -36
- tb2j-0.9.9rc7/docs/src/roadmap.md +0 -8
- tb2j-0.9.9rc7/docs/src/rotate_and_merge.rst +0 -54
- tb2j-0.9.9rc7/docs/src/siesta.rst +0 -38
- tb2j-0.9.9rc7/docs/src/spin_model_assets/canting_DMI.png +0 -0
- tb2j-0.9.9rc7/docs/src/spin_model_assets/tmulti5_2.png +0 -0
- tb2j-0.9.9rc7/docs/src/symmetry.md +0 -42
- tb2j-0.9.9rc7/docs/src/tutorial.rst +0 -18
- tb2j-0.9.9rc7/docs/src/wannier.rst +0 -228
- tb2j-0.9.9rc7/examples/Siesta/BccFe/Fe.1.psml +0 -1181
- tb2j-0.9.9rc7/examples/Siesta/BccFe/TB2J_results/EigenJq.txt +0 -119
- tb2j-0.9.9rc7/examples/Siesta/BccFe/TB2J_results/Multibinit/exchange.xml +0 -4126
- tb2j-0.9.9rc7/examples/Siesta/BccFe/TB2J_results/Multibinit/exchange_kpth.txt +0 -8
- tb2j-0.9.9rc7/examples/Siesta/BccFe/TB2J_results/Multibinit/exchange_magnon.png +0 -0
- tb2j-0.9.9rc7/examples/Siesta/BccFe/TB2J_results/Multibinit/magnon.py +0 -3
- tb2j-0.9.9rc7/examples/Siesta/BccFe/TB2J_results/Multibinit/magnon_band.json +0 -3332
- tb2j-0.9.9rc7/examples/Siesta/BccFe/TB2J_results/Multibinit/magnon_band.pdf +0 -0
- tb2j-0.9.9rc7/examples/Siesta/BccFe/TB2J_results/Multibinit/magnon_dos.png +0 -0
- tb2j-0.9.9rc7/examples/Siesta/BccFe/TB2J_results/Multibinit/magnon_dos.txt +0 -302
- tb2j-0.9.9rc7/examples/Siesta/BccFe/TB2J_results/Multibinit/mb.files +0 -3
- tb2j-0.9.9rc7/examples/Siesta/BccFe/TB2J_results/Multibinit/mb.in +0 -33
- tb2j-0.9.9rc7/examples/Siesta/BccFe/TB2J_results/Multibinit/plot.sh +0 -1
- tb2j-0.9.9rc7/examples/Siesta/BccFe/TB2J_results/Multibinit/plot_magnon_dos.sh +0 -1
- tb2j-0.9.9rc7/examples/Siesta/BccFe/TB2J_results/Multibinit/plot_magnon_from_json_file.py +0 -73
- tb2j-0.9.9rc7/examples/Siesta/BccFe/TB2J_results/TB2J.pickle +0 -0
- tb2j-0.9.9rc7/examples/Siesta/BccFe/TB2J_results/TomASD/exchange.exch +0 -1381
- tb2j-0.9.9rc7/examples/Siesta/BccFe/TB2J_results/TomASD/exchange.ucf +0 -3
- tb2j-0.9.9rc7/examples/Siesta/BccFe/TB2J_results/exchange.out +0 -3097
- tb2j-0.9.9rc7/examples/Siesta/BccFe/getJ.sh +0 -2
- tb2j-0.9.9rc7/examples/Siesta/BccFe/run.sh +0 -3
- tb2j-0.9.9rc7/examples/Siesta/BccFe/siesta.fdf +0 -61
- tb2j-0.9.9rc7/examples/Siesta/HcpCo/Co.1.psml +0 -3174
- tb2j-0.9.9rc7/examples/Siesta/HcpCo/TB2J_results/Multibinit/exchange.xml +0 -7610
- tb2j-0.9.9rc7/examples/Siesta/HcpCo/TB2J_results/Multibinit/mb.files +0 -3
- tb2j-0.9.9rc7/examples/Siesta/HcpCo/TB2J_results/Multibinit/mb.in +0 -33
- tb2j-0.9.9rc7/examples/Siesta/HcpCo/TB2J_results/TB2J.pickle +0 -0
- tb2j-0.9.9rc7/examples/Siesta/HcpCo/TB2J_results/TomASD/exchange.exch +0 -2556
- tb2j-0.9.9rc7/examples/Siesta/HcpCo/TB2J_results/TomASD/exchange.ucf +0 -4
- tb2j-0.9.9rc7/examples/Siesta/HcpCo/TB2J_results/Vampire/input +0 -42
- tb2j-0.9.9rc7/examples/Siesta/HcpCo/TB2J_results/Vampire/vampire.UCF +0 -644
- tb2j-0.9.9rc7/examples/Siesta/HcpCo/TB2J_results/Vampire/vampire.mat +0 -24
- tb2j-0.9.9rc7/examples/Siesta/HcpCo/TB2J_results/exchange.out +0 -5708
- tb2j-0.9.9rc7/examples/Siesta/HcpCo/TB2J_results/summary.txt +0 -10
- tb2j-0.9.9rc7/examples/Siesta/HcpCo/getJ.sh +0 -1
- tb2j-0.9.9rc7/examples/Siesta/HcpCo/run.sh +0 -3
- tb2j-0.9.9rc7/examples/Siesta/HcpCo/siesta.fdf +0 -63
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/TB2J_results/JvsR.pdf +0 -0
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/TB2J_results/Multibinit/exchange.xml +0 -533
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/TB2J_results/Multibinit/mb.files +0 -3
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/TB2J_results/Multibinit/mb.in +0 -33
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/TB2J_results/TB2J.pickle +0 -0
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/TB2J_results/TomASD/exchange.exch +0 -509
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/TB2J_results/TomASD/exchange.ucf +0 -3
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/TB2J_results/Vampire/input +0 -42
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/TB2J_results/Vampire/vampire.UCF +0 -135
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/TB2J_results/Vampire/vampire.mat +0 -13
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/TB2J_results/assigned_basis.txt +0 -14
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/TB2J_results/exchange.out +0 -406
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/TB2J_results/exchange_orb_decomposition.out +0 -1274
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/abinit.files +0 -8
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/abinit.in +0 -83
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/abinito_w90_down.win +0 -113
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/abinito_w90_down_centres.xyz +0 -21
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/abinito_w90_down_hr.dat +0 -24512
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/abinito_w90_up.win +0 -113
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/abinito_w90_up_centres.xyz +0 -21
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/abinito_w90_up_hr.dat +0 -24512
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/get_J.sh +0 -1
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/psp/Mn.GGA-PBESOL-JTH.xml +0 -16818
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/psp/O.GGA-PBESOL-JTH.xml +0 -12782
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/psp/Sr.GGA-PBESOL-JTH.xml +0 -12646
- tb2j-0.9.9rc7/examples/abinit-w90/SrMnO3/run.sh +0 -6
- tb2j-0.9.9rc7/requirements.txt +0 -10
- tb2j-0.9.9rc7/scripts/abacus2J.py +0 -146
- tb2j-0.9.9rc7/scripts/siesta2J.py +0 -163
- tb2j-0.9.9rc7/upload_to_pip.sh +0 -5
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/LICENSE +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/README.md +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/Jdownfolder.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/Jtensor.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/MAE.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/MAEGreen.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/Oiju.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/Oiju_epc.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/__init__.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/anisotropy.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/basis.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/citation.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/contour.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/density_matrix.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/epc.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/exchangeCL2.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/exchange_pert.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/exchange_qspace.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/external/__init__.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/external/p_tqdm.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/gpaw_wrapper.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/green.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/greentest.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/interfaces/__init__.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/interfaces/abacus/__init__.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/interfaces/abacus/abacus_api.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/interfaces/abacus/abacus_wrapper.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/interfaces/abacus/gen_exchange_abacus.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/interfaces/abacus/orbital_api.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/interfaces/abacus/stru_api.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/interfaces/abacus/test_density_matrix.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/interfaces/abacus/test_read_HRSR.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/interfaces/abacus/test_read_stru.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/interfaces/gpaw_interface.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/interfaces/lawaf_interface.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/interfaces/manager.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/interfaces/siesta_interface.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/interfaces/wannier90_interface.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/io_exchange/__init__.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/io_exchange/io_multibinit.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/io_exchange/io_tomsasd.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/io_exchange/io_txt.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/io_exchange/io_uppasd.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/io_exchange/io_vampire.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/io_merge.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/kpoints.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/mathutils/__init__.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/mathutils/fermi.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/mathutils/fibonacci_sphere.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/mathutils/kR_convert.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/mathutils/lowdin.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/mathutils/rotate_spin.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/myTB.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/orbital_magmom.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/orbmap.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/pauli.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/pert.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/plot.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/rotate_atoms.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/rotate_siestaDM.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/sisl_wrapper.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/spinham/__init__.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/spinham/base_parser.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/spinham/constants.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/spinham/hamiltonian.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/spinham/hamiltonian_terms.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/spinham/plot.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/spinham/qsolver.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/spinham/spin_api.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/spinham/spin_xml.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/spinham/supercell.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/tensor_rotate.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/utest.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/utils.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/versioninfo.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/wannier/__init__.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/wannier/w90_parser.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J/wannier/w90_tb_parser.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J.egg-info/dependency_links.txt +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J.egg-info/entry_points.txt +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/TB2J.egg-info/top_level.txt +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/scripts/TB2J_downfold.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/scripts/TB2J_eigen.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/scripts/TB2J_magnon.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/scripts/TB2J_magnon_dos.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/scripts/TB2J_merge.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/scripts/TB2J_rotate.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/scripts/TB2J_rotateDM.py +0 -0
- {tb2j-0.9.9rc7 → tb2j-0.9.9rc9}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: TB2J
|
3
|
-
Version: 0.9.
|
3
|
+
Version: 0.9.9rc9
|
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.1.9
|
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
|
@@ -96,78 +96,93 @@ class Exchange(ExchangeParams):
|
|
96
96
|
|
97
97
|
def _prepare_orb_dict(self):
|
98
98
|
"""
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
self.
|
105
|
-
|
106
|
-
self.
|
107
|
-
|
108
|
-
self.
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
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.
|
100
|
+
|
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()
|
137
113
|
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
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
144
|
|
145
|
-
|
146
|
-
|
147
|
-
|
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 sym in self.magnetic_elements or f"{sym}{tag}" in self.magnetic_elements:
|
156
|
+
self.ind_mag_atoms.append(atom_idx)
|
157
|
+
print(f"Magnetic atoms: {self.ind_mag_atoms}")
|
158
|
+
|
159
|
+
def _validate_orbital_assignments(self):
|
160
|
+
"""Validate that magnetic atoms have proper orbital assignments."""
|
161
|
+
# Check all magnetic atoms have orbitals
|
162
|
+
for atom_idx in self.ind_mag_atoms:
|
163
|
+
if atom_idx not in self.orb_dict:
|
148
164
|
raise ValueError(
|
149
|
-
f"
|
165
|
+
f"Atom {atom_idx} is magnetic but has no orbitals assigned. "
|
166
|
+
"Check Wannier function definitions."
|
150
167
|
)
|
168
|
+
|
169
|
+
# For non-collinear case, check spin-orbital pairing
|
151
170
|
if not self._is_collinear:
|
152
|
-
for
|
153
|
-
|
154
|
-
nsorb = len(self.orb_dict[iatom])
|
155
|
-
if nsorb % 2 != 0 and False:
|
171
|
+
for atom_idx, orbitals in self.orb_dict.items():
|
172
|
+
if len(orbitals) % 2 != 0:
|
156
173
|
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
|
-
"""
|
174
|
+
f"Atom {atom_idx} has {len(orbitals)} spin-orbitals "
|
175
|
+
"(should be even). Check Wannier function localization."
|
163
176
|
)
|
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
177
|
|
170
|
-
|
178
|
+
def _create_spin_mappings(self):
|
179
|
+
"""Create mappings between atom indices and spin indices."""
|
180
|
+
self._spin_dict = {} # {atom_index: spin_index}
|
181
|
+
self._atom_dict = {} # {spin_index: atom_index}
|
182
|
+
|
183
|
+
for spin_idx, atom_idx in enumerate(self.ind_mag_atoms):
|
184
|
+
self._spin_dict[atom_idx] = spin_idx
|
185
|
+
self._atom_dict[spin_idx] = atom_idx
|
171
186
|
|
172
187
|
def _prepare_orb_mmat(self):
|
173
188
|
self.mmats = {}
|
@@ -566,12 +581,23 @@ class ExchangeNCL(Exchange):
|
|
566
581
|
AijRs: a list of AijR,
|
567
582
|
wherer AijR: array of ((nR, n, n, 4,4), dtype=complex)
|
568
583
|
"""
|
584
|
+
# if method == "trapezoidal":
|
585
|
+
# integrate = trapezoidal_nonuniform
|
586
|
+
# elif method == "simpson":
|
587
|
+
# integrate = simpson_nonuniform
|
588
|
+
#
|
589
|
+
|
590
|
+
# self.rho = integrate(self.contour.path, rhoRs)
|
569
591
|
for iR, R in enumerate(self.R_ijatom_dict):
|
570
592
|
for iatom, jatom in self.R_ijatom_dict[R]:
|
571
593
|
f = AijRs[(R, iatom, jatom)]
|
594
|
+
# self.A_ijR[(R, iatom, jatom)] = integrate(self.contour.path, f)
|
572
595
|
self.A_ijR[(R, iatom, jatom)] = self.contour.integrate_values(f)
|
573
596
|
|
574
597
|
if self.orb_decomposition:
|
598
|
+
# self.A_ijR_orb[(R, iatom, jatom)] = integrate(
|
599
|
+
# self.contour.path, AijRs_orb[(R, iatom, jatom)]
|
600
|
+
# )
|
575
601
|
self.contour.integrate_values(AijRs_orb[(R, iatom, jatom)])
|
576
602
|
|
577
603
|
def get_quantities_per_e(self, e):
|
@@ -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,6 +232,21 @@ 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
|
|
@@ -250,4 +268,5 @@ def parser_argument_to_dict(args) -> dict:
|
|
250
268
|
"orb_decomposition": args.orb_decomposition,
|
251
269
|
"output_path": args.output_path,
|
252
270
|
"orth": args.orth,
|
271
|
+
"index_magnetic_atoms": args.index_magnetic_atoms,
|
253
272
|
}
|
@@ -338,12 +338,6 @@ Generation time: {now.strftime("%y/%m/%d %H:%M:%S")}
|
|
338
338
|
)
|
339
339
|
return Jtensor
|
340
340
|
|
341
|
-
def get_J_tensor_dict(self):
|
342
|
-
Jdict = {}
|
343
|
-
for i, j, R in self.ijR_list():
|
344
|
-
Jdict[(i, j, R)] = self.get_J_tensor(i, j, R)
|
345
|
-
return Jdict
|
346
|
-
|
347
341
|
def get_full_Jtensor_for_one_R(self, R, iso_only=False):
|
348
342
|
"""
|
349
343
|
Return the full exchange tensor of all i and j for cell R.
|
@@ -411,7 +405,6 @@ Generation time: {now.strftime("%y/%m/%d %H:%M:%S")}
|
|
411
405
|
self.write_multibinit(path=os.path.join(path, "Multibinit"))
|
412
406
|
self.write_tom_format(path=os.path.join(path, "TomASD"))
|
413
407
|
self.write_vampire(path=os.path.join(path, "Vampire"))
|
414
|
-
self.write_matjes(path=os.path.join(path, "Matjes"))
|
415
408
|
|
416
409
|
self.plot_all(savefile=os.path.join(path, "JvsR.pdf"))
|
417
410
|
# self.write_Jq(kmesh=[9, 9, 9], path=path)
|
@@ -580,11 +573,6 @@ Generation time: {now.strftime("%y/%m/%d %H:%M:%S")}
|
|
580
573
|
|
581
574
|
write_uppasd(self, path=path)
|
582
575
|
|
583
|
-
def write_matjes(self, path):
|
584
|
-
from TB2J.io_exchange.io_matjes import write_matjes
|
585
|
-
|
586
|
-
write_matjes(self, path=path)
|
587
|
-
|
588
576
|
|
589
577
|
def gen_distance_dict(ind_mag_atoms, atoms, Rlist):
|
590
578
|
distance_dict = {}
|
@@ -600,21 +588,6 @@ def gen_distance_dict(ind_mag_atoms, atoms, Rlist):
|
|
600
588
|
return distance_dict
|
601
589
|
|
602
590
|
|
603
|
-
def get_ind_shell(distance_dict, symprec=1e-5):
|
604
|
-
"""
|
605
|
-
return a dictionary of shell index for each pair of atoms.
|
606
|
-
The index of shell is the ith shortest distances between all magnetic atom pairs.
|
607
|
-
"""
|
608
|
-
shell_dict = {}
|
609
|
-
distances = np.array([x[1] for x in distance_dict.values()])
|
610
|
-
distances_int = np.round(distances / symprec).astype(int)
|
611
|
-
dint = sorted(np.unique(distances_int))
|
612
|
-
dintdict = dict(zip(dint, range(len(dint))))
|
613
|
-
for key, val in enumerate(distances_int):
|
614
|
-
shell_dict[key] = dintdict[val]
|
615
|
-
return shell_dict
|
616
|
-
|
617
|
-
|
618
591
|
def test_spin_io():
|
619
592
|
import numpy as np
|
620
593
|
from ase import Atoms
|
@@ -64,6 +64,10 @@ class CFR:
|
|
64
64
|
# zp = 1j / eigp * kb * self.T
|
65
65
|
# Rp = 0.25 * np.diag(eigv)**2 * zp **2
|
66
66
|
|
67
|
+
# print the poles and the weights
|
68
|
+
for i in range(len(self.poles)):
|
69
|
+
print("Pole: ", self.poles[i], "Weight: ", self.weights[i])
|
70
|
+
|
67
71
|
# add a point to the poles: 1e10j
|
68
72
|
self.path = np.concatenate((self.path, [self.Rinf * 1j]))
|
69
73
|
# self.path = np.concatenate((self.path, [0.0]))
|
@@ -9,7 +9,7 @@ from TB2J.versioninfo import print_license
|
|
9
9
|
|
10
10
|
|
11
11
|
class TB2JSymmetrizer:
|
12
|
-
def __init__(self, exc, symprec=1e-8, verbose=True, Jonly=
|
12
|
+
def __init__(self, exc, symprec=1e-8, verbose=True, Jonly=False):
|
13
13
|
# list of pairs with the index of atoms
|
14
14
|
ijRs = exc.ijR_list_index_atom()
|
15
15
|
finder = SymmetryPairFinder(atoms=exc.atoms, pairs=ijRs, symprec=symprec)
|
@@ -25,12 +25,6 @@ class TB2JSymmetrizer:
|
|
25
25
|
)
|
26
26
|
print("-" * 30)
|
27
27
|
if exc.has_dmi:
|
28
|
-
# raise NotImplementedError(
|
29
|
-
# "Symmetrization of DMI is not yet implemented."
|
30
|
-
# )
|
31
|
-
# raise Warning(
|
32
|
-
# "WARNING: Symmetrization of DMI is not yet implemented."
|
33
|
-
# )
|
34
28
|
print(
|
35
29
|
"WARNING: Currently only the isotropic exchange is symmetrized. Symmetrization of DMI and anisotropic exchange are not yet implemented."
|
36
30
|
)
|
@@ -39,7 +33,7 @@ class TB2JSymmetrizer:
|
|
39
33
|
print("Symmetry found:")
|
40
34
|
print(finder.spacegroup)
|
41
35
|
print("-" * 30)
|
42
|
-
self.
|
36
|
+
self.pgdict = finder.get_symmetry_pair_group_dict()
|
43
37
|
self.exc = exc
|
44
38
|
self.new_exc = copy.deepcopy(exc)
|
45
39
|
self.Jonly = Jonly
|
@@ -52,25 +46,21 @@ class TB2JSymmetrizer:
|
|
52
46
|
Symmetrize the exchange parameters J.
|
53
47
|
"""
|
54
48
|
symJdict = {}
|
55
|
-
reduced_symJdict = {}
|
56
49
|
# Jdict = self.exc.exchange_Jdict
|
57
|
-
|
58
|
-
|
50
|
+
# ngroup = self.pgdict
|
51
|
+
for pairgroup in self.pgdict.groups:
|
52
|
+
ijRs = pairgroup.get_all_ijR()
|
59
53
|
ijRs_spin = [self.exc.ijR_index_atom_to_spin(*ijR) for ijR in ijRs]
|
60
54
|
Js = [self.exc.get_J(*ijR_spin) for ijR_spin in ijRs_spin]
|
61
55
|
Javg = np.average(Js)
|
62
56
|
for i, j, R in ijRs_spin:
|
63
57
|
symJdict[(R, i, j)] = Javg
|
64
|
-
ijRs_ref = ijRs_spin[0]
|
65
|
-
i, j, R = ijRs_ref
|
66
|
-
reduced_symJdict[(R, i, j)] = Javg
|
67
58
|
self.new_exc.exchange_Jdict = symJdict
|
68
59
|
if self.Jonly:
|
69
60
|
self.new_exc.has_dmi = False
|
70
61
|
self.new_exc.dmi_ddict = None
|
71
62
|
self.new_exc.has_bilinear = False
|
72
63
|
self.new_exc.Jani_dict = None
|
73
|
-
self.new_exc.reduced_exchange_Jdict = reduced_symJdict
|
74
64
|
self.has_uniaxial_anisotropy = False
|
75
65
|
self.k1 = None
|
76
66
|
self.k1dir = None
|
@@ -134,12 +124,12 @@ def symmetrize_J_cli():
|
|
134
124
|
help="precision for symmetry detection. default is 1e-5 Angstrom",
|
135
125
|
)
|
136
126
|
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
127
|
+
parser.add_argument(
|
128
|
+
"--Jonly",
|
129
|
+
action="store_true",
|
130
|
+
help="symmetrize only the exchange parameters and discard the DMI and anisotropic exchange",
|
131
|
+
default=False,
|
132
|
+
)
|
143
133
|
|
144
134
|
args = parser.parse_args()
|
145
135
|
if args.inpath is None:
|
@@ -149,8 +139,7 @@ def symmetrize_J_cli():
|
|
149
139
|
path=args.inpath,
|
150
140
|
output_path=args.outpath,
|
151
141
|
symprec=args.symprec,
|
152
|
-
|
153
|
-
Jonly=True,
|
142
|
+
Jonly=args.Jonly,
|
154
143
|
)
|
155
144
|
|
156
145
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import numpy as np
|
2
|
+
|
3
|
+
|
4
|
+
def theta_phi_even_spaced(n):
|
5
|
+
"""
|
6
|
+
Return n evenly spaced theta and phi values in the ranges [0, pi] and [0, 2*pi] respectively.
|
7
|
+
"""
|
8
|
+
phis = []
|
9
|
+
thetas = []
|
10
|
+
for i in range(n):
|
11
|
+
phi = 2 * np.pi * i / n
|
12
|
+
phis.append(phi)
|
13
|
+
r = np.sin(np.pi * i / n)
|
14
|
+
theta = np.arccos(1 - 2 * r)
|
15
|
+
thetas.append(theta)
|
16
|
+
return thetas, phis
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: TB2J
|
3
|
-
Version: 0.9.
|
3
|
+
Version: 0.9.9rc9
|
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.1.9
|
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
|
@@ -0,0 +1,101 @@
|
|
1
|
+
LICENSE
|
2
|
+
README.md
|
3
|
+
setup.py
|
4
|
+
TB2J/Jdownfolder.py
|
5
|
+
TB2J/Jtensor.py
|
6
|
+
TB2J/MAE.py
|
7
|
+
TB2J/MAEGreen.py
|
8
|
+
TB2J/Oiju.py
|
9
|
+
TB2J/Oiju_epc.py
|
10
|
+
TB2J/__init__.py
|
11
|
+
TB2J/anisotropy.py
|
12
|
+
TB2J/basis.py
|
13
|
+
TB2J/citation.py
|
14
|
+
TB2J/contour.py
|
15
|
+
TB2J/density_matrix.py
|
16
|
+
TB2J/epc.py
|
17
|
+
TB2J/exchange.py
|
18
|
+
TB2J/exchangeCL2.py
|
19
|
+
TB2J/exchange_params.py
|
20
|
+
TB2J/exchange_pert.py
|
21
|
+
TB2J/exchange_qspace.py
|
22
|
+
TB2J/gpaw_wrapper.py
|
23
|
+
TB2J/green.py
|
24
|
+
TB2J/greentest.py
|
25
|
+
TB2J/io_merge.py
|
26
|
+
TB2J/kpoints.py
|
27
|
+
TB2J/myTB.py
|
28
|
+
TB2J/mycfr.py
|
29
|
+
TB2J/orbital_magmom.py
|
30
|
+
TB2J/orbmap.py
|
31
|
+
TB2J/pauli.py
|
32
|
+
TB2J/pert.py
|
33
|
+
TB2J/plot.py
|
34
|
+
TB2J/rotate_atoms.py
|
35
|
+
TB2J/rotate_siestaDM.py
|
36
|
+
TB2J/sisl_wrapper.py
|
37
|
+
TB2J/symmetrize_J.py
|
38
|
+
TB2J/tensor_rotate.py
|
39
|
+
TB2J/thetaphi.py
|
40
|
+
TB2J/utest.py
|
41
|
+
TB2J/utils.py
|
42
|
+
TB2J/versioninfo.py
|
43
|
+
TB2J.egg-info/PKG-INFO
|
44
|
+
TB2J.egg-info/SOURCES.txt
|
45
|
+
TB2J.egg-info/dependency_links.txt
|
46
|
+
TB2J.egg-info/entry_points.txt
|
47
|
+
TB2J.egg-info/requires.txt
|
48
|
+
TB2J.egg-info/top_level.txt
|
49
|
+
TB2J/external/__init__.py
|
50
|
+
TB2J/external/p_tqdm.py
|
51
|
+
TB2J/interfaces/__init__.py
|
52
|
+
TB2J/interfaces/gpaw_interface.py
|
53
|
+
TB2J/interfaces/lawaf_interface.py
|
54
|
+
TB2J/interfaces/manager.py
|
55
|
+
TB2J/interfaces/siesta_interface.py
|
56
|
+
TB2J/interfaces/wannier90_interface.py
|
57
|
+
TB2J/interfaces/abacus/__init__.py
|
58
|
+
TB2J/interfaces/abacus/abacus_api.py
|
59
|
+
TB2J/interfaces/abacus/abacus_wrapper.py
|
60
|
+
TB2J/interfaces/abacus/gen_exchange_abacus.py
|
61
|
+
TB2J/interfaces/abacus/orbital_api.py
|
62
|
+
TB2J/interfaces/abacus/stru_api.py
|
63
|
+
TB2J/interfaces/abacus/test_density_matrix.py
|
64
|
+
TB2J/interfaces/abacus/test_read_HRSR.py
|
65
|
+
TB2J/interfaces/abacus/test_read_stru.py
|
66
|
+
TB2J/io_exchange/__init__.py
|
67
|
+
TB2J/io_exchange/io_exchange.py
|
68
|
+
TB2J/io_exchange/io_multibinit.py
|
69
|
+
TB2J/io_exchange/io_tomsasd.py
|
70
|
+
TB2J/io_exchange/io_txt.py
|
71
|
+
TB2J/io_exchange/io_uppasd.py
|
72
|
+
TB2J/io_exchange/io_vampire.py
|
73
|
+
TB2J/mathutils/__init__.py
|
74
|
+
TB2J/mathutils/fermi.py
|
75
|
+
TB2J/mathutils/fibonacci_sphere.py
|
76
|
+
TB2J/mathutils/kR_convert.py
|
77
|
+
TB2J/mathutils/lowdin.py
|
78
|
+
TB2J/mathutils/rotate_spin.py
|
79
|
+
TB2J/spinham/__init__.py
|
80
|
+
TB2J/spinham/base_parser.py
|
81
|
+
TB2J/spinham/constants.py
|
82
|
+
TB2J/spinham/hamiltonian.py
|
83
|
+
TB2J/spinham/hamiltonian_terms.py
|
84
|
+
TB2J/spinham/plot.py
|
85
|
+
TB2J/spinham/qsolver.py
|
86
|
+
TB2J/spinham/spin_api.py
|
87
|
+
TB2J/spinham/spin_xml.py
|
88
|
+
TB2J/spinham/supercell.py
|
89
|
+
TB2J/wannier/__init__.py
|
90
|
+
TB2J/wannier/w90_parser.py
|
91
|
+
TB2J/wannier/w90_tb_parser.py
|
92
|
+
scripts/TB2J_downfold.py
|
93
|
+
scripts/TB2J_eigen.py
|
94
|
+
scripts/TB2J_magnon.py
|
95
|
+
scripts/TB2J_magnon_dos.py
|
96
|
+
scripts/TB2J_merge.py
|
97
|
+
scripts/TB2J_rotate.py
|
98
|
+
scripts/TB2J_rotateDM.py
|
99
|
+
scripts/abacus2J.py
|
100
|
+
scripts/siesta2J.py
|
101
|
+
scripts/wann2J.py
|
@@ -0,0 +1,59 @@
|
|
1
|
+
#!/usr/bin/env python3
|
2
|
+
import argparse
|
3
|
+
import sys
|
4
|
+
|
5
|
+
from TB2J.interfaces import gen_exchange_abacus
|
6
|
+
from TB2J.versioninfo import print_license
|
7
|
+
from TB2J.exchange_params import add_exchange_args_to_parser
|
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
|
+
|
30
|
+
args = parser.parse_args()
|
31
|
+
|
32
|
+
if args.elements is None:
|
33
|
+
print("Please input the magnetic elements, e.g. --elements Fe Ni")
|
34
|
+
sys.exit()
|
35
|
+
|
36
|
+
# include_orbs = {}
|
37
|
+
|
38
|
+
gen_exchange_abacus(
|
39
|
+
path=args.path,
|
40
|
+
suffix=args.suffix,
|
41
|
+
kmesh=args.kmesh,
|
42
|
+
magnetic_elements=args.elements,
|
43
|
+
include_orbs={},
|
44
|
+
Rcut=args.rcut,
|
45
|
+
emin=args.emin,
|
46
|
+
nz=args.nz,
|
47
|
+
description=args.description,
|
48
|
+
output_path=args.output_path,
|
49
|
+
use_cache=args.use_cache,
|
50
|
+
nproc=args.nproc,
|
51
|
+
exclude_orbs=args.exclude_orbs,
|
52
|
+
orb_decomposition=args.orb_decomposition,
|
53
|
+
index_magnetic_atoms=args.index_magnetic_atoms,
|
54
|
+
cutoff=args.cutoff,
|
55
|
+
)
|
56
|
+
|
57
|
+
|
58
|
+
if __name__ == "__main__":
|
59
|
+
run_abacus2J()
|
@@ -0,0 +1,75 @@
|
|
1
|
+
#!/usr/bin/env python3
|
2
|
+
import argparse
|
3
|
+
import sys
|
4
|
+
|
5
|
+
from TB2J.interfaces import gen_exchange_siesta
|
6
|
+
from TB2J.versioninfo import print_license
|
7
|
+
from TB2J.exchange_params import add_exchange_args_to_parser
|
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
|
+
|
36
|
+
args = parser.parse_args()
|
37
|
+
|
38
|
+
if args.elements is None:
|
39
|
+
print("Please input the magnetic elements, e.g. --elements Fe Ni")
|
40
|
+
sys.exit()
|
41
|
+
|
42
|
+
# include_orbs = {}
|
43
|
+
# for element in args.elements:
|
44
|
+
# if "_" in element:
|
45
|
+
# elem = element.split("_")[0]
|
46
|
+
# orb = element.split("_")[1:]
|
47
|
+
# include_orbs[elem] = orb
|
48
|
+
# else:
|
49
|
+
# include_orbs[element] = None
|
50
|
+
|
51
|
+
gen_exchange_siesta(
|
52
|
+
fdf_fname=args.fdf_fname,
|
53
|
+
kmesh=args.kmesh,
|
54
|
+
# magnetic_elements=list(include_orbs.keys()),
|
55
|
+
# include_orbs=include_orbs,
|
56
|
+
magnetic_elements=args.elements,
|
57
|
+
include_orbs={},
|
58
|
+
Rcut=args.rcut,
|
59
|
+
emin=args.emin,
|
60
|
+
emax=args.emax,
|
61
|
+
nz=args.nz,
|
62
|
+
description=args.description,
|
63
|
+
output_path=args.output_path,
|
64
|
+
use_cache=args.use_cache,
|
65
|
+
nproc=args.np,
|
66
|
+
exclude_orbs=args.exclude_orbs,
|
67
|
+
orb_decomposition=args.orb_decomposition,
|
68
|
+
read_H_soc=args.split_soc,
|
69
|
+
orth=args.orth,
|
70
|
+
index_magnetic_atoms=args.index_magnetic_atoms,
|
71
|
+
)
|
72
|
+
|
73
|
+
|
74
|
+
if __name__ == "__main__":
|
75
|
+
run_siesta2J()
|