siconos.kernel.InteractionManager (Python class)

class siconos.kernel.InteractionManager[source]

Bases: object

Constructors

InteractionManager()
insertNonSmoothLaw(NonSmoothLaw nslaw, long int group1, long int group2) → None[source]

Specify a non-smooth law to use for a given combination of interaction groups.

Parameters:
  • nslaw – the new nonsmooth law
  • group1 – id of the fisrt group of interactions
  • group2 – id of the second group of interactions
nonSmoothLaw(long int group1, long int group2) → NonSmoothLaw[source]

Retrieve a non-smooth law to use for a given combination of interaction groups.

Returns:

nsl a SP::NonSmoothLaw

Parameters:
  • group1 – first group
  • group2 – second group
updateInteractions(Simulation simulation) → None[source]

Called by Simulation after updating positions prior to starting the Newton loop.