mpacts.contact.models.misc. chained_addons

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

import mpacts.contact.models.misc.chained_addons
#or assign it to a shorter name
import mpacts.contact.models.misc.chained_addons as cha

CompleteScalarTransfer

Description: Transfers from source to the sink array upon contact (overlap > 0). Afterwards the source element is 0 and sink array is augmented with the value of the soure. Geometry combinations available:

PC2 | PC1 - any
any YES

CompleteScalarTransfer (any any)

Transfers from source to the sink array upon contact (overlap > 0). Afterwards the source element is 0 and sink array is augmented with the value of the soure.

Parallel Compatible: No

Properties:

  • Required keywords:
    • pc1 — The first particle container in the binary contact detection.
    • pc2 — The second particle container in the binary contact detection. If contact detection within the same particle container is desired, and it is applicable for the contactmodel, pass the same pc to both pc1 and pc2.
    • scalar_sink — The array to which the transfer is made (ie. sink) can be either from PC1 or PC2 .
    • scalar_source — The array from which the transfer is made (ie. source) can be either from PC1 or PC2 .

This contact model is composed out of following pieces (click on the chain elements to get more information):

ContactMatrixDataBaseBoilerPlateConnector  <ParticleBase, ParticleBase, ResolveData, ForceData >
  ↓
DefaultBoilerPlateTransferScalar_CompleteTransferNoFeedback

StoreFprim

Description: Can be added to any contactmodel to store the contactforces to the primitives. Geometry combinations available:

PC2 | PC1 - any
any YES

StoreFprim (any any)

Can be added to any contactmodel to store the contactforces to the primitives.

Parallel Compatible: Yes

Properties:

  • Required keywords:
    • pc1 — The first particle container in the binary contact detection.
    • pc2 — The second particle container in the binary contact detection. If contact detection within the same particle container is desired, and it is applicable for the contactmodel, pass the same pc to both pc1 and pc2.
  • Optional keywords:
    • Fprim1 (default value = None) — Array with vectors which stores the contact force per primitive for pc1. If not given, the array pc1[‘Fprim’] is searched first, and if not found, nothing will be done
    • Fprim2 (default value = None) — Array with vectors which stores the contact force per primitive for pc2. If not given, the array pc2[‘Fprim’] is searched first, and if not found, nothing will be done

This contact model is composed out of following pieces (click on the chain elements to get more information):

ContactMatrixDataBaseBoilerPlateConnector  <ParticleBase, ParticleBase, ResolveData, ForceData >
  ↓
DefaultBoilerPlateAssembleForces_Primitives_2AssembleForces_Primitives_1NoFeedback