ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE_old/src/mdtools/libmdCode/SimInfo.hpp
Revision: 290
Committed: Thu Feb 27 21:25:47 2003 UTC (21 years, 6 months ago) by chuckv
File size: 2993 byte(s)
Log Message:
Made changes to lj_FF.cpp to pass stress tensor.

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
14
15 class SimInfo{
16
17 public:
18
19 SimInfo();
20 ~SimInfo(){}
21
22 int n_atoms; // the number of atoms
23 Atom **atoms; // the array of atom objects
24
25 double tau[9]; // the stress tensor
26
27 unsigned int n_bonds; // number of bends
28 unsigned int n_bends; // number of bends
29 unsigned int n_torsions; // number of torsions
30 unsigned int n_oriented; // number of of atoms with orientation
31
32 unsigned int setTemp; // boolean to set the temperature at each sampleTime
33
34 unsigned int n_dipoles; // number of dipoles
35 double rRF; // the reaction field cut off radius
36 double dielectric; // the dielectric of the medium for reaction field
37
38 unsigned int n_exclude; // the number of pairs excluded from LJ and VDW
39 ex_pair *excludes; // the pairs themselves
40
41 int n_constraints; // the number of constraints on the system
42
43 unsigned int n_SRI; // the number of short range interactions
44 SRI **sr_interactions;// the array of short range force objects
45
46 double lrPot; // the potential energy from the long range calculations.
47
48 double box_x, box_y, box_z; // the periodic boundry conditions
49 double rList, rCut; // variables for the neighborlist
50 double usePBC; // whether we use periodic boundry conditions.
51
52 double dt, run_time; // the time step and total time
53 double sampleTime, statusTime; // the position and energy dump frequencies
54 double target_temp; // the target temperature of the system
55 double thermalTime; // the temp kick interval
56
57 int n_mol; // n_molecules;
58 Molecule* molecules; // the array of molecules
59
60 int nComponents; // the number of componentsin the system
61 int* componentsNmol; // the number of molecules of each component
62 MoleculeStamp** compStamps;// the stamps matching the components
63 LinkedMolStamp* headStamp; // list of stamps used in the simulation
64
65
66 char ensemble[100]; // the enesemble of the simulation (NVT, NVE, etc. )
67 char mixingRule[100]; // the mixing rules for Lennard jones/van der walls
68 Integrator *the_integrator; // the integrator of the simulation
69
70 char finalName[300]; // the name of the eor file to be written
71 char sampleName[300]; // the name of the dump file to be written
72 char statusName[300]; // the name of the stat file to be written
73
74
75 // refreshes the sim if things get changed (load balanceing, volume
76 // adjustment, etc.)
77
78 void refreshSim( void );
79
80
81 // sets the internal function pointer to fortran.
82
83 void setInternal( void (*fSetup)( simtype*, int* ) ){
84 setFsimulation = fSetup;
85 }
86
87 private:
88
89 // function to wrap the fortran function
90 void wrapMe();
91
92 // private function to initialize the fortran side of the simulation
93 void (*setFsimulation)( simtype* the_Info, int* isError );
94
95
96 };
97
98
99
100 #endif