Full Pair Force¶
Construct full pair force.
The module computes the full potential forces (untruncated, in minimum image convention) excerted by the particles of the second particle instance on those of the first one. The two instances agree if only a single instance is passed. Recomputation is triggered by the signals on_force and on_prepend_force of args.particle.
weightdetermines the fraction of the potential energy and the stress tensor that that is added to by the interaction of this force module. A value of 1 is defined as adding the full potential energy and stress tensor of each interaction. This is especially useful when considering pair forces where the particle instances (A and B) are distinct and only AB but not BA interaction is calculated.
If two different instances of
halmd.mdsim.particleare passed, Newton’s 3rd law is not obeyed. To restore such a behaviour, the module must be constructed a second time with the order of particle instances reversed.
Disconnect force from profiler and particle module.