| 10 |
|
|
| 11 |
|
public: |
| 12 |
|
|
| 13 |
< |
Thermo( SimInfo* the_entry_plug ); |
| 13 |
> |
Thermo( SimInfo* the_info ); |
| 14 |
|
~Thermo(); |
| 15 |
|
|
| 16 |
|
// note: all the following energies are in kcal/mol |
| 20 |
|
double getTotalE(); // gets the total energy |
| 21 |
|
|
| 22 |
|
double getTemperature(); // gives the instant temp. in K |
| 23 |
+ |
|
| 24 |
|
double getPressure(); // gives the instant pressure in atm; |
| 25 |
+ |
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 |
|
void getPressureTensor(double press[3][3]); // gives the pressure |
| 30 |
|
// tensor in |
| 31 |
|
// amu*fs^-2*Ang^-1 |
| 39 |
|
void velocitize(); // set the temperature to the target temp in SimInfo |
| 40 |
|
// NOTE: srand48 should be seeded before calling. |
| 41 |
|
void getCOMVel(double vdrift[3]); |
| 42 |
+ |
void getCOM(double COM[3]); |
| 43 |
|
|
| 44 |
|
private: |
| 45 |
< |
SimInfo* entry_plug; |
| 45 |
> |
SimInfo* info; |
| 46 |
|
gaussianSPRNG *gaussStream; |
| 47 |
|
|
| 48 |
|
}; |