Skip to main content

TB2Jflows: Workflows for automatically calculation of exchange parameters using TB2J

Project description

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()
~                                     

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tb2jflows-0.2.2-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file tb2jflows-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: tb2jflows-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.17

File hashes

Hashes for tb2jflows-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 972de6900069ba6e72979e233e1454616bc538391388480a116f7c9c96662b10
MD5 ae455050bd5ae629227cdf23f61d1589
BLAKE2b-256 b236450b0fa25a84f497561467ac87945c34545c8f3f85ed1686b23f4c2bebfd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page