pwtools.pwscf.read_all_dyn¶
- pwtools.pwscf.read_all_dyn(path, nqpoints=None, natoms=None, base='ph.dyn')[source]¶
Same as
read_matdyn_modes()
, but instead of the filematdyn.modes
which contains freqs,vecs for all qpoints, we read all dynamical matrix files in path, one per qpoint.- Parameters:
path (str) – Path where dyn files live.
nqpoints (int) – number of dyn files (e.g. 5 for “ph.dyn1”, …, “ph.dyn5” if
base='ph.dyn'
)natoms (int)
base (str) – Basename of the dyn files.
- Returns:
Same as
read_matdyn_modes()
- Return type:
(qpoint,freqs,vecs)