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 600 by gezelter, Mon Jul 14 22:38:13 2003 UTC

# Line 63 | Line 63 | class Integrator : public BaseIntegrator { (protected)
63    double dt;
64    double dt2;
65  
66  double* pos;
67  double* vel;
68  double* frc;
69  double* trq;
70  double* Amat;
71
66    Thermo *tStats;
67    StatWriter*  statOut;
68    DumpWriter*  dumpOut;
# Line 160 | Line 154 | class NPTf : public Integrator{
154  
155   };
156  
157 + class NPTim : public Integrator{
158 +
159 + public:
160 +
161 +  NPTim ( SimInfo *theInfo, ForceFields* the_ff);
162 +  virtual ~NPTim() {};
163 +
164 +  virtual void integrateStep( int calcPot, int calcStress ){
165 +    calcStress = 1;
166 +    Integrator::integrateStep( calcPot, calcStress );
167 +  }
168 +
169 +  void setTauThermostat(double tt) {tauThermostat = tt; have_tau_thermostat=1;}
170 +  void setTauBarostat(double tb) {tauBarostat = tb; have_tau_barostat=1;}
171 +  void setTargetTemp(double tt) {targetTemp = tt; have_target_temp = 1;}
172 +  void setTargetPressure(double tp) {targetPressure = tp; have_target_pressure = 1;}
173 +
174 + protected:
175 +
176 +  virtual void  moveA( void );
177 +  virtual void moveB( void );
178 +
179 +  virtual int readyCheck();
180 +
181 +  // chi and eta are the propagated degrees of freedom
182 +
183 +  double chi;
184 +  double eta;
185 +  double NkBT;
186 +
187 +  // targetTemp, targetPressure, and tauBarostat must be set.  
188 +  // One of qmass or tauThermostat must be set;
189 +
190 +  double targetTemp;
191 +  double targetPressure;
192 +  double tauThermostat;
193 +  double tauBarostat;
194 +
195 +  short int have_tau_thermostat, have_tau_barostat, have_target_temp;
196 +  short int have_target_pressure;
197 +
198 + };
199 +
200   class NPTf : public Integrator{
201  
202   public:
# Line 203 | Line 240 | class NPTf : public Integrator{ (protected)
240  
241   };
242  
243 + class NPTfm : public Integrator{
244 +
245 + public:
246 +
247 +  NPTfm ( SimInfo *theInfo, ForceFields* the_ff);
248 +  virtual ~NPTfm() {};
249 +
250 +  virtual void integrateStep( int calcPot, int calcStress ){
251 +    calcStress = 1;
252 +    Integrator::integrateStep( calcPot, calcStress );
253 +  }
254 +
255 +  void setTauThermostat(double tt) {tauThermostat = tt; have_tau_thermostat=1;}
256 +  void setTauBarostat(double tb) {tauBarostat = tb; have_tau_barostat=1;}
257 +  void setTargetTemp(double tt) {targetTemp = tt; have_target_temp = 1;}
258 +  void setTargetPressure(double tp) {targetPressure = tp; have_target_pressure = 1;}
259 +
260 + protected:
261 +
262 +  virtual void  moveA( void );
263 +  virtual void moveB( void );
264 +
265 +  virtual int readyCheck();
266 +
267 +  // chi and eta are the propagated degrees of freedom
268 +
269 +  double chi;
270 +  double eta[3][3];
271 +  double NkBT;
272 +
273 +  // targetTemp, targetPressure, and tauBarostat must be set.  
274 +  // One of qmass or tauThermostat must be set;
275 +
276 +  double targetTemp;
277 +  double targetPressure;
278 +  double tauThermostat;
279 +  double tauBarostat;
280 +
281 +  short int have_tau_thermostat, have_tau_barostat, have_target_temp;
282 +  short int have_target_pressure;
283 +
284 + };
285 +
286   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines