ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/io/Globals.hpp
Revision: 1731
Committed: Thu May 31 12:25:30 2012 UTC (12 years, 11 months ago) by gezelter
File size: 8060 byte(s)
Log Message:
Reorganized source directories, added RNEMD and flucQ blocks for
options parsing.

File Contents

# User Rev Content
1 gezelter 507 /*
2 chuckv 1402 * Copyright (c) 2005, 2010 The University of Notre Dame. All Rights Reserved.
3 gezelter 246 *
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 gezelter 1390 * 1. Redistributions of source code must retain the above copyright
10 gezelter 246 * notice, this list of conditions and the following disclaimer.
11     *
12 gezelter 1390 * 2. Redistributions in binary form must reproduce the above copyright
13 gezelter 246 * notice, this list of conditions and the following disclaimer in the
14     * documentation and/or other materials provided with the
15     * distribution.
16     *
17     * This software is provided "AS IS," without a warranty of any
18     * kind. All express or implied conditions, representations and
19     * warranties, including any implied warranty of merchantability,
20     * fitness for a particular purpose or non-infringement, are hereby
21     * excluded. The University of Notre Dame and its licensors shall not
22     * be liable for any damages suffered by licensee as a result of
23     * using, modifying or distributing the software or its
24     * derivatives. In no event will the University of Notre Dame or its
25     * licensors be liable for any lost revenue, profit or data, or for
26     * direct, indirect, special, consequential, incidental or punitive
27     * damages, however caused and regardless of the theory of liability,
28     * arising out of the use of or inability to use software, even if the
29     * University of Notre Dame has been advised of the possibility of
30     * such damages.
31 gezelter 1390 *
32     * SUPPORT OPEN SCIENCE! If you use OpenMD or its source code in your
33     * research, please cite the appropriate papers when you publish your
34     * work. Good starting points are:
35     *
36     * [1] Meineke, et al., J. Comp. Chem. 26, 252-271 (2005).
37     * [2] Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006).
38     * [3] Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008).
39 gezelter 1665 * [4] Kuang & Gezelter, J. Chem. Phys. 133, 164101 (2010).
40     * [5] Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011).
41 gezelter 246 */
42    
43     #ifndef IO_GLOBALS_HPP
44     #define IO_GLOBALS_HPP
45 gezelter 2
46     #include <iostream>
47    
48     #include <stdlib.h>
49     #include <vector>
50 tim 425 #include <string>
51     #include <map>
52 gezelter 2
53 tim 3 #include "types/Component.hpp"
54 tim 770 #include "types/ZconsStamp.hpp"
55 cli2 1360 #include "types/RestraintStamp.hpp"
56 tim 770 #include "types/MoleculeStamp.hpp"
57 gezelter 1731 #include "flucq/FluctuatingChargeParameters.hpp"
58     #include "rnemd/RNEMDParameters.hpp"
59 chuckv 748 #include "utils/ParameterManager.hpp"
60 gezelter 2
61 gezelter 1390 namespace OpenMD {
62 gezelter 1291 class Globals : public DataHolder {
63 tim 665 public:
64 gezelter 1291 typedef std::pair<int, int> intPair;
65    
66 tim 665 Globals();
67 tim 770 virtual ~Globals();
68 tim 665
69 gezelter 1291 DeclareParameter(ForceField, std::string);
70     DeclareParameter(TargetTemp, RealType);
71     DeclareParameter(Ensemble, std::string);
72     DeclareParameter(Dt, RealType);
73     DeclareParameter(RunTime, RealType);
74     DeclareParameter(FinalConfig, std::string);
75     DeclareParameter(SampleTime, RealType);
76     DeclareParameter(ResetTime, RealType);
77     DeclareParameter(StatusTime, RealType);
78     DeclareParameter(CutoffRadius, RealType);
79     DeclareParameter(SwitchingRadius, RealType);
80     DeclareParameter(TempSet, bool);
81     DeclareParameter(ThermalTime, RealType);
82     DeclareParameter(UsePeriodicBoundaryConditions, bool);
83     DeclareParameter(TargetPressure, RealType);
84     DeclareParameter(UseAtomicVirial, bool);
85     DeclareParameter(TauThermostat, RealType);
86     DeclareParameter(TauBarostat, RealType);
87     DeclareParameter(ZconsTime, RealType);
88     DeclareParameter(ZconsTol, RealType);
89     DeclareParameter(ZconsForcePolicy, std::string);
90 gezelter 1313 DeclareParameter(Seed, unsigned long int);
91 gezelter 1291 DeclareParameter(UseInitalTime, bool);
92     DeclareParameter(UseIntialExtendedSystemState, bool);
93     DeclareParameter(OrthoBoxTolerance, RealType);
94     DeclareParameter(Minimizer, std::string);
95     DeclareParameter(MinimizerMaxIter, RealType);
96 gezelter 1423 DeclareParameter(MinimizerWriteFreq, int);
97 gezelter 1291 DeclareParameter(MinimizerStepSize, RealType);
98     DeclareParameter(MinimizerFTol, RealType);
99     DeclareParameter(MinimizerGTol, RealType);
100     DeclareParameter(MinimizerLSTol, RealType);
101     DeclareParameter(MinimizerLSMaxIter, int);
102     DeclareParameter(ZconsGap, RealType);
103     DeclareParameter(ZconsFixtime, RealType);
104     DeclareParameter(ZconsUsingSMD, bool);
105 cli2 1360 DeclareParameter(UseThermodynamicIntegration, bool);
106 gezelter 1291 DeclareParameter(ThermodynamicIntegrationLambda, RealType);
107     DeclareParameter(ThermodynamicIntegrationK, RealType);
108     DeclareParameter(ForceFieldVariant, std::string);
109     DeclareParameter(ForceFieldFileName, std::string);
110     DeclareParameter(SurfaceTension, RealType);
111     DeclareParameter(PrintPressureTensor, bool);
112 gezelter 1723 DeclareParameter(PrintHeatFlux, bool);
113 gezelter 1291 DeclareParameter(TaggedAtomPair, intPair);
114     DeclareParameter(PrintTaggedPairDistance, bool);
115     DeclareParameter(ElectrostaticSummationMethod, std::string);
116     DeclareParameter(ElectrostaticScreeningMethod, std::string);
117     DeclareParameter(DampingAlpha, RealType);
118     DeclareParameter(Dielectric, RealType);
119 gezelter 1528 DeclareParameter(CutoffMethod, std::string);
120 gezelter 1576 DeclareParameter(CutoffPolicy, std::string);
121 gezelter 1291 DeclareParameter(SwitchingFunctionType, std::string);
122     DeclareParameter(CompressDumpFile, bool);
123     DeclareParameter(OutputForceVector, bool);
124 gezelter 1629 DeclareParameter(OutputParticlePotential, bool);
125 gezelter 1714 DeclareParameter(OutputElectricField, bool);
126     DeclareParameter(OutputFluctuatingCharges, bool);
127 gezelter 1291 DeclareParameter(SkinThickness, RealType);
128     DeclareParameter(StatFileFormat, std::string);
129     DeclareParameter(HydroPropFile, std::string);
130     DeclareParameter(Viscosity, RealType);
131     DeclareParameter(BeadSize, RealType);
132     DeclareParameter(UseSphericalBoundaryConditions, bool);
133     DeclareParameter(FrozenBufferRadius, RealType);
134     DeclareParameter(LangevinBufferRadius, RealType);
135     DeclareParameter(AccumulateBoxDipole, bool);
136     DeclareParameter(NeighborListNeighbors, int);
137 chuckv 1306 DeclareParameter(UseMultipleTemperatureMethod, bool);
138     DeclareParameter(MTM_Ce, RealType);
139     DeclareParameter(MTM_G, RealType);
140     DeclareParameter(MTM_Io, RealType);
141     DeclareParameter(MTM_Sigma, RealType);
142     DeclareParameter(MTM_R, RealType);
143 gezelter 1354 DeclareParameter(UseRestraints, bool);
144     DeclareParameter(Restraint_file, std::string);
145 chuckv 1402 DeclareParameter(HULL_Method, std::string);
146     DeclareParameter(Alpha, RealType);
147 gezelter 1613 DeclareAlterableParameter(MDfileVersion, int);
148 gezelter 1715
149 tim 770 public:
150     bool addComponent(Component* comp);
151     bool addZConsStamp(ZConsStamp* zcons);
152 cli2 1360 bool addRestraintStamp(RestraintStamp* rest);
153 tim 770 bool addMoleculeStamp(MoleculeStamp* molStamp);
154     int getNComponents() {return components_.size();}
155     std::vector<Component*> getComponents() {return components_;}
156     Component* getComponentAt(int index) {return components_.at(index);}
157 gezelter 1291
158 tim 770 int getNZconsStamps() {return zconstraints_.size();}
159     std::vector<ZConsStamp*> getZconsStamps() {return zconstraints_;}
160     ZConsStamp* getZconsStampAt(int index) {return zconstraints_.at(index);}
161 cli2 1360
162     int getNRestraintStamps() {return restraints_.size();}
163     std::vector<RestraintStamp*> getRestraintStamps() {return restraints_;}
164     RestraintStamp* getRestraintStampAt(int index) {return restraints_.at(index);}
165 gezelter 1731
166     bool addFluctuatingChargeParameters(FluctuatingChargeParameters* flucqPars);
167     FluctuatingChargeParameters* getFluctuatingChargeParameters() {return flucQpars_;}
168    
169     bool addRNEMDParameters(RNEMDParameters* rnemdPars);
170     RNEMDParameters* getRNEMDParameters() {return rnemdPars_;}
171 gezelter 1291
172 tim 770 virtual void validate();
173     private:
174 tim 895
175 tim 770 std::vector<Component*> components_;
176     std::vector<ZConsStamp*> zconstraints_;
177 cli2 1360 std::vector<RestraintStamp*> restraints_;
178 tim 770 std::map<std::string, MoleculeStamp*> moleculeStamps_;
179 gezelter 1291 std::pair<int, int> taggedAtomPair_;
180 gezelter 1731 FluctuatingChargeParameters* flucQpars_;
181     RNEMDParameters* rnemdPars_;
182 gezelter 2 };
183 tim 770 }
184 tim 665 #endif

Properties

Name Value
svn:keywords Author Id Revision Date