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}
grid = 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')
barriers = 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.1.tar.gz (10.4 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.1-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gridmlip-0.1.1.tar.gz
  • Upload date:
  • Size: 10.4 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.1.tar.gz
Algorithm Hash digest
SHA256 f7d61025ac73a902da7d662a080b7c2ff535ef628f8aee6b4b579fc016595cbb
MD5 4078843d09cd549cdbbbf2b81c4068c5
BLAKE2b-256 e83eb12c2b03a0f21b8c9b19db21968be7eb13320680a7dbd329e3f650839815

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gridmlip-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d0503b91e296eadf4baccd1d694671600ac68b95404ff86be6c58d6d0c417aac
MD5 91b72007db2df233741508ed62c62fed
BLAKE2b-256 92cab782711c451e4b9f926c5bbcb5ddd8f751a5877b429c8f07350a39726030

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