NAMD
|
#include <GroupRestraintsParam.h>
Public Member Functions | |
GroupRestraintParam (void) | |
~GroupRestraintParam (void) | |
void | SetGroup1AtomFileIndices (const char *fileName) |
void | SetGroup1AtomListIndices (const char *list) |
void | SetGroup1RefPosition (const char *vec) |
void | SetGroup2AtomFileIndices (const char *fileName) |
void | SetGroup2AtomListIndices (const char *list) |
void | SetGroupName (const char *name) |
void | SetForce (const BigReal force) |
void | SetExponent (const int exponent) |
void | SetResCenter (const char *vec) |
void | SetResDirection (const char *status, const int component) |
void | SetUseDistMagnitude (const char *status) |
void | CheckParam (void) |
void | PrintSummary () |
const char * | GetGroupName () const |
int | GetExponent () const |
double | GetForce () const |
Vector | GetGroupRes1Position () const |
Vector | GetResDirection () const |
Vector | GetResCenter () const |
const std::vector< int > & | GetGroup1AtomIndex () const |
const std::vector< int > & | GetGroup2AtomIndex () const |
bool | GetUseDistMagnitude () const |
Group restraint parameter class. Stores parameters required for harmonic restraints. Make sure that all necessary parameters are provided. Read atom indicies from file. Print summary of parameters.
Definition at line 18 of file GroupRestraintsParam.h.
GroupRestraintParam::GroupRestraintParam | ( | void | ) |
< Default restraint exponent is 2
< Default force
< Default reference COM position for group 1
< Default restraint in X,Y, and Z direction
< Default center of restraint
< Default is to use vector distance, not magnitude
Definition at line 5 of file GroupRestraintsParam.C.
GroupRestraintParam::~GroupRestraintParam | ( | void | ) |
Definition at line 21 of file GroupRestraintsParam.C.
void GroupRestraintParam::CheckParam | ( | void | ) |
Check all necessary parameters in group restraint are set
Check all necessary parameters are set
Definition at line 275 of file GroupRestraintsParam.C.
References Vector::length2(), and NAMD_die().
|
inline |
Get the restraint exponent
Definition at line 68 of file GroupRestraintsParam.h.
|
inline |
Get the restraint force constant
Definition at line 71 of file GroupRestraintsParam.h.
|
inline |
Get reference to restrained atom indicies in group 1
Definition at line 83 of file GroupRestraintsParam.h.
|
inline |
Get reference to restrained atom indicies in group 2
Definition at line 86 of file GroupRestraintsParam.h.
|
inline |
Get restraint group name
Definition at line 65 of file GroupRestraintsParam.h.
|
inline |
Get the reference COM position for group 1
Definition at line 74 of file GroupRestraintsParam.h.
|
inline |
Get the center of restraint
Definition at line 80 of file GroupRestraintsParam.h.
|
inline |
Get restraint vector component (X, Y, Z)
Definition at line 77 of file GroupRestraintsParam.h.
|
inline |
Definition at line 89 of file GroupRestraintsParam.h.
void GroupRestraintParam::PrintSummary | ( | ) |
Print summary of parameters in group restraint
Definition at line 331 of file GroupRestraintsParam.C.
References endi(), iINFO(), iout, Vector::length(), Vector::x, Vector::y, and Vector::z.
void GroupRestraintParam::SetExponent | ( | const int | exponent | ) |
Set the restraint exponent
Definition at line 207 of file GroupRestraintsParam.C.
Referenced by GroupRestraintList::SetExponent().
void GroupRestraintParam::SetForce | ( | const BigReal | force | ) |
Set the restraint force constant
Definition at line 195 of file GroupRestraintsParam.C.
References endi(), iout, and iWARN().
Referenced by GroupRestraintList::SetForce().
void GroupRestraintParam::SetGroup1AtomFileIndices | ( | const char * | fileName | ) |
Read the restrained atom indicies for group 1 from file and store it
Read the restrained atom indices for group 1 from file and store it
Definition at line 26 of file GroupRestraintsParam.C.
References endi(), iINFO(), iout, iWARN(), NAMD_blank_string(), NAMD_die(), and NAMD_read_line().
Referenced by GroupRestraintList::SetGroup1AtomFileIndices().
void GroupRestraintParam::SetGroup1AtomListIndices | ( | const char * | list | ) |
Set the restrained atom indicies for group 1 from a list
Set the restrained atom indices for group 1 from a list
Definition at line 120 of file GroupRestraintsParam.C.
References endi(), iout, iWARN(), and NAMD_die().
Referenced by GroupRestraintList::SetGroup1AtomListIndices().
void GroupRestraintParam::SetGroup1RefPosition | ( | const char * | vec | ) |
Set the reference COM position for group 1
Definition at line 212 of file GroupRestraintsParam.C.
References endi(), iout, iWARN(), NAMD_die(), and Vector::set().
Referenced by GroupRestraintList::SetGroup1RefPosition().
void GroupRestraintParam::SetGroup2AtomFileIndices | ( | const char * | fileName | ) |
Read the restained atom indicies for group 2 from file and store it
Read the restrained atom indices for group 2 from file and store it
Definition at line 73 of file GroupRestraintsParam.C.
References endi(), iINFO(), iout, iWARN(), NAMD_blank_string(), NAMD_die(), and NAMD_read_line().
Referenced by GroupRestraintList::SetGroup2AtomFileIndices().
void GroupRestraintParam::SetGroup2AtomListIndices | ( | const char * | list | ) |
Set the restrained atom indicies for group 2 from a list
Set the restrained atom indices for group 2 from a list
Definition at line 150 of file GroupRestraintsParam.C.
References endi(), iout, iWARN(), and NAMD_die().
Referenced by GroupRestraintList::SetGroup2AtomListIndices().
void GroupRestraintParam::SetGroupName | ( | const char * | name | ) |
Set restraint group name
Definition at line 180 of file GroupRestraintsParam.C.
References NAMD_die().
void GroupRestraintParam::SetResCenter | ( | const char * | vec | ) |
Set the center of equilibrium value of restraint
Set the center or equilibrium value of restraint
Definition at line 230 of file GroupRestraintsParam.C.
References endi(), iout, iWARN(), NAMD_die(), and Vector::set().
Referenced by GroupRestraintList::SetResCenter().
void GroupRestraintParam::SetResDirection | ( | const char * | status, |
const int | component | ||
) |
Set restraint vector component (X, Y, Z)
Definition at line 248 of file GroupRestraintsParam.C.
References NAMD_die(), Vector::x, Vector::y, and Vector::z.
Referenced by GroupRestraintList::SetResDirectionX(), GroupRestraintList::SetResDirectionY(), and GroupRestraintList::SetResDirectionZ().
void GroupRestraintParam::SetUseDistMagnitude | ( | const char * | status | ) |
Set restraint distance mode (magnitude or vector)
Definition at line 270 of file GroupRestraintsParam.C.
Referenced by GroupRestraintList::SetUseDistMagnitude().