Changeset 3b470f for molecuilder/src/molecules.hpp
- Timestamp:
- Jul 23, 2009, 11:23:59 AM (16 years ago)
- Children:
- 59a745
- Parents:
- 09f4dc (diff), 14178b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
molecuilder/src/molecules.hpp (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecules.hpp
r09f4dc r3b470f 10 10 11 11 // GSL headers 12 #include <gsl/gsl_eigen.h> 13 #include <gsl/gsl_heapsort.h> 14 #include <gsl/gsl_linalg.h> 15 #include <gsl/gsl_matrix.h> 12 16 #include <gsl/gsl_multimin.h> 13 17 #include <gsl/gsl_vector.h> 14 #include <gsl/gsl_matrix.h> 15 #include <gsl/gsl_eigen.h> 16 #include <gsl/gsl_heapsort.h> 18 #include <gsl/gsl_randist.h> 17 19 18 20 // STL headers … … 152 154 }; 153 155 154 ostream & operator << (ostream &ost, atom &a);156 ostream & operator << (ostream &ost, const atom &a); 155 157 156 158 /** Bonds between atoms. … … 191 193 }; 192 194 193 ostream & operator << (ostream &ost, bond &b); 195 196 ostream & operator << (ostream &ost, const bond &b); 194 197 195 198 class MoleculeLeafClass; 199 200 201 #define MaxThermostats 6 //!< maximum number of thermostat entries in Ions#ThermostatNames and Ions#ThermostatImplemented 202 enum thermostats { None, Woodcock, Gaussian, Langevin, Berendsen, NoseHoover }; //!< Thermostat names for output 203 196 204 197 205 /** The complete molecule. … … 259 267 void PrincipalAxisSystem(ofstream *out, bool DoRotate); 260 268 double VolumeOfConvexEnvelope(ofstream *out, bool IsAngstroem); 261 bool VerletForceIntegration(char *file, double delta_t, bool IsAngstroem); 262 269 270 bool VerletForceIntegration(ofstream *out, char *file, config &configuration); 271 void Thermostats(config &configuration, double ActualTemp, int Thermostat); 272 273 double ConstrainedPotential(ofstream *out, atom **permutation, int start, int end, double *constants, bool IsAngstroem); 274 double MinimiseConstrainedPotential(ofstream *out, atom **&permutation, int startstep, int endstep, bool IsAngstroem); 275 void EvaluateConstrainedForces(ofstream *out, int startstep, int endstep, atom **PermutationMap, ForceMatrix *Force); 276 bool LinearInterpolationBetweenConfiguration(ofstream *out, int startstep, int endstep, const char *prefix, config &configuration); 277 263 278 bool CheckBounds(const Vector *x) const; 264 279 void GetAlignvector(struct lsq_params * par) const; … … 339 354 bool AddHydrogenCorrection(ofstream *out, char *path); 340 355 bool StoreForcesFile(ofstream *out, char *path, int *SortIndex); 341 bool OutputConfigForListOfFragments(ofstream *out, con fig *configuration, int *SortIndex);356 bool OutputConfigForListOfFragments(ofstream *out, const char *fragmentprefix, config *configuration, int *SortIndex, bool DoPeriodic, bool DoCentering); 342 357 void Output(ofstream *out); 343 358 … … 389 404 string basis; 390 405 406 int DoConstrainedMD; 407 int MaxOuterStep; 408 int Thermostat; 409 int *ThermostatImplemented; 410 char **ThermostatNames; 411 double TempFrequency; 412 double alpha; 413 double HooverMass; 414 double TargetTemp; 415 int ScaleTempStep; 416 391 417 private: 392 418 char *mainname; … … 409 435 int Seed; 410 436 411 int MaxOuterStep;412 437 int OutVisStep; 413 438 int OutSrcStep; 414 double TargetTemp;415 int ScaleTempStep;416 439 int MaxPsiStep; 417 440 double EpsWannier; … … 460 483 char *GetDefaultPath() const; 461 484 void SetDefaultPath(const char *path); 485 void InitThermostats(ifstream *source); 462 486 }; 463 487
Note:
See TracChangeset
for help on using the changeset viewer.
