Periodic boundary condition for CustomNonbondedForce in CustomCVForce
Posted: Thu Jul 20, 2017 12:31 pm
I'm trying to use the CustomCVForce, which uses two CustomNonbonedForce as collective variables. Each CustomNonbonedForce uses CutoffPeriodic. The cutoff distance is 1.4 nanometer and the box size of the system is 2.89 nanometer.When I try to create the context, it raises the Exception:
Any idea about why it happens?
Here are my thoughts:
In order to add a CustomCVForce, OpenMM will create a new subsystem and a new subcontext. I'm wondering if the new subsystem or new context will use the box size of the original system to which the CustomCVForce is added.
Thanks,
Xinqiang
When I add these two CustomNonbonedForces to the system directly, there is no exception.CustomNonbondedForce: The cutoff distance cannot be greater than half the periodic box size.
Any idea about why it happens?
Here are my thoughts:
In order to add a CustomCVForce, OpenMM will create a new subsystem and a new subcontext. I'm wondering if the new subsystem or new context will use the box size of the original system to which the CustomCVForce is added.
Thanks,
Xinqiang