kim-api  2.3.1-git+v2.3.0-git-2-g378406f9.GNU.GNU.
An Application Programming Interface (API) for the Knowledgebase of Interatomic Models (KIM).
Table of Contents

The Knowledgebase of Interatomic Models (KIM) Application Programming Interface (API) defines a standard (the Portable Model Interface (PMI)) for how molecular simulators interface with interatomic models (also called potentials or force-fields). This allows a single computer implementation of a Portable Model (PM) to be used (without modification) within multiple simulator codes. A PM can include code and parameters all in one. Or, a PM can include just parameters and use a separate Model Driver (MD) library containing the code. See openkim.org to find many PM implementations, openkim.org/projects-using-kim to learn which simulators support the KIM API/PMI, and openkim.org/doc/usage/using-models to learn how to use KIM PMs with those simulators. The KIM API also defines a standard (the Simulator Model Interface (SMI)) that allows for the creation and curation of Simulator Models (SMs), which are packages containing the metadata necessary to set up and run a model that is implemented as an integrated part of a simulation code (simulator). A KIM SM includes all of the necessary parameter files, simulator input commands, and metadata (supported species, units, etc.) needed to run the model in its native simulator. See openkim.org to find many SM packages, openkim.org/projects-using-kim to learn which simulators support the KIM API/SMI, and openkim.org/doc/usage/using-models to learn how to use KIM SMs with those simulators.

This documentation describes the specifications and official implementation of the KIM API as a system-level software library that gives computer programmers the ability to write PM, SM, and/or Simulators in supported programming language (C, C++, Fortran).

Table of Contents:

  1. Features of the KIM API package
  2. Theory for the Portable Model Interface
  3. INSTALL the KIM API package
  4. Implementation
  5. Example Portable Models (PMs) written in C++ (LennardJones_Ar), C (ex_model_Ar_P_Morse_07C, ex_model_Ar_P_Morse_MultiCutoff, ex_model_Ar_P_Morse_07C_w_Extensions) and Fortran (ex_model_Ar_P_MLJ_Fortran, ex_model_Ar_SLJ_MultiCutoff)
  6. Example Model Drivers (MDs) written in C++ (LennardJones612__MD_414112407348_003), C (ex_model_driver_P_Morse), and Fortran (ex_model_driver_P_LJ).
  7. Example PMs using MDs (ex_model_Ar_P_LJ, ex_model_Ar_P_Morse, LennardJones612_UniversalShifted__MO_959249795837_003).
  8. An Example SM (Sim_LAMMPS_LJcut_AkersonElliott_Alchemy_PbAu).
  9. Example Simulators written in C++ ( ex_test_Ar_fcc_cluster_cpp, collections-example, simulator-model-example), C (ex_test_Ar_fcc_cluster, collections-example, simulator-model-example), and Fortran ( ex_test_Ar_fcc_cluster_fortran, collections-example, simulator-model-example).
  10. A utility for checking the consistency between a PM's energy function and its forces function (utility_forces_numer_deriv). This performs a numerical differentiation of the PM's energy, using Ridder's method, and compares the result with the PM's forces.
  11. Explaination of CMake Files for KIM API Items and Simulators
  12. Summary of Differences Between kim-api-v1 and kim-api-v2
  13. The NEWS file.

In addition, all public header files and included example codes are available for browsing.