mpacts.tools. setcontactdatastorage

Small utility module that is used to easily set the global type of contact data storage used by contact models

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

import mpacts.tools.setcontactdatastorage
#or assign it to a shorter name
import mpacts.tools.setcontactdatastorage as set
mpacts.tools.setcontactdatastorage.SetContactDataStorage(name='MappedMatrix', verbose=True)

Sets the global contact data storage type to either ‘MappedMatrix’, “Vector” or “VerletList”. Some other experimental versions of contact data storage types are allowed, but these should only be used with great care. It is strongly advised to use either ‘MappedMatrix’ or ‘Vector’ the latter probably being faster.

mpacts.tools.setcontactdatastorage.SwitchContactDataStorage(cd, name='MappedMatrix', verbose=True)

Switches a given contact detector ‘cd’ to a type of contact data storage with specified ‘name’ Contact data storage types can be set to either ‘MappedMatrix’, “Vector” or “VerletList”. Some other experimental versions of contact data storage types are allowed, but these should only be used with great care. It is strongly advised to use either ‘MappedMatrix’ or ‘Vector’ the latter probably being faster.

mpacts.tools.setcontactdatastorage.SwitchContactDataStorageSimulation(simulation, name='MappedMatrix', verbose=True)
mpacts.tools.setcontactdatastorage.is_mt()