Giter Site home page Giter Site logo

gharib85 / nonrad Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mturiansky/nonrad

0.0 1.0 0.0 3.15 MB

Implementation for computing nonradiative recombination rates in semiconductors

Home Page: https://nonrad.readthedocs.io/en/latest/

License: MIT License

Python 13.15% Jupyter Notebook 86.85%

nonrad's Introduction

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]

nose2 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},
	url = {https://link.aps.org/doi/10.1103/PhysRevB.90.075202},
	doi = {10.1103/PhysRevB.90.075202},
	number = {7},
	journal = {Physical Review B},
	author = {Alkauskas, Audrius and Yan, Qimin and Van de Walle, Chris G.},
	month = aug,
	year = {2014},
	pages = {075202},
}

and

To be added...

nonrad's People

Contributors

kavanase avatar mturiansky avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.