In order to be able to use this module import it like this:

#or assign it to a shorter name
import as ben



Bases:, mpacts.core.baseobject.BaseObject

Special kind of contactdetector that reconstructs the contact list for bending. The detection is based on the array ‘segmentIndexList’ at the parent particle container which contain an ordered list of segments per polymer.
Default location: ‘loop_cmds/contact_cmds’
  • Required keywords:
    • cmodel — The contactmodel that will be executed.
  • Optional keywords:
    • contact_data_storage_factory (default value = ContactDataStorageFactory) — The memory manager factory for contact data.
    • contact_data (default value = None) — Contact data itself note: may not always be present and writing to it is usually a bad idea.
    • gate (default value = ET::ChildProperty const*) — Can decide to (temporarily) not execute the command in a CommandList. (Default is ExecuteAlways)
    • keep_distance (default value = -1) — The distance that considers contacts as relevant. If a contacts distance is longer than the keep_distance,it is removed from the contact list. If no keep_distance is given, then no contacts are removed.
    • new_contacts (default value = None) — List of contacts that are new and have never run before. This is exposed mostly for saving and loading
object __init__(tuple args, dict kwds) :
args: name, parent kwds: cmodel, [gate, contact_data_storage_factory, contact_data, keep_distance, new_contacts]
BendingContactDetector(name, parent, **kwargs)

object addContact(tuple args, dict kwds)

add_contactlist((BendingContactDetector)arg1, (list)arg2) → None
deleteContact((BendingContactDetector)arg1, (int)arg2, (int)arg3) → None