This is a conceptual, statistical mechanics question I have about metadynamics: does metadynamics, as implemented on PLUMED, work in an NPT ensemble? Specifically, using the Parinello-Rahman barostat as in fix npt
?
I am currently running a polymer in solvent simulation, and I will be running a free energy calculation over radius of gyration. My vanilla MD simulations were in the NPT ensemble. I hope to use metadynamics to get a free energy profile over Rg.
rg: GYRATION TYPE=RADIUS ATOMS=1-572
restraint: METAD ARG=rg SIGMA=1 HEIGHT=0.5 PACE=500 FILE=HILLS
PRINT ARG=rg,restraint.bias STRIDE=1000 FILE=COLVAR
When performing metadynamics, we introduce additional energies in the system in the form of Guassian potentials. The way I am thinking about it, this will likely corrupt the computation of the virial – leading to unsound evolution of the system. Is there a flaw in my thinking, or this is a real problem but the PLUMED devs have figured this out?
I would appreciate any advice you have for me!