3 #ifndef MCMD_BENNETTS_METHOD_H 4 #define MCMD_BENNETTS_METHOD_H 13 #include <mcMd/analyzers/SystemAnalyzer.h> 14 #include <mcMd/simulation/System.h> 15 #include <util/accumulators/Average.h> 17 #include <util/containers/DArray.h> 19 #include <util/mpi/MpiLogger.h> 21 #include <mcMd/simulation/Simulation.h> 22 #include <util/space/Vector.h> 24 #include <util/param/ParamComposite.h> 56 virtual void readParameters(std::istream& in);
75 template <
class Archive>
76 void serialize(Archive& ar,
const unsigned int version);
88 virtual void sample(
long iStep);
93 virtual void output();
111 static const int TagDerivative[2];
114 static const int TagFermi[2];
117 MPI::Intracomm* communicatorPtr_;
144 int nSamplePerBlock_;
168 std::ofstream outputFile_;
180 virtual void analyze();
186 template <
class Archive>
190 ar & nSamplePerBlock_;
192 if (hasIoCommunicator()) {
201 ar & upperAccumulator_;
222 #endif // ifndef BENNETTS_METHOD_H 223 #endif // ifdef UTIL_MPI 224 #endif // ifdef UTIL_PERTURB Calculates the average and variance of a sampled property.
double shift_
Value of shift constant for associated system.
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.
Saving / output archive for binary ostream.
double lowerShift_
Value of shift constant for lower replica system.
void serialize(Archive &ar, const unsigned int version)
Serialize to/from an archive.
Utility classes for scientific computation.
Template for Analyzer associated with one System.
Saving archive for binary istream.
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
Bennett's method estimates free energy difference between two states.
This file contains templates for global functions send<T>, recv<T> and bcast<T>.
void serialize(Archive &ar, const unsigned int version)
Serialize to/from an archive.