1 |
mmeineke |
377 |
#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 |
|
|
#define __C |
12 |
|
|
#include "fSimulation.h" |
13 |
|
|
#include "fortranWrapDefines.hpp" |
14 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
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 |
|
|
|
27 |
|
|
double tau[9]; // the stress tensor |
28 |
|
|
|
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 |
gezelter |
458 |
unsigned int ndf; // number of actual degrees of freedom |
34 |
|
|
unsigned int ndfRaw; // number of settable degrees of freedom |
35 |
mmeineke |
377 |
|
36 |
|
|
unsigned int setTemp; // boolean to set the temperature at each sampleTime |
37 |
|
|
|
38 |
|
|
unsigned int n_dipoles; // number of dipoles |
39 |
gezelter |
394 |
double ecr; // the electrostatic cutoff radius |
40 |
|
|
double est; // the electrostatic skin thickness |
41 |
mmeineke |
377 |
double dielectric; // the dielectric of the medium for reaction field |
42 |
|
|
|
43 |
|
|
int n_exclude; // the # of pairs excluded from long range forces |
44 |
mmeineke |
427 |
Exclude** excludes; // the pairs themselves |
45 |
mmeineke |
377 |
|
46 |
|
|
int nGlobalExcludes; |
47 |
|
|
int* globalExcludes; // same as above, but these guys participate in |
48 |
|
|
// no long range forces. |
49 |
|
|
|
50 |
|
|
int* identArray; // array of unique identifiers for the atoms |
51 |
gezelter |
483 |
int* molMembershipArray; // map of atom numbers onto molecule numbers |
52 |
mmeineke |
377 |
|
53 |
|
|
int n_constraints; // the number of constraints on the system |
54 |
|
|
|
55 |
|
|
unsigned int n_SRI; // the number of short range interactions |
56 |
|
|
|
57 |
|
|
double lrPot; // the potential energy from the long range calculations. |
58 |
|
|
|
59 |
|
|
double box_x, box_y, box_z; // the periodic boundry conditions |
60 |
|
|
double rList, rCut; // variables for the neighborlist |
61 |
|
|
|
62 |
|
|
int usePBC; // whether we use periodic boundry conditions. |
63 |
|
|
int useLJ; |
64 |
|
|
int useSticky; |
65 |
|
|
int useDipole; |
66 |
|
|
int useReactionField; |
67 |
|
|
int useGB; |
68 |
|
|
int useEAM; |
69 |
|
|
|
70 |
|
|
|
71 |
|
|
double dt, run_time; // the time step and total time |
72 |
|
|
double sampleTime, statusTime; // the position and energy dump frequencies |
73 |
|
|
double target_temp; // the target temperature of the system |
74 |
|
|
double thermalTime; // the temp kick interval |
75 |
|
|
|
76 |
|
|
int n_mol; // n_molecules; |
77 |
|
|
Molecule* molecules; // the array of molecules |
78 |
|
|
|
79 |
|
|
int nComponents; // the number of componentsin the system |
80 |
|
|
int* componentsNmol; // the number of molecules of each component |
81 |
|
|
MoleculeStamp** compStamps;// the stamps matching the components |
82 |
|
|
LinkedMolStamp* headStamp; // list of stamps used in the simulation |
83 |
|
|
|
84 |
|
|
|
85 |
|
|
char ensemble[100]; // the enesemble of the simulation (NVT, NVE, etc. ) |
86 |
|
|
char mixingRule[100]; // the mixing rules for Lennard jones/van der walls |
87 |
|
|
Integrator *the_integrator; // the integrator of the simulation |
88 |
|
|
|
89 |
|
|
char finalName[300]; // the name of the eor file to be written |
90 |
|
|
char sampleName[300]; // the name of the dump file to be written |
91 |
|
|
char statusName[300]; // the name of the stat file to be written |
92 |
|
|
|
93 |
|
|
|
94 |
|
|
// refreshes the sim if things get changed (load balanceing, volume |
95 |
|
|
// adjustment, etc.) |
96 |
|
|
|
97 |
|
|
void refreshSim( void ); |
98 |
|
|
|
99 |
|
|
|
100 |
|
|
// sets the internal function pointer to fortran. |
101 |
|
|
|
102 |
|
|
void setInternal( void (*fSetup) setFortranSimList, |
103 |
|
|
void (*fBox) setFortranBoxList ){ |
104 |
|
|
setFsimulation = fSetup; |
105 |
|
|
setFortranBoxSize = fBox; |
106 |
|
|
} |
107 |
|
|
|
108 |
gezelter |
458 |
int getNDF(); |
109 |
|
|
int getNDFraw(); |
110 |
|
|
|
111 |
gezelter |
457 |
void setBox( double newBox[3] ); |
112 |
|
|
void getBox( double theBox[3] ); |
113 |
|
|
|
114 |
mmeineke |
377 |
private: |
115 |
|
|
|
116 |
|
|
// private function to initialize the fortran side of the simulation |
117 |
|
|
void (*setFsimulation) setFortranSimList; |
118 |
|
|
|
119 |
|
|
void (*setFortranBoxSize) setFortranBoxList; |
120 |
|
|
}; |
121 |
|
|
|
122 |
|
|
|
123 |
|
|
|
124 |
|
|
#endif |