Skip to main content

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.

Metadata

Release files for asi4py 1.4.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for asi4py 1.4.9
File Size Uploaded
asi4py-1.4.9.tar.gz 20.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for asi4py 1.4.9
File Interpreter ABI Platform
asi4py-1.4.9-py3-none-any.whl Python 3 none any Details

Total release size: 40.0 kB

Release files / asi4py-1.4.9.tar.gz

Download URL asi4py-1.4.9.tar.gz
Size 20.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a4231fc0fd6ab9660a86387486f8525422042c17a74718ea4095861ebd386931
BLAKE2b-256 checksum
How to use checksums
43dcbccc81e84bb56cee9d9e9343a1da54fbfdb5cea6eeff5df104d9386e5f77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / asi4py-1.4.9-py3-none-any.whl

Download URL asi4py-1.4.9-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9c86977579ca9b735d3d6d02615d4e0f95b56f17c4e354898d06fe8a932753e
BLAKE2b-256 checksum
How to use checksums
6ee9016905b084f1b641aa576ecca1184c38ca8edf7bb117e97f987898ec436d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

1.4.9 This release

2 release files

1.4.5

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.3.13

2 release files

1.3.12

2 release files

1.3.11

2 release files

1.3.10

2 release files

1.3.9

2 release files

1.3.8

2 release files

1.3.7

2 release files

1.3.6

2 release files

1.3.5

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.0

2 release files

1.2.41

2 release files

1.2.39

2 release files

0.0.38

2 release files

0.0.37

2 release files

0.0.36

2 release files

0.0.35

2 release files

0.0.33

2 release files

0.0.32

2 release files

0.0.30

2 release files

0.0.29

2 release files

0.0.26

2 release files

0.0.25

2 release files

0.0.24

2 release files

0.0.21

2 release files

0.0.20

2 release files

0.0.19

2 release files

0.0.18

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page