Three classes for representation of internal coordinate:
- InternalCoordinate: works directly on Coordinates or Atoms
- GroupsInternalCoord: Works on groups of Coordinates or Atoms, groups are represented by yheir center of mass for the calculations
- InternalCoordinateI: works with atom indexes in specified Geometry
class InternalCoordinate
initialize(type, *atoms)
Types:
- :distance
- :distance_inv
- :angle
- :torsion
Misc
size # => integer
Get dimension of the coordinate
Calculations
value # => float
Returns value of the internal coordinate
grad_on_atoms(grad) # => Array of Coordinates
Returns cartesian gradients on the atoms calculated from gradient in the internal coordinate
grad_to_atoms(grad)
gradient in the internal coordinate is applied to atoms in the geometry
grad_to_grad_array(grad, geometry, array)
gradient in the internal coordinate is applied to array of gradients
class GroupsInternalCoord
Initialize
initialize(type, geometry, *lists)
Types:
- :distance
- :distance_inv
- :angle
- :torsion
Misc
size # => integer
Get dimension of the coordinate
type # => Symbol
Get type of the coordinate
Calculations
value # => float
Returns value of the internal coordinate
grad_on_centers(grad) # => Array of Coordinates
Returns cartesian gradients on the centers calculated from gradient in the internal coordinate
grad_to_geometry(grad)
gradient in the internal coordinate is applied to atoms in the geometry
grad_to_grad_array(grad, array)
gradient in the internal coordinate is applied to array of gradients
class InternalCoordinateI
Here the atoms are specified by their index in geometry
Initialize
initialize(type, geometry, *indexes)
Types:
- :distance
- :distance_inv
- :angle
- :torsion
Misc
size # => integer
Get dimension of the coordinate
type # => Symbol
Get type of the coordinate
atoms # => Array of Atom
Get array od the atoms
Calculations
value # => float
Returns value of the internal coordinate
grad_on_atoms(grad) # => Array of Coordinates
Returns cartesian gradients on the centers calculated from gradient in the internal coordinate