Skip to main content

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.

ASI API specification.

Supported in:

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+

  1. Download and build DFTB+ from the branch with ASI API with shared library support.

  2. Set environment variables DFTBP_INCLUDE and DFTBP_LIB_DIR to folders with DFTB+ C-headers and libraries.

  3. Optionally export environment variables INSTALL_PREFIX and BUILD_PATH to set installation and building locations.

  4. Run make && make install from the root of the working copy of this repository.

  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asi4py-1.3.19.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asi4py-1.3.19-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file asi4py-1.3.19.tar.gz.

File metadata

  • Download URL: asi4py-1.3.19.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.2

File hashes

Hashes for asi4py-1.3.19.tar.gz
Algorithm Hash digest
SHA256 360e0d807c3b19f7638599a370bd57c922a207fd3fdec154baf8d0cf0652867f
MD5 7869f2ef812bf78e4bfe32cc4dda78b1
BLAKE2b-256 354a135c9cdc560b72af1f2d4d6d66e1c2f053302be37e39101fc4f6d55c7cfd

See more details on using hashes here.

File details

Details for the file asi4py-1.3.19-py3-none-any.whl.

File metadata

  • Download URL: asi4py-1.3.19-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.2

File hashes

Hashes for asi4py-1.3.19-py3-none-any.whl
Algorithm Hash digest
SHA256 caa235ac651ed8359cc6064746cfeaa36b9f52f5e61d395ba6ecb8fb02d7b21c
MD5 fd9e1a6aa52a0622f5021368be8a7eec
BLAKE2b-256 c75be42fca61bed66acdcabc8b2c736cae8b886c614c435be2e4e4c0f7ab57fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page