Closed yanze039 closed 1 year ago
The units are kJ/mol, not kcal/mol. Parmed converts the units correctly when converting the force field.
For information about using CMAP, see the following.
http://docs.openmm.org/latest/userguide/application/05_creating_ffs.html#cmaptorsionforce http://docs.openmm.org/latest/userguide/theory/02_standard_forces.html#cmaptorsionforce http://docs.openmm.org/latest/api-python/generated/openmm.openmm.CMAPTorsionForce.html
Hi!
I find that the parameters of
<CMAPTorsionForce>
in force field files have the unit ofkcal
. That seems inconsistent with the default setting of openmm units described in this page.Here is my experiment.
I have RNA CMAP parameters from an modified amber force filed in
chamber
format, which has the unit in kcal. I calculated the energy of an RNA molecule bytLEaP
and it give me the result of-9.31
, again inkcal/mol
.Then I move the numbers into
<CMAPTorsionForce>
in.xml
file. Basically, this was done by two methods,Parmed
and my self-implement. At this time, the unit in forcefield remainskcal
. Then I used the following codes:This gives me:
which is exactly the same result as
-9.313 kcal/mol
.I also used the inferface of
Parmed
to calculate the energy, which gave me the same result.So does this indicate that the unit of CMAP paramaters in
.xml
file is 'kcal'? All the other parameters are inkJ
, so this totally confused me.Since I can barely find any instruction about implement of
CMAP
inopenmm
, I hope to get some help here.Thanks in advance!