Skip to main content

Helper routines for querying the OpenKIM Repository

Project description

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.

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

kim-query-3.0.0.tar.gz (29.6 kB view details)

Uploaded Source

Built Distribution

kim_query-3.0.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file kim-query-3.0.0.tar.gz.

File metadata

  • Download URL: kim-query-3.0.0.tar.gz
  • Upload date:
  • Size: 29.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for kim-query-3.0.0.tar.gz
Algorithm Hash digest
SHA256 f02031dab5e1c872ade93f5b52257d7f6ce3de8107dd52ac73661b00d26297af
MD5 c545ec426aa8d38ebba91c2370e9df98
BLAKE2b-256 6d31948dd16b308cd5572f778d5338b03101065b56515ba73148216b9ab45535

See more details on using hashes here.

File details

Details for the file kim_query-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: kim_query-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for kim_query-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b681de14a030c2f38c899f07ed3ea9880aacbbc2800a246b18ae9a7c3481d6d8
MD5 c9de90d582a2503ac354e1562ffc1d8d
BLAKE2b-256 46aab2d99630792a675ddc68d2476a6a9f79a2c4edf80a556a086efae9a8d244

See more details on using hashes here.

Supported by

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