Skip to main content

Python package to setup, process and analyse solid-state defect calculations with VASP

Project description

Build status Documentation Status PyPI Conda Version Downloads

Schematic of a doped (defect-containing) crystal, inspired by the biological analogy to (semiconductor) doping.doped is a python package for managing solid-state defect calculations, with functionality to generate defect structures and relevant competing phases (for chemical potentials), interface with ShakeNBreak for defect structure-searching, write VASP input files for defect supercell calculations, and automatically parse and analyse the results.

Tutorials showing the code functionality and usage are provided on the docs site.

Example Outputs:

Chemical potential/stability region plots and defect formation energy (a.k.a. transition level) diagrams:












Installation

pip install doped  # install doped and dependencies

Alternatively if desired, doped can also be installed from conda with:

  conda install -c conda-forge doped

If you haven't done so already, you will need to set up your VASP POTCAR files and Materials Project API with pymatgen using the .pmgrc.yaml file, in order for doped to automatically generate VASP input files for defect calculations and determine competing phases for chemical potentials. See the docs Installation page for details on this.

ShakeNBreak

As shown in the example notebook, it is highly recommended to use the ShakeNBreak approach when calculating point defects in solids, to ensure you have identified the groundstate structures of your defects. As detailed in the theory paper, skipping this step can result in drastically incorrect formation energies, transition levels, carrier capture (basically any property associated with defects). This approach is followed in the doped example notebook, with a more in-depth explanation and tutorial given on the ShakeNBreak website.

Summary GIF: ShakeNBreak Summary

SnB CLI Usage: ShakeNBreak CLI

Acknowledgments

doped (née DefectsWithTheBoys #iykyk) has benefitted from feedback from many users, in particular members of the Scanlon and Walsh research groups who have used / are using it in their work. Direct contributors are listed in the Contributors sidebar above; including Seán Kavanagh, Bonan Zhu, Katarina Brlec, Adair Nicolson, Sabrine Hachmioune and Savya Aggarwal.

Code to efficiently identify defect species from input supercell structures was contributed by Dr Alex Ganose, and the colour scheme for defect formation energy plots was originally templated from the aide package, developed by the dynamic duo Adam Jackson and Alex Ganose.

The docs website setup was templated from the ShakeNBreak docs set up by Irea Mosquera-Lois 🙌

doped was originally based on the excellent PyCDT (no longer maintained), but transformed and morphed over time as more and more functionality was added. After breaking changes in pymatgen, the package was entirely refactored and rewritten, to work with the new pymatgen-analysis-defects package.

Studies using doped (so far)

Project details


Download files

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

Source Distribution

doped-2.1.0.tar.gz (209.2 kB view details)

Uploaded Source

Built Distribution

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

doped-2.1.0-py3-none-any.whl (162.7 kB view details)

Uploaded Python 3

File details

Details for the file doped-2.1.0.tar.gz.

File metadata

  • Download URL: doped-2.1.0.tar.gz
  • Upload date:
  • Size: 209.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for doped-2.1.0.tar.gz
Algorithm Hash digest
SHA256 9be220d48d5c456efced06eb3610965e3eead42cea804db88d66de862b0920d9
MD5 2a94d7a4519d507bec92bffea0c2185b
BLAKE2b-256 a21d3dc07915ab7b2f55f48ea791c885b2f3eab6f069f63c7fc31a00c29758c7

See more details on using hashes here.

File details

Details for the file doped-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: doped-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 162.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for doped-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5f3e47eb5abb34274cc4a07fb7566b4c6b3c93a2900fb833b7888b82570b7bc
MD5 00443f63dca1d60c71bc187b8ebc8f33
BLAKE2b-256 5537d2fb62812c2256edea7bc7ec4dc0e02e3958ab13e89657c9a8d80de97609

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