mpacts.commands.misc. strawbreak

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

import mpacts.commands.misc.strawbreak
#or assign it to a shorter name
import mpacts.commands.misc.strawbreak as str

StrawBreakCommand

class mpacts.commands.misc.strawbreak.StrawBreakCommand

Bases: mpacts.core.command.Command, mpacts.core.baseobject.BaseObject

Break the straw at a node. This is done by checking the ratio of the tension force over the break threshold force. The node with the highest ratio, which is greater than 1 is broken. In each straw (nodes with the same parentindex), only one node can be used for the breakage per timestep. After the straw is separated in two fragments, one of them get a new parentindex assigned.
Default location: ‘loop_cmds/pre_integration_cmds’
  • Required keywords:
    • pc — Particle container on which the command is applied
  • Optional keywords:
    • BreakNodes_mgr (default value = break_mgr) — Arraymanager which contains the global indices of nodes which have to break.
    • gate (default value = ET::ChildProperty const*) — Can decide to (temporarily) not execute the command in a CommandList. (Default is ExecuteAlways)
    • predicate (default value = None) — Predicate that will decide whether this command is executed for a specific particle, when absent the command is executed for every particle.
object __init__(tuple args, dict kwds) :
args: name, parent kwds: pc, [gate, predicate, BreakNodes_mgr]
StrawBreakCommand(name, parent, **kwargs)

StrawBreakForceTHCommand

class mpacts.commands.misc.strawbreak.StrawBreakForceTHCommand

Bases: mpacts.core.command.Command, mpacts.core.baseobject.BaseObject

Calculate the force needed for a straw to break at the node. This is based on static parameters (radius, ...) and dynamic parameters (MHA). Therefore the threshold forces have to be calculated every step. The model is made from the work of Joris Bleukx.
Default location: ‘loop_cmds/post_contact_cmds’
  • Required keywords:
    • m_middle_nodes — Mass of the central nodes. Used to distinguish side nodes, these have half the mass of the central nodes and can’t be broken.The threshold of these nodes is set to the highest possible value.
    • pc — Particle container on which the command is applied
  • Optional keywords:
    • gate (default value = ET::ChildProperty const*) — Can decide to (temporarily) not execute the command in a CommandList. (Default is ExecuteAlways)
    • predicate (default value = None) — Predicate that will decide whether this command is executed for a specific particle, when absent the command is executed for every particle.
object __init__(tuple args, dict kwds) :
args: name, parent kwds: pc, m_middle_nodes, [gate, predicate]
StrawBreakForceTHCommand(name, parent, **kwargs)