A wrapper for xtb
Project description
SCINE - XTB Wrapper -- A Wrapper for Tight Binding
Introduction
SCINE XTB Wrapper is a wrapper around xtb <https://github.com/grimme-lab/xtb>
_, it
exports:
- GFN0-xTB
- GFN1-xTB (formerly GFN-xTB)
- GFN2-xTB
- GFN-FF
into the SCINE tool chain.
Each method is represented by its own Calculator
and the entire wrapper
constitutes a SCINE module that can be loaded dynamically at runtime.
For more information on these concepts see the Scine::Core
repository <https://github.com/qcscine/core>
_.
License and Copyright Information
The SCINE XTB wrapper is distributed under the BSD 3-clause "New" or "Revised"
License. For more license and copyright information, see the file LICENSE.txt
in the repository.
Note: this license does not cover the original xtb
source code.
For the copyright information of the xtb
code please follow the linked git
submodule to the developers' repository.
Installation and Usage
The wrapper can be built and installed using the following commands::
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=<desired path> ..
make -j<number of cores to use>
make install
This will generate and install both the main xtb
code and the wrapper in the
form of the file xtb.module.so
that can be used in SCINE.
In order to make XTB available to SCINE the following two environment variables need to be set::
export XTBPATH=<prefix-path>/share/xtb
export SCINE_MODULE_PATH=$SCINE_MODULE_PATH:<prefix-path>/lib
Afterwards, SCINE programs such as ReaDuct <https://github.com/qcscine/readuct>
_
will pick up XTB's existence and it will be possible to request the implemented
methods.
Python ......
The SCINE XTB wrapper is also available via Python.
The underlying SCINE module can be loaded and its implemented calculators
accessed using the standard scine_utilities
Python bindings.
A minimal workflow could look like this::
import scine_utilities as su
import scine_xtb_wrapper
# Generate Structure
structure = su.AtomCollection()
structure.elements = [su.ElementType.H, su.ElementType.H]
structure.positions = [[-0.7, 0, 0], [0.7, 0, 0]]
# Get calculator
manager = su.core.ModuleManager()
calculator = manager.get('calculator', 'GFN2')
# Configure calculator
calculator.structure = structure
calculator.set_required_properties([su.Property.Energy, su.Property.Gradients])
# Calculate
results = calculator.calculate()
print(results.energy)
print(results.gradients)
How to Cite
When publishing results obtained with SCINE we kindly ask you to cite the
appropriate references, e.g. the one for ReaDuct.
This wrapper does not have its own reference; it should also not be mistaken
for the actual xtb
code it wraps.
For the latter code and its citations, we refer you to the original xtb
repository. There you will find the references of the actual methods used.
They are listed in the
README.md <https://github.com/grimme-lab/xtb/blob/master/README.md>
_.
Support and Contact
In case you should encounter problems or bugs with the wrapper, please write a short message to scine@phys.chem.ethz.ch.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for scine_xtb_wrapper-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a92b516cc7f63426b89129e2f8cfbd3f78fa7964ff5c933a620b02f5530d786 |
|
MD5 | 4908d9129084ea884561731686c33f5c |
|
BLAKE2b-256 | 59f9fe59327024906186667253cd2637ddbe63bc86db7879f15ef308a1ab5052 |
Hashes for scine_xtb_wrapper-1.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df4280783294ece65b4a8a255d76f438b9690fc5b7c534a5b6b9782af1efdc46 |
|
MD5 | be5d5c2ff52ecb7f81b55643d7cceefd |
|
BLAKE2b-256 | 8a3d5694453ac0a5ecbbd83d65e95bcc77fe7382e5306bd611d21f6bb4d3c951 |
Hashes for scine_xtb_wrapper-1.0.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9159de2bb245326075cab64fd191b392284dacee6882ca55a9037a36cf3f4ecc |
|
MD5 | 6fee46d6faa3a76effe4c14d2e7176bf |
|
BLAKE2b-256 | 3b2cef3d0f4af13810b92e21f4b936b1ccf089130b2209e97c55404f94fd7d78 |