Function Index¶
Callable Python interfaces are grouped below by task. Analysis wrappers accept the same input files as their command-line counterparts. Lower-level numerical functions operate on arrays or PQAnalysis objects and do not parse command-line arguments. For worked recipes, see Learn the Python API. The bundled files are in Example data.
Analysis workflows¶
|
Calculates the radial distribution function (RDF) using a given input file. |
|
Calculates the mean square displacement (MSD) using a given input file. |
|
Calculates the velocity auto-correlation function (VACF) using a given input file. |
|
Run vibrational analysis from an input file. |
|
Calculate the total linear momentum norm per frame and write it. |
|
Broaden a two-column stick spectrum file and write the result. |
Numerical methods¶
|
Calculates the one-sided legacy apodization window. |
|
Calculates the legacy cosine-transform spectrum of a correlation function. |
|
Convert a Gaussian full width at half maximum to the exponent alpha. |
|
Convert a Gaussian exponent alpha to the full width at half maximum. |
|
Build the regular wavenumber grid of the broadened spectrum. |
|
Broaden a stick spectrum on a wavenumber grid. |
|
Calculate wavenumbers, force constants, reduced masses and normal modes. |
|
Read a plain square Hessian matrix. |
|
Select mode indices from a user-facing one-based mode selection. |
Analysis tables¶
|
Infer a requested output format from a recognized filename suffix. |
|
Read native, CSV, TSV or XVG analysis data by content. |
|
Write an analysis table to an open text stream. |
|
Convert one analysis table to one or more output files. |
Structure and trajectory I/O¶
|
API function for reading a trajectory from a file. |
|
API function for building a frame generator from a trajectory file. |
|
Wrapper for TrajectoryWriter to write a trajectory to a file. |
|
Calculate the number of frames in a trajectory file. |
|
API function for reading a restart file. |
|
Write an atomic system to a restart file. |
|
Function to read a gen file. |
|
Function to write a gen file. |
|
Function to read a topology file. |
|
Wrapper function to write a topology file. |
|
Reads a data-style box file. |
|
Read a PQ optimizer output file. |
|
API write wrapper function for writing different objects to a file. |
|
Writes the given trajectory to the file in a selected box file format. |
|
Checks no cell in the trajectory is Cell() i.e. checks if the trajectory is never in vacuum. |
|
Checks if all cells of the trajectory are in vacuum i.e. cell = Cell(). |
Format conversion¶
|
Converts a restart file to a xyz file and prints it to stdout or writes it to a file. |
|
Converts a xyz file to a restart file and prints it to stdout or writes it to a file. |
|
Converts a xyz file to a gen file and prints it to stdout or writes it to a file. |
|
Converts a gen file to a xyz file and prints it to stdout or writes it to a file. |
|
Converts multiple trajectory files to a box file and prints it to stdout or writes it to a file. |
|
Converts one or more PQ xyz trajectory files to extended xyz format and prints it to stdout or writes it to a file. |
|
Converts multiple trajectory files from a PQ format to a QMCFC format and prints it to stdout or writes it to a file. |
See Package Reference for classes, enums, exceptions and the generated module hierarchy.