Simpatico  v1.10
OutputPairEnergies.h
1 #ifndef DDMD_OUTPUT_PAIR_ENERGIES_H
2 #define DDMD_OUTPUT_PAIR_ENERGIES_H
3 
4 /*
5 * Simpatico - Simulation Package for Polymeric and Molecular Liquids
6 *
7 * Copyright 2010 - 2017, The Regents of the University of Minnesota
8 * Distributed under the terms of the GNU General Public License.
9 */
10 
11 #include <ddMd/analyzers/Analyzer.h>
12 #include <ddMd/simulation/Simulation.h>
13 #include <util/containers/DMatrix.h>
14 
15 namespace DdMd
16 {
17 
18  using namespace Util;
19 
28  {
29 
30  public:
31 
37  OutputPairEnergies(Simulation& simulation);
38 
43  {}
44 
50  virtual void readParameters(std::istream& in);
51 
57  virtual void loadParameters(Serializable::IArchive &ar);
58 
64  virtual void save(Serializable::OArchive &ar);
65 
69  virtual void clear();
70 
76  virtual void sample(long iStep);
77 
78  private:
79 
80  // Output file stream.
81  std::ofstream outputFile_;
82 
84  long nSample_;
85 
87  long isInitialized_;
88 
89  };
90 
91 }
92 #endif
Abstract base for periodic output and/or analysis actions.
Parallel domain decomposition (DD) MD simulation.
Main object for a domain-decomposition MD simulation.
Saving / output archive for binary ostream.
Periodically write pair energies to file.
Utility classes for scientific computation.
Definition: accumulators.mod:1
Saving archive for binary istream.
virtual ~OutputPairEnergies()
Destructor.