kgrid is a Python tool for calculating the required k-point density from input geometry for periodic quantum chemistry calculations. It uses a length cutoff approach to determine appropriate Monkhorst-Pack grids, ensuring consistent k-po…
kgrid is a Python tool for calculating the required k-point density from input geometry for periodic quantum chemistry calculations. It uses a length cutoff approach to determine appropriate Monkhorst-Pack grids, ensuring consistent k-point density across different cell sizes and shapes.
Reference papers are not yet linked for this code.
kgrid is a Python tool for calculating the required k-point density from input geometry for periodic quantum chemistry calculations. It uses a length cutoff approach to determine appropriate Monkhorst-Pack grids, ensuring consistent k-point density across different cell sizes and shapes.
Scientific domain: K-point sampling, DFT calculations, Brillouin zone integration Target user community: DFT practitioners needing consistent k-point grids for convergence studies
kgrid implements k-point selection based on:
Input formats:
Output data types:
pip install kgrid
Command line:
# VASP format (default)
kgrid POSCAR 25 # 25 Å cutoff
# CASTEP format
kgrid --castep POSCAR 25
# Show grid dimensions
kgrid --verbose POSCAR 25
Python API:
from kgrid import calc_kpt_tuple
from ase.io import read
atoms = read("POSCAR")
kpts = calc_kpt_tuple(atoms, cutoff_length=25)
print(f"K-point grid: {kpts}")
Primary sources:
Confidence: VERIFIED
Verification status: ✅ VERIFIED