AFixedPosRestraint Class Reference

#include <FreeEnergyRestrain.h>

Inheritance diagram for AFixedPosRestraint:

APosRestraint ARestraint List of all members.

Public Member Functions

void SetRefPos (AVector Pos)
AVector GetRefPos ()
double GetEnergy ()
AVector GetGradient (int WhichGroup)
void GetStr (char *Str)
AVector GetPosTarget ()
double GetDistance ()

Detailed Description

Definition at line 169 of file FreeEnergyRestrain.h.


Member Function Documentation

double AFixedPosRestraint::GetDistance (  )  [inline, virtual]

Implements APosRestraint.

Definition at line 184 of file FreeEnergyRestrain.h.

References AVector::Dist(), and ARestraint::m_pCOMs.

00184 {return(m_RefPos.Dist(m_pCOMs[0]));}

double AFixedPosRestraint::GetEnergy (  )  [virtual]

Implements ARestraint.

Definition at line 735 of file FreeEnergyRestrain.C.

References APosRestraint::GetE().

00735                                      {
00736 //--------------------------------------------------------------------
00737 // return the Energy for this fixed position restraint.
00738 //--------------------------------------------------------------------
00739   return(GetE(m_RefPos));
00740 }

AVector AFixedPosRestraint::GetGradient ( int  WhichGroup  )  [virtual]

Implements ARestraint.

Definition at line 743 of file FreeEnergyRestrain.C.

References APosRestraint::GetGrad().

00743                                                       {
00744 //-------------------------------------------------------------------------
00745 // return the Gradient for this fixed position restraint.
00746 //-------------------------------------------------------------------------
00747   return(GetGrad(WhichGroup, m_RefPos));
00748 }

AVector AFixedPosRestraint::GetPosTarget (  )  [inline, virtual]

Implements APosRestraint.

Definition at line 183 of file FreeEnergyRestrain.h.

00183 {return(m_RefPos);}

AVector AFixedPosRestraint::GetRefPos (  )  [inline]

Definition at line 177 of file FreeEnergyRestrain.h.

00177 {return(m_RefPos);}

void AFixedPosRestraint::GetStr ( char *  Str  )  [inline, virtual]

Implements ARestraint.

Definition at line 180 of file FreeEnergyRestrain.h.

00180                             {
00181     strcpy(Str, "Fixed   Position Restraint");
00182   }

void AFixedPosRestraint::SetRefPos ( AVector  Pos  )  [inline, virtual]

Reimplemented from ARestraint.

Definition at line 176 of file FreeEnergyRestrain.h.

00176 {m_RefPos=Pos;}


The documentation for this class was generated from the following files:
Generated on Sat Sep 23 01:17:17 2017 for NAMD by  doxygen 1.4.7