Skip to main content

Implementation for computing nonradiative recombination rates in semiconductors

Project description

build badge docs badge codacy codecov license DOI

NONRAD

An implementation of the methodology pioneered by Alkauskas et al. for computing nonradiative recombination rates from first principles. The code includes various utilities for processing first principles calculations and preparing the input for computing capture coefficients. More details on the implementation of the code can be found in our recent paper. Documentation for the code is hosted on Read the Docs.

Installation

NONRAD is implemented in python and can be installed through pip. Dependencies are kept to a minimum and include standard packages such as numpy, scipy, and pymatgen.

With pip

As always with python, it is highly recommended to use a virtual environment. To install NONRAD, issue the following command,

$ pip install nonrad

or to install directly from github,

$ pip install git+https://github.com/mturiansky/nonrad

Going Fast (Recommended)

NONRAD can use numba to accelerate certain calculations. If numba is already installed, it will be used; otherwise, it can be installed by specifying [fast] during installation with pip, e.g.

$ pip install nonrad[fast]

For Development

To install NONRAD for development purposes, clone the repository

$ git clone https://github.com/mturiansky/nonrad && cd nonrad

then install the package in editable mode with development dependencies

$ pip install -e .[dev]

pytest is used for unittesting. To run the unittests, issue the command pytest nonrad from the base directory. Unittests should run correctly with and without numba installed.

Usage

A tutorial notebook that describes the various steps is available here. The basic steps are summarized below:

  1. Perform a first-principles calculation of the target defect system. A good explanation of the methodology can be found in this Review of Modern Physics. A high quality calculation is necessary as input for the nonradiative capture rate as the resulting values can differ by orders of magnitude depending on the input values.
  2. Calculate the potential energy surfaces for the configuration coordinate diagram. This is facilitated using the get_cc_structures function. Extract the relevant parameters from the configuration coordinate diagram, aided by get_dQ, get_PES_from_vaspruns, and get_omega_from_PES.
  3. Calculate the electron-phonon coupling matrix elements, using the method of your choice (see our paper for details on this calculation with VASP). Extraction of the matrix elements are facilitated by the get_Wif_from_wavecars or the get_Wif_from_WSWQ function.
  4. Calculate scaling coefficients using sommerfeld_parameter and/or charged_supercell_scaling.
  5. Perform the calculation of the nonradiative capture coefficient using get_C.

Contributing

To contribute, see the above section on installing for development. Contributions are welcome and any potential change or improvement should be submitted as a pull request on Github. Potential contribution areas are:

  • implement a command line interface
  • add more robust tests for various functions

How to Cite

If you use our code to calculate nonradiative capture rates, please consider citing

@article{alkauskas_first-principles_2014,
	title = {First-principles theory of nonradiative carrier capture via multiphonon emission},
	volume = {90},
	doi = {10.1103/PhysRevB.90.075202},
	number = {7},
	journal = {Phys. Rev. B},
	author = {Alkauskas, Audrius and Yan, Qimin and Van de Walle, Chris G.},
	month = aug,
	year = {2014},
	pages = {075202},
}

and

@article{turiansky_nonrad_2021,
	title = {Nonrad: {Computing} nonradiative capture coefficients from first principles},
	volume = {267},
	doi = {10.1016/j.cpc.2021.108056},
	journal = {Comput. Phys. Commun.},
	author = {Turiansky, Mark E. and Alkauskas, Audrius and Engel, Manuel and Kresse, Georg and Wickramaratne, Darshana and Shen, Jimmy-Xuan and Dreyer, Cyrus E. and Van de Walle, Chris G.},
	month = oct,
	year = {2021},
	pages = {108056},
}

If you use the functionality for the Sommerfeld parameter in 2 and 1 dimensions, then please cite

@article{turiansky_dimensionality_2024,
    title = {Dimensionality Effects on Trap-Assisted Recombination: The {{Sommerfeld}} Parameter},
    shorttitle = {Dimensionality Effects on Trap-Assisted Recombination},
    author = {Turiansky, Mark E and Alkauskas, Audrius and Van De Walle, Chris G},
    year = {2024},
    month = may,
    journal = {J. Phys.: Condens. Matter},
    volume = {36},
    number = {19},
    pages = {195902},
    doi = {10.1088/1361-648X/ad2588},
}

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

nonrad-1.2.0.tar.gz (6.1 MB view details)

Uploaded Source

Built Distribution

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

nonrad-1.2.0-py3-none-any.whl (6.3 MB view details)

Uploaded Python 3

File details

Details for the file nonrad-1.2.0.tar.gz.

File metadata

  • Download URL: nonrad-1.2.0.tar.gz
  • Upload date:
  • Size: 6.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.12.4 CPython/3.11.8

File hashes

Hashes for nonrad-1.2.0.tar.gz
Algorithm Hash digest
SHA256 5a9609b3052e4d32be47784b83e87584339b25bc596657aeb27cb043069c901b
MD5 990f6c65401f561decf6c192587c0d69
BLAKE2b-256 d513f64fae3aeffb8a80aeffae7f2ce9fdb6c139b44ad602db1273f05b8960f8

See more details on using hashes here.

File details

Details for the file nonrad-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: nonrad-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.12.4 CPython/3.11.8

File hashes

Hashes for nonrad-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c991d4dcd6dffe3f5a36e87dd243b4910a8d0ec722a6e5b54fd6ed0d346634ee
MD5 036f36a24538cde8f9e736eec2895c6f
BLAKE2b-256 96678c719c8749e3e7371c924272e3ddb1eef8d03d978fc73272a07acb1c80ee

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