ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/headers/SimSetup.hpp
Revision: 125
Committed: Mon Sep 30 21:10:27 2002 UTC (21 years, 9 months ago) by chuckv
File size: 1368 byte(s)
Log Message:
*** empty log message ***

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
10 // this routine is defined in BASS_interface.cpp
11 void set_interface_stamps( MakeStamps* ms, Globals* g );
12
13 class SimSetup{
14
15 public:
16 SimSetup();
17 ~SimSetup();
18
19 void setSimInfo( SimInfo* the_simnfo ) { simnfo = the_simnfo; }
20 void parseFile( char* fileName );
21 void createSim( void );
22
23 #ifdef MPI
24 void receveParse(void);
25 void testMe(void);
26 #endif
27
28
29 private:
30
31 void makeAtoms( void );
32 void makeBonds( void );
33 void makeBends( void );
34 void makeTorsions( void );
35
36 void initFromBass( void );
37 void makeElement( double x, double y, double z );
38
39 MakeStamps* stamps;
40 Globals* globals;
41 char* inFileName;
42
43 SimInfo* simnfo;
44
45 int n_components;
46
47 char force_field[100];
48 char ensemble[100];
49 Component** the_components;
50
51 int* components_nmol;
52 MoleculeStamp** comp_stamps; //the stamps matching the components
53 int tot_nmol;
54 int tot_atoms;
55 int tot_bonds;
56 int tot_bends;
57 int tot_torsions;
58 int tot_SRI;
59
60 Atom** the_atoms;
61 SRI** the_sris;
62 LRI* longRange;
63 ex_pair *the_excludes;
64 Molecule* the_molecules;
65 ForceFields* the_ff;
66
67 // needed by makeElement
68
69 int current_mol;
70 int current_comp_mol;
71 int current_comp;
72 int current_atom_ndx;
73 };
74 #endif