Hello
The command UNITS NATURAL tells PLUMED that you are using natural units and that many physical constants are set equal to 1. This is probably not what you want to do.
It is difficult to comment on your calculation without knowing what the units are in the trajectory file that you are using. If the trajectory file is a format like pdb which will always be in Angstroms then PLUMED will do the conversion for you. The one exception is if your input file is in xyz format. PLUMED expects an xyz file to be in nm. You can change this by doing:
plumed driver —ixyz
mytraj.xyz —trajectory-units=A
Importantly the length unit in the plumed input file will then be nm. If you want the unit in the plumed input to be Angstroms you put the command:
UNITS LENGTH=A
at the top of the PLUMED input.
To summarise, there are two things you need to think about when it comes to units:
(1) What are the units of the trajectory file? These are often determined by the file format for the type of trajectory file that you are using. The only exception is if your output is an xyz file in which case you use —trajectory-units.
(2) What are the units of length in the plumed input file? By default lengths in the plumed input are always in nm. You can change these units by using the UNITS command.
I hope this helps