#include <FreeEnergyRestrain.h>
Inheritance diagram for ABoundDistRestraint:

Public Member Functions | |
| void | SetRefDist (double Dist) |
| void | SetBound (Bound_t Bound) |
| double | GetRefDist () |
| Bound_t | GetBound () |
| double | GetEnergy () |
| AVector | GetGradient (int WhichGroup) |
| void | GetStr (char *Str) |
| double | GetDistTarget () |
|
|
Definition at line 271 of file FreeEnergyRestrain.h. References Bound_t. 00271 {return(m_Bound);}
|
|
|
Implements ADistRestraint. Definition at line 277 of file FreeEnergyRestrain.h. 00277 {return(m_RefDist);}
|
|
|
Implements ARestraint. Definition at line 853 of file FreeEnergyRestrain.C. References AVector::Dist(), and ADistRestraint::GetE(). 00853 {
00854 //---------------------------------------------------------------------------
00855 // return the Energy for this bound distance restraint.
00856 //---------------------------------------------------------------------------
00857 double Dist, E;
00858
00859 E = 0.0;
00860 Dist = m_pCOMs[0].Dist(m_pCOMs[1]);
00861 if (((m_Bound==kUpper) && (Dist>m_RefDist)) ||
00862 ((m_Bound==kLower) && (Dist<m_RefDist))) {
00863 E = GetE(m_RefDist);
00864 }
00865 return(E);
00866 }
|
|
|
Implements ARestraint. Definition at line 869 of file FreeEnergyRestrain.C. References AVector::Dist(), and ADistRestraint::GetGrad(). 00869 {
00870 //---------------------------------------------------------------------------
00871 // return the gradient for this bound distance restraint.
00872 //---------------------------------------------------------------------------
00873 double Dist;
00874 AVector Vec;
00875
00876 Dist = m_pCOMs[0].Dist(m_pCOMs[1]);
00877 if (((m_Bound==kUpper) && (Dist>m_RefDist)) ||
00878 ((m_Bound==kLower) && (Dist<m_RefDist))) {
00879 Vec = GetGrad(WhichGroup, m_RefDist);
00880 }
00881 return(Vec);
00882 }
|
|
|
Definition at line 270 of file FreeEnergyRestrain.h. 00270 {return(m_RefDist);}
|
|
|
Implements ARestraint. Definition at line 274 of file FreeEnergyRestrain.h. 00274 {
00275 strcpy(Str, "Bound Distance Restraint");
00276 }
|
|
|
Reimplemented from ARestraint. Definition at line 269 of file FreeEnergyRestrain.h. 00269 {m_Bound=Bound;}
|
|
|
Reimplemented from ARestraint. Definition at line 268 of file FreeEnergyRestrain.h. 00268 {m_RefDist=Dist;}
|
1.3.9.1