DistGeom::FourthDimContrib Class Reference

#include <FourthDimContrib.h>

Inheritance diagram for DistGeom::FourthDimContrib:
ForceFields::ForceFieldContrib

List of all members.

Public Member Functions

 FourthDimContrib ()
 FourthDimContrib (ForceFields::ForceField *owner, unsigned int idx, double weight)
 Constructor.
double getEnergy (double *pos) const
 return the contribution of this contrib to the energy of a given state
void getGrad (double *pos, double *grad) const
 calculate the contribution of this contrib to the gradient at a given state

Detailed Description

A term used in penalizing chirality violations

Definition at line 13 of file FourthDimContrib.h.


Constructor & Destructor Documentation

DistGeom::FourthDimContrib::FourthDimContrib (  )  [inline]

Definition at line 12 of file FourthDimContrib.h.

DistGeom::FourthDimContrib::FourthDimContrib ( ForceFields::ForceField owner,
unsigned int  idx,
double  weight 
) [inline]

Constructor.

Parameters:
owner pointer to the owning ForceField
idx the index of the atom to be considered
weight (optional) the weight to be used for this contrib

Definition at line 21 of file FourthDimContrib.h.

References ForceFields::ForceField::dimension().


Member Function Documentation

double DistGeom::FourthDimContrib::getEnergy ( double *  pos  )  const [inline, virtual]

return the contribution of this contrib to the energy of a given state

Implements ForceFields::ForceFieldContrib.

Definition at line 29 of file FourthDimContrib.h.

void DistGeom::FourthDimContrib::getGrad ( double *  pos,
double *  grad 
) const [inline, virtual]

calculate the contribution of this contrib to the gradient at a given state

Implements ForceFields::ForceFieldContrib.

Definition at line 38 of file FourthDimContrib.h.


The documentation for this class was generated from the following file:
Generated on Wed Jun 30 07:07:31 2010 for RDCode by  doxygen 1.6.3