pydft
Project description
PyDFT
Python based Density Functional Theory code for educational purposes. The documentation of PyDFT can be found here.
Purpose
PyDFT is a pure-Python package for performing localized-orbital DFT calculations using Gaussian Type Orbitals. PyDFT currently supports LDA and PBE exchange-correlation functionals. The purpose of PyDFT is mainly to serve as an educational tool to explain the inner workings of a DFT calculation. This program is not intended for professional calculations. It is not particularly fast nor offers a lot of features that more mature open-source of commercial packages offer. It does offer a unique insight into a working code and a considerable effort was made in documenting everything.
Installation
This code depends on a few other packages. To install this code and its dependencies, run the following one-liner from Anaconda prompt
conda install -c ifilot pydft pyqint pylebedev pytessel
Usage
Check the current version
import pydft
print(pydft.__version__)
Performing a simple calculation
from pydft import MoleculeBuilder, DFT
CO = MoleculeBuilder().get_molecule("CO")
dft = DFT(CO, basis='sto3g', verbose=True)
en = dft.scf(1e-4)
print("Total electronic energy: %f Ht" % en)
Community guidelines
- Contributions to PyDFT are always welcome and appreciated. Before doing so, please first read the CONTRIBUTING guide.
- For reporting issues or problems with the software, you are kindly invited to to open a new issue with the bug label.
- If you seek support in using PyDFT, please open an issue with the question label.
- If you wish to contact the developers, please send an e-mail to ivo@ivofilot.nl.
License
Unless otherwise stated, all code in this repository is provided under the GNU General Public License version 3.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file pydft-0.6.2-py3-none-any.whl
.
File metadata
- Download URL: pydft-0.6.2-py3-none-any.whl
- Upload date:
- Size: 22.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 224cbafe7cd2977d6e6193617c8a6e783c7fe5d51ef241b90fdbc1ada4e6bb99 |
|
MD5 | 82473c76c3ed639752799431af854963 |
|
BLAKE2b-256 | f29b6948877324d284ea97725058f2b4c487e64091d7ab2638ccaae6a46c0215 |