Normal Mode

This module defines classes for handling mode data.

class Mode(model, index)[source]

A class to provide access to and operations on mode data.

Initialize mode object as part of an NMA model.

Parameters:
  • model (NMA, GNM, or PCA) – a normal mode analysis instance
  • index (int) – index of the mode
getArray()[source]

Return a copy of the normal mode array (eigenvector).

getArrayNx3()

Return a copy of array with shape (N, 3).

getEigval()[source]

Return normal mode eigenvalue. For PCA and EDA models built using coordinate data in Å, unit of eigenvalues is Å2. For ANM and GNM, on the other hand, eigenvalues are in arbitrary or relative units but they correlate with stiffness of the motion along associated eigenvector.

getEigvec()

Return a copy of the normal mode array (eigenvector).

getIndex()[source]

Return the index of the mode. Note that mode indices are zero-based.

getModel()[source]

Return the model that the mode instance belongs to.

getTitle()[source]

A descriptive title for the mode instance.

getVariance()[source]

Return variance along the mode. For PCA and EDA models built using coordinate data in Å, unit of variance is Å2. For ANM and GNM, on the other hand, variance is the inverse of the eigenvalue, so it has arbitrary or relative units.

is3d()[source]

Return True if mode instance is from a 3-dimensional model.

numAtoms()[source]

Return number of atoms.

numDOF()[source]

Return number of degrees of freedom (three times the number of atoms).

numModes()

Return 1.

class Vector(array, title='Unknown', is3d=True)[source]

A class to provide operations on a modified mode array. This class holds only mode array (i.e. eigenvector) data, and has no associations with an NMA instance. Scalar multiplication of Mode instance or addition of two Mode instances results in a Vector instance.

Instantiate with a name, an array, and a 3d flag.

getArray()[source]

Return a copy of array.

getArrayNx3()

Return a copy of array with shape (N, 3).

getNormed()[source]

Return mode after normalizing it.

getTitle()[source]

Get the descriptive title for the vector instance.

is3d()[source]

Return True if vector instance describes a 3-dimensional property, such as a deformation for a set of atoms.

numAtoms()[source]

Return number of atoms. For a 3-dimensional vector, returns length of the vector divided by 3.

numDOF()[source]

Return number of degrees of freedom.

numModes()

Return 1.

setTitle(title)[source]

Set the descriptive title for the vector instance.

Read the Docs v: v1.5
Versions
latest
v1.5
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.