Skip to main content

Grid-based method for calculating the percolation barrier of mobile species using machine learning interatomic potentials

Project description

gridmlip

License

Contents

About

gridmlip is a library for calculating percolation barriers of mobile species in solids using grid-based method with machine learning interatomic potentials (MLIPs).

Installation

pip install gridmlip

or

git clone https://github.com/dembart/gridmlip
cd gridmlip
pip install .

How to use

Here we describe the pipeline in general. For a specific example, see Notebooks.

Step #1: Construct configurations for processing with your favorite MLIP

from gridmlip import Grid

atomic_types_mapper = {3:0, 31:1, 17:2}
grig = Grid.from_file('your.cif', specie = 3, r_min = 1.8, 
                    atomic_types_mapper=atomic_types_mapper # optional
                  )
cfgs = grid.construct_configurations('data.cfg')

Step #2: Evaluate the configurations with your favorite MLIP

mlp calculate_efs p.mtp data.cfg --output_filename=processed_data.cfg'

Step #3: Read processed configrations and calculate the percolation barriers

from gridmlip import Grid

grid = Grid.from_file('your.cif', specie = 3, r_min = 1.8)
grid.read_processed_configurations('processed_data.cfg', format = 'cfg')
grid.percolation_barriers()

Step #4: Write .grd or .cube file for visualization in VESTA 3.0

g.write_grd('test.grd')

Notebooks

How to cite

If you use the gridmlip library, please, consider citing this repository.

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

gridmlip-0.1.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gridmlip-0.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file gridmlip-0.1.tar.gz.

File metadata

  • Download URL: gridmlip-0.1.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.66.2 CPython/3.8.8

File hashes

Hashes for gridmlip-0.1.tar.gz
Algorithm Hash digest
SHA256 f1a6b5fbf507adc4a346d834d810b63103ce57cca548dc0d16ba2aa39dcafeaa
MD5 4b80a50b3c021537f504b87073b43293
BLAKE2b-256 007a766c096e02a274956dc221744658a846e4028a5318f0ce59b097334bf4a1

See more details on using hashes here.

File details

Details for the file gridmlip-0.1-py3-none-any.whl.

File metadata

  • Download URL: gridmlip-0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.66.2 CPython/3.8.8

File hashes

Hashes for gridmlip-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad06c8764cfba4a6a1819462a601f7e5d528ca62cbeddbd66540727b23b58dd4
MD5 43f279abab331d71d5af712d9ac082fa
BLAKE2b-256 1bd41bcc03b2b9ec8f0b5f27bf5a51878fae4a1edde3eea809111763555d2649

See more details on using hashes here.

Supported by

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