gridmlip
Project description
gridmlip
Contents
About
gridmlip is a library for the symmetry-aware grid-based sampling of the energy landscape of mobile species in solids using 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.
from gridmlip import Grid
from gridmlip.integrations.sevennet import evaluate_atoms_list # sevenn must be installed
file = './data/Li10Ge(PS6)2_mp.cif'
specie = 3
### Create grid
g = Grid.from_file(
file,
specie,
r_min=0.8,
r_cut=5.0,
resolution=0.2,
symprec=0.1,
empty_framework=True,
verbose=True
)
### Prepare inequivalent atomic configurations
atoms_list = g.construct_configurations(config_format='ase')
### Predict energies
energy_list, forces_list = evaluate_atoms_list(
atoms_list,
model_path='./data/checkpoint_sevennet_0.pth',
device='cuda',
compute_force=False,
batch_size=256
)
### Load energies
g.load_energies(energy_list)
### Determine percolation barriers
barriers = g.percolation_barriers(n_jobs=-1)
### Save .grd 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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
gridmlip-0.2.2-py3-none-any.whl
(15.9 kB
view details)
File details
Details for the file gridmlip-0.2.2-py3-none-any.whl.
File metadata
- Download URL: gridmlip-0.2.2-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06d32399bea878234a97d2fab5e6ea6fb71d0baf8abf7e27142190c80fd3fc60
|
|
| MD5 |
0d303b9993bfe62b8fe05e2c8e647a12
|
|
| BLAKE2b-256 |
d1da7bb9b8e9869a03a6d432eaa5da76fdcba62436ff27ebb5aa91525c5f0436
|