2 |
|
#define __THERMO_H__ |
3 |
|
|
4 |
|
#include "primitives/Atom.hpp" |
5 |
– |
#include "primitives/SRI.hpp" |
5 |
|
#include "brains/SimInfo.hpp" |
6 |
|
#include "math/randomSPRNG.hpp" |
7 |
|
|
9 |
|
|
10 |
|
class Thermo{ |
11 |
|
|
12 |
< |
public: |
14 |
< |
|
15 |
< |
Thermo( SimInfo* the_info ); |
16 |
< |
~Thermo(); |
12 |
> |
public: |
13 |
|
|
14 |
< |
// note: all the following energies are in kcal/mol |
14 |
> |
Thermo( SimInfo* info) : info_(info) {} |
15 |
> |
~Thermo(); |
16 |
|
|
17 |
< |
double getKinetic(); // the total kinetic energy |
21 |
< |
double getPotential(); // the total potential energy |
22 |
< |
double getTotalE(); // gets the total energy |
17 |
> |
// note: all the following energies are in kcal/mol |
18 |
|
|
19 |
< |
double getTemperature(); // gives the instant temp. in K |
19 |
> |
double getKinetic(); // the total kinetic energy |
20 |
> |
double getPotential(); // the total potential energy |
21 |
> |
double getTotalE(); // gets the total energy |
22 |
|
|
23 |
< |
double getPressure(); // gives the instant pressure in atm; |
27 |
< |
double getPressureX(); // gives the instant pressure in atm; |
28 |
< |
double getPressureY(); // gives the instant pressure in atm; |
29 |
< |
double getPressureZ(); // gives the instant pressure in atm; |
23 |
> |
double getTemperature(); // gives the instant temp. in K |
24 |
|
|
25 |
< |
void getPressureTensor(double press[3][3]); // gives the pressure |
32 |
< |
// tensor in |
33 |
< |
// amu*fs^-2*Ang^-1 |
34 |
< |
double getVolume(); // gives the volume in Ang^3 |
25 |
> |
double getPressure(); // gives the instant pressure in atm; |
26 |
|
|
27 |
< |
private: |
28 |
< |
SimInfo* info; |
29 |
< |
gaussianSPRNG *gaussStream; |
27 |
> |
void getPressureTensor(Mat3x3d pressureTessor); // gives the pressure tensor in amu*fs^-2*Ang^-1 |
28 |
> |
double getVolume(); // gives the volume in Ang^3 |
29 |
> |
|
30 |
> |
private: |
31 |
> |
SimInfo* info_; |
32 |
|
}; |
33 |
|
|
34 |
|
} //end namespace oopse |