Simpatico  v1.10
EndtoEndXYZ.h
1 #ifndef END_TO_END_XYZ_H
2 #define END_TO_END_XYZ_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 
51  class EndtoEndXYZ : public SystemAnalyzer<System>
52  {
53 
54  public:
55 
61  EndtoEndXYZ(System &system);
62 
78  virtual void readParameters(std::istream& in);
79 
83  virtual void setup();
84 
90  virtual void sample(long iStep);
91 
95  virtual void output();
96 
97  private:
98 
100  std::ofstream outputFileX_;
101  std::ofstream outputFileY_;
102  std::ofstream outputFileZ_;
103 
105  Average accumulatorX_;
106  Average accumulatorY_;
107  Average accumulatorZ_;
108 
110  DArray<Vector> positions_;
111 
113  Species *speciesPtr_;
114 
116  int nSamplePerBlock_;
117 
119  int speciesId_;
120 
122  int nAtom_;
123 
124  };
125 
126 }
127 #endif
Calculates the average and variance of a sampled property.
Definition: Average.h:43
Mean square end to end distance of a molecule.
Definition: EndtoEndXYZ.h:51
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
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.