Simpatico  v1.10
NvtIntegrator.h
1 #ifndef DDMD_NVT_INTEGRATOR_H
2 #define DDMD_NVT_INTEGRATOR_H
3 
4 #include "TwoStepIntegrator.h"
5 
6 /*
7 * Simpatico - Simulation Package for Polymeric and Molecular Liquids
8 *
9 * Copyright 2010 - 2017, The Regents of the University of Minnesota
10 * Distributed under the terms of the GNU General Public License.
11 */
12 
13 namespace DdMd
14 {
15 
16  class Simulation;
17  using namespace Util;
18 
27  {
28 
29  public:
30 
34  NvtIntegrator(Simulation& simulation);
35 
39  ~NvtIntegrator();
40 
44  void readParameters(std::istream& in);
45 
51  virtual void loadParameters(Serializable::IArchive &ar);
52 
58  virtual void save(Serializable::OArchive &ar);
59 
60  protected:
61 
65  void setup();
66 
70  virtual void integrateStep1();
71 
75  virtual void integrateStep2();
76 
80  virtual void initDynamicalState();
81 
82  private:
83 
85  DArray<double> prefactors_;
86 
88  double dt_;
89 
91  double T_target_;
92 
94  double T_kinetic_;
95 
97  double xi_;
98 
100  double xiDot_;
101 
103  double tauT_;
104 
106  double nuT_;
107 
109  int nAtom_;
110 
111  };
112 
113 }
114 #endif
Parallel domain decomposition (DD) MD simulation.
Main object for a domain-decomposition MD simulation.
Saving / output archive for binary ostream.
A Nose-Hoover constant temperature, constant volume integrator.
Definition: NvtIntegrator.h:26
Utility classes for scientific computation.
Definition: accumulators.mod:1
Saving archive for binary istream.
A two-step velocity-Verlet style integrator.