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 596 by gezelter, Mon Jul 14 15:04:55 2003 UTC

# Line 160 | Line 160 | class NPTf : public Integrator{
160  
161   };
162  
163 + class NPTim : public Integrator{
164 +
165 + public:
166 +
167 +  NPTim ( SimInfo *theInfo, ForceFields* the_ff);
168 +  virtual ~NPTim() {};
169 +
170 +  virtual void integrateStep( int calcPot, int calcStress ){
171 +    calcStress = 1;
172 +    Integrator::integrateStep( calcPot, calcStress );
173 +  }
174 +
175 +  void setTauThermostat(double tt) {tauThermostat = tt; have_tau_thermostat=1;}
176 +  void setTauBarostat(double tb) {tauBarostat = tb; have_tau_barostat=1;}
177 +  void setTargetTemp(double tt) {targetTemp = tt; have_target_temp = 1;}
178 +  void setTargetPressure(double tp) {targetPressure = tp; have_target_pressure = 1;}
179 +
180 + protected:
181 +
182 +  virtual void  moveA( void );
183 +  virtual void moveB( void );
184 +
185 +  virtual int readyCheck();
186 +
187 +  // chi and eta are the propagated degrees of freedom
188 +
189 +  double chi;
190 +  double eta;
191 +  double NkBT;
192 +
193 +  // targetTemp, targetPressure, and tauBarostat must be set.  
194 +  // One of qmass or tauThermostat must be set;
195 +
196 +  double targetTemp;
197 +  double targetPressure;
198 +  double tauThermostat;
199 +  double tauBarostat;
200 +
201 +  short int have_tau_thermostat, have_tau_barostat, have_target_temp;
202 +  short int have_target_pressure;
203 +
204 + };
205 +
206   class NPTf : public Integrator{
207  
208   public:
# Line 203 | Line 246 | class NPTf : public Integrator{ (protected)
246  
247   };
248  
249 + class NPTfm : public Integrator{
250 +
251 + public:
252 +
253 +  NPTfm ( SimInfo *theInfo, ForceFields* the_ff);
254 +  virtual ~NPTfm() {};
255 +
256 +  virtual void integrateStep( int calcPot, int calcStress ){
257 +    calcStress = 1;
258 +    Integrator::integrateStep( calcPot, calcStress );
259 +  }
260 +
261 +  void setTauThermostat(double tt) {tauThermostat = tt; have_tau_thermostat=1;}
262 +  void setTauBarostat(double tb) {tauBarostat = tb; have_tau_barostat=1;}
263 +  void setTargetTemp(double tt) {targetTemp = tt; have_target_temp = 1;}
264 +  void setTargetPressure(double tp) {targetPressure = tp; have_target_pressure = 1;}
265 +
266 + protected:
267 +
268 +  virtual void  moveA( void );
269 +  virtual void moveB( void );
270 +
271 +  virtual int readyCheck();
272 +
273 +  // chi and eta are the propagated degrees of freedom
274 +
275 +  double chi;
276 +  double eta[3][3];
277 +  double NkBT;
278 +
279 +  // targetTemp, targetPressure, and tauBarostat must be set.  
280 +  // One of qmass or tauThermostat must be set;
281 +
282 +  double targetTemp;
283 +  double targetPressure;
284 +  double tauThermostat;
285 +  double tauBarostat;
286 +
287 +  short int have_tau_thermostat, have_tau_barostat, have_target_temp;
288 +  short int have_target_pressure;
289 +
290 + };
291 +
292   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines