Skip to main content

Self-consistent Fermi Analysis

Project description

py-sc-fermi

Build Status Documentation Status status PyPI version

py-sc-fermi is a materials modelling code for calculating self-consistent Fermi energies and defect concentrations under thermodynamic equilibrium (or quasi-equilibrium) in the dilute limit given pre-calculated defect formation energies. For the theory, see this paper.

The necessary inputs are (charged) defect formation energies, an (electronic) density of states, and the volume of the unit cell. Having this data, a DefectSystem object can be inititalised, from which the self consistent Fermi energy, defect concentrations, defect transition levels and electron and hole concentrations can be calculated.

Documentation and usage guides can be found here.

Installation

py-sc-fermi can be installed with pip:

pip install py-sc-fermi

Alternatively, the latest development build can be installed by cloning this repository and installing with pip:

git clone https://github.com/bjmorgan/py-sc-fermi.git
cd py-sc-fermi
pip install -e .

To build the documentation locally, install with the docs extra:

pip install -e ".[docs]"

Contributing

Bugs reports and feature requests

If you think you've found a bug, please report it on the issue tracker. This is also the place to propose ideas for new features or ask questions about the design of py-sc-fermi. Poor documentation is considered a bug, but please be as specific as possible when asking for improvements.

Code contributions

We welcome help in improving the package with your external contributions. This is managed through Github pull requests; for external contributions fork and pull is preferred:

  1. First open an Issue to discuss the proposed contribution. This discussion might include how the changes fit py-sc-fermi scope and a general technical approach.
  2. Make your own project fork and implement the changes there.
  3. Open a pull request to merge the changes into the main project. A more detailed discussion can take place there before the changes are accepted.

Citing

If you use py-sc-fermi in your work, please consider citing the following:

  • the paper associated with the py-sc-fermi
  • the paper associated with the FORTRAN code SC-Fermi on which this code was initially based, which provides an excellent discussion of the underlying theory.

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

py_sc_fermi-2.2.1.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

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

py_sc_fermi-2.2.1-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

Details for the file py_sc_fermi-2.2.1.tar.gz.

File metadata

  • Download URL: py_sc_fermi-2.2.1.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for py_sc_fermi-2.2.1.tar.gz
Algorithm Hash digest
SHA256 1c7dab3f9d827741dd82857b5e063e6d9e0f4d6205f198613bb2e3fd8c369838
MD5 0ff5da4ef56e21b0b017d1ede160a1df
BLAKE2b-256 d4dfbcdb67b65eaee8bf85e5ab47a1da788b588ad15f3cb7327d2687d836b0c5

See more details on using hashes here.

File details

Details for the file py_sc_fermi-2.2.1-py3-none-any.whl.

File metadata

  • Download URL: py_sc_fermi-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 22.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for py_sc_fermi-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a0640c644f9242771a72363ec77cf439ad97a5a28597c59d6d5b523f6b2634d0
MD5 2010844a3e97b4ccf6b38e4577ce9494
BLAKE2b-256 fb75ccafef29529f94fd0ee19b226d03249a9f2755c9abde8f21ff000fc97eeb

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