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

File Contents

# Content
1 #ifndef __GLOBALS_H__
2 #define __GLOBALS_H__
3
4 #include <cstdlib>
5
6 #include "BASS_interface.h"
7 #include "Component.hpp"
8 #include "LinkedCommand.hpp"
9 #include "MakeStamps.hpp"
10
11 class Globals{
12
13 public:
14
15 Globals();
16 ~Globals();
17
18 int newComponent( event* the_event );
19 int componentAssign( event* the_event );
20 int componentStartIndex( event* the_event );
21 int componentEnd( event* the_event );
22
23 int globalAssign( event* the_event );
24 int globalEnd( event* the_event );
25
26 char* getForceField( void ) { return force_field; }
27 int getNComponents( void ) { return n_components; }
28 double getTargetTemp( void ) { return target_temp; }
29 char* getEnsemble( void ) { return ensemble; }
30 double getDt( void ) { return dt; }
31 double getRunTime( void ) { return run_time; }
32
33 char* getInitialConfig( void ) { return initial_config; }
34 char* getFinalConfig( void ) { return final_config; }
35 int getNMol( void ) { return n_mol; }
36 double getDensity( void ) { return density; }
37 double getBox( void ) { return box; }
38 double getBoxX( void ) { return box_x; }
39 double getBoxY( void ) { return box_y; }
40 double getBoxZ( void ) { return box_z; }
41 double getSampleTime( void ) { return sample_time; }
42 double getStatusTime( void ) { return status_time; }
43 double getThermalTime( void ) { return thermal_time; }
44 double getDielectric( void ) { return dielectric; }
45 double getECR( void) { return ecr; }
46 double getEST( void) { return est; }
47 int getTempSet( void ) { return tempSet; }
48 int getPBC( void ) { return usePBC;}
49 int getUseRF( void ) { return useRF;}
50 char* getMixingRule( void) { return mixingRule;}
51
52 short int haveInitialConfig( void ) { return have_initial_config; }
53 short int haveFinalConfig( void ) { return have_final_config; }
54 short int haveNMol( void ) { return have_n_mol; }
55 short int haveDensity( void ) { return have_density; }
56 short int haveBox( void ) { return have_box; }
57 short int haveBoxX( void ) { return have_box_x; }
58 short int haveBoxY( void ) { return have_box_y; }
59 short int haveBoxZ( void ) { return have_box_z; }
60 short int haveSampleTime( void ) { return have_sample_time; }
61 short int haveStatusTime( void ) { return have_status_time; }
62 short int haveThermalTime( void ) { return have_thermal_time; }
63 short int haveECR( void ) { return have_ecr; }
64 short int haveEST( void ) { return have_est; }
65 short int haveDielectric( void ) { return have_dielectric; }
66 short int haveTempSet( void ) { return have_tempSet; }
67
68 /* other accessors */
69 Component** getComponents( void ) { return components; }
70
71 private:
72
73 static const int hash_size = 23;
74 static const int hash_shift = 4;
75 int hash( char* text );
76 void addHash( char* text, int token );
77 LinkedCommand** command_table;
78
79 char* checkMe( void );
80
81 Component* current_component;
82 Component** components; // the array of components
83 char force_field[100];
84 int n_components;
85 double target_temp;
86 char ensemble[100];
87 char mixingRule[100];
88 double dt;
89 double run_time;
90 char initial_config[120];
91 char final_config[120];
92 int n_mol;
93 double density;
94 double box;
95 double box_x, box_y, box_z;
96 double sample_time;
97 double status_time;
98 double thermal_time;
99 double ecr;
100 double est;
101 double dielectric;
102 int tempSet;
103 int usePBC;
104 int useRF;
105
106 //required arguments
107 short int have_force_field, have_n_components, have_target_temp;
108 short int have_ensemble, have_dt, have_run_time;
109
110 // optional arguments
111 short int have_initial_config, have_final_config, have_n_mol;
112 short int have_density, have_box, have_box_x, have_box_y, have_box_z;
113 short int have_sample_time, have_status_time, have_ecr, have_dielectric;
114 short int have_tempSet, have_thermal_time, have_est;
115
116
117 };
118
119 #endif