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.2.tar.gz (12.1 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.2-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gridmlip-0.2.tar.gz
  • Upload date:
  • Size: 12.1 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.2.tar.gz
Algorithm Hash digest
SHA256 da71848f1e669ba6b42315514e367e8f0002069bfdace3ef5d55d4761f4b4d63
MD5 8d00177cfd208375ce2f260749d26246
BLAKE2b-256 08b9d25b9d4875fea56815593977302cf02855a7e56ffca0069775cf1e57415b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gridmlip-0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f2b9eee4cd16e12ef649bc8b8a82c25a8d2e945b1966fce215f4f9ebc0e3bb72
MD5 2c8c31fa5b5f0e2c6798942d44e819b5
BLAKE2b-256 73a741a391005844dc6d2e3a5824c36f0b602ff64f6b1abcc8f7faa06c13f2d9

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