71 if(iteration >=
time_)
return centers1_[i];
100 const std::vector<double>& kspring,
101 const std::vector<double>& centers,
103 unsigned int frequency) :
125 const MPI_Comm& comm,
126 const std::vector<double>& kspring,
127 const std::vector<double>& centers0,
128 const std::vector<double>& centers1,
131 unsigned int frequency) :
166 const MPI_Comm& world,
167 const MPI_Comm& comm,
168 const std::string& path);
Collective variable manager.
Interface for Method implementations.
Class containing a snapshot of the current simulation in time.
Umbrella sampling method.
void PostIntegration(Snapshot *snapshot, const class CVManager &cvmanager) override
Method call post integration.
static Umbrella * Build(const Json::Value &json, const MPI_Comm &world, const MPI_Comm &comm, const std::string &path)
Build a derived method from JSON node.
int outfreq_
Frequency of outputting data.
std::ofstream umbrella_
Output stream for umbrella data.
std::vector< double > centers0_
void PostSimulation(Snapshot *snapshot, const class CVManager &cvmanager) override
Method call post simulation.
bool append_
Append to output files?
Umbrella(const MPI_Comm &world, const MPI_Comm &comm, const std::vector< double > &kspring, const std::vector< double > ¢ers, std::string name, unsigned int frequency)
Constructor.
void PreSimulation(Snapshot *snapshot, const class CVManager &cvmanager) override
Method call prior to simulation initiation.
void PrintUmbrella(const CVList &cvs, size_t iteration)
Print umbrella values.
void SetOutputFrequency(int outfreq)
Set output frequency.
void SetAppend(bool append)
Set append mode.
double GetCurrentCenter(size_t iteration, size_t i)
Get the current center of the umbrella at a given iteration.
size_t time_
Amount of time over which to scale centers.
std::string filename_
Output filename.
Umbrella(const MPI_Comm &world, const MPI_Comm &comm, const std::vector< double > &kspring, const std::vector< double > ¢ers0, const std::vector< double > ¢ers1, size_t timesteps, std::string name, unsigned int frequency)
Constructor.
std::vector< double > kspring_
Vector of spring constants.
std::vector< CollectiveVariable * > CVList
List of Collective Variables.