kim-query


Namekim-query JSON
Version 4.0.0 PyPI version JSON
download
home_pageNone
SummaryHelper routines for querying the OpenKIM Repository
upload_time2025-01-26 23:41:46
maintainerNone
docs_urlNone
authorNone
requires_python>=3.6
licenseNone
keywords kim-query kim_query openkim
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # kim-query
![Python package](https://github.com/openkim/kim-query/workflows/Python%20package/badge.svg?branch=master)
[![PyPI](https://img.shields.io/pypi/v/kim-query.svg)](https://pypi.python.org/pypi/kim-query)
[![Anaconda-Server Badge](https://img.shields.io/conda/vn/conda-forge/kim-query.svg)](https://anaconda.org/conda-forge/kim-query)
[![License](https://img.shields.io/badge/license-CDDL--1.0-blue)](LICENSE.CDDL)

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


## Usage examples

**LAMMPS**

  ```bash
  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**

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

**curl**

  ```bash
  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.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "kim-query",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "ilia Nikiforov <nikif002@umn.edu>, Claire Waters <bwaters@umn.edu>, \"Daniel S. Karls\" <karl0100umn@gmail.com>",
    "keywords": "kim-query, kim_query, openkim",
    "author": null,
    "author_email": "\"Daniel S. Karls\" <karl0100umn@gmail.com>, ilia Nikiforov <nikif002@umn.edu>, Claire Waters <bwaters@umn.edu>",
    "download_url": "https://files.pythonhosted.org/packages/6a/14/d9cb0728ec45ea1745c1e874197a24ec928749bda0019af7b6dde1321fbb/kim_query-4.0.0.tar.gz",
    "platform": null,
    "description": "# kim-query\n![Python package](https://github.com/openkim/kim-query/workflows/Python%20package/badge.svg?branch=master)\n[![PyPI](https://img.shields.io/pypi/v/kim-query.svg)](https://pypi.python.org/pypi/kim-query)\n[![Anaconda-Server Badge](https://img.shields.io/conda/vn/conda-forge/kim-query.svg)](https://anaconda.org/conda-forge/kim-query)\n[![License](https://img.shields.io/badge/license-CDDL--1.0-blue)](LICENSE.CDDL)\n\nHelper routines for querying the OpenKIM database hosted at https://query.openkim.org\n\n\n## Usage examples\n\n**LAMMPS**\n\n  ```bash\n  kim_init EAM_Dynamo_ErcolessiAdams_1994_Al__MO_123629422045_005 metal\n  kim_query a0 get_lattice_constant_cubic crystal=[\"fcc\"] species=[\"Al\"] units=[\"angstrom\"]\n  ```\n\n**python**\n\n  ```python\n  from kim_query import get_lattice_constant_cubic\n  get_lattice_constant_cubic([\"MO_123629422045_005\"], [\"fcc\"], [\"Al\"], [\"angstrom\"])\n  ```\n\n**curl**\n\n  ```bash\n  curl --data-urlencode 'model=[\"MO_123629422045_005\"]' \\\n       --data-urlencode 'crystal=[\"fcc\"]'               \\\n       --data-urlencode 'species=[\"Al\"]'                \\\n       --data-urlencode 'units=[\"angstrom\"]'            \\\n       https://query.openkim.org/api/get_lattice_constant_cubic\n  ```\n\n## Functions\n\n*Note: For a listing that includes a full parameter list and example usage of\n each function, see\n https://openkim.org/doc/usage/kim-query/*\n\n- **raw\\_query** Perform a raw mongo query of the OpenKIM Repository\n- **get\\_available\\_models** Retrieve the latest versions of all models that\n  support a given set of atomic species\n\n- **get\\_test\\_result** Retrieve specific keys from a property instance within\n  a result generated by a Test-Model pair\n\n- **get\\_lattice\\_constant\\_cubic** Retrieve the equilibrium lattice constant of\n  the conventional unit cell of a cubic crystal comprised of one or more\n  species at a given temperature and hydrostatic pressure\n\n- **get\\_lattice\\_constant\\_hexagonal** Retrieve equilibrium lattice constants of\n  the conventional unit cell of a hexagonal crystal comprised of one or more\n  species at a given temperature and hydrostatic pressure\n\n- **get\\_lattice\\_constant\\_2Dhexagonal** Retrieve equilibrium lattice constant of\n  the conventional unit cell of a 2D hexagonal crystal comprised of one or more\n  species at a given temperature and hydrostatic pressure\n\n- **get\\_cohesive\\_energy\\_cubic** Retrieve cohesive energy of a cubic crystal\n  comprised of one or more species at zero temperature and pressure\n\n- **get\\_cohesive\\_energy\\_hexagonal** Retrieve cohesive energy of a hexagonal\n  crystal comprised of one or more species at zero temperature and pressure\n\n- **get\\_cohesive\\_energy\\_2Dhexagonal** Retrieve cohesive energy of a 2D\n  hexagonal crystal comprised of one or more species at zero temperature and\n  pressure\n\n- **get\\_elastic\\_constants\\_isothermal\\_cubic** Retrieve isothermal elastic\n  constants of a cubic crystal comprised of one or more species at a given\n  temperature and hydrostatic pressure\n\n- **get\\_bulk\\_modulus\\_isothermal\\_cubic** Retrieve isothermal bulk modulus of a\n  cubic crystal comprised of one or more species at a given temperature and\n  hydrostatic pressure\n\n- **get\\_bulk\\_modulus\\_isothermal\\_hexagonal** Retrieve isothermal bulk modulus of\n  a hexagonal crystal comprised of one or more species at zero temperature and\n  pressure\n\n- **get\\_linear\\_thermal\\_expansion\\_coefficient\\_cubic** Retrieve linear\n  coefficient of thermal expansion of a cubic crystal comprised of one or more\n  species at a given temperature and hydrostatic pressure, calculated according\n  to (change-in-length)/(original-length)/(change-in-temperature)\n\n- **get\\_intrinsic\\_stacking\\_fault\\_relaxed\\_energy\\_fcc** Retrieve relaxed\n  intrinsic stacking fault (ISF) energy for a face-centered monoatomic cubic\n  crystal at zero temperature and a specified pressure.  The ISF corresponds to\n  a fault of the form ABC|BCA.  Relaxation of the atomic coordinates is\n  performed in the direction perpendicular to the fault plane\n\n- **get\\_extrinsic\\_stacking\\_fault\\_relaxed\\_energy\\_fcc** Retrieve relaxed\n  extrinsic stacking fault (ESF) energy for a face-centered monoatomic cubic\n  crystal at zero temperature and a specified pressure.  The ESF corresponds to\n  an ABC|BA|BC stacking, which can also be understood as a two-layer twin\n  nucleus.  Relaxation of the atomic coordinates is performed in the direction\n  perpendicular to the fault plane\n\n- **get\\_unstable\\_stacking\\_fault\\_relaxed\\_energy\\_fcc** Retrieve the relaxed\n  unstable stacking fault energy (USFE) of a face-centered monoatomic cubic\n  crystal at zero temperature and a specified pressure.  The USFE corresponds to\n  the energy barrier for rigidly slipping one-half of an infinite crystal\n  relative to the other along a <112> direction (fcc partial dislocation\n  direction).  Relaxation of the atomic positions is performed perpendicular to\n  the fault plane.\n\n- **get\\_unstable\\_twinning\\_fault\\_relaxed\\_energy\\_fcc** Retrieve the relaxed\n  unstable twinning fault energy (UTFE) of a face-centered monoatomic cubic\n  crystal at zero temperature and a specified pressure.  The UTFE corresponds\n  to the energy barrier for rigidly slipping one part of an infinite crystal on\n  a {111} plane adjacent to a preexisting intrinsic stacking fault relative to\n  the other part along a <112> direction (fcc partial dislocation direction).\n  Relaxation of the atomic coordinates is performed perpendicular to the fault\n  plane.\n\n- **get\\_surface\\_energy\\_ideal\\_cubic** Retrieve ideal surface energy of a\n  high-symmetry surface in a cubic crystal comprised of one or more species at\n  zero temperature and pressure, as computed by the latest current version of\n  the SurfaceEnergyCubicCrystalBrokenBondFit Test Driver (TD\\_955413365818).\n\n- **get\\_surface\\_energy\\_relaxed\\_cubic** Retrieve free energy of a cubic relaxed\n  surface energy of a high-symmetry surface in a cubic crystal comprised of one\n  or more species at a given temperature and hydrostatic pressure.  This\n  corresponds to the 'relaxed' surface energy found by performing an energy\n  minimization.  At zero temperature, this corresponds to the potential energy\n  rather than the free energy.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Helper routines for querying the OpenKIM Repository",
    "version": "4.0.0",
    "project_urls": {
        "Homepage": "https://github.com/openkim/kim-query",
        "Issues": "https://github.com/openkim/kim-query/issues"
    },
    "split_keywords": [
        "kim-query",
        " kim_query",
        " openkim"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "99a82987eb7a1e64b23ef6bfd895fac3901d6f953acc253df9e04c365db2224c",
                "md5": "0a2b228984824c98ab5f453c155fb8c3",
                "sha256": "e17793446bfa8579c69d600007109efe672c96f54c4a4f5a747106294a832061"
            },
            "downloads": -1,
            "filename": "kim_query-4.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0a2b228984824c98ab5f453c155fb8c3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 18611,
            "upload_time": "2025-01-26T23:41:45",
            "upload_time_iso_8601": "2025-01-26T23:41:45.151073Z",
            "url": "https://files.pythonhosted.org/packages/99/a8/2987eb7a1e64b23ef6bfd895fac3901d6f953acc253df9e04c365db2224c/kim_query-4.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6a14d9cb0728ec45ea1745c1e874197a24ec928749bda0019af7b6dde1321fbb",
                "md5": "b8b90dfb5f485b9e05deb7ef7101c1d3",
                "sha256": "61f01e996b51cd2107690b247a6083f29e8621b920c99a5280f49bcae51a41d8"
            },
            "downloads": -1,
            "filename": "kim_query-4.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "b8b90dfb5f485b9e05deb7ef7101c1d3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 19559,
            "upload_time": "2025-01-26T23:41:46",
            "upload_time_iso_8601": "2025-01-26T23:41:46.791864Z",
            "url": "https://files.pythonhosted.org/packages/6a/14/d9cb0728ec45ea1745c1e874197a24ec928749bda0019af7b6dde1321fbb/kim_query-4.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-26 23:41:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "openkim",
    "github_project": "kim-query",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "kim-query"
}
        
Elapsed time: 0.46022s