mpacts.boundaryconditions. ghostpc

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

import mpacts.boundaryconditions.ghostpc
#or assign it to a shorter name
import mpacts.boundaryconditions.ghostpc as gho

GhostContactDataTranslator

class mpacts.boundaryconditions.ghostpc.GhostContactDataTranslator

Bases: mpacts.core.contactdata.ContactDataBase, mpacts.core.baseobject.BaseObject

Class that provides translation for contactdata that is actually between ‘ghost-pc’ and pretends it is between ‘pc-pc’. This is needed for conjugate gradient with periodic boundary conditions.
Has no default location.
  • Required keywords:
    • cd — Contact data that needs to be translated
  • Optional keywords:
    • cmodel (default value = None) — the contact model we are providing contactdata storage for. Is exposed for the save/load functionality
  • Read only properties:
    • number_of_contacts — Allows to check the number of likely contacts currently held in the contact list.
    • pc1 — The first particle container in the binary contact detection.
    • pc2 — The second particle container in the binary contact detection.
object __init__(tuple args, dict kwds) :
args: name, parent kwds: cd, [cmodel]
GhostContactDataTranslator(name, parent, **kwargs)

GhostParticleManager

class mpacts.boundaryconditions.ghostpc.GhostParticleManager

Bases: mpacts.core.arrays.ArrayManager, mpacts.core.baseobject.BaseObject

Generic implementation of a ghost particle container. It models after the pc it has received as an argument, and tries to get the same geometry tag. Furthermore it also keeps an array with references to the original pc particles it mimics called ‘__source_idx’.
Has no default location.
  • Required keywords:
    • pc — The particle container on which this ghost particle container will be based.
  • Optional keywords:
    • size (default value = Uninitialized) — Sets the size of all arrays managed by this arraymanager
object __init__(tuple args, dict kwds) :
args: name, parent kwds: pc, [size]
GhostParticleManager(name, parent, **kwargs)
simulation((GhostParticleManager)arg1) → Simulation