Changeset 36ec71 for src/molecules.hpp
- Timestamp:
- Jul 24, 2009, 10:38:32 AM (16 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- d30402
- Parents:
- 042f82 (diff), 51c910 (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
Legend:
- Unmodified
- Added
- Removed
-
src/molecules.hpp
r042f82 r36ec71 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.