A wrapper for Serenity
Project description
Introduction
SCINE: Serenity Wrapper is a wrapper around 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.
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 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.get_instance() 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 the SCINE Serenity wrapper, please cite the corresponding release as archived on Zenodo (DOI 10.5281/zenodo.6695038; please use the DOI of the respective release).
This wrapper 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.
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-3.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b642dee4f8f7fd1844bdb4dfedfd2c6e9349adb88a2cb2e4c4244fb3639b6934 |
|
MD5 | cde08ef1c9ce495feb4af45ab58ce75e |
|
BLAKE2b-256 | ef0a10b84fa93839293417fc25c743f2e7356167eb82ccd2cad539d1faac6aed |
Hashes for scine_serenity_wrapper-3.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5170009f2e2f16ff6b84bd32126db8fe33e5060662d21a31430a9289c8c36460 |
|
MD5 | 451d4d9100e9a40f416b27abf6e2d216 |
|
BLAKE2b-256 | 6ca8cc5805bfcf1aa32cd87d729925f3f557b43df19139214d7561689902d5b1 |
Hashes for scine_serenity_wrapper-3.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ebaef743327036766b358181bbcbf504716850375c69ecd0ac02b4b9c36aa09 |
|
MD5 | 66a38d086f4dee29ae952d487b1b7780 |
|
BLAKE2b-256 | 80ba5f6ddb8fc09d378a7a02dc9bd09bbfcd819ab0bfa74b64d1cac2afc63539 |
Hashes for scine_serenity_wrapper-3.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 227e54ab5a15a1b9504c1a42aad44e999ad4af8c4a9d618930ea05bd4bb2f098 |
|
MD5 | 3b7e0a072a4ad7e4169ba9918c3f8fd0 |
|
BLAKE2b-256 | d70820e3aa88b2a42a39b22a7798da89712702dfae4fa8104b9a5cdae54b225c |
Hashes for scine_serenity_wrapper-3.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 815af3781a95cbf9bf449d298bad5eb417715b25acbb8c9dec958fc60bd39d54 |
|
MD5 | df3e4fc72c15996d8e87ddcc993b489a |
|
BLAKE2b-256 | 73e53e740ba9f5b81aae9aa864dee9e5758843c5ff8cc2d7b91d268ee58bb529 |
Hashes for scine_serenity_wrapper-3.0.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a645d66e7e330f8117f3240b04109c6fff6c452cea244ed507f37de41f90f21 |
|
MD5 | dbceaef645fb5cf807d00315e73c9d98 |
|
BLAKE2b-256 | d69e4380b7c3a1878b5e2896db47d3d687e42ecc576993865b317ab3a1403939 |