ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/io/Globals.hpp
Revision: 3080
Committed: Tue Dec 5 00:17:24 2006 UTC (17 years, 7 months ago) by chuckv
File size: 6407 byte(s)
Log Message:
Added interface to change number of neighbors in calculating neighbor list.

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, RealType);
65 DeclareParameter(Ensemble, std::string);
66 DeclareParameter(Dt, RealType);
67 DeclareParameter(RunTime, RealType);
68 DeclareParameter(FinalConfig, std::string);
69 DeclareParameter(SampleTime, RealType);
70 DeclareParameter(ResetTime, RealType);
71 DeclareParameter(StatusTime, RealType);
72 DeclareParameter(CutoffRadius, RealType);
73 DeclareParameter(SwitchingRadius, RealType);
74 DeclareParameter(TempSet, bool);
75 DeclareParameter(ThermalTime, RealType);
76 DeclareParameter(UsePeriodicBoundaryConditions, bool);
77 DeclareParameter(TargetPressure, RealType);
78 DeclareParameter(TauThermostat, RealType);
79 DeclareParameter(TauBarostat, RealType);
80 DeclareParameter(ZconsTime, RealType);
81 DeclareParameter(ZconsTol, RealType);
82 DeclareParameter(ZconsForcePolicy, std::string);
83 DeclareParameter(Seed, int);
84 DeclareParameter(UseInitalTime, bool);
85 DeclareParameter(UseIntialExtendedSystemState, bool);
86 DeclareParameter(OrthoBoxTolerance, RealType);
87 DeclareParameter(Minimizer, std::string);
88 DeclareParameter(MinimizerMaxIter, RealType);
89 DeclareParameter(MinimizerWriteFrq, int);
90 DeclareParameter(MinimizerStepSize, RealType);
91 DeclareParameter(MinimizerFTol, RealType);
92 DeclareParameter(MinimizerGTol, RealType);
93 DeclareParameter(MinimizerLSTol, RealType);
94 DeclareParameter(MinimizerLSMaxIter, int);
95 DeclareParameter(ZconsGap, RealType);
96 DeclareParameter(ZconsFixtime, RealType);
97 DeclareParameter(ZconsUsingSMD, bool);
98 DeclareParameter(UseSolidThermInt, bool);
99 DeclareParameter(UseLiquidThermInt, bool);
100 DeclareParameter(ThermodynamicIntegrationLambda, RealType);
101 DeclareParameter(ThermodynamicIntegrationK, RealType);
102 DeclareParameter(ForceFieldVariant, std::string);
103 DeclareParameter(ForceFieldFileName, std::string);
104 DeclareParameter(ThermIntDistSpringConst, RealType);
105 DeclareParameter(ThermIntThetaSpringConst, RealType);
106 DeclareParameter(ThermIntOmegaSpringConst, RealType);
107 DeclareParameter(SurfaceTension, RealType);
108 DeclareParameter(PrintPressureTensor, bool);
109 DeclareParameter(ElectrostaticSummationMethod, std::string);
110 DeclareParameter(ElectrostaticScreeningMethod, std::string);
111 DeclareParameter(DampingAlpha, RealType);
112 DeclareParameter(Dielectric, RealType);
113 DeclareParameter(CutoffPolicy, std::string);
114 DeclareParameter(SwitchingFunctionType, std::string);
115 DeclareParameter(CompressDumpFile, bool);
116 DeclareParameter(OutputForceVector, bool);
117 DeclareParameter(SkinThickness, RealType);
118 DeclareParameter(StatFileFormat, std::string);
119 DeclareParameter(HydroPropFile, std::string);
120 DeclareParameter(Viscosity, RealType);
121 DeclareParameter(BeadSize, RealType);
122 DeclareParameter(UseSphericalBoundaryConditions, bool);
123 DeclareParameter(FrozenBufferRadius, RealType);
124 DeclareParameter(LangevinBufferRadius, RealType);
125 DeclareParameter(AccumulateBoxDipole, bool);
126 DeclareParameter(NeighborListNeighbors,int);
127 DeclareParameter(TempDepViscosityA,RealType);
128 DeclareParameter(TempDepViscosityB,RealType);
129 DeclareParameter(TempDepViscosityC,RealType);
130 DeclareParameter(TempDepViscosityD,RealType);
131
132 public:
133 bool addComponent(Component* comp);
134 bool addZConsStamp(ZConsStamp* zcons);
135 bool addMoleculeStamp(MoleculeStamp* molStamp);
136 int getNComponents() {return components_.size();}
137 std::vector<Component*> getComponents() {return components_;}
138 Component* getComponentAt(int index) {return components_.at(index);}
139
140 int getNZconsStamps() {return zconstraints_.size();}
141 std::vector<ZConsStamp*> getZconsStamps() {return zconstraints_;}
142 ZConsStamp* getZconsStampAt(int index) {return zconstraints_.at(index);}
143
144 virtual void validate();
145 private:
146
147 std::vector<Component*> components_;
148 std::vector<ZConsStamp*> zconstraints_;
149 std::map<std::string, MoleculeStamp*> moleculeStamps_;
150
151 };
152 }
153 #endif
154