Skip to main content

kim-query

Python package PyPI Anaconda-Server Badge License

Helper routines for querying the OpenKIM database hosted at https://query.openkim.org

Usage examples

LAMMPS

kim_init EAM_Dynamo_ErcolessiAdams_1994_Al__MO_123629422045_005 metal
kim_query a0 get_lattice_constant_cubic crystal=["fcc"] species=["Al"] units=["angstrom"]

python

from kim_query import get_lattice_constant_cubic
get_lattice_constant_cubic(["MO_123629422045_005"], ["fcc"], ["Al"], ["angstrom"])

curl

curl --data-urlencode 'model=["MO_123629422045_005"]' \
     --data-urlencode 'crystal=["fcc"]'               \
     --data-urlencode 'species=["Al"]'                \
     --data-urlencode 'units=["angstrom"]'            \
     https://query.openkim.org/api/get_lattice_constant_cubic

Functions

Note: For a listing that includes a full parameter list and example usage of each function, see https://openkim.org/doc/usage/kim-query/

  • raw_query Perform a raw mongo query of the OpenKIM Repository

  • get_available_models Retrieve the latest versions of all models that support a given set of atomic species

  • get_test_result Retrieve specific keys from a property instance within a result generated by a Test-Model pair

  • get_lattice_constant_cubic Retrieve the equilibrium lattice constant of the conventional unit cell of a cubic crystal comprised of one or more species at a given temperature and hydrostatic pressure

  • get_lattice_constant_hexagonal Retrieve equilibrium lattice constants of the conventional unit cell of a hexagonal crystal comprised of one or more species at a given temperature and hydrostatic pressure

  • get_lattice_constant_2Dhexagonal Retrieve equilibrium lattice constant of the conventional unit cell of a 2D hexagonal crystal comprised of one or more species at a given temperature and hydrostatic pressure

  • get_cohesive_energy_cubic Retrieve cohesive energy of a cubic crystal comprised of one or more species at zero temperature and pressure

  • get_cohesive_energy_hexagonal Retrieve cohesive energy of a hexagonal crystal comprised of one or more species at zero temperature and pressure

  • get_cohesive_energy_2Dhexagonal Retrieve cohesive energy of a 2D hexagonal crystal comprised of one or more species at zero temperature and pressure

  • get_elastic_constants_isothermal_cubic Retrieve isothermal elastic constants of a cubic crystal comprised of one or more species at a given temperature and hydrostatic pressure

  • get_bulk_modulus_isothermal_cubic Retrieve isothermal bulk modulus of a cubic crystal comprised of one or more species at a given temperature and hydrostatic pressure

  • get_bulk_modulus_isothermal_hexagonal Retrieve isothermal bulk modulus of a hexagonal crystal comprised of one or more species at zero temperature and pressure

  • get_linear_thermal_expansion_coefficient_cubic Retrieve linear coefficient of thermal expansion of a cubic crystal comprised of one or more species at a given temperature and hydrostatic pressure, calculated according to (change-in-length)/(original-length)/(change-in-temperature)

  • get_intrinsic_stacking_fault_relaxed_energy_fcc Retrieve relaxed intrinsic stacking fault (ISF) energy for a face-centered monoatomic cubic crystal at zero temperature and a specified pressure. The ISF corresponds to a fault of the form ABC|BCA. Relaxation of the atomic coordinates is performed in the direction perpendicular to the fault plane

  • get_extrinsic_stacking_fault_relaxed_energy_fcc Retrieve relaxed extrinsic stacking fault (ESF) energy for a face-centered monoatomic cubic crystal at zero temperature and a specified pressure. The ESF corresponds to an ABC|BA|BC stacking, which can also be understood as a two-layer twin nucleus. Relaxation of the atomic coordinates is performed in the direction perpendicular to the fault plane

  • get_unstable_stacking_fault_relaxed_energy_fcc Retrieve the relaxed unstable stacking fault energy (USFE) of a face-centered monoatomic cubic crystal at zero temperature and a specified pressure. The USFE corresponds to the energy barrier for rigidly slipping one-half of an infinite crystal relative to the other along a <112> direction (fcc partial dislocation direction). Relaxation of the atomic positions is performed perpendicular to the fault plane.

  • get_unstable_twinning_fault_relaxed_energy_fcc Retrieve the relaxed unstable twinning fault energy (UTFE) of a face-centered monoatomic cubic crystal at zero temperature and a specified pressure. The UTFE corresponds to the energy barrier for rigidly slipping one part of an infinite crystal on a {111} plane adjacent to a preexisting intrinsic stacking fault relative to the other part along a <112> direction (fcc partial dislocation direction). Relaxation of the atomic coordinates is performed perpendicular to the fault plane.

  • get_surface_energy_ideal_cubic Retrieve ideal surface energy of a high-symmetry surface in a cubic crystal comprised of one or more species at zero temperature and pressure, as computed by the latest current version of the SurfaceEnergyCubicCrystalBrokenBondFit Test Driver (TD_955413365818).

  • get_surface_energy_relaxed_cubic Retrieve free energy of a cubic relaxed surface energy of a high-symmetry surface in a cubic crystal comprised of one or more species at a given temperature and hydrostatic pressure. This corresponds to the 'relaxed' surface energy found by performing an energy minimization. At zero temperature, this corresponds to the potential energy rather than the free energy.

Metadata

Release files for kim-query 4.0.0

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

Source distribution (sdist)

Source distribution for kim-query 4.0.0
File Size Uploaded
kim_query-4.0.0.tar.gz 19.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kim-query 4.0.0
File Interpreter ABI Platform
kim_query-4.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 38.2 kB

Release files / kim_query-4.0.0.tar.gz

Download URL kim_query-4.0.0.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
61f01e996b51cd2107690b247a6083f29e8621b920c99a5280f49bcae51a41d8
BLAKE2b-256 checksum
How to use checksums
6a14d9cb0728ec45ea1745c1e874197a24ec928749bda0019af7b6dde1321fbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / kim_query-4.0.0-py3-none-any.whl

Download URL kim_query-4.0.0-py3-none-any.whl
Size 18.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e17793446bfa8579c69d600007109efe672c96f54c4a4f5a747106294a832061
BLAKE2b-256 checksum
How to use checksums
99a82987eb7a1e64b23ef6bfd895fac3901d6f953acc253df9e04c365db2224c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

4.0.0 This release

2 release files

3.0.0

2 release files

2.0.0

2 release files

1.1.0

2 release files

1.0.0

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