23 #include "vesselbase/Vessel.h"
26 namespace manyrestraints {
32 ActionWithVessel::registerKeywords( keys );
34 keys.
add(
"hidden",
"STRIDE",
"the frequency with which the forces due to the bias should be calculated. This can be used to correctly set up multistep algorithms");
48 std::string fake_input;
51 addVessel(
"SUM", fake_input, 0,
"bias" );
static void registerKeywords(Keywords &keys)
Register all the relevant keywords for the action.
void addForce(double f)
Add some force on this value.
static void registerKeywords(Keywords &keys)
std::vector< double > forcesToApply
This is used to create PLMD::Action objects that are run with some set frequency. ...
void apply()
Apply an Action.
unsigned getNumberOfDerivatives()
void add(const std::string &t, const std::string &k, const std::string &d)
Add a new keyword of type t with name k and description d.
void addVessel(const std::string &name, const std::string &input, const int numlab=0, const std::string thislab="")
Add a vessel to the list of vessels.
bool getForcesFromVessels(std::vector< double > &forcesToApply)
Retrieve the forces from all the vessels (used in apply)
void readVesselKeywords()
Complete the setup of this object (this routine must be called after construction of ActionWithValue)...
Used to create a PLMD::Action that has some scalar or vectorial output that may or may not have some ...
This class holds the keywords and their documentation.
This class is used to bring the relevant information to the Action constructor.
Action used to create objects that access the positions of the atoms from the MD code.
void addIndexToList(const T &ii)
Add something to the active list.
Base class for all the input Actions.
static void registerKeywords(Keywords &keys)
Register all the relevant keywords for the action.
static void registerKeywords(Keywords &keys)
Create the keywords for actionPilot.
DynamicList< unsigned > taskList
The list of tasks we have to perform.
void remove(const std::string &k)
Remove the keyword with name k.
int getNumberOfComponents() const
Returns the number of values defined.
Value * getPntrToComponent(int i)
Return a pointer to the component by index.
void setForcesOnAtoms(const std::vector< double > &forcesToApply, unsigned ind=0)
Add the forces to the atoms.
void createRestraints(const unsigned &nrestraints)
ManyRestraintsBase(const ActionOptions &)
void activateAll()
Make everything in the list active.
static void registerKeywords(Keywords &keys)