1 |
#ifndef _EXTENDEDSYSTEM_H_ |
2 |
#define _EXTENDEDSYSTEM_H_ |
3 |
|
4 |
#include <math.h> |
5 |
|
6 |
#include "Atom.hpp" |
7 |
#include "Molecule.hpp" |
8 |
#include "SimInfo.hpp" |
9 |
|
10 |
class ExtendedSystem{ |
11 |
public: |
12 |
|
13 |
ExtendedSystem(SimInfo* the_entry_plug); |
14 |
virtual ~ExtendedSystem() {} |
15 |
|
16 |
void setQmass(double q) {qmass = q;} |
17 |
void setTauRelax(double tr) {tauRelax = tr;} |
18 |
void setTargetTemp(double tt) {targetTemp = tt;} |
19 |
void setTargetPressure(double tp) {targetPressure = tp;} |
20 |
|
21 |
void NoseHooverNVT(double dt, double ke); |
22 |
void NoseHooverAndersonNPT(double dt, double ke, double p_mol); |
23 |
void AffineTransform(double oldBox[3], double newBox[3]); |
24 |
|
25 |
protected: |
26 |
|
27 |
SimInfo* entry_plug; |
28 |
|
29 |
// |
30 |
int nAtoms; |
31 |
int nMols; |
32 |
int nOriented; |
33 |
int ndf; |
34 |
|
35 |
Molecule* molecules; |
36 |
Atom** atoms; |
37 |
|
38 |
// zeta and epsilonDot are propagated |
39 |
double zeta; |
40 |
double epsilonDot; |
41 |
|
42 |
// qmass, tauRelax, targetTemp, and targetPressure are parameters that |
43 |
// must be set |
44 |
double qmass; |
45 |
double targetTemp; |
46 |
double targetPressure; |
47 |
double tauRelax; |
48 |
|
49 |
}; |
50 |
#endif |