Simpatico  v1.10
OrderParamNucleation.h
1 #ifndef DDMD_ORDER_PARAM_NUCLEATION_H
2 #define DDMD_ORDER_PARAM_NUCLEATION_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> // member template
14 
15 #include <util/global.h>
16 
17 #include <iostream>
18 
19 namespace DdMd
20 {
21 
22  using namespace Util;
23 
54  {
55 
56  public:
57 
63  OrderParamNucleation(Simulation& simulation);
64 
69 
75  virtual void readParameters(std::istream& in);
76 
82  virtual void loadParameters(Serializable::IArchive &ar);
83 
89  virtual void save(Serializable::OArchive &ar);
90 
94  virtual void clear();
95 
101  void sample(long iStep);
102 
106  virtual void output();
107 
108  protected:
109 
111  std::ofstream outputFile_;
112 
115 
118 
121 
124 
127 
130 
132  int nBin_;
133 
135  int nSample_;
136 
139 
140  };
141 
142 }
143 #endif
DMatrix< double > totalCosFactors_
Total cos factors of size nAtomType*nBin (gathered from all processors)
Abstract base for periodic output and/or analysis actions.
File containing preprocessor macros for error handling.
Parallel domain decomposition (DD) MD simulation.
Main object for a domain-decomposition MD simulation.
DMatrix< double > cosFactors_
Cos factors of size nAtomType*nBin.
Saving / output archive for binary ostream.
Utility classes for scientific computation.
Definition: accumulators.mod:1
int nAtomType_
Number of atom types, copied from Simulation::nAtomType().
int parallelIndex_
Index of direction parallel to the lamellar surfaces.
int perpIndex_
Index of direction perpendicular to lamellae (direction of external field)
Saving archive for binary istream.
std::ofstream outputFile_
Output file stream.
int nSample_
Number of samples thus far.
int nBin_
Number of bins to divide the length along parallel direction.
OrderParamNucleation is designed to evaluate a sort of composition profile in the specific case of nu...
bool isInitialized_
Has readParam been called?
int periodicity_
Number of periods in the perpendicular direction.