TB2Jflows
Workflows for automatically calculation of exchange parameters from DFT
Installation
First download the package from the github page. Run the following command in the TB2Jflows directory
pip install . --user
will install TB2Jflows and the dependencies.
You need the following things to
- Siesta built with psml and netcdf.
- Pseudopotentials from PseudoDojo Dataset.
- Configure the command to run siesta and the path to the pseudopotentials, e.g.
export ASE_IESTA_COMMAND="mpirun siesta < PREFIX.fdf > PREFIX.out 2> PREFIX.err"
export DOJO_PATH='$HOME/.local/pp/dojo'
Usage
Below is an example of calculating the exchange parameters of SrMnO3:
from ase.io import read
from TB2Jflows import SiestaFlow
def calculate_siesta_TB2J_SrMnO3():
atoms = read('SrMnO3.STRUCT_OUT')
atoms.set_initial_magnetic_moments([0, 3, 0, 0, 0])
flow = SiestaFlow(atoms,
spin='spin-orbit',
restart=True,
root_path='SrMnO3')
flow.write_metadata()
atoms = flow.relax(atoms)
flow.scf_calculation_with_rotations(atoms)
flow.run_TB2J(magnetic_elements='Mn',
nz=50,
kmesh=[7, 7, 7],
Rcut=18,
np=10,
use_cache=True)
flow.run_TB2J_merge()
if __name__ == '__main__':
calculate_siesta_TB2J_SrMnO3()
~
Metadata
Release files for TB2Jflows 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tb2jflows-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for tb2jflows-0.2.3-py3-none-any.whl |
Release files / tb2jflows-0.2.3-py3-none-any.whl
| Download URL | tb2jflows-0.2.3-py3-none-any.whl |
|---|---|
| Size | 18.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
27a9414c1c328a005738bc72a5b52ab97ec1d8770be18c986fb17fcb8fc1e31a
|
|
BLAKE2b-256 checksum How to use checksums |
95a889e67982f1e54b82f1ca5da71d94d847410c706d0b55a5b4b6efa89880cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.19
|
Security for TB2Jflows 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.