A wrapper for Serenity
Project description
SCINE - Serenity Wrapper -- A Wrapper for Serenity
Introduction
SCINE: Serenity Wrapper is a wrapper around
Serenity <https://github.com/qcserenity/serenity>
_; it exports the following
methods:
- Density Functional Theory (DFT)
- Hartree-Fock (HF)
- (Local) Coupled Cluster (CC, DLPNO-CC)
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 Serenity 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 Serenity source code. For the copyright information of the Serenity 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::
git submodule update --init
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DSCINE_BUILD_PYTHON_BINDINGS=ON -DCMAKE_INSTALL_PREFIX=<desired path> ..
make -j<number of cores to use>
make install
This will generate and install both the main Serenity code and the wrapper in
the form of the file serenity.module.so
that can be used in SCINE.
In order to make Serenity available to SCINE the following two environment variables need to be set::
export SERENITY_RESOURCES=<desired path>/share/serenity/data/
export SCINE_MODULE_PATH=$SCINE_MODULE_PATH:<desired path>/lib
Afterwards, SCINE programs such as ReaDuct <https://github.com/qcscine/readuct>
_
will pick up Serenity's existence and it will be possible to request the
implemented methods.
The SCINE Serenity 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_serenity_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', 'DFT')
# 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 Serenity code it wraps.
For the latter code and its citations, we refer you to the original
Serenity repository. There you will find the references of the actual methods
used. They are listed in the README.md <https://github.com/qcserenity/serenity/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_serenity_wrapper-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f109057527cc3fc43e5aaed1cfc825a5096a03cef11e874309d467da3082bc4 |
|
MD5 | 898c18c63deaccc122d17b96cd7e9da0 |
|
BLAKE2b-256 | 810015edb5f646bf218db9c45884029024e80f4e75d3a8099e102d7e7a917dbd |
Hashes for scine_serenity_wrapper-1.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc41ee6de93924c7ed3c9aecc31587e5fc57be3f6651fa1ac90dcf2cddd2495b |
|
MD5 | a2400d77b7ea01a4563762cf7ac0fb9b |
|
BLAKE2b-256 | 8d1c9a4aeca8f14552ae8d2ccad5647e77bd54b4fbef6b2d40a4b3883bf8349f |
Hashes for scine_serenity_wrapper-1.0.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27c9beff780574aeaf2da6a82a7611b0ebd87f45458c8ee94e0cf6a6f6e35df4 |
|
MD5 | 4854e75c8357bf1b350e3d1aca6a2f0b |
|
BLAKE2b-256 | 6614e479927dd1b44e7c4879a5a735f75d04300ef0064b31900737899bd96b48 |