ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/Thermo.hpp
Revision: 763
Committed: Mon Sep 15 16:52:02 2003 UTC (20 years, 9 months ago) by tim
File size: 1543 byte(s)
Log Message:
add conserved quantity to statWriter
fix bug of vector wrapping at NPTi

File Contents

# User Rev Content
1 mmeineke 377 #ifndef __THERMO_H__
2     #define __THERMO_H__
3    
4     #include "Atom.hpp"
5     #include "SRI.hpp"
6     #include "SimInfo.hpp"
7     #include "randomSPRNG.hpp"
8    
9     class Thermo{
10    
11     public:
12    
13 mmeineke 614 Thermo( SimInfo* the_info );
14 mmeineke 377 ~Thermo();
15    
16     // note: all the following energies are in kcal/mol
17    
18     double getKinetic(); // the total kinetic energy
19     double getPotential(); // the total potential energy
20     double getTotalE(); // gets the total energy
21    
22     double getTemperature(); // gives the instant temp. in K
23 mmeineke 755
24 gezelter 483 double getPressure(); // gives the instant pressure in atm;
25 mmeineke 755 double getPressureX(); // gives the instant pressure in atm;
26     double getPressureY(); // gives the instant pressure in atm;
27     double getPressureZ(); // gives the instant pressure in atm;
28    
29 gezelter 588 void getPressureTensor(double press[3][3]); // gives the pressure
30     // tensor in
31     // amu*fs^-2*Ang^-1
32 gezelter 484 double getVolume(); // gives the volume in Ang^3
33     double getEnthalpy(); // gives the enthalpy in kcal/mol
34 gezelter 454
35     int getNDF(); // get the number of degrees of freedom in the system
36     int getNDFraw(); // get the number of raw degrees of freedom in the system
37     // i.e. don't subtract constraints or system COM.
38 mmeineke 377
39     void velocitize(); // set the temperature to the target temp in SimInfo
40     // NOTE: srand48 should be seeded before calling.
41 chuckv 403 void getCOMVel(double vdrift[3]);
42 tim 763 void getCOM(double COM[3]);
43 chuckv 401
44 mmeineke 377 private:
45 mmeineke 614 SimInfo* info;
46 mmeineke 377 gaussianSPRNG *gaussStream;
47    
48     };
49     #endif