Changeset c3a303 for molecuilder/src/molecules.hpp
- Timestamp:
- Jul 24, 2009, 10:38:32 AM (16 years ago)
- Children:
- 53d153
- Parents:
- a048fa (diff), 47548d (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. - git-author:
- Frederik Heber <heber@…> (07/23/09 14:23:32)
- git-committer:
- Frederik Heber <heber@…> (07/24/09 10:38:32)
- File:
-
- 1 edited
-
molecuilder/src/molecules.hpp (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecules.hpp
ra048fa rc3a303 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 … … 156 158 }; 157 159 158 ostream & operator << (ostream &ost, atom &a);160 ostream & operator << (ostream &ost, const atom &a); 159 161 160 162 /** Bonds between atoms. … … 195 197 }; 196 198 197 ostream & operator << (ostream &ost, bond &b); 199 200 ostream & operator << (ostream &ost, const bond &b); 198 201 199 202 class MoleculeLeafClass; 203 204 205 #define MaxThermostats 6 //!< maximum number of thermostat entries in Ions#ThermostatNames and Ions#ThermostatImplemented 206 enum thermostats { None, Woodcock, Gaussian, Langevin, Berendsen, NoseHoover }; //!< Thermostat names for output 207 200 208 201 209 /** The complete molecule. … … 254 262 bool CenterInBox(ofstream *out); 255 263 void CenterEdge(ofstream *out, Vector *max); 256 void CenterOrigin(ofstream *out, Vector *max); 257 void CenterGravity(ofstream *out, Vector *max); 264 void CenterOrigin(ofstream *out); 265 void CenterPeriodic(ofstream *out); 266 void CenterAtVector(ofstream *out, Vector *newcenter); 258 267 void Translate(const Vector *x); 259 268 void TranslatePeriodically(const Vector *trans); … … 261 270 void Align(Vector *n); 262 271 void Scale(double **factor); 263 void Determine Center(Vector ¢er);272 void DeterminePeriodicCenter(Vector ¢er); 264 273 Vector * DetermineCenterOfGravity(ofstream *out); 265 274 Vector * DetermineCenterOfAll(ofstream *out); 266 void SetNameFromFilename(c har *filename);275 void SetNameFromFilename(const char *filename); 267 276 void SetBoxDimension(Vector *dim); 268 277 double * ReturnFullMatrixforSymmetric(double *cell_size); 269 278 void ScanForPeriodicCorrection(ofstream *out); 279 bool VerletForceIntegration(ofstream *out, char *file, config &configuration); 280 void Thermostats(config &configuration, double ActualTemp, int Thermostat); 270 281 void PrincipalAxisSystem(ofstream *out, bool DoRotate); 271 282 double VolumeOfConvexEnvelope(ofstream *out, bool IsAngstroem); 272 283 Vector* FindEmbeddingHole(ofstream *out, molecule *srcmol); 273 284 274 bool VerletForceIntegration(char *file, double delta_t, bool IsAngstroem); 275 285 286 double ConstrainedPotential(ofstream *out, atom **permutation, int start, int end, double *constants, bool IsAngstroem); 287 double MinimiseConstrainedPotential(ofstream *out, atom **&permutation, int startstep, int endstep, bool IsAngstroem); 288 void EvaluateConstrainedForces(ofstream *out, int startstep, int endstep, atom **PermutationMap, ForceMatrix *Force); 289 bool LinearInterpolationBetweenConfiguration(ofstream *out, int startstep, int endstep, const char *prefix, config &configuration); 290 276 291 bool CheckBounds(const Vector *x) const; 277 292 void GetAlignvector(struct lsq_params * par) const; … … 349 364 bool AddHydrogenCorrection(ofstream *out, char *path); 350 365 bool StoreForcesFile(ofstream *out, char *path, int *SortIndex); 351 boolinsert(molecule *mol);366 void insert(molecule *mol); 352 367 molecule * ReturnIndex(int index); 353 368 bool OutputConfigForListOfFragments(ofstream *out, config *configuration, int *SortIndex); … … 429 444 char *databasepath; 430 445 446 int DoConstrainedMD; 447 int MaxOuterStep; 448 int Thermostat; 449 int *ThermostatImplemented; 450 char **ThermostatNames; 451 double TempFrequency; 452 double alpha; 453 double HooverMass; 454 double TargetTemp; 455 int ScaleTempStep; 456 431 457 private: 432 458 char *mainname; … … 449 475 int Seed; 450 476 451 int MaxOuterStep;452 477 int OutVisStep; 453 478 int OutSrcStep; 454 double TargetTemp;455 int ScaleTempStep;456 479 int MaxPsiStep; 457 480 double EpsWannier; … … 501 524 char *GetDefaultPath() const; 502 525 void SetDefaultPath(const char *path); 526 void InitThermostats(ifstream *source); 503 527 }; 504 528
Note:
See TracChangeset
for help on using the changeset viewer.
