1 |
mmeineke |
10 |
#ifndef __THERMO_H__ |
2 |
|
|
#define __THERMO_H__ |
3 |
|
|
|
4 |
|
|
#include "Atom.hpp" |
5 |
|
|
#include "SRI.hpp" |
6 |
|
|
#include "LRI.hpp" |
7 |
|
|
#include "Integrator.hpp" |
8 |
|
|
#include "SimInfo.hpp" |
9 |
chuckv |
223 |
#include "randomSPRNG.hpp" |
10 |
mmeineke |
10 |
|
11 |
|
|
class Thermo{ |
12 |
|
|
|
13 |
|
|
public: |
14 |
|
|
|
15 |
chuckv |
223 |
Thermo( SimInfo* the_entry_plug ); |
16 |
|
|
~Thermo(); |
17 |
mmeineke |
10 |
|
18 |
|
|
// note: all the following energies are in kcal/mol |
19 |
|
|
|
20 |
|
|
double getKinetic(); // the total kinetic energy |
21 |
|
|
double getPotential(); // the total potential energy |
22 |
|
|
double getTotalE(); // gets the total energy |
23 |
|
|
|
24 |
|
|
double getTemperature(); // gives the instant temp. in K |
25 |
|
|
double getPressure(); // gives the instant pressure in Pa |
26 |
|
|
|
27 |
|
|
void velocitize(); // set the temperature to the target temp in SimInfo |
28 |
|
|
// NOTE: srand48 should be seeded before calling. |
29 |
|
|
private: |
30 |
|
|
SimInfo* entry_plug; |
31 |
chuckv |
223 |
gaussianSPRNG *gaussStream; |
32 |
mmeineke |
10 |
|
33 |
|
|
}; |
34 |
|
|
#endif |