generate_kpoints
Simple script to generate a KPOINTS file for a given structure and k-point spacing.
Usage
python generate_kpoints.py
Example
python generate_kpoints.py Si/sc-001/SPOSCAR 0.15
get_KPOINTS(struct, kspace)
Prepares a KPOINTS object with a mesh of given spacing in 1/Å. Parameters:
struct : pymatgen.Structure The structure object. kspace : float The spacing of the k-point mesh in 1/Å. Returns:
kpoints : pymatgen.io.vasp.inputs.Kpoints The KPOINTS object.
Source code in example/generate_kpoints.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
|