Skip to main content

DFTK-based calculator for ASE

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

DFTK-based calculator for ASE

Documentation Build Status Installation

Small wrapper around the density-functional toolkit (DFTK) to provide a calculator interface compatible with ASE, the atomistic simulation environment.

DFTK is a small library of Julia algorithms for experimentation with plane-wave-based density-functional theory (PWDFT) methods. Its performance is on the same order of magnitude as established packages in the field. See dftk.org and the DFTK documentation for more details.

Installation

  1. Install Julia e.g. by downloading the binary. The use of at least Julia 1.4 is required. It is highly recommended you install Julia before installing asedftk.
  2. Install asedftk from PyPi:
    pip install asedftk
    
    This automatically installs the PyJulia package, which allows Julia and Python codes to interoperate with each other.
  3. Install the Julia dependencies of asedftk:
    python3 -c "import asedftk; asedftk.install()"
    
  4. That's it, you're all set. But please note: Due to some limitations in some Linux distros like Debian or Ubuntu you might need to run your Python scripts with the python-jl wrapper if you want to use asedftk in them. I.e. if you have written a calculation script script.py you might need to start it as python-jl script.py in order to be able to use asedftk.

Basic usage

asedftk.DFTK is basically a class wrapping around DFTK and making it an ASE calculator. Just use it like any other calculator class. For example:

from asedftk import DFTK
from ase.build import bulk

atoms = bulk("Si")
atoms.calc = DFTK()
print(atoms.get_potential_energy())

More details can be found in the asedftk documentation.

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

asedftk-0.1.6.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

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

asedftk-0.1.6-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file asedftk-0.1.6.tar.gz.

File metadata

  • Download URL: asedftk-0.1.6.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.7

File hashes

Hashes for asedftk-0.1.6.tar.gz
Algorithm Hash digest
SHA256 1bee7e2abf5f539e990ac124e6a7208ad99c03e87e7c0529e867cbb0a3906b58
MD5 7008d01d66cdfc804f45f6b903ff9b96
BLAKE2b-256 1d6f3f264f42c178df0a2801aec75216538b5db0d5fac3a4f0f21d0e3c10a9e4

See more details on using hashes here.

File details

Details for the file asedftk-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: asedftk-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.7

File hashes

Hashes for asedftk-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 38416e6047b896e46f24b01911e695de276c8b0d10fd15f74e43964eb9951c9c
MD5 4ee6212f281c095ac669ff3d502f6e48
BLAKE2b-256 3ae5284e3987dcae8d9b97e7e9ed6be254555e14a75a9c03f6dfc58a3a7d3670

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