23 #include "core/ActionRegister.h"
31 namespace multicolvar{
54 static void registerKeywords(
Keywords& keys );
57 virtual double compute(
const unsigned& j );
64 PLUMED_REGISTER_ACTION(Density,
"DENSITY")
67 MultiColvar::registerKeywords( keys );
void readAtoms(int &natoms)
Read in all the keywords that can be used to define atoms.
virtual double compute(const unsigned &j)
Actually compute the colvar.
Class implementing fixed size vectors of doubles.
void checkRead()
Check if Action was properly read.
void readVesselKeywords()
Complete the setup of this object (this routine must be called after construction of ActionWithValue)...
void addCentralAtomDerivatives(const unsigned &iatom, const Tensor &der)
Add derivatives to the central atom position.
static TensorGeneric< n, n > identity()
return an identity tensor
This class holds the keywords and their documentation.
#define PLUMED_MULTICOLVAR_INIT(ao)
bool isPeriodic()
Returns the number of coordinates of the field.
This class is used to bring the relevant information to the Action constructor.
bool isDensity()
Is this a density?
Provides the keyword DENSITY
Vector getCentralAtom()
Get the position of the central atom.
const Vector & getPosition(unsigned) const
Get the position of atom iatom.
This is the abstract base class to use for creating distributions of colvars and functions thereof...