ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/src/io/Globals.hpp
Revision: 2448
Committed: Wed Nov 16 23:10:02 2005 UTC (18 years, 8 months ago) by tim
File size: 6159 byte(s)
Log Message:
OptionSectionParser get compiled

File Contents

# User Rev Content
1 gezelter 2204 /*
2 gezelter 1930 * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved.
3     *
4     * The University of Notre Dame grants you ("Licensee") a
5     * non-exclusive, royalty free, license to use, modify and
6     * redistribute this software in source and binary code form, provided
7     * that the following conditions are met:
8     *
9     * 1. Acknowledgement of the program authors must be made in any
10     * publication of scientific results based in part on use of the
11     * program. An acceptable form of acknowledgement is citation of
12     * the article in which the program was described (Matthew
13     * A. Meineke, Charles F. Vardeman II, Teng Lin, Christopher
14     * J. Fennell and J. Daniel Gezelter, "OOPSE: An Object-Oriented
15     * Parallel Simulation Engine for Molecular Dynamics,"
16     * J. Comput. Chem. 26, pp. 252-271 (2005))
17     *
18     * 2. Redistributions of source code must retain the above copyright
19     * notice, this list of conditions and the following disclaimer.
20     *
21     * 3. Redistributions in binary form must reproduce the above copyright
22     * notice, this list of conditions and the following disclaimer in the
23     * documentation and/or other materials provided with the
24     * distribution.
25     *
26     * This software is provided "AS IS," without a warranty of any
27     * kind. All express or implied conditions, representations and
28     * warranties, including any implied warranty of merchantability,
29     * fitness for a particular purpose or non-infringement, are hereby
30     * excluded. The University of Notre Dame and its licensors shall not
31     * be liable for any damages suffered by licensee as a result of
32     * using, modifying or distributing the software or its
33     * derivatives. In no event will the University of Notre Dame or its
34     * licensors be liable for any lost revenue, profit or data, or for
35     * direct, indirect, special, consequential, incidental or punitive
36     * damages, however caused and regardless of the theory of liability,
37     * arising out of the use of or inability to use software, even if the
38     * University of Notre Dame has been advised of the possibility of
39     * such damages.
40     */
41    
42     #ifndef IO_GLOBALS_HPP
43     #define IO_GLOBALS_HPP
44 gezelter 1490
45     #include <iostream>
46    
47     #include <stdlib.h>
48     #include <vector>
49 tim 2109 #include <string>
50     #include <map>
51 gezelter 1490
52 tim 1492 #include "io/BASS_interface.h"
53     #include "types/Component.hpp"
54     #include "types/MakeStamps.hpp"
55     #include "types/ZconStamp.hpp"
56 gezelter 1490
57 chuckv 2447 #include "utils/ParameterManager.hpp"
58 gezelter 1490
59 tim 2364 class Globals {
60     public:
61     Globals();
62 tim 2448 ~Globals();
63 tim 2364
64     DeclareParameter(ForceField, std::string);
65     DeclareParameter(NComponents, int);
66     DeclareParameter(TargetTemp, double);
67     DeclareParameter(Ensemble, std::string);
68     DeclareParameter(Dt, double);
69     DeclareParameter(RunTime, double);
70     DeclareParameter(InitialConfig, std::string);
71     DeclareParameter(FinalConfig, std::string);
72     DeclareParameter(NMol, int);
73     DeclareParameter(Density, double);
74     DeclareParameter(Box, double);
75     DeclareParameter(BoxX, double);
76     DeclareParameter(BoxY, double);
77     DeclareParameter(BoxZ, double);
78     DeclareParameter(SampleTime, double);
79     DeclareParameter(ResetTime, double);
80     DeclareParameter(StatusTime, double);
81     DeclareParameter(CutoffRadius, double);
82     DeclareParameter(SwitchingRadius, double);
83     DeclareParameter(Dielectric, double);
84     DeclareParameter(TempSet, bool);
85     DeclareParameter(ThermalTime, double);
86     DeclareParameter(MixingRule, std::string);
87     DeclareParameter(UsePeriodicBoundaryConditions, bool);
88     DeclareParameter(TargetPressure, double);
89     DeclareParameter(TauThermostat, double);
90     DeclareParameter(TauBarostat, double);
91     DeclareParameter(ZconsTime, double);
92     DeclareParameter(NZconstraints, int);
93     DeclareParameter(ZconsTol, double);
94     DeclareParameter(ZconsForcePolicy, std::string);
95     DeclareParameter(Seed, int);
96     DeclareParameter(UseInitalTime, bool);
97     DeclareParameter(UseIntialExtendedSystemState, bool);
98     DeclareParameter(OrthoBoxTolerance, double);
99     DeclareParameter(Minimizer, std::string);
100     DeclareParameter(MinimizerMaxIter, double);
101     DeclareParameter(MinimizerWriteFrq, int);
102     DeclareParameter(MinimizerStepSize, double);
103     DeclareParameter(MinimizerFTol, double);
104     DeclareParameter(MinimizerGTol, double);
105     DeclareParameter(MinimizerLSTol, double);
106     DeclareParameter(MinimizerLSMaxIter, int);
107     DeclareParameter(ZconsGap, double);
108     DeclareParameter(ZconsFixtime, double);
109     DeclareParameter(ZconsUsingSMD, bool);
110     DeclareParameter(UseSolidThermInt, bool);
111     DeclareParameter(UseLiquidThermInt, bool);
112     DeclareParameter(ThermodynamicIntegrationLambda, double);
113     DeclareParameter(ThermodynamicIntegrationK, double);
114     DeclareParameter(ForceFieldVariant, std::string);
115     DeclareParameter(ForceFieldFileName, std::string);
116     DeclareParameter(ThermIntDistSpringConst, double);
117     DeclareParameter(ThermIntThetaSpringConst, double);
118     DeclareParameter(ThermIntOmegaSpringConst, double);
119     DeclareParameter(SurfaceTension, double);
120     DeclareParameter(PrintPressureTensor, bool);
121     DeclareParameter(ElectrostaticSummationMethod, std::string);
122 chrisfen 2415 DeclareParameter(ElectrostaticScreeningMethod, std::string);
123 tim 2364 DeclareParameter(DampingAlpha, double);
124     DeclareParameter(CutoffPolicy, std::string);
125 chrisfen 2425 DeclareParameter(SwitchingFunctionType, std::string);
126 tim 2364 DeclareParameter(CompressDumpFile, bool);
127 chrisfen 2425 DeclareParameter(OutputForceVector, bool);
128 tim 2364 DeclareParameter(SkinThickness, double);
129     DeclareParameter(StatFileFormat, std::string);
130    
131     private:
132     typedef std::map<std::string, ParameterBase*> ParamMap;
133     ParamMap parameters_;
134    
135     Component* current_component;
136     Component** components; // the array of components
137    
138     ZconStamp* current_zConstraint;
139     ZconStamp** zConstraints; // the array of zConstraints
140    
141     char* checkMe();
142    
143     public:
144     int newComponent( event* the_event );
145     int componentAssign( event* the_event );
146     int componentEnd( event* the_event );
147    
148     int newZconstraint( event* the_event );
149     int zConstraintAssign( event* the_event );
150     int zConstraintEnd( event* the_event );
151 gezelter 1490
152 tim 2364 int globalAssign( event* the_event );
153     int globalEnd( event* the_event );
154    
155     ZconStamp** getZconStamp() {return zConstraints;}
156     Component** getComponents() {return components;}
157 gezelter 1490 };
158 tim 2364 #endif
159 gezelter 1490