20 #include "StringMethod.h"
104 const MPI_Comm& comm,
105 const std::vector<double>& centers,
106 unsigned int maxiterations,
107 const std::vector<double> cvspring,
108 unsigned int frequency,
109 unsigned int InitialSteps,
110 unsigned int HarvestLength,
111 unsigned int NumberTrajectories,
112 unsigned int SwarmLength) :
113 StringMethod(world, comm, centers, maxiterations, cvspring, frequency),
Collective variable manager.
Class containing a snapshot of the current simulation in time.
String base class for FTS, Swarm, and elastic band.
std::vector< std::vector< double > > prev_velocities_
Store velocities for starting trajectories.
std::vector< double > centers_
CV starting location values.
std::vector< std::vector< double > > prev_positions_
Store positions for starting trajectories.
std::vector< std::vector< int > > prev_IDs_
Store atom IDs for starting trajectories.
unsigned int iterator_
The local method iterator.
Swarm of Trajectories String Method.
unsigned int harvest_length_
Length to run before harvesting a trajectory for unrestrained sampling.
void StringUpdate() override
Updates the positions of the string.
unsigned int index_
For indexing trajectory vectors.
unsigned int swarm_length_
Length of unrestrained trajectories.
bool sampling_started
Flag for determing whether to perform initialization or not.
int initialized
Flag for whether a system is initialized at a given iteration.
std::vector< Label > traj_atomids_
Store atom IDs for starting trajecotires.
unsigned int restrained_steps_
Total number of restrained MD steps for one iteration.
bool original_initialized
Flag for whether a system was initialized before it checked whether other systems were.
bool CVInitialized(const CVList &cvs)
Helper function check if CVs are initialized correctly.
Swarm(const MPI_Comm &world, const MPI_Comm &comm, const std::vector< double > ¢ers, unsigned int maxiterations, const std::vector< double > cvspring, unsigned int frequency, unsigned int InitialSteps, unsigned int HarvestLength, unsigned int NumberTrajectories, unsigned int SwarmLength)
Constructor.
unsigned int unrestrained_steps_
Total number of unrestrained MD steps for one iteration.
bool snapshot_stored
Flag for whether a snapshot was stored in the umbrella sampling.
void PostIntegration(Snapshot *snapshot, const class CVManager &cvmanager) override
Method call post integration.
unsigned int number_trajectories_
Number of trajectories per swarm.
std::vector< double > cv_drift_
Drift of CVs for one iteration.
unsigned int initialize_steps_
Total number of MD steps for initialization for one iteration.
std::vector< CollectiveVariable * > CVList
List of Collective Variables.