1 #ifndef MCMD_STRUCTURE_FACTOR_H 2 #define MCMD_STRUCTURE_FACTOR_H 11 #include <mcMd/analyzers/SystemAnalyzer.h> 12 #include <mcMd/simulation/System.h> 13 #include <util/containers/DMatrix.h> 14 #include <util/containers/DArray.h> 77 virtual void readParameters(std::istream& in);
99 template <
class Archive>
100 void serialize(Archive& ar,
const unsigned int version);
105 virtual void setup();
112 virtual void sample(
long iStep);
117 virtual void output();
172 void makeWaveVectors();
186 template <
class Archive>
194 ar & waveIntVectors_;
196 ar & structureFactors_;
201 ar & maximumWaveIntVector_;
int nSample_
Number of samples thus far.
DArray< Vector > waveVectors_
Array of floating point wave vectors (temporary).
void serialize(Archive &ar, const unsigned int version)
Serialize to/from an archive.
int nWave_
Number of wavevectors.
DMatrix< std::complex< double > > fourierModes_
Instantaneous Fourier amplitudes (temporary)
A set of interacting Molecules enclosed by a Boundary.
File containing preprocessor macros for error handling.
void serialize(Archive &ar, PairSelector &selector, const unsigned int version)
Serialize a PairSelector.
DMatrix< double > modes_
Array of mode vectors.
Saving / output archive for binary ostream.
void serialize(Archive &ar, const unsigned int version)
Serialize to/from an archive.
int nAtomType_
Number of atom types, copied from Simulation::nAtomType().
DMatrix< double > structureFactors_
Structure factor accumulators.
Utility classes for scientific computation.
DArray< IntVector > waveIntVectors_
Array of Miller index IntVectors for wavevectors.
std::ofstream outputFile_
Output file stream.
Template for Analyzer associated with one System.
int nMode_
Number of mode vectors.
StructureFactor evaluates structure factors in Fourier space.
Dynamically allocatable contiguous array template.
bool isFirstStep_
Is this the first step?
Saving archive for binary istream.
Single-processor Monte Carlo (MC) and molecular dynamics (MD).