--- trunk/OOPSE/libmdtools/Integrator.hpp 2004/02/17 19:23:44 1057 +++ trunk/OOPSE/libmdtools/Integrator.hpp 2004/03/17 14:22:59 1093 @@ -418,7 +418,7 @@ template class ZConstraint : public T { (p void zeroOutVel(); void doZconstraintForce(); - void doHarmonic(); + void doHarmonic(vector& resPos); bool checkZConsState(); bool haveFixedZMols(); @@ -448,13 +448,20 @@ template class ZConstraint : public T { (p vector* parameters; // vector indexOfAllZConsMols; //index of All Z-Constraint Molecuels - - int* indexOfZConsMols; //index of local Z-Constraint Molecules - double* fz; - double* curZPos; + vector indexOfZConsMols; //index of local Z-Constraint Molecules + vector fz; + vector curZPos; + bool usingSMD; + vector cantPos; + vector cantVel; + double zconsFixTime; + double zconsGap; + bool hasZConsGap; + vector endFixTime; + int whichDirection; //constraint direction private: @@ -467,35 +474,23 @@ template class ZConstraint : public T { (p double calcMovingMolsCOMVel(); double calcSysCOMVel(); double calcTotalForce(); - + void updateZPos(); + void updateCantPos(); + ForceSubtractionPolicy* forcePolicy; //force subtraction policy friend class ForceSubtractionPolicy; }; -class OOPSEMinimizerBase : public RealIntegrator { +/* +//Steered Molecular Dynamics + template class SMD : public T{ public: - - OOPSEMinimizerBase ( SimInfo *theInfo, ForceFields* the_ff ); - virtual ~OOPSEMinimizerBase(); - - double calcGradient(vector& x, vector& grad); - void setCoor(vector& x); - vector getCoor(); - void output(vector& x, int iteration); - int getDim() {return dim;} - void constraintMove(); - void shakeF(); - void shakeR(); - protected: - - int dim; - void calcDim(); -}; - -//template class OOPSEMinimizer : public OOPSEMinimizerBase, TMinimizer{ -// public: -// void writeOutput(); -//}; + SMD( SimInfo *theInfo, ForceFields* the_ff); + ~SMD(); + virtual void integrate(); + virtual void calcForce( int calcPot, int calcStress ); +}; +*/ #endif