pychemia.code.vasp package¶
Module for VASP
The Vienna Ab initio Simulation Package (VASP) is a computer program for atomic scale materials modelling, e.g. electronic structure calculations and quantum-mechanical molecular dynamics, from first principles.
Submodules¶
pychemia.code.vasp.doscar module¶
pychemia.code.vasp.incar module¶
-
class
pychemia.code.vasp.incar.
InputVariables
(filename=None, variables=None)[source]¶ Bases:
collections.abc.MutableMapping
VASP INCAR object
It contains:
- data:
- variables = Dictionary whose keys are ABINIT variable names
- and contains the values as numpy arrays
- methods:
- write = Write the input into as a text file that ABINIT
- can use as an input file
get_value = Get the value of a particular variable set_value = Set the value of a particular variable
-
pychemia.code.vasp.incar.
read_incar
(filename='INCAR')[source]¶ Load the file INCAR in the directory ‘path’ or read directly the file ‘path’ and return an object ‘inputvars’ for pychemia
Parameters: filename – (str) Filename of a INCAR file format Returns:
-
pychemia.code.vasp.incar.
write_incar
(iv, filepath='INCAR')[source]¶ Takes an object inputvars from pychemia and save the file INCAR in the directory ‘path’ or save the file ‘path’ as a VASP INCAR file
Parameters: - iv – (InputVariables) VASP Input variables
- filepath – (str) File path to write the INCAR file
pychemia.code.vasp.kpoints module¶
-
pychemia.code.vasp.kpoints.
read_kpoints
(path='KPOINTS')[source]¶ Load the file KPOINTS in the directory ‘path’ or read directly the file ‘path’ and return a kpoints object for pychemia
Parameters: path – (str) File path for KPOINTS file Returns:
-
pychemia.code.vasp.kpoints.
write_kpoints
(kp, filepath='KPOINTS')[source]¶ Takes an object kpoints from pychemia and save the file KPOINTS in the directory ‘path’ or save the file ‘path’ as a VASP KPOINTS file
Parameters: - kp – Kpoints object
- filepath – (str) Filename where the KPOINTS file is created
pychemia.code.vasp.outcar module¶
pychemia.code.vasp.poscar module¶
-
pychemia.code.vasp.poscar.
read_poscar
(path='POSCAR')[source]¶ Load a POSCAR file and return a pychemia structure object
Parameters: path – (str) Path to a POSCAR file or a directory where a file named ‘POSCAR’ is located Returns:
-
pychemia.code.vasp.poscar.
write_poscar
(structure, filepath='POSCAR', newformat=True, direct=True)[source]¶ Takes an structure from pychemia and save the file POSCAR for VASP.
Parameters: - structure – (pychemia.Structure) Structure to write POSCAR
- filepath – (str) Filename of POSCAR file to create
- newformat – (bool) If the new VASP format is used to create the POSCAR
- direct – (bool) If True, use reduced coordinates. If False, use cartesian coordinates (default: True)