ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/Integrator.hpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/Integrator.hpp (file contents):
Revision 1035 by tim, Fri Feb 6 21:37:59 2004 UTC vs.
Revision 1093 by tim, Wed Mar 17 14:22:59 2004 UTC

# Line 418 | Line 418 | template<typename T> class ZConstraint : public T { (p
418  
419    void zeroOutVel();
420    void doZconstraintForce();
421 <  void doHarmonic();
421 >  void doHarmonic(vector<double>& resPos);
422    bool checkZConsState();
423  
424    bool haveFixedZMols();
# Line 448 | Line 448 | template<typename T> class ZConstraint : public T { (p
448    vector<ZConsParaItem>* parameters; //
449  
450    vector<int> indexOfAllZConsMols;     //index of All Z-Constraint Molecuels
451
452  int* indexOfZConsMols;                   //index of local Z-Constraint Molecules
453  double* fz;
454  double* curZPos;
451  
452 +  vector<int> indexOfZConsMols;                   //index of local Z-Constraint Molecules
453 +  vector<double> fz;
454 +  vector<double> curZPos;
455  
456 +  bool usingSMD;
457 +  vector<double> cantPos;
458 +  vector<double> cantVel;
459  
460 +  double zconsFixTime;  
461 +  double zconsGap;
462 +  bool hasZConsGap;
463 +  vector<double> endFixTime;
464 +  
465    int whichDirection;                           //constraint direction
466  
467   private:
# Line 467 | Line 474 | template<typename T> class ZConstraint : public T { (p
474    double calcMovingMolsCOMVel();
475    double calcSysCOMVel();
476    double calcTotalForce();
477 <
477 >  void updateZPos();
478 >  void updateCantPos();
479 >  
480    ForceSubtractionPolicy* forcePolicy; //force subtraction policy
481    friend class ForceSubtractionPolicy;
482  
483   };
484  
485 < class OOPSEMinimizerBase : public RealIntegrator {
485 > /*
486 > //Steered Molecular Dynamics
487 > template<typename T> class SMD : public T{
488    public:
489 <
490 <    OOPSEMinimizerBase ( SimInfo *theInfo, ForceFields* the_ff );
480 <    virtual ~OOPSEMinimizerBase();
481 <    
482 <    double calcGradient(vector<double>& x, vector<double>& grad);
483 <    void setCoor(vector<double>& x);
484 <    vector<double> getCoor();
485 <    void output(vector<double>& x, int iteration);
486 <    int getDim() {return dim;}
487 <  protected:
488 <    
489 <    int dim;
490 <    void calcDim();
491 < };
492 <
493 < //template<typename TMinimizer> class OOPSEMinimizer : public OOPSEMinimizerBase, TMinimizer{
494 < //  public:
495 < //    void writeOutput();
496 < //};
489 >    SMD( SimInfo *theInfo, ForceFields* the_ff);
490 >    ~SMD();
491    
492 +   virtual void integrate();
493 +  virtual void calcForce( int calcPot, int calcStress );  
494 + };
495 + */
496   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines