Skip to main content

A simple density functional theory code.

Project description

simpledft logo

SimpleDFT

Version Python License

SimpleDFT is a simple plane wave density functional theory (DFT) code. It is a Python implementation of the DFT++ pragmas proposed by Thomas Arias et al. Also, it serves as the minimalistic prototype for the eminus code, which was introduced in the master thesis of Wanja Timm Schulze to explain theory and software development compactly. There is also a version written in Julia, called SimpleDFT.jl.

Note: From version 2.0 on, the implementation will slightly deviate from the master thesis to be in line with eminus.

SimpleDFT Description
Language Python 3
License Apache 2.0
Dependencies Only NumPy
Basis set Plane waves (PW)
DFT Restricted Kohn-Sham (RKS)

Installation

The package and all necessary dependencies can be installed using pip

pip install simpledft

Examples

Example calculations, i.e., the H atom, He atom, and H2 molecule can be executed with

python examples.py

Simplifications

This code is about implementing plane wave DFT as simple as possible, while still being general. To classify the shortcomings from a fully-fletched DFT code, the most important simplifications are listed below

  • Restricted Kohn-Sham DFT only, no open-shell systems
  • LDA only, no functionals using gradients
  • All-electron Coulomb potential, no pseudopotentials to only treat valence electrons
  • Gamma-point only, no band paths
  • Steepest descent only, no sophisticated minimizations
  • Random starting guess only, no calculated guess of the density

Citation

A supplementary paper for eminus is available on arXiv. The following BibTeX key can be used

@Misc{Schulze2021,
  author    = {Schulze, Wanja T. and Schwalbe, Sebastian and Trepte, Kai and Gr{\"a}fe, Stefanie},
  title     = {eminus -- Pythonic electronic structure theory},
  year      = {2024},
  doi       = {10.48550/arXiv.2410.19438},
  publisher = {arXiv},
}

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

simpledft-3.0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

simpledft-3.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file simpledft-3.0.tar.gz.

File metadata

  • Download URL: simpledft-3.0.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for simpledft-3.0.tar.gz
Algorithm Hash digest
SHA256 b157abe5edac6e9fb1c0598e33b9eaa367b2911eea944c79ddc27ca96642a4d4
MD5 b2a3054954461c6fa0c1b06475589935
BLAKE2b-256 1e0d5903a30ee5cd60344eccd29aecf2ac637c93386616f205b0bc2839937d4b

See more details on using hashes here.

File details

Details for the file simpledft-3.0-py3-none-any.whl.

File metadata

  • Download URL: simpledft-3.0-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for simpledft-3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1eb7c566dd2e30b5ca419b71d17c11ff33c782aafb16bc987246917e1288bcda
MD5 201dc6a2ad0973636ef6869e67e212ed
BLAKE2b-256 d89803b11acef0f5717fe7edc37f7338435dd98224d9e8f84373318cad6e68cb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page