Skip to main content

Generate supercell and check supercell convergence with SCF forces

Project description

musconv

musconv is a python package for generating near cubic supercells and for checking the convergence of a supercell size with respect to atomic forces induced by an interstitial impurity at a Voronoi site.

Latest release PyPI version License

Installation

1.) Install from pypi as;

pip install musconv

2.) Install the repository as:

git clone https://github.com/positivemuon/musconv.git
cd musconv/
python setup.py install

Available Scripts

musConv/
    ├── __init__.py
    └── supcgen.py
    └── chkconv.py

i.) supcgen.py

Generates a nearly cubic supercell (SC) using the pymatgens CubicSupercellTransformation. Inserts an intersitial atom (default is hydrogen) in the supercell at a Voronoi interstitial site. One of it methods initializes the supercell generation and the other re-initializes generation of a larger supercell-size than the former.

To quickly run the script if installed try;

python examples/run_supcgen.py

when not installed try:

python musconv/supcgen.py examples/LiF.cif

ii.) chkconv.py

This script checks if a supercell (SC) size is converged for muon site calculations using results of unrelaxed atomic forces from a one shot DFT SCF calculation or other potential. Structure input is an ase Atom data while forces as array data.

To quickly run the script if installed try;

python examples/run_chkconv.py

or

python examples/run_chkconv2.py examples/LiF.cif

when not installed try:

python musconv/chkconv.py examples/LiF_p1.cif examples/LiF_p1_forces.txt

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

musconv-0.0.2-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file musconv-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: musconv-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.9

File hashes

Hashes for musconv-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b4bdbb88c320fc98c1c3b843a1fce94ab9335f90a18c650f7143033e6cc69d44
MD5 e8d921370eb9600688dad7a20201ca7c
BLAKE2b-256 13c9cb443a0e1bf8e03bcd59ab245e1dab82630ac11e1aef3490ea288565226e

See more details on using hashes here.

Supported by

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