ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/src/io/Globals.hpp
Revision: 2469
Committed: Fri Dec 2 15:38:03 2005 UTC (18 years, 7 months ago) by tim
File size: 5856 byte(s)
Log Message:
End of the Link --> List
Return of the Oject-Oriented
replace yacc/lex parser with antlr parser

File Contents

# Content
1 /*
2 * 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
45 #include <iostream>
46
47 #include <stdlib.h>
48 #include <vector>
49 #include <string>
50 #include <map>
51
52 #include "types/Component.hpp"
53 #include "types/ZconsStamp.hpp"
54 #include "types/MoleculeStamp.hpp"
55 #include "utils/ParameterManager.hpp"
56
57 namespace oopse {
58 class Globals : public DataHolder {
59 public:
60 Globals();
61 virtual ~Globals();
62
63 DeclareParameter(ForceField, std::string);
64 DeclareParameter(TargetTemp, double);
65 DeclareParameter(Ensemble, std::string);
66 DeclareParameter(Dt, double);
67 DeclareParameter(RunTime, double);
68 DeclareParameter(InitialConfig, std::string);
69 DeclareParameter(FinalConfig, std::string);
70 DeclareParameter(SampleTime, double);
71 DeclareParameter(ResetTime, double);
72 DeclareParameter(StatusTime, double);
73 DeclareParameter(CutoffRadius, double);
74 DeclareParameter(SwitchingRadius, double);
75 DeclareParameter(Dielectric, double);
76 DeclareParameter(TempSet, bool);
77 DeclareParameter(ThermalTime, double);
78 DeclareParameter(MixingRule, std::string);
79 DeclareParameter(UsePeriodicBoundaryConditions, bool);
80 DeclareParameter(TargetPressure, double);
81 DeclareParameter(TauThermostat, double);
82 DeclareParameter(TauBarostat, double);
83 DeclareParameter(ZconsTime, double);
84 DeclareParameter(ZconsTol, double);
85 DeclareParameter(ZconsForcePolicy, std::string);
86 DeclareParameter(Seed, int);
87 DeclareParameter(UseInitalTime, bool);
88 DeclareParameter(UseIntialExtendedSystemState, bool);
89 DeclareParameter(OrthoBoxTolerance, double);
90 DeclareParameter(Minimizer, std::string);
91 DeclareParameter(MinimizerMaxIter, double);
92 DeclareParameter(MinimizerWriteFrq, int);
93 DeclareParameter(MinimizerStepSize, double);
94 DeclareParameter(MinimizerFTol, double);
95 DeclareParameter(MinimizerGTol, double);
96 DeclareParameter(MinimizerLSTol, double);
97 DeclareParameter(MinimizerLSMaxIter, int);
98 DeclareParameter(ZconsGap, double);
99 DeclareParameter(ZconsFixtime, double);
100 DeclareParameter(ZconsUsingSMD, bool);
101 DeclareParameter(UseSolidThermInt, bool);
102 DeclareParameter(UseLiquidThermInt, bool);
103 DeclareParameter(ThermodynamicIntegrationLambda, double);
104 DeclareParameter(ThermodynamicIntegrationK, double);
105 DeclareParameter(ForceFieldVariant, std::string);
106 DeclareParameter(ForceFieldFileName, std::string);
107 DeclareParameter(ThermIntDistSpringConst, double);
108 DeclareParameter(ThermIntThetaSpringConst, double);
109 DeclareParameter(ThermIntOmegaSpringConst, double);
110 DeclareParameter(SurfaceTension, double);
111 DeclareParameter(PrintPressureTensor, bool);
112 DeclareParameter(ElectrostaticSummationMethod, std::string);
113 DeclareParameter(ElectrostaticScreeningMethod, std::string);
114 DeclareParameter(DampingAlpha, double);
115 DeclareParameter(CutoffPolicy, std::string);
116 DeclareParameter(SwitchingFunctionType, std::string);
117 DeclareParameter(CompressDumpFile, bool);
118 DeclareParameter(OutputForceVector, bool);
119 DeclareParameter(SkinThickness, double);
120 DeclareParameter(StatFileFormat, std::string);
121
122 public:
123 bool addComponent(Component* comp);
124 bool addZConsStamp(ZConsStamp* zcons);
125 bool addMoleculeStamp(MoleculeStamp* molStamp);
126 int getNComponents() {return components_.size();}
127 std::vector<Component*> getComponents() {return components_;}
128 Component* getComponentAt(int index) {return components_.at(index);}
129
130 int getNZconsStamps() {return zconstraints_.size();}
131 std::vector<ZConsStamp*> getZconsStamps() {return zconstraints_;}
132 ZConsStamp* getZconsStampAt(int index) {return zconstraints_.at(index);}
133
134 virtual void validate();
135 private:
136 std::vector<Component*> components_;
137 std::vector<ZConsStamp*> zconstraints_;
138 std::map<std::string, MoleculeStamp*> moleculeStamps_;
139
140 };
141 }
142 #endif
143