ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/tags/mpi_start/mdtools/headers/Thermo.hpp
Revision: 115
Committed: Mon Sep 23 15:13:11 2002 UTC (21 years, 11 months ago)
Original Path: branches/serial-branch/mdtools/headers/Thermo.hpp
File size: 784 byte(s)
Log Message:
This commit was manufactured by cvs2svn to create branch 'serial-branch'.

File Contents

# User Rev Content
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    
10     class Thermo{
11    
12     public:
13    
14     Thermo( SimInfo* the_entry_plug ) { entry_plug = the_entry_plug; }
15     ~Thermo() {}
16    
17     // note: all the following energies are in kcal/mol
18    
19     double getKinetic(); // the total kinetic energy
20     double getPotential(); // the total potential energy
21     double getTotalE(); // gets the total energy
22    
23     double getTemperature(); // gives the instant temp. in K
24     double getPressure(); // gives the instant pressure in Pa
25    
26     void velocitize(); // set the temperature to the target temp in SimInfo
27     // NOTE: srand48 should be seeded before calling.
28     private:
29     SimInfo* entry_plug;
30    
31     };
32     #endif