ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/SimInfo.hpp
Revision: 394
Committed: Mon Mar 24 21:55:34 2003 UTC (21 years, 3 months ago) by gezelter
File size: 3412 byte(s)
Log Message:
electrostatic changes for dipole / RF separation

File Contents

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