ENERGY
This is part of the colvar module

Calculate the total 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

ene: ENERGY
PRINT ARG=ene