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 594 by mmeineke, Fri Jul 11 22:34:48 2003 UTC vs.
Revision 604 by gezelter, Tue Jul 15 03:08:00 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 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 160 | 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 203 | Line 244 | class NPTf : public Integrator{ (protected)
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 +  // chi and eta are the propagated degrees of freedom
272 +
273 +  double chi;
274 +  double eta[3][3];
275 +  double NkBT;
276 +
277 +  // targetTemp, targetPressure, and tauBarostat must be set.  
278 +  // One of qmass or tauThermostat must be set;
279 +
280 +  double targetTemp;
281 +  double targetPressure;
282 +  double tauThermostat;
283 +  double tauBarostat;
284 +
285 +  short int have_tau_thermostat, have_tau_barostat, have_target_temp;
286 +  short int have_target_pressure;
287 +
288 + };
289 +
290   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines