ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/SimSetup.hpp
Revision: 682
Committed: Tue Aug 12 17:51:33 2003 UTC (20 years, 10 months ago) by tim
File size: 1892 byte(s)
Log Message:
added harmonical potential to z-constraint method

File Contents

# Content
1 #ifndef __SIMSETUP_H__
2 #define __SIMSETUP_H__
3
4 #include "MakeStamps.hpp"
5 #include "Globals.hpp"
6 #include "ForceFields.hpp"
7 #include "SimInfo.hpp"
8 #include "ReadWrite.hpp"
9 #include "AllIntegrator.hpp"
10
11 // this routine is defined in BASS_interface.cpp
12 extern void set_interface_stamps( MakeStamps* ms, Globals* g );
13
14 class SimSetup{
15
16 public:
17 SimSetup();
18 ~SimSetup();
19
20 void setSimInfo( SimInfo* the_info ) { info = the_info; }
21 void setSimInfo( SimInfo* the_info, int theNinfo );
22 void parseFile( char* fileName );
23 void createSim( void );
24
25
26 private:
27
28 #ifdef IS_MPI
29 void receiveParse(void);
30 #endif
31
32 void gatherInfo( void );
33 void sysObjectsCreation( void );
34 void finalInfoCheck( void );
35 void initSystemCoords( void );
36 void makeOutNames(void);
37 void makeIntegrator(void);
38 void initFortran(void);
39
40 void createFF( void );
41 void compList( void );
42 void calcSysValues( void );
43 void makeSysArrays( void );
44
45 #ifdef IS_MPI
46 void mpiMolDivide( void );
47
48 int* mol2proc;
49 int* molCompType;
50
51 #endif //is_mpi
52
53 void initFromBass( void );
54 void makeMolecules( void );
55 void makeElement( double x, double y, double z );
56
57 int ensembleCase;
58 int ffCase;
59
60
61 MakeStamps* stamps;
62 Globals* globals;
63 char* inFileName;
64
65 SimInfo* info;
66 int isInfoArray;
67 int nInfo;
68
69 int n_components;
70 int globalAtomIndex;
71
72 char force_field[100];
73 char ensemble[100];
74 Component** the_components;
75
76 int* components_nmol;
77 MoleculeStamp** comp_stamps; //the stamps matching the components
78 int tot_nmol;
79 int tot_atoms;
80 int tot_bonds;
81 int tot_bends;
82 int tot_torsions;
83 int tot_SRI;
84
85 ForceFields* the_ff;
86
87 // needed by makeElement
88
89 int current_mol;
90 int current_comp_mol;
91 int current_comp;
92 int current_atom_ndx;
93
94 #ifdef IS_MPI
95 int* globalIndex;
96 #endif //is_mpi
97
98 void setupZConstraint(SimInfo& theInfo); //setup parameters for zconstraint method
99
100 };
101 #endif