1 |
mmeineke |
270 |
#ifndef __SIMINFO_H__ |
2 |
|
|
#define __SIMINFO_H__ |
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
#include "Atom.hpp" |
7 |
|
|
#include "Molecule.hpp" |
8 |
|
|
#include "AbstractClasses.hpp" |
9 |
|
|
#include "MakeStamps.hpp" |
10 |
|
|
|
11 |
chuckv |
290 |
#define __C |
12 |
|
|
#include "fSimulation.h" |
13 |
mmeineke |
293 |
#include <fortranWrapDefines.hpp> |
14 |
chuckv |
290 |
|
15 |
|
|
|
16 |
mmeineke |
293 |
|
17 |
mmeineke |
270 |
class SimInfo{ |
18 |
|
|
|
19 |
|
|
public: |
20 |
|
|
|
21 |
|
|
SimInfo(); |
22 |
|
|
~SimInfo(){} |
23 |
|
|
|
24 |
|
|
int n_atoms; // the number of atoms |
25 |
|
|
Atom **atoms; // the array of atom objects |
26 |
chuckv |
290 |
|
27 |
|
|
double tau[9]; // the stress tensor |
28 |
mmeineke |
270 |
|
29 |
|
|
unsigned int n_bonds; // number of bends |
30 |
|
|
unsigned int n_bends; // number of bends |
31 |
|
|
unsigned int n_torsions; // number of torsions |
32 |
|
|
unsigned int n_oriented; // number of of atoms with orientation |
33 |
|
|
|
34 |
|
|
unsigned int setTemp; // boolean to set the temperature at each sampleTime |
35 |
|
|
|
36 |
|
|
unsigned int n_dipoles; // number of dipoles |
37 |
|
|
double rRF; // the reaction field cut off radius |
38 |
|
|
double dielectric; // the dielectric of the medium for reaction field |
39 |
|
|
|
40 |
mmeineke |
367 |
int n_exclude; // the # of pairs excluded from long range forces |
41 |
mmeineke |
362 |
int *excludes; // the pairs themselves |
42 |
mmeineke |
270 |
|
43 |
mmeineke |
365 |
int nGlobalExcludes; |
44 |
mmeineke |
362 |
int* globalExcludes; // same as above, but these guys participate in |
45 |
|
|
// no long range forces. |
46 |
|
|
|
47 |
|
|
int* identArray; // array of unique identifiers for the atoms |
48 |
|
|
|
49 |
mmeineke |
270 |
int n_constraints; // the number of constraints on the system |
50 |
|
|
|
51 |
|
|
unsigned int n_SRI; // the number of short range interactions |
52 |
|
|
SRI **sr_interactions;// the array of short range force objects |
53 |
|
|
|
54 |
|
|
double lrPot; // the potential energy from the long range calculations. |
55 |
|
|
|
56 |
|
|
double box_x, box_y, box_z; // the periodic boundry conditions |
57 |
|
|
double rList, rCut; // variables for the neighborlist |
58 |
mmeineke |
362 |
|
59 |
|
|
int usePBC; // whether we use periodic boundry conditions. |
60 |
|
|
int useLJ; |
61 |
|
|
int useSticky; |
62 |
|
|
int useDipole; |
63 |
|
|
int useReactionField; |
64 |
|
|
int useGB; |
65 |
|
|
int useEAM; |
66 |
|
|
|
67 |
mmeineke |
270 |
|
68 |
|
|
double dt, run_time; // the time step and total time |
69 |
|
|
double sampleTime, statusTime; // the position and energy dump frequencies |
70 |
|
|
double target_temp; // the target temperature of the system |
71 |
|
|
double thermalTime; // the temp kick interval |
72 |
|
|
|
73 |
|
|
int n_mol; // n_molecules; |
74 |
|
|
Molecule* molecules; // the array of molecules |
75 |
|
|
|
76 |
|
|
int nComponents; // the number of componentsin the system |
77 |
|
|
int* componentsNmol; // the number of molecules of each component |
78 |
|
|
MoleculeStamp** compStamps;// the stamps matching the components |
79 |
|
|
LinkedMolStamp* headStamp; // list of stamps used in the simulation |
80 |
|
|
|
81 |
|
|
|
82 |
chuckv |
290 |
char ensemble[100]; // the enesemble of the simulation (NVT, NVE, etc. ) |
83 |
|
|
char mixingRule[100]; // the mixing rules for Lennard jones/van der walls |
84 |
mmeineke |
270 |
Integrator *the_integrator; // the integrator of the simulation |
85 |
|
|
|
86 |
|
|
char finalName[300]; // the name of the eor file to be written |
87 |
|
|
char sampleName[300]; // the name of the dump file to be written |
88 |
|
|
char statusName[300]; // the name of the stat file to be written |
89 |
|
|
|
90 |
|
|
|
91 |
chuckv |
290 |
// refreshes the sim if things get changed (load balanceing, volume |
92 |
mmeineke |
270 |
// adjustment, etc.) |
93 |
|
|
|
94 |
|
|
void refreshSim( void ); |
95 |
|
|
|
96 |
|
|
|
97 |
|
|
// sets the internal function pointer to fortran. |
98 |
|
|
|
99 |
mmeineke |
359 |
void setInternal( void (*fSetup) setFortranSimList, |
100 |
|
|
void (*fBox) setFortranBoxList ){ |
101 |
mmeineke |
270 |
setFsimulation = fSetup; |
102 |
mmeineke |
359 |
setFortranBoxSize = fBox; |
103 |
mmeineke |
270 |
} |
104 |
|
|
|
105 |
|
|
private: |
106 |
|
|
|
107 |
|
|
// private function to initialize the fortran side of the simulation |
108 |
mmeineke |
293 |
void (*setFsimulation) setFortranSimList; |
109 |
mmeineke |
270 |
|
110 |
mmeineke |
365 |
void (*setFortranBoxSize) setFortranBoxList; |
111 |
mmeineke |
270 |
}; |
112 |
|
|
|
113 |
|
|
|
114 |
|
|
|
115 |
|
|
#endif |