Simpatico  v1.10
G1MSD.h
1 #ifndef G1MSD_H
2 #define G1MSD_H
3 
4 /*
5 * MolMcD - Monte Carlo and Molecular Dynamics Simulator for Molecular Liquids
6 *
7 * Copyright 2010 - 2014, The Regents of the University of Minnesota
8 * Distributed under the terms of the GNU General Public License.
9 */
10 
11 #include <mcMd/analyzers/SystemAnalyzer.h> // base class template
12 #include <mcMd/simulation/System.h> // base class template parameter
13 #include <util/accumulators/MeanSqDispArray.h> // member template
14 #include <util/space/Vector.h> // template parameter
15 #include <util/containers/DArray.h> // member template
16 
17 namespace Simp {
18  class Species;
19 }
20 
21 namespace McMd
22 {
23 
24  using namespace Util;
25  using namespace Simp;
26 
30  class G1MSD : public SystemAnalyzer<System>
31  {
32 
33  public:
34 
40  G1MSD(System& system);
41 
47  virtual void readParameters(std::istream& in);
48 
52  virtual void setup();
53 
59  virtual void sample(long iStep);
60 
61 
65  virtual void output();
66 
67  private:
68 
70  std::ofstream outputFile_;
71 
73  MeanSqDispArray<Vector> accumulator_;
74 
76  DArray<Vector> truePositions_;
77 
79  DArray<Vector> oldPositions_;
80 
82  DArray<IntVector> shifts_;
83 
85  Species *speciesPtr_;
86 
88  int speciesId_;
89 
91  int nMolecule_;
92 
94  int capacity_;
95 
97  int nAtom_;
98 
99  };
100 
101 }
102 #endif
A set of interacting Molecules enclosed by a Boundary.
Definition: System.h:115
Classes used by all simpatico molecular simulations.
Utility classes for scientific computation.
Definition: accumulators.mod:1
Autocorrelation for vector separation of any two monomers on a molecule.
Definition: G1MSD.h:30
Mean-squared displacement (MSD) vs.
Template for Analyzer associated with one System.
Dynamically allocatable contiguous array template.
Definition: DArray.h:31
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
A Species represents a set of chemically similar molecules.