NAMD
GlobalMasterFreeEnergy.h
Go to the documentation of this file.
1 
7 /*
8  Forwards atoms to master node for force evaluation.
9 */
10 
11 #if !defined(GLOBALMASTERFREEENERGY_H)
12 #define GLOBALMASTERFREEENERGY_H
13 
14 class Molecule;
15 class SimParameters;
16 
18  public:
21  private:
22  virtual void calculate();
23  void user_calculate();
24 
25  void initialize();
26  void user_initialize();
27  void update();
28  Molecule *molecule;
29  SimParameters *simParams;
30  char *config;
31  ARestraintManager m_RestraintManager;
32  ALambdaManager m_LambdaManager;
33 public:
34  // These all return -1 on error.
35  int getAtomID(const char *segid, int resid, const char *aname);
36  int getNumAtoms(const char* segid, int resid); // 0 on error
37  int getAtomID(const char *segid, int resid, int index);
38  double getMass(int atomid);
39  int requestAtom(int atomid);
40  int getPosition(int atomid, Position &position);
41  int addForce(int atomid, Force force);
42 };
43 
44 #endif
int getPosition(int atomid, Position &position)
int getAtomID(const char *segid, int resid, const char *aname)
Definition: Vector.h:64
int addForce(int atomid, Force force)
int getNumAtoms(const char *segid, int resid)