Changeset 36ec71 for src/molecules.hpp


Ignore:
Timestamp:
Jul 24, 2009, 10:38:32 AM (16 years ago)
Author:
Frederik Heber <heber@…>
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)
Message:

Merge branch 'master' into ConcaveHull

Conflicts:

molecuilder/src/analyzer.cpp
molecuilder/src/bond.cpp
molecuilder/src/boundary.cpp
molecuilder/src/boundary.hpp
molecuilder/src/builder.cpp
molecuilder/src/config.cpp
molecuilder/src/datacreator.cpp
molecuilder/src/datacreator.hpp
molecuilder/src/defs.hpp
molecuilder/src/ellipsoid.cpp
molecuilder/src/joiner.cpp
molecuilder/src/molecules.cpp
molecuilder/src/molecules.hpp
molecuilder/src/parser.cpp
molecuilder/src/parser.hpp

merges:

compilation fixes:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/molecules.hpp

    r042f82 r36ec71  
    1010
    1111// 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>
    1216#include <gsl/gsl_multimin.h>
    1317#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>
    1719
    1820// STL headers
     
    156158};
    157159
    158 ostream & operator << (ostream &ost, atom &a);
     160ostream & operator << (ostream &ost, const atom &a);
    159161
    160162/** Bonds between atoms.
     
    195197};
    196198
    197 ostream & operator << (ostream &ost, bond &b);
     199
     200ostream & operator << (ostream &ost, const bond &b);
    198201
    199202class MoleculeLeafClass;
     203
     204
     205#define MaxThermostats 6      //!< maximum number of thermostat entries in Ions#ThermostatNames and Ions#ThermostatImplemented
     206enum thermostats { None, Woodcock, Gaussian, Langevin, Berendsen, NoseHoover };   //!< Thermostat names for output
     207
    200208
    201209/** The complete molecule.
     
    254262  bool CenterInBox(ofstream *out);
    255263  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);
    258267  void Translate(const Vector *x);
    259268  void TranslatePeriodically(const Vector *trans);
     
    261270  void Align(Vector *n);
    262271  void Scale(double **factor);
    263   void DetermineCenter(Vector &center);
     272  void DeterminePeriodicCenter(Vector &center);
    264273  Vector * DetermineCenterOfGravity(ofstream *out);
    265274  Vector * DetermineCenterOfAll(ofstream *out);
    266   void SetNameFromFilename(char *filename);
     275  void SetNameFromFilename(const char *filename);
    267276  void SetBoxDimension(Vector *dim);
    268277  double * ReturnFullMatrixforSymmetric(double *cell_size);
    269278  void ScanForPeriodicCorrection(ofstream *out);
     279  bool VerletForceIntegration(ofstream *out, char *file, config &configuration);
     280  void Thermostats(config &configuration, double ActualTemp, int Thermostat);
    270281  void PrincipalAxisSystem(ofstream *out, bool DoRotate);
    271282  double VolumeOfConvexEnvelope(ofstream *out, bool IsAngstroem);
    272283  Vector* FindEmbeddingHole(ofstream *out, molecule *srcmol);
    273284
    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       
    276291  bool CheckBounds(const Vector *x) const;
    277292  void GetAlignvector(struct lsq_params * par) const;
     
    349364  bool AddHydrogenCorrection(ofstream *out, char *path);
    350365  bool StoreForcesFile(ofstream *out, char *path, int *SortIndex);
    351   bool insert(molecule *mol);
     366  void insert(molecule *mol);
    352367  molecule * ReturnIndex(int index);
    353368  bool OutputConfigForListOfFragments(ofstream *out, config *configuration, int *SortIndex);
     
    429444    char *databasepath;
    430445
     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   
    431457  private:
    432458    char *mainname;
     
    449475    int Seed;
    450476
    451     int MaxOuterStep;
    452477    int OutVisStep;
    453478    int OutSrcStep;
    454     double TargetTemp;
    455     int ScaleTempStep;
    456479    int MaxPsiStep;
    457480    double EpsWannier;
     
    501524  char *GetDefaultPath() const;
    502525  void SetDefaultPath(const char *path);
     526  void InitThermostats(ifstream *source);
    503527};
    504528
Note: See TracChangeset for help on using the changeset viewer.