The Bond valence site energy calculator
Project description
BVlain is the module for bond valence site energy calculations and is about to solve tasks related to ionic conductivity of a tracer ion in a crystal structure.
For more details, see documentation.
Installation
!pip install bvlain
Examples
Percolation barriers
from bvlain import Lain
file = '/Users/artemdembitskiy/Downloads/LiFePO4.cif'
calc = Lain(verbose = False)
st = calc.read_file(file)
params = {'mobile_ion': 'Li1+', # mobile specie
'r_cut': 10.0, # cutoff for interaction between the mobile species and framework
'resolution': 0.2, # distance between the grid points
'k': 100 # maximum number of neighbors to be collected for each point
}
_ = calc.bvse_distribution(**params)
energies = calc.percolation_barriers(encut = 5.0)
for key in energies.keys():
print(f'{key[-2:]} percolation barrier is {round(energies[key], 4)} eV')
1D percolation barrier is 0.4395 eV
2D percolation barrier is 3.3301 eV
3D percolation barrier is 3.3594 eV
Percolation radii
from bvlain import Lain
file = '/Users/artemdembitskiy/Downloads/LiFePO4.cif'
calc = Lain(verbose = False)
st = calc.read_file(file)
params = {'mobile_ion': 'Li1+', # mobile specie
'r_cut': 10.0, # cutoff for interaction between the mobile species and framework
'resolution': 0.2, # distance between the grid points
}
_ = calc.void_distribution(**params)
radii = calc.percolation_radii()
for key in radii.keys():
print(f'{key[-2:]} percolation barrier is {round(radii[key], 4)} angstrom')
1D percolation barrier is 0.3943 angstrom
2D percolation barrier is 0.2957 angstrom
3D percolation barrier is 0.1972 angstrom
Save volumetric data for visualization (.grd or .cube)
from bvlain import Lain
file = '/Users/artemdembitskiy/Downloads/LiFePO4.cif'
calc = Lain(verbose = False)
st = calc.read_file(file)
params = {'mobile_ion': 'Li1+', # mobile specie
'r_cut': 10.0, # cutoff for interaction between the mobile species and framework
'resolution': 0.2, # distance between the grid points
'k': 100 # maximum number of neighbors to be collected for each point
}
_ = calc.bvse_distribution(**params)
_ = calc.void_distribution(**params)
calc.write_grd(file + '_bvse', task = 'bvse') # saves .grd file
calc.write_cube(file + '_void', task = 'void') # save .cube file
Bond valence sum mismatch
from bvlain import Lain
file = '/Users/artemdembitskiy/Downloads/LiFePO4.cif'
calc = Lain(verbose = False)
st = calc.read_file(file)
dataframe = calc.mismatch(r_cut = 3.5)
For more examples, see documentation.
The library is under active development and it is not guaranteed that there are no bugs. If you observe not expected results, errors, please report an issue at github.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bvlain-0.24.5.tar.gz
(56.0 kB
view details)
Built Distribution
bvlain-0.24.5-py3-none-any.whl
(56.1 kB
view details)
File details
Details for the file bvlain-0.24.5.tar.gz
.
File metadata
- Download URL: bvlain-0.24.5.tar.gz
- Upload date:
- Size: 56.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36b1ad89d406327b011032d82681d7d79d407aef26fc0834878fdea78523f6da |
|
MD5 | e4a5514195b0b3ee0b8fb5fa767f21f4 |
|
BLAKE2b-256 | 6a2e9fcb41cdb9f151f8eb6746b8d4ed97c31bb621411319b10b58dad59e7416 |
File details
Details for the file bvlain-0.24.5-py3-none-any.whl
.
File metadata
- Download URL: bvlain-0.24.5-py3-none-any.whl
- Upload date:
- Size: 56.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45eef59ad759c2e276337020ce4c3ec9bbb324cf29ffbf85804094a0d59d7ab3 |
|
MD5 | cb5b2b2766cf3c13427b2521e29c0ccd |
|
BLAKE2b-256 | 0b73c6ada3f80ea1aeee1e4c440a14a8d119794382ac296cbe945e06ea812c44 |