A Python wrapper for Atomic Simulation Interface API
Project description
Atomic Similation Interface (ASI) API
Atomic Simulation Interface (ASI) is a native C-style API that includes functions for export and import of data structures that are used in electronic structure calculations and for classical molecular dynamics simulations. ASI aims to be a uniform, generic and efficient interface for connecting various computational chemistry and materials science codes in multiscale simulation workflows, such as QM/MM, QM/ML, QM/QM. ASI specifies functions, data types and calling conventions for export and import of density matrices, overlap and Hamiltonian matrices, electrostatic potential, atomic coordinates, charges, total energy and forces.
ASI API specification
ASI API is specified as a C header file asi.h. Codes implementing ASI API must provide linkable library with definitions of functions from asi.h. Depending on particular usage of the implementaions, some functions can be ommited or implemented as stubs, if they are not going to used. To use Python ASI wrapper it is necessary to have all functions from asi.h defined, but of course stub definitions can be used.
Supported in:
- DFTB+: in separate branch.
- FHI-aims: in the main branch.
Building
FHI-aims
FHI-aims has embedded support of ASI API. Just build latest version of FHI-aims as a shared library and use with your code.
DFTB+
-
Download and build DFTB+ from the branch with ASI API with shared library support.
-
Set environment variables
DFTBP_INCLUDEandDFTBP_LIB_DIRto folders with DFTB+ C-headers and libraries. -
Optionally export environment variables
INSTALL_PREFIXandBUILD_PATHto set installation and building locations. -
Run
make && make installfrom the root of the working copy of this repository. -
The shared library implementing ASI API for DFTB+ will be in
${INSTALL_PREFIX}/lib.
Testing
Use Makefile in tests folder to build native tests. Set environment variables in the header of tests/Makefile to link with proper ASI API implementaions.
To run tests go to tests/testcases and run run_dftbp_tests.sh or run_aims_tests.sh to run test.
Usage
See tests/src for examples of usage in native code.
See tests/python for examples of usage in Python scripts.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file asi4py-1.4.1.tar.gz.
File metadata
- Download URL: asi4py-1.4.1.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c0a61ae6073e022ac94cdcb122e0200e7b4d7045cfc1bc57138aa21fcc2513a
|
|
| MD5 |
8378120201bc208de8815f2a5ecbff51
|
|
| BLAKE2b-256 |
65a66bd3b2f170e8c22a668e88bfddb65cd4df5d142c2637f2ebdab77118dd67
|
File details
Details for the file asi4py-1.4.1-py3-none-any.whl.
File metadata
- Download URL: asi4py-1.4.1-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03f81d3ca5b6fdd84b35edc8b221d39a0ffc4dfd1c5023fca4ee3c59b5918878
|
|
| MD5 |
9d355446fd878e7539c00214ab910b7a
|
|
| BLAKE2b-256 |
9ad7b7e79c0acd28095c91edd199a8e8c326017c733e74e47b9a0eae7b6d037d
|