add_inner_nonbonded_force¶
- ufedmm.add_inner_nonbonded_force(system, inner_switch, inner_cutoff, force_group_index)[source]¶
Adds a new force group to an openmm.System containing a openmm.NonbondedForce object, with the purpose of performing multiple time-scale integration via the RESPA2 splitting scheme of Morrone, Zhou, and Berne [11]. Also, assigns the provided force_group_index to this new group and force_group_index+1 to the original openmm.NonbondedForce. When used in an instance of any subclass of
AbstractMiddleRespaIntegrator, the new force group must be set as embodied by the openmm.NonbondedForce as opposed to being complimentary to it.- Parameters:
system (openmm.System) – The system the inner force will be added to, which must contain a openmm.NonbondedForce.
inner_switch (float or unit.Quantity) – The inner switching distance, where the interaction of an atom pair begins to switch off to zero.
inner_cutoff (float or unit.Quantity) – The inner cutoff distance, where the interaction of an atom pairs completely switches off.
force_group_index (int) – The force group the new interactions will belong to. The old openmm.NonbondedForce will be automatically assigned to force_group_index+1.
Example
>>> import ufedmm >>> from openmm import unit >>> dt = 2*unit.femtoseconds >>> temp = 300*unit.kelvin >>> tau = 10*unit.femtoseconds >>> gamma = 10/unit.picoseconds >>> model = ufedmm.AlanineDipeptideModel() >>> ufedmm.add_inner_nonbonded_force( ... model.system, 5*unit.angstroms, 8*unit.angstroms, 1 ... )