nonrad


Namenonrad JSON
Version 1.2.0 PyPI version JSON
download
home_page
SummaryImplementation for computing nonradiative recombination rates in semiconductors
upload_time2024-03-11 23:52:35
maintainer
docs_urlNone
author
requires_python>=3.9
licenseMIT
keywords physics materials science vasp recombination shockley-read-hall
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![build badge](https://img.shields.io/github/actions/workflow/status/mturiansky/nonrad/ci.yml) [![docs badge](https://readthedocs.org/projects/nonrad/badge/?version=latest)](https://nonrad.readthedocs.io/en/latest/?badge=latest) [![codacy](https://app.codacy.com/project/badge/Grade/97df4e822c2349ff858a756b033c6041)](https://www.codacy.com?utm_source=github.com&utm_medium=referral&utm_content=mturiansky/nonrad&utm_campaign=Badge_Grade) [![codecov](https://codecov.io/gh/mturiansky/nonrad/branch/master/graph/badge.svg?token=N1IXIQK333)](https://codecov.io/gh/mturiansky/nonrad) [![license](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4274317.svg)](https://doi.org/10.5281/zenodo.4274317)

# NONRAD

An implementation of the methodology pioneered by [Alkauskas *et al.*](https://doi.org/10.1103/PhysRevB.90.075202) 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](https://nonrad.readthedocs.io/en/latest).

## 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](https://github.com/mturiansky/nonrad/blob/master/notebooks/tutorial.ipynb).
The basic steps are summarized below:

0. 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](http://dx.doi.org/10.1103/RevModPhys.86.253). 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.
1. 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`.
2. 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.
3. Calculate scaling coefficients using `sommerfeld_parameter` and/or `charged_supercell_scaling`.
4. Perform the calculation of the nonradiative capture coefficient using `get_C`.

## Contributing
To contribute, see the above section on installing [for development](#for-development).
Contributions are welcome and any potential change or improvement should be submitted as a pull request on [Github](https://github.com/mturiansky/nonrad/pulls).
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},
}
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "nonrad",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "physics materials science VASP recombination Shockley-Read-Hall",
    "author": "",
    "author_email": "Mark E. Turiansky <mturiansky@ucsb.edu>",
    "download_url": "https://files.pythonhosted.org/packages/d5/13/f64fae3aeffb8a80aeffae7f2ce9fdb6c139b44ad602db1273f05b8960f8/nonrad-1.2.0.tar.gz",
    "platform": null,
    "description": "![build badge](https://img.shields.io/github/actions/workflow/status/mturiansky/nonrad/ci.yml) [![docs badge](https://readthedocs.org/projects/nonrad/badge/?version=latest)](https://nonrad.readthedocs.io/en/latest/?badge=latest) [![codacy](https://app.codacy.com/project/badge/Grade/97df4e822c2349ff858a756b033c6041)](https://www.codacy.com?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=mturiansky/nonrad&amp;utm_campaign=Badge_Grade) [![codecov](https://codecov.io/gh/mturiansky/nonrad/branch/master/graph/badge.svg?token=N1IXIQK333)](https://codecov.io/gh/mturiansky/nonrad) [![license](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4274317.svg)](https://doi.org/10.5281/zenodo.4274317)\n\n# NONRAD\n\nAn implementation of the methodology pioneered by [Alkauskas *et al.*](https://doi.org/10.1103/PhysRevB.90.075202) for computing nonradiative recombination rates from first principles.\nThe code includes various utilities for processing first principles calculations and preparing the input for computing capture coefficients.\nMore details on the implementation of the code can be found in [our recent paper]().\nDocumentation for the code is hosted on [Read the Docs](https://nonrad.readthedocs.io/en/latest).\n\n## Installation\nNONRAD is implemented in python and can be installed through `pip`.\nDependencies are kept to a minimum and include standard packages such as `numpy`, `scipy`, and `pymatgen`.\n\n#### With pip\nAs always with python, it is highly recommended to use a virtual environment.\nTo install NONRAD, issue the following command,\n```\n$ pip install nonrad\n```\nor to install directly from github,\n```\n$ pip install git+https://github.com/mturiansky/nonrad\n```\n\n#### Going Fast (*Recommended*)\nNONRAD can use `numba` to accelerate certain calculations.\nIf `numba` is already installed, it will be used;\notherwise, it can be installed by specifying `[fast]` during installation with pip, e.g.\n```\n$ pip install nonrad[fast]\n```\n\n#### For Development\nTo install NONRAD for development purposes, clone the repository\n```\n$ git clone https://github.com/mturiansky/nonrad && cd nonrad\n```\nthen install the package in editable mode with development dependencies\n```\n$ pip install -e .[dev]\n```\n`pytest` is used for unittesting.\nTo run the unittests, issue the command `pytest nonrad` from the base directory.\nUnittests should run correctly with and without `numba` installed.\n\n## Usage\nA tutorial notebook that describes the various steps is available [here](https://github.com/mturiansky/nonrad/blob/master/notebooks/tutorial.ipynb).\nThe basic steps are summarized below:\n\n0. 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](http://dx.doi.org/10.1103/RevModPhys.86.253). 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.\n1. 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`.\n2. 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.\n3. Calculate scaling coefficients using `sommerfeld_parameter` and/or `charged_supercell_scaling`.\n4. Perform the calculation of the nonradiative capture coefficient using `get_C`.\n\n## Contributing\nTo contribute, see the above section on installing [for development](#for-development).\nContributions are welcome and any potential change or improvement should be submitted as a pull request on [Github](https://github.com/mturiansky/nonrad/pulls).\nPotential contribution areas are:\n - [ ] implement a command line interface\n - [ ] add more robust tests for various functions\n\n## How to Cite\nIf you use our code to calculate nonradiative capture rates, please consider citing\n```\n@article{alkauskas_first-principles_2014,\n\ttitle = {First-principles theory of nonradiative carrier capture via multiphonon emission},\n\tvolume = {90},\n\tdoi = {10.1103/PhysRevB.90.075202},\n\tnumber = {7},\n\tjournal = {Phys. Rev. B},\n\tauthor = {Alkauskas, Audrius and Yan, Qimin and Van de Walle, Chris G.},\n\tmonth = aug,\n\tyear = {2014},\n\tpages = {075202},\n}\n```\nand\n```\n@article{turiansky_nonrad_2021,\n\ttitle = {Nonrad: {Computing} nonradiative capture coefficients from first principles},\n\tvolume = {267},\n\tdoi = {10.1016/j.cpc.2021.108056},\n\tjournal = {Comput. Phys. Commun.},\n\tauthor = {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.},\n\tmonth = oct,\n\tyear = {2021},\n\tpages = {108056},\n}\n```\nIf you use the functionality for the Sommerfeld parameter in 2 and 1 dimensions, then please cite\n```\n@article{turiansky_dimensionality_2024,\n    title = {Dimensionality Effects on Trap-Assisted Recombination: The {{Sommerfeld}} Parameter},\n    shorttitle = {Dimensionality Effects on Trap-Assisted Recombination},\n    author = {Turiansky, Mark E and Alkauskas, Audrius and Van De Walle, Chris G},\n    year = {2024},\n    month = may,\n    journal = {J. Phys.: Condens. Matter},\n    volume = {36},\n    number = {19},\n    pages = {195902},\n    doi = {10.1088/1361-648X/ad2588},\n}\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Implementation for computing nonradiative recombination rates in semiconductors",
    "version": "1.2.0",
    "project_urls": {
        "Documentation": "https://nonrad.readthedocs.io",
        "Repository": "https://github.com/mturiansky/nonrad"
    },
    "split_keywords": [
        "physics",
        "materials",
        "science",
        "vasp",
        "recombination",
        "shockley-read-hall"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "96678c719c8749e3e7371c924272e3ddb1eef8d03d978fc73272a07acb1c80ee",
                "md5": "036f36a24538cde8f9e736eec2895c6f",
                "sha256": "c991d4dcd6dffe3f5a36e87dd243b4910a8d0ec722a6e5b54fd6ed0d346634ee"
            },
            "downloads": -1,
            "filename": "nonrad-1.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "036f36a24538cde8f9e736eec2895c6f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 6254891,
            "upload_time": "2024-03-11T23:52:33",
            "upload_time_iso_8601": "2024-03-11T23:52:33.393938Z",
            "url": "https://files.pythonhosted.org/packages/96/67/8c719c8749e3e7371c924272e3ddb1eef8d03d978fc73272a07acb1c80ee/nonrad-1.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d513f64fae3aeffb8a80aeffae7f2ce9fdb6c139b44ad602db1273f05b8960f8",
                "md5": "990f6c65401f561decf6c192587c0d69",
                "sha256": "5a9609b3052e4d32be47784b83e87584339b25bc596657aeb27cb043069c901b"
            },
            "downloads": -1,
            "filename": "nonrad-1.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "990f6c65401f561decf6c192587c0d69",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 6112759,
            "upload_time": "2024-03-11T23:52:35",
            "upload_time_iso_8601": "2024-03-11T23:52:35.645220Z",
            "url": "https://files.pythonhosted.org/packages/d5/13/f64fae3aeffb8a80aeffae7f2ce9fdb6c139b44ad602db1273f05b8960f8/nonrad-1.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-11 23:52:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mturiansky",
    "github_project": "nonrad",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nonrad"
}
        
Elapsed time: 0.20834s