# Passing energy to PLUMED
Several enhanced sampling methods apply a bias potential on the potential energy that is calculated by the MD code. If the potential energy that is passed to
PLUMED is
We can thus calculate the total force on position component
In other words, we need to multiply the forces passed from the MD code to PLUMED by
You can see how this mechanism for determining the total force due to the potential and a bias on the potential is used within colvar/Energy.cpp. As I was writing this
Could similar code be employed elsewhere within the interface? For example, if you calculated some properties of each atom in the MD code and
passed these properties through the DOMAIN_DECOMPOSITION, could you then use something like this to gather the forces on the sum of the individual atomic properties?