Simpatico  v1.10
IntraStructureFactorGrid.h
1 #ifndef MCMD_INTRA_STRUCTURE_FACTOR_GRID_H
2 #define MCMD_INTRA_STRUCTURE_FACTOR_GRID_H
3 
4 /*
5 * Simpatico - Simulation Package for Polymeric and Molecular Liquids
6 *
7 * Copyright 2010, The Regents of the University of Minnesota
8 * Distributed under the terms of the GNU General Public License.
9 */
10 
11 #include "IntraStructureFactor.h"
12 #include <util/crystal/LatticeSystem.h>
13 
14 namespace McMd
15 {
16 
17  using namespace Util;
18 
64  {
65 
66  public:
67 
74 
79 
94  virtual void readParameters(std::istream& in);
95 
101  virtual void loadParameters(Serializable::IArchive& ar);
102 
108  virtual void save(Serializable::OArchive& ar);
109 
116  template <class Archive>
117  void serialize(Archive& ar, const unsigned int version);
118 
122  virtual void setup();
123 
127  virtual void output();
128 
134  virtual void sample(long iStep);
135 
136  private:
137 
139  DArray<int> starIds_;
140 
142  DArray<int> starSizes_;
143 
145  int hMax_;
146 
148  int nStar_;
149 
151  LatticeSystem lattice_;
152 
154  std::ofstream logFile_;
155 
157  bool isFirstStep_;
158 
160  bool isInitialized_;
161  };
162 
163 
164  /*
165  * Serialize to/from an archive.
166  */
167  template <class Archive>
168  void IntraStructureFactorGrid::serialize(Archive& ar, const unsigned int version)
169  {
170  IntraStructureFactor::serialize(ar, version);
171  ar & hMax_;
172  //serializeEnum(ar, lattice_);
173  ar & lattice_;
174  ar & nStar_;
175  ar & starIds_;
176  ar & starSizes_;
177  }
178 
179 }
180 #endif
Intramolecular contribution to the structure factor S(k)
A set of interacting Molecules enclosed by a Boundary.
Definition: System.h:115
void serialize(Archive &ar, const unsigned int version)
Serialize to/from an archive.
void serialize(Archive &ar, PairSelector &selector, const unsigned int version)
Serialize a PairSelector.
Definition: PairSelector.h:167
Saving / output archive for binary ostream.
Utility classes for scientific computation.
Definition: accumulators.mod:1
Saving archive for binary istream.
LatticeSystem
Enumeration of the 7 possible Bravais lattice systems.
Definition: LatticeSystem.h:29
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
IntraStructureFactorGrid evaluates structure factors in Fourier space.
void serialize(Archive &ar, const unsigned int version)
Serialize to/from an archive.