63 void modifyForces()
override;
65 RealType getZConsTime() {
return zconsTime_; }
66 std::string getZConsOutput() {
return zconsOutput_; }
69 RealType getZTargetPos(
int index);
71 void calcTotalMassMovingZMols();
74 bool checkZConsState();
76 bool haveFixedZMols();
77 void doZconstraintForce();
80 RealType getZFOfMovingMols(
Molecule* mol, RealType totalForce);
81 bool haveMovingZMols();
85 RealType getHFOfUnconsMols(
Molecule* mol, RealType totalForce);
89 std::list<ZconstraintMol> movingZMols_;
90 std::list<ZconstraintMol> fixedZMols_;
91 std::vector<Molecule*> unzconsMols_;
94 std::string zconsOutput_;
97 RealType zconsFixingTime_;
102 const static int whichDirection = 2;
104 std::map<int, ZconstraintParam> allZMolIndices_;
107 RealType currZconsTime_;
109 RealType totMassMovingZMols_;
110 RealType totMassUnconsMols_;
114 const RealType infiniteTime;