-
Notifications
You must be signed in to change notification settings - Fork 17
Develop
Aksenov Dmitry edited this page May 17, 2024
·
19 revisions
Please for new code starting from May 17th 2024 use PEP 8 style guide, using https://pypi.org/project/autopep8/
Use reStructuredText format. Below is the example of function description.
"""
The function is used to prepare KPOINTS using the "VASPKIT" package
INPUT:
- type_calc (str) - quantity, which is calculated
- "calc1" - calculation 1
- "calc2" - calculation 2
- type_lattice (str) - one of common lattices such as bcc, fcc, hcp etc.
- poscar (str) - POSCAR file with structure, for which the KPOINTS file is built
- list_kpoints (list of float) - list of additional kpoints to add into the KPOINTS file with zero weights;
has format [((a1,a2,a3,label_a),(b1,b2,b3,label_b)),...], where "a" and "b" are
the coordinates of points in the reciprocal space, "label" is the name of the point
These two points determine the direction in the reciprocal space.
RETURN:
None
n (int) - result of calculation
SOURCE:
For more details see:
https://vaspkit.com/tutorials.html#effective-mass
AUTHOR:
Vasya Pupkin
TODO:
Improve something
"""
Name conventions:
filename - name of file