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 588 by gezelter, Thu Jul 10 17:10:56 2003 UTC vs.
Revision 605 by gezelter, Tue Jul 15 03:27:24 2003 UTC

# Line 2 | Line 2
2   #define _INTEGRATOR_H_
3  
4   #include "Atom.hpp"
5 + #include "Molecule.hpp"
6   #include "SRI.hpp"
7   #include "AbstractClasses.hpp"
8   #include "SimInfo.hpp"
# Line 35 | Line 36 | class Integrator : public BaseIntegrator { (protected)
36    
37    void checkConstraints( void );
38    void rotate( int axes1, int axes2, double angle, double j[3],
39 <               double A[9] );
39 >               double A[3][3] );
40  
41  
42    ForceFields* myFF;
# Line 63 | Line 64 | class Integrator : public BaseIntegrator { (protected)
64    double dt;
65    double dt2;
66  
66  double* pos;
67  double* vel;
68  double* frc;
69  double* trq;
70  double* Amat;
71
67    Thermo *tStats;
68    StatWriter*  statOut;
69    DumpWriter*  dumpOut;
# Line 124 | Line 119 | class NPTi : public Integrator{ (public)
119    NPTi ( SimInfo *theInfo, ForceFields* the_ff);
120    virtual ~NPTi() {};
121  
122 +  virtual void integrateStep( int calcPot, int calcStress ){
123 +    calcStress = 1;
124 +    Integrator::integrateStep( calcPot, calcStress );
125 +  }
126 +
127    void setTauThermostat(double tt) {tauThermostat = tt; have_tau_thermostat=1;}
128    void setTauBarostat(double tb) {tauBarostat = tb; have_tau_barostat=1;}
129    void setTargetTemp(double tt) {targetTemp = tt; have_target_temp = 1;}
# Line 155 | Line 155 | class NPTf : public Integrator{
155  
156   };
157  
158 + class NPTim : public Integrator{
159 +
160 + public:
161 +
162 +  NPTim ( SimInfo *theInfo, ForceFields* the_ff);
163 +  virtual ~NPTim() {};
164 +
165 +  virtual void integrateStep( int calcPot, int calcStress ){
166 +    calcStress = 1;
167 +    Integrator::integrateStep( calcPot, calcStress );
168 +  }
169 +
170 +  void setTauThermostat(double tt) {tauThermostat = tt; have_tau_thermostat=1;}
171 +  void setTauBarostat(double tb) {tauBarostat = tb; have_tau_barostat=1;}
172 +  void setTargetTemp(double tt) {targetTemp = tt; have_target_temp = 1;}
173 +  void setTargetPressure(double tp) {targetPressure = tp; have_target_pressure = 1;}
174 +
175 + protected:
176 +
177 +  virtual void moveA( void );
178 +  virtual void moveB( void );
179 +
180 +  virtual int readyCheck();
181 +
182 +  Molecule* myMolecules;
183 +  Atom** myAtoms;
184 +
185 +  // chi and eta are the propagated degrees of freedom
186 +
187 +  double chi;
188 +  double eta;
189 +  double NkBT;
190 +
191 +  // targetTemp, targetPressure, and tauBarostat must be set.  
192 +  // One of qmass or tauThermostat must be set;
193 +
194 +  double targetTemp;
195 +  double targetPressure;
196 +  double tauThermostat;
197 +  double tauBarostat;
198 +
199 +  short int have_tau_thermostat, have_tau_barostat, have_target_temp;
200 +  short int have_target_pressure;
201 +
202 + };
203 +
204   class NPTf : public Integrator{
205  
206   public:
# Line 162 | Line 208 | class NPTf : public Integrator{ (public)
208    NPTf ( SimInfo *theInfo, ForceFields* the_ff);
209    virtual ~NPTf() {};
210  
211 +  virtual void integrateStep( int calcPot, int calcStress ){
212 +    calcStress = 1;
213 +    Integrator::integrateStep( calcPot, calcStress );
214 +  }
215 +
216    void setTauThermostat(double tt) {tauThermostat = tt; have_tau_thermostat=1;}
217    void setTauBarostat(double tb) {tauBarostat = tb; have_tau_barostat=1;}
218    void setTargetTemp(double tt) {targetTemp = tt; have_target_temp = 1;}
# Line 193 | Line 244 | class NPTf : public Integrator{ (public)
244  
245   };
246  
247 + class NPTfm : public Integrator{
248 +
249 + public:
250 +
251 +  NPTfm ( SimInfo *theInfo, ForceFields* the_ff);
252 +  virtual ~NPTfm() {};
253 +
254 +  virtual void integrateStep( int calcPot, int calcStress ){
255 +    calcStress = 1;
256 +    Integrator::integrateStep( calcPot, calcStress );
257 +  }
258 +
259 +  void setTauThermostat(double tt) {tauThermostat = tt; have_tau_thermostat=1;}
260 +  void setTauBarostat(double tb) {tauBarostat = tb; have_tau_barostat=1;}
261 +  void setTargetTemp(double tt) {targetTemp = tt; have_target_temp = 1;}
262 +  void setTargetPressure(double tp) {targetPressure = tp; have_target_pressure = 1;}
263 +
264 + protected:
265 +
266 +  virtual void  moveA( void );
267 +  virtual void moveB( void );
268 +
269 +  virtual int readyCheck();
270 +
271 +  Molecule* myMolecules;
272 +  Atom** myAtoms;
273 +
274 +  // chi and eta are the propagated degrees of freedom
275 +
276 +  double chi;
277 +  double eta[3][3];
278 +  double NkBT;
279 +
280 +  // targetTemp, targetPressure, and tauBarostat must be set.  
281 +  // One of qmass or tauThermostat must be set;
282 +
283 +  double targetTemp;
284 +  double targetPressure;
285 +  double tauThermostat;
286 +  double tauBarostat;
287 +
288 +  short int have_tau_thermostat, have_tau_barostat, have_target_temp;
289 +  short int have_target_pressure;
290 +
291 + };
292 +
293   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines