Simpatico  v1.10
VirialStressTensor.h
1 #ifndef DDMD_VIRIAL_STRESS_TENSOR_H
2 #define DDMD_VIRIAL_STRESS_TENSOR_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/mpi/MpiLoader.h>
14 #include <util/space/Tensor.h>
15 #include <util/accumulators/Average.h>
16 
17 namespace DdMd
18 {
19 
20  using namespace Util;
21 
28  {
29 
30  public:
31 
37  VirialStressTensor(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 
81  std::ofstream outputFile_;
82 
84  int nSample_;
85 
87  bool 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.
Utility classes for scientific computation.
Definition: accumulators.mod:1
virtual ~VirialStressTensor()
Destructor.
Saving archive for binary istream.
Periodically write virial stress tensor components to file.