custom_quantity#
A collection of functions evaluating quantiities of trajectories. For easiest integration into chemtain, functions should be compatible with traj_util.quantity_traj. Functions provided to quantity_traj need to take the state and additional kwargs.
Common Quantities#
|
Wrapper around energy_fn to allow energy computation via traj_util.quantity_traj. |
|
Wrapper around kinetic_energy to allow kinetic energy computation via traj_util.quantity_traj. |
|
Wrapper around energy_fn to allow total energy computation via traj_util.quantity_traj. |
|
Temperature function that is consistent with quantity_traj interface. |
|
Returns volume of a single snapshot. |
|
Returns density of a single snapshot of the NPT ensemble. |
Structural Quantities#
Intra-Molecular#
|
Initializes a function computing a dihedral distribution. |
|
Initializes a function computing a dihedral distribution. |
|
Initializes the root mean squared distance from a reference structure. |
|
Initializes function to compute the local structure index (LSI). |
|
Initializes a function that computes bond lengths for given atom pairs. |
|
Calculates the equlibrium harmonic bond constants from given positions. |
|
Computes the dihedral angle for all quadruple of atoms given in idxs. |
|
Computes the dihedral angle for all quadruple of atoms given in idxs. |
Inter-Molecular#
|
Initializes a function that computes the radial distribution function (RDF) for a single state. |
|
Initializes a function to computes the angular distribution function (ADF). |
|
Initializes a function to compute the triplet correlation function (TCF). |
|
Initializes a function that computes the tetrahedral order parameter q for a single state. |
|
Returns the velocity autocorrelation function (VACF). |
|
Green-Kubo formulation to compute self-diffusion D via the velocity autocorrelation function (VACF). |
|
Computes the kinetic energy tensor of a single snapshot. |
|
Interaction part of the virial pressure tensor for a single snaphot based on the formulation of Chen at al. |
|
Initializes a function that computes the virial stress tensor for a single state. |
|
Initializes a function that computes the pressure for a single state. |
|
Potential energy of a state after applying linear strain epsilon. |
|
Initialiizes a function that computes the Born contribution to the stress tensor. |
Initializes all functions necessary to compute the elastic stiffness tensor via the stress fluctuation method in the NVT ensemble. |
States#
|
Hyperparameters to initialize the radial distribution function (RDF). |
|
Hyperparameters to initialize a angular distribution function (ADF). |
|
Hyperparameters to initialize a triplet correlation function (TFC). |
|
|
|