sumo.phonon package¶
Module contents¶
Package containing functions for loading and manipulating phonon data.
Submodules¶
sumo.phonon.phonopy module¶
This module provides helper functions for dealing with phonopy.
- sumo.phonon.phonopy.load_phonopy(filename, structure, dim, symprec=1e-05, primitive_matrix=None, factor=15.633302300230191, symmetrise=True, born=None, write_fc=False)[source]¶
Load phonopy output and return an
phonopy.Phonopyobject.- Parameters:
filename (str) – Path to phonopy output. Can be any of
FORCE_SETS,FORCE_CONSTANTS, orforce_constants.hdf5.structure (
Structure) – The unitcell structure.symprec (
float, optional) – The tolerance for determining the crystal symmetry.primitive_matrix (
listorstr, optional) – The transformation matrix from the conventional to primitive cell. Only required when the conventional cell was used as the starting structure. Should be provided as a 3x3listoffloat. Alternatively the str ‘auto’ may be provided.factor (
float, optional) – The conversion factor for phonon frequency. Defaults tophonopy.units.VaspToTHz.symmetrise (
bool, optional) – Symmetrise the force constants. Defaults toTrue.born (
str, optional) – Path to file containing Born effective charges. Should be in the same format as the file produced by thephonopy-vasp-bornscript provided by phonopy.write_fc (
boolorstr, optional) – Write the force constants to disk. IfTrue, aFORCE_CONSTANTSfile will be written. Alternatively, if set to"hdf5", aforce_constants.hdf5file will be written. Defaults toFalse(force constants not written).