ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/headers/SimSetup.hpp
Revision: 117
Committed: Tue Sep 24 22:10:55 2002 UTC (21 years, 9 months ago) by mmeineke
File size: 1303 byte(s)
Log Message:
fixed allot of warnings, and adde the molecule

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 private:
24
25 void makeAtoms( void );
26 void makeBonds( void );
27 void makeBends( void );
28 void makeTorsions( void );
29
30 void initFromBass( void );
31 void makeElement( double x, double y, double z );
32
33 MakeStamps* stamps;
34 Globals* globals;
35 char* inFileName;
36
37 SimInfo* simnfo;
38
39 int n_components;
40
41 char force_field[100];
42 char ensemble[100];
43 Component** the_components;
44
45 int* components_nmol;
46 MoleculeStamp** comp_stamps; //the stamps matching the components
47 int tot_nmol;
48 int tot_atoms;
49 int tot_bonds;
50 int tot_bends;
51 int tot_torsions;
52 int tot_SRI;
53
54 Atom** the_atoms;
55 SRI** the_sris;
56 LRI* longRange;
57 ex_pair *the_excludes;
58 Molecule* the_molecules;
59 ForceFields* the_ff;
60
61 // needed by makeElement
62
63 int current_mol;
64 int current_comp_mol;
65 int current_comp;
66 int current_atom_ndx;
67 };
68 #endif