ENERGY
This is part of the colvar module

Calculate the total potential energy of the simulation box.

Total energy can be biased with umbrella sampling [10] or with well tempered metadynamics [16].

Notice that this CV could be unavailable with some MD code. When it is available, and when also replica exchange is available, metadynamics applied to ENERGY can be used to decrease the number of required replicas.

Bug:
Acceptance for replica exchange when ENERGY is biased is computed correctly only of all the replicas has the same potential energy function. This is for instance not true when using GROMACS with lambda replica exchange of with plumed-hrex branch.
Examples

The following input instructs plumed to print the energy of the system

Click on the labels of the actions for more information on what each action computes
tested on master
ene: ENERGY 
PRINT 
ARG
the input for this action is the scalar output from one or more other actions.
=ene
Glossary of keywords and components