Ignore:
Timestamp:
Oct 12, 2009, 10:30:02 AM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
ff9879
Parents:
104cf4
Message:

Complete refactoring of molecule_dynamics.cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/atom.hpp

    r104cf4 r7c2f6b  
    2121#include <vector>
    2222
     23#include <gsl/gsl_randist.h>
     24
    2325#include "tesselation.hpp"
    2426
     
    2628
    2729class bond;
     30class config;
    2831class element;
    2932class ForceMatrix;
     
    8083  bool Compare(const atom &ptr);
    8184
     85  // trajectory stuff
     86  void ResizeTrajectory(int MaxSteps);
     87  void CopyStepOnStep(int dest, int src);
     88  void VelocityVerletUpdate(int MDSteps, config *configuration, ForceMatrix *Force);
     89  void SumUpKineticEnergy( int Step, double *TotalMass, Vector *TotalVelocity );
     90
    8291  double DistanceToVector(Vector &origin);
    8392  double DistanceSquaredToVector(Vector &origin);
    8493
     94  bool IsInParallelepiped(Vector offset, double *parallelepiped);
     95
     96  // constraint potential and dynamics stuff
    8597  void AddKineticToTemperature(double *temperature, int step) const;
    8698  void EvaluateConstrainedForce(int startstep, int endstep, atom **PermutationMap, ForceMatrix *Force);
     99  void CorrectVelocity(double *ActualTemp, int Step, Vector *CoGVelocity);
    87100
    88   bool IsInParallelepiped(Vector offset, double *parallelepiped);
     101  // thermostats
     102  void Thermostat_Woodcock(double ScaleTempFactor, int Step, double *ekin);
     103  void Thermostat_Gaussian_init(int Step, double *G, double *E);
     104  void Thermostat_Gaussian_least_constraint(int Step, double G_over_E, double *ekin, config *configuration);
     105  void Thermostat_Langevin(int Step, gsl_rng * r, double *ekin, config *configuration);
     106  void Thermostat_Berendsen(int Step, double ScaleTempFactor, double *ekin, config *configuration);
     107  void Thermostat_NoseHoover_init(int Step, double *delta_alpha);
     108  void Thermostat_NoseHoover_scale(int Step, double *ekin, config *configuration);
     109
    89110
    90111  ostream & operator << (ostream &ost);
Note: See TracChangeset for help on using the changeset viewer.