mag4.io_poscar
VASP POSCAR I/O — read into CrystalData and write supercell geometry.
Layer: VASP-specific (POSCAR format; also the geometry source for the WIEN2k path).
Functions
|
Parse a VASP POSCAR / CONTCAR file. |
|
Write a single POSCAR for the supercell geometry. |
- mag4.io_poscar.read_poscar(poscar, species_index)[source]
Parse a VASP POSCAR / CONTCAR file.
- Parameters:
- Return type:
- mag4.io_poscar.write_poscar(crystal, name)[source]
Write a single POSCAR for the supercell geometry. Returns the file path.
- Return type:
- Parameters:
crystal (CrystalData)
name (str)