22 #ifndef __PLUMED_core_Colvar_h
23 #define __PLUMED_core_Colvar_h
29 #define PLUMED_COLVAR_INIT(ao) Action(ao),Colvar(ao)
Class implementing fixed size matrices of doubles.
Class implementing fixed size vectors of doubles.
A class for holding the value of a function together with its derivatives.
void setAtomsDerivatives(int, const Vector &)
Value * getPntrToValue()
Get a pointer to the default value.
Colvar(const ActionOptions &)
const double & getForce() const
void requestAtoms(const std::vector< AtomNumber > &a)
void setBoxDerivatives(const Tensor &)
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.
const Tensor & getBoxDerivatives() const
This is the abstract base class to use for implementing new collective variables, within it there is ...
static void registerKeywords(Keywords &keys)
void setBoxDerivativesNoPbc()
Set box derivatives automatically.
std::vector< double > forces
This is used by apply to retrive the forces on the atoms.
unsigned getNumberOfAtoms() const
Get number of available atoms.
void apply()
Apply an Action.
void addDerivative(unsigned i, double d)
Add some derivative to the ith component of the derivatives array.