Simpatico  v1.10
ddMd/analyzers/scattering/StructureFactorGrid.h
1 #ifndef DDMD_STRUCTURE_FACTOR_GRID_H
2 #define DDMD_STRUCTURE_FACTOR_GRID_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 "StructureFactor.h"
12 #include <util/crystal/LatticeSystem.h>
13 
14 namespace DdMd
15 {
16 
17  using namespace Util;
18 
62  {
63 
64  public:
65 
71  StructureFactorGrid(Simulation &simulation);
72 
87  virtual void readParameters(std::istream& in);
88 
94  virtual void loadParameters(Serializable::IArchive &ar);
95 
101  virtual void save(Serializable::OArchive &ar);
102 
106  virtual void clear();
107 
113  virtual void sample(long iStep);
114 
118  virtual void output();
119 
120  private:
121 
123  DArray<int> starIds_;
124 
126  DArray<int> starSizes_;
127 
129  int hMax_;
130 
132  int nStar_;
133 
135  LatticeSystem lattice_;
136 
138  bool isInitialized_;
139 
141  std::ofstream logFile_;
142 
143  };
144 
145 }
146 #endif
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
StructureFactor evaluates structure factors in Fourier space.
Saving archive for binary istream.
LatticeSystem
Enumeration of the 7 possible Bravais lattice systems.
Definition: LatticeSystem.h:29
StructureFactorGrid evaluates structure factors in Fourier space.