Simpatico  v1.10
EndtoEnd.h
1 #ifndef END_TO_END_H
2 #define END_TO_END_H
3 
4 /*
5 * Simpatico - Simulation Package for Polymeric and 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> // class template parameter
13 #include <util/accumulators/Average.h> // member
14 #include <util/containers/DArray.h> // member template
15 #include <util/space/Vector.h> // member template parameter
16 
17 #include <cstdio>
18 #include <cstring>
19 
20 namespace Simp {
21  class Species;
22 }
23 
24 namespace McMd
25 {
26 
27  using namespace Util;
28  using namespace Simp;
29 
30 
54  class EndtoEnd : public SystemAnalyzer<System>
55  {
56 
57  public:
58 
64  EndtoEnd(System &system);
65 
81  virtual void readParameters(std::istream& in);
82 
86  virtual void setup();
87 
93  virtual void sample(long iStep);
94 
98  virtual void output();
99 
100  private:
101 
103  std::ofstream outputFile_;
104 
106  Average accumulator_;
107 
109  DArray<Vector> positions_;
110 
112  Species *speciesPtr_;
113 
115  int nSamplePerBlock_;
116 
118  int speciesId_;
119 
121  int nAtom_;
122 
123  };
124 
125 }
126 #endif
Calculates the average and variance of a sampled property.
Definition: Average.h:43
A set of interacting Molecules enclosed by a Boundary.
Definition: System.h:115
Classes used by all simpatico molecular simulations.
End to end distance of a molecule.
Definition: EndtoEnd.h:54
Utility classes for scientific computation.
Definition: accumulators.mod:1
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.