54 virtual void calculate();
56 static void registerKeywords(
Keywords& keys );
59 PLUMED_REGISTER_ACTION(
Volume,
"VOLUME")
64 std::vector<AtomNumber> atoms;
67 addValueWithDerivatives(); setNotPeriodic();
71 void Volume::registerKeywords(
Keywords& keys ){
72 Action::registerKeywords( keys );
73 ActionWithValue::registerKeywords( keys );
74 ActionAtomistic::registerKeywords( keys );
79 void Volume::calculate(){
81 double v=getBox().determinant();
82 setBoxDerivatives(-v*Tensor::identity());
#define PLUMED_COLVAR_INIT(ao)
This class holds the keywords and their documentation.
This class is used to bring the relevant information to the Action constructor.
Provides the keyword VOLUME
This is the abstract base class to use for implementing new collective variables, within it there is ...