ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libBASS/Globals.hpp
Revision: 855
Committed: Thu Nov 6 22:01:37 2003 UTC (20 years, 10 months ago) by mmeineke
File size: 6349 byte(s)
Log Message:
added the following parameters to BASS:
   * useInitialExtendedSystemState
   * orthoBoxTolerance
   * useIntiTime => useInitialTime

File Contents

# User Rev Content
1 mmeineke 377 #ifndef __GLOBALS_H__
2     #define __GLOBALS_H__
3    
4 tim 689 #include <iostream>
5    
6 gezelter 828 #include <stdlib.h>
7 tim 659 #include <vector>
8 mmeineke 377
9     #include "BASS_interface.h"
10     #include "Component.hpp"
11     #include "LinkedCommand.hpp"
12     #include "MakeStamps.hpp"
13 mmeineke 675 #include "ZconStamp.hpp"
14 mmeineke 377
15 tim 659 using namespace std;
16    
17 mmeineke 377 class Globals{
18    
19     public:
20    
21     Globals();
22     ~Globals();
23 tim 693
24 mmeineke 377 int newComponent( event* the_event );
25     int componentAssign( event* the_event );
26     int componentEnd( event* the_event );
27 mmeineke 675
28     int newZconstraint( event* the_event );
29     int zConstraintAssign( event* the_event );
30     int zConstraintEnd( event* the_event );
31 mmeineke 377
32     int globalAssign( event* the_event );
33     int globalEnd( event* the_event );
34    
35     char* getForceField( void ) { return force_field; }
36     int getNComponents( void ) { return n_components; }
37     double getTargetTemp( void ) { return target_temp; }
38 gezelter 465 double getTargetPressure( void ) { return target_pressure; }
39 gezelter 474 double getQmass( void ) { return q_mass; }
40 gezelter 481 double getTauThermostat( void ) { return tau_thermostat; }
41     double getTauBarostat( void ) { return tau_barostat; }
42 mmeineke 377 char* getEnsemble( void ) { return ensemble; }
43     double getDt( void ) { return dt; }
44     double getRunTime( void ) { return run_time; }
45    
46 mmeineke 675
47     int getNzConstraints( void ) { return n_zConstraints; }
48 mmeineke 690 char* getInitialConfig( void ) { return initial_config; }
49 mmeineke 377 char* getFinalConfig( void ) { return final_config; }
50     int getNMol( void ) { return n_mol; }
51     double getDensity( void ) { return density; }
52     double getBox( void ) { return box; }
53     double getBoxX( void ) { return box_x; }
54     double getBoxY( void ) { return box_y; }
55     double getBoxZ( void ) { return box_z; }
56     double getSampleTime( void ) { return sample_time; }
57     double getStatusTime( void ) { return status_time; }
58 mmeineke 855 double getResetTime( void ) { return resetTime; }
59 mmeineke 377 double getThermalTime( void ) { return thermal_time; }
60     double getDielectric( void ) { return dielectric; }
61 gezelter 394 double getECR( void) { return ecr; }
62     double getEST( void) { return est; }
63 mmeineke 377 int getTempSet( void ) { return tempSet; }
64 mmeineke 855 int getUseInitTime( void ) { return useInitTime; }
65     int getUseInitXSstate( void ) { return useInitXSstate; }
66     double getOrthoBoxTolerance(void) { return orthoBoxTolerance; }
67 mmeineke 377 int getPBC( void ) { return usePBC;}
68 gezelter 394 int getUseRF( void ) { return useRF;}
69 mmeineke 377 char* getMixingRule( void) { return mixingRule;}
70 tim 682 double getZconsTime(void) { return zcons_time;}
71 mmeineke 855 double getZconsTol(void) { return zcons_tol;}
72     char* getZconsForcePolicy(void) { return zconsForcePolicy;}
73     int getSeed(void) { return seed;}
74 mmeineke 377
75     short int haveInitialConfig( void ) { return have_initial_config; }
76     short int haveFinalConfig( void ) { return have_final_config; }
77     short int haveNMol( void ) { return have_n_mol; }
78     short int haveDensity( void ) { return have_density; }
79     short int haveBox( void ) { return have_box; }
80     short int haveBoxX( void ) { return have_box_x; }
81     short int haveBoxY( void ) { return have_box_y; }
82     short int haveBoxZ( void ) { return have_box_z; }
83     short int haveSampleTime( void ) { return have_sample_time; }
84 mmeineke 745 short int haveResetTime( void ) { return have_reset_time; }
85 mmeineke 377 short int haveStatusTime( void ) { return have_status_time; }
86     short int haveThermalTime( void ) { return have_thermal_time; }
87 gezelter 394 short int haveECR( void ) { return have_ecr; }
88     short int haveEST( void ) { return have_est; }
89 mmeineke 377 short int haveDielectric( void ) { return have_dielectric; }
90     short int haveTempSet( void ) { return have_tempSet; }
91 gezelter 474 short int haveTargetPressure( void ){ return have_target_pressure; }
92     short int haveQmass( void ) { return have_q_mass; }
93 gezelter 481 short int haveTauThermostat( void ) { return have_tau_thermostat;}
94     short int haveTauBarostat( void ) { return have_tau_barostat;}
95 tim 682 short int haveZconstraintTime(void) { return have_zcons_time; }
96 mmeineke 675 short int haveZconstraints( void ) { return have_zConstraints;}
97 mmeineke 855 short int haveZconsTol(void) { return have_zcons_tol;}
98     short int haveZconsForcePolicy(void){ return have_zcons_force_policy;}
99     short int haveSeed(void) { return have_seed;}
100 mmeineke 377 /* other accessors */
101 mmeineke 855 Component** getComponents( void ) { return components; }
102     ZconStamp** getZconStamp( void ) { return zConstraints; }
103 mmeineke 377
104     private:
105    
106 gezelter 747 int hash_size;
107     int hash_shift;
108 mmeineke 377 int hash( char* text );
109     void addHash( char* text, int token );
110     LinkedCommand** command_table;
111    
112     char* checkMe( void );
113    
114     Component* current_component;
115     Component** components; // the array of components
116 mmeineke 675
117     ZconStamp* current_zConstraint;
118     ZconStamp** zConstraints; // the array of zConstraints
119    
120 mmeineke 377 char force_field[100];
121     int n_components;
122 mmeineke 675 int n_zConstraints;
123 mmeineke 377 double target_temp;
124 gezelter 465 double target_pressure;
125 mmeineke 377 char ensemble[100];
126     char mixingRule[100];
127     double dt;
128     double run_time;
129     char initial_config[120];
130     char final_config[120];
131     int n_mol;
132     double density;
133     double box;
134     double box_x, box_y, box_z;
135     double sample_time;
136     double status_time;
137 mmeineke 745 double resetTime;
138 mmeineke 855 double orthoBoxTolerance;
139 mmeineke 377 double thermal_time;
140 gezelter 394 double ecr;
141     double est;
142 mmeineke 377 double dielectric;
143     int tempSet;
144 mmeineke 811 int useInitTime;
145 mmeineke 855 int useInitXSstate;
146 mmeineke 377 int usePBC;
147 gezelter 394 int useRF;
148 gezelter 474 double q_mass;
149 gezelter 481 double tau_thermostat;
150     double tau_barostat;
151 tim 682 double zcons_time;
152     double zcons_tol;
153 tim 699 char zconsForcePolicy[100];
154 mmeineke 706 int seed;
155 mmeineke 377
156     //required arguments
157     short int have_force_field, have_n_components, have_target_temp;
158 gezelter 465 short int have_target_pressure, have_ensemble, have_dt, have_run_time;
159 mmeineke 377
160     // optional arguments
161     short int have_initial_config, have_final_config, have_n_mol;
162     short int have_density, have_box, have_box_x, have_box_y, have_box_z;
163 gezelter 394 short int have_sample_time, have_status_time, have_ecr, have_dielectric;
164 gezelter 474 short int have_tempSet, have_thermal_time, have_est, have_q_mass;
165 gezelter 481 short int have_tau_thermostat, have_tau_barostat;
166 mmeineke 706 short int have_zcons_time, have_zConstraints, have_n_zConstraints;
167     short int have_zcons_tol, have_seed;
168 mmeineke 745 short int have_zcons_force_policy, have_reset_time;
169 mmeineke 377
170     };
171    
172     #endif