vasp
parse_poscar(poscar_string)
Read in a VASP POSCAR or CONTCAR file
Source code in chmpy/fmt/vasp.py
poscar_string_to_slab(contents)
Read a Slab from POSCAR contents.
The third lattice vector is taken as the vacuum direction; atoms with all selective dynamics flags F are marked fixed.
Source code in chmpy/fmt/vasp.py
slab_to_poscar_string(slab, fixed=None)
VASP POSCAR for a periodic slab model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
slab
|
Slab |
required | |
fixed
|
(N,) boolean mask of atoms to fix with selective dynamics;
defaults to |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
POSCAR contents |