Skip to content
Proyek

Tentang

Density-functional toolkit

Sains dan teknik

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
+2
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli
dftk logo

Density-functional toolkit

Documentation Build Status License

The density-functional toolkit, DFTK for short, is a collection of Julia routines for plane-wave density-functional theory (DFT). The unique feature of this code is its emphasis on simplicity and flexibility with the goal of facilitating algorithmic and numerical developments as well as interdisciplinary collaboration in solid-state research.

In only around 10k lines of code DFTK already has a sizeable set of features including GPU support or parallelisation using MPI. We agree well with more established packages, as shown on the recent verification dataset by Bosoni et. al. Our performance is of the same order of magnitude as other plane-wave DFT packages and systems of 1000 electrons can be routinely treated.

Basic usage is demonstrated below:

using DFTK
using PseudoPotentialData

# Define the geometry
a = 10.26 # Everything in DFTK is in atomic units, here Bohrs
lattice = a / 2 * [[0 1 1.];
                   [1 0 1.];
                   [1 1 0.]]

# Define the pseudopotential and atomic positions
Si = ElementPsp(:Si, PseudoFamily("dojo.nc.sr.lda.v0_4_1.standard.upf"))
atoms     = [Si, Si]
positions = [ones(3)/8, -ones(3)/8] # relative coordinates

# First define the model (problem to be solved, without numerical parameters);
# here, a standard DFT with LDA exchange-correlation
model = model_DFT(lattice, atoms, positions; functionals=LDA())

# `basis` holds the discretization parameters (energy cutoff, kpoint sampling, etc)
# and everything needed to specify the solution numerically
basis = PlaneWaveBasis(model; Ecut=15, kgrid=[4, 4, 4])

scfres = self_consistent_field(basis, tol=1e-8)
# scfres contains the result of the calculation (energy, density, orbitals, etc)

For getting started with DFTK, see our documentation:

Note that at least Julia 1.10 is required.

Support and citation

DFTK is mostly developed as part of academic research. Parts of DFTK have also been discussed in published papers. If you use our code as part of your research, teaching or other activities, we would be grateful if you cite them as appropriate. See the CITATION.bib in the root of this repo for relevant references. The current DFTK reference paper to cite is DOI.

Funding

This project has received funding from the Institute of computing and data sciences (ISCD, Sorbonne Université), École des Ponts ParisTech, Inria Research Centre Paris, RWTH Aachen University, Swiss National Science Foundation, from the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation program (grant agreement No 810367) and from the Simons Foundation.

Contributing

If you stumble across issues in using DFTK or have suggestions for future developments we are more than happy to hear about it. In this case please open an issue or contact us (@mfherbst and @antoine-levitt) directly.

If you want to start contributing to the code, please read the CONTRIBUTING.md file first.

Jelajahi proyek terkait

Memuat…