SBInteractionModel#

See also

SAMSON SDK: SBMInteractionModel

class samson.SBInteractionModel(self: samson.SBInteractionModel)#

Bases: SBModel

This class is the base class of interaction models.

Constructs an interaction model

flushForceBuffer(self: samson.SBInteractionModel) None#

Flushes the force buffer

getChangedForceIndex(self: samson.SBInteractionModel, i: int) int#

Returns the index of a changed forces

getForceChanged(self: samson.SBInteractionModel, i: int) bool#

Returns whether force i has been changed since the last flush

getSimulatorList(self: samson.SBInteractionModel) samson.SBNodeIndexer#

Returns the list of simulators

initializeInteractions(self: samson.SBInteractionModel) None#

Initializes the interactions

updateInteractions(self: samson.SBInteractionModel) None#

Updates the interactions

property energy#

The energy

property interactionModelType#

The type of the interaction model

property numberOfChangedForces#

The number of changed forces since the last buffer flush