All Projects → dftd4 → Dftd4

dftd4 / Dftd4

Licence: lgpl-3.0
Generally Applicable Atomic-Charge Dependent London Dispersion Correction

Programming Languages

fortran
972 projects

Projects that are alternatives of or similar to Dftd4

xtb-python
Python API for the extended tight binding program package
Stars: ✭ 61 (+38.64%)
Mutual labels:  quantum-chemistry
qrefine
Quantum Refinement Module
Stars: ✭ 13 (-70.45%)
Mutual labels:  quantum-chemistry
Awesome Quantum Software
Curated list of open-source quantum software projects.
Stars: ✭ 647 (+1370.45%)
Mutual labels:  quantum-chemistry
EzReson
An efficient toolkit for chemical resonance analysis based on quantum chemistry calculations. It implements the quantitative theory of resonance by expansion of the wave function from a DFT/HF calculation in terms of those of the Lewis structures.
Stars: ✭ 14 (-68.18%)
Mutual labels:  quantum-chemistry
OpenFermion-PySCF
OpenFermion plugin to interface with the electronic structure package PySCF.
Stars: ✭ 76 (+72.73%)
Mutual labels:  quantum-chemistry
Deepchem
Democratizing Deep-Learning for Drug Discovery, Quantum Chemistry, Materials Science and Biology
Stars: ✭ 3,324 (+7454.55%)
Mutual labels:  quantum-chemistry
qcmaquis
Release-only repository for SCINE QCMaquis, the DMRG software from the Reiher group.
Stars: ✭ 18 (-59.09%)
Mutual labels:  quantum-chemistry
Qcportal
A client interface to the QCArchive Project (read-only image of QCFractal)
Stars: ✭ 29 (-34.09%)
Mutual labels:  quantum-chemistry
Haskell-abinitio
contains a package in Haskell to calculate the electronic structure properties of molecules using the Hartree-Fock method
Stars: ✭ 14 (-68.18%)
Mutual labels:  quantum-chemistry
Psi4
Open-Source Quantum Chemistry – an electronic structure package in C++ driven by Python
Stars: ✭ 521 (+1084.09%)
Mutual labels:  quantum-chemistry
QCFractal
A distributed compute and database platform for quantum chemistry.
Stars: ✭ 107 (+143.18%)
Mutual labels:  quantum-chemistry
isicle
In silico chemical library engine for high-accuracy chemical property prediction
Stars: ✭ 31 (-29.55%)
Mutual labels:  quantum-chemistry
Schnetpack
SchNetPack - Deep Neural Networks for Atomistic Systems
Stars: ✭ 296 (+572.73%)
Mutual labels:  quantum-chemistry
adcc
adcc: Seamlessly connect your program to ADC
Stars: ✭ 26 (-40.91%)
Mutual labels:  quantum-chemistry
Pennylane
PennyLane is a cross-platform Python library for differentiable programming of quantum computers. Train a quantum computer the same way as a neural network.
Stars: ✭ 800 (+1718.18%)
Mutual labels:  quantum-chemistry
libra-code
quantum-dynamics-hub.github.io/libra/index.html
Stars: ✭ 33 (-25%)
Mutual labels:  quantum-chemistry
Openfermion Cirq
Quantum circuits for simulations of quantum chemistry and materials.
Stars: ✭ 258 (+486.36%)
Mutual labels:  quantum-chemistry
Gaussium
A Quantum Chemistry program written in Python 3 supporting RHF, UHF, TDHF, CIS, MP2, DFT, CCSD and CCSD(T) methods.
Stars: ✭ 36 (-18.18%)
Mutual labels:  quantum-chemistry
Xopt
eXternal OPTimizer
Stars: ✭ 5 (-88.64%)
Mutual labels:  quantum-chemistry
Awesome Python Chemistry
A curated list of Python packages related to chemistry
Stars: ✭ 410 (+831.82%)
Mutual labels:  quantum-chemistry

DFT-D4 project

License Latest Version Build Status docs codecov

Generally Applicable Atomic-Charge Dependent London Dispersion Correction.

Installing

A statically linked binary distribution for Linux platforms is available at the latest release tag. Bleeding edge releases of the latest source from this repository are available on the continuous release tag.

Conda package

Conda Version Conda Version

This project is packaged for the conda package manager and available on the conda-forge channel. To install the conda package manager we recommend the miniforge installer. If the conda-forge channel is not yet enabled, add it to your channels with

conda config --add channels conda-forge

Once the conda-forge channel has been enabled, this project can be installed with:

conda install dftd4

If you want to enable the Python API as well install

conda install dftd4-python

It is possible to list all of the versions available on your platform with:

conda search dftd4 --channel conda-forge

Now you are ready to use dftd4.

Building from Source

To compile this version of DFT-D4 the following programs are needed (the number in parentheses specifies the tested versions).

To build this project from the source code in this repository you need to have

  • a Fortran compiler supporting Fortran 2008
  • meson version 0.53 or newer
  • a build-system backend, i.e. ninja version 1.7 or newer
  • a LAPACK / BLAS provider, like MKL or OpenBLAS

Optional dependencies are

  • asciidoctor to build the manual page
  • FORD to build the developer documentation
  • C compiler to test the C-API and compile the Python extension module
  • Python 3.6 or newer with the CFFI package installed to build the Python API

Setup a build with

meson setup _build

You can select the Fortran compiler by the FC environment variable. To compile and run the projects testsuite use

meson test -C _build --print-errorlogs

If the testsuite passes you can install with

meson configure _build --prefix=/path/to/install
meson install -C _build

This might require administrator access depending on the chosen install prefix.

Usage

DFT-D4 calculations can be performed with the s-dftd4 executable. To calculate the dispersion correction for PBE0-D4 run:

dftd4 --func pbe0 coord

In case you want to access the DFT-D4 results from other programs, dump the results to JSON with (the --noedisp flag prevents the .EDISP file generation):

dftd4 --func pbe0 --json --grad --noedisp struct.xyz

Dispersion related properties can be calculated as well:

dftd4 --property geo.gen

To evaluate pairwise resolved dispersion energies use

dftd4 --pair-resolved mol.xyz

For an overview over all command line arguments use the --help argument or checkout the dftd4(1) manpage.

Parameters

DFT-D4 is parametrized for plenty of density functionals. The available parameters are listed in the parameters.toml file.

You can add new functionals using to the TOML file by adding a new subtable

[parameter.name]
reference.doi = ["<functional reference>"]
d4.bj-eeq-atm = { s8=1.0, a1=0.4, a2=5.0, doi="<parameter reference>" }

Those parameters are currently only used as reference and not yet usable in the library or executable.

API access

The DFT-D4 project provides first class API support Fortran, C and Python. Other programming languages should try to interface with to DFT-D4 via one of those three APIs. To provide first class API support for a new language the interface specification should be available as meson build files.

Fortran API

The recommended way to access the Fortran module API is by using dftd4 as a meson subproject. Alternatively, the project is accessible by the Fortran package manager (fpm).

The complete API is available from dftd4 module, the individual modules are available to the user as well but are not part of the public API and therefore not guaranteed to remain stable. ABI compatibility is only guaranteed for the same minor version.

The communication with the Fortran API uses the error_type and structure_type of the modular computation tool chain library (mctc-lib) to handle errors and represent geometries, respectively.

C API

The C API provides access to the basic Fortran objects and their most important methods to interact with them. All Fortran objects are available as opaque void* in C and can only be manipulated with the correct API calls. To evaluate a dispersion correction in C four objects are available:

  1. the error handler:

    Simple error handler to carry runtime exceptions created by the library. Exceptions can be handled and/or transfered to the downstream error handling system by this means.

  2. the molecular structure data:

    Provides a representation of the molecular structure with immutable number of atoms, atomic species, total charge and boundary conditions. The object provides a way to update coordinates and lattice parameters, to update immutable quantities the object has to be recreated.

  3. the dispersion model:

    Instantiated for a given molecular structure type, it carries no information on the geometry but relies on the atomic species of the structure object. Recreating a structure object requires to recreate the dispersion model as well.

  4. the damping parameters:

    Damping parameter object determining the short-range behaviour of the dispersion correction. Standard damping parameters like the rational damping are independent of the molecular structure and can easily be reused for several structures or easily exchanged.

The user is responsible for creating and deleting the objects to avoid memory leaks.

Python API

LGTM

The Python API is disabled by default and can be built in-tree or out-of-tree. The in-tree build is mainly meant for end users and packages. To build the Python API with the normal project set the python option in the configuration step with

meson setup _build -Dpython=true -Dpython_version=3

The Python version can be used to select a different Python version, it defaults to '3'. Python 2 is not supported with this project, the Python version key is meant to select between several local Python 3 versions.

Proceed with the build as described before and install the projects to make the Python API available in the selected prefix.

For the out-of-tree build see the instructions in the python directory.

Citation

Always cite:

Eike Caldeweyher, Christoph Bannwarth and Stefan Grimme, J. Chem. Phys., 2017, 147, 034112. DOI: 10.1063/1.4993215

Eike Caldeweyher, Sebastian Ehlert, Andreas Hansen, Hagen Neugebauer, Sebastian Spicher, Christoph Bannwarth and Stefan Grimme, J. Chem Phys, 2019, 150, 154122. DOI: 10.1063/1.5090222 chemrxiv: 10.26434/chemrxiv.7430216

Eike Caldeweyher, Jan-Michael Mewes, Sebastian Ehlert and Stefan Grimme, Phys. Chem. Chem. Phys., 2020, 22, 8499-8512. DOI: 10.1039/D0CP00502A chemrxiv: 10.26434/chemrxiv.10299428

License

This project is free software: you can redistribute it and/or modify it under the terms of the Lesser GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This project is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the Lesser GNU General Public License for more details.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Lesser GNU General Public license, shall be licensed as above, without any additional terms or conditions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].