1 |
|
#ifndef __SIMINFO_H__ |
2 |
|
#define __SIMINFO_H__ |
3 |
|
|
4 |
+ |
#include <map> |
5 |
+ |
#include <string> |
6 |
+ |
#include <vector> |
7 |
|
|
5 |
– |
|
8 |
|
#include "Atom.hpp" |
9 |
|
#include "Molecule.hpp" |
10 |
|
#include "AbstractClasses.hpp" |
11 |
|
#include "MakeStamps.hpp" |
12 |
+ |
#include "SimState.hpp" |
13 |
|
|
14 |
|
#define __C |
15 |
|
#include "fSimulation.h" |
16 |
|
#include "fortranWrapDefines.hpp" |
17 |
+ |
#include "GenericData.hpp" |
18 |
|
|
19 |
|
|
20 |
|
|
23 |
|
public: |
24 |
|
|
25 |
|
SimInfo(); |
26 |
< |
~SimInfo(){} |
26 |
> |
~SimInfo(); |
27 |
|
|
28 |
|
int n_atoms; // the number of atoms |
29 |
|
Atom **atoms; // the array of atom objects |
36 |
|
unsigned int n_oriented; // number of of atoms with orientation |
37 |
|
unsigned int ndf; // number of actual degrees of freedom |
38 |
|
unsigned int ndfRaw; // number of settable degrees of freedom |
39 |
+ |
unsigned int n_Zconstraints; // the number of zConstraints |
40 |
|
|
41 |
|
unsigned int setTemp; // boolean to set the temperature at each sampleTime |
42 |
|
|
142 |
|
double getEcr( void ) { return ecr; } |
143 |
|
double getEst( void ) { return est; } |
144 |
|
|
145 |
< |
void setTime( double theTime ) { currentTime = theTime }; |
146 |
< |
double getTime( void ) { return currentTime }; |
145 |
> |
void setTime( double theTime ) { currentTime = theTime; } |
146 |
> |
void incrTime( double dt ) { currentTime += dt; } |
147 |
> |
void decrTime( double dt ) { currentTime -= dt; } |
148 |
> |
double getTime( void ) { return currentTime; } |
149 |
|
|
150 |
|
void wrapVector( double thePos[3] ); |
151 |
|
|
156 |
|
void printMat3(double A[3][3]); |
157 |
|
void printMat9(double A[9]); |
158 |
|
double matDet3(double m[3][3]); |
159 |
+ |
|
160 |
+ |
SimState* getConfiguration( void ) { return myConfiguration; } |
161 |
|
|
162 |
+ |
void addProperty(GenericData* prop); |
163 |
+ |
GenericData* getProperty(const string& propName); |
164 |
+ |
vector<GenericData*> getProperties(); |
165 |
+ |
|
166 |
|
private: |
167 |
|
|
168 |
+ |
SimState* myConfiguration; |
169 |
+ |
|
170 |
|
double origRcut, origEcr; |
171 |
|
int boxIsInit, haveOrigRcut, haveOrigEcr; |
172 |
|
|
188 |
|
void (*setFortranBoxSize) setFortranBoxList; |
189 |
|
|
190 |
|
void (*notifyFortranCutOffs) notifyFortranCutOffList; |
191 |
+ |
|
192 |
+ |
//Addtional Properties of SimInfo |
193 |
+ |
map<string, GenericData*> properties; |
194 |
|
|
195 |
|
}; |
196 |
|
|