In order to be able to use this module import it like this:
import mpacts.commands.misc.stiffness #or assign it to a shorter name import mpacts.commands.misc.stiffness as sti
- Command to compute the ‘effective’ stiffness (per node) of a submerged triangulated surface for tiny deformations in its normal direction. The resulting stiffness will have units of (Pa/m). A stiffness in (N/m) can be obtained by multiplying with the node’s voronoi-summed area. The stiffness for each node is stored in an array that is to be provided by the user.Default location: ‘loop_cmds/pre_body_force_cmds’
- Required keywords:
E— Young’s modulus of the material in which the triangles’ nodes is submerged
k— Array with effective stiffnesses (in Pa/m) that is stored per node. This will be computed by this command.
nu— Poisson’s number of the material in which the triangles’ nodes are submerged
pc— Particle container on which the command is applied
triangles— Array Manager containing the triangles of the deformable body.
- 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.
x(default value = None) — Array with positions of the triangle corners. If not given, the array with name ‘x’ will be searched.
- object __init__(tuple args, dict kwds) :
- args: name, parent kwds: pc, triangles, k, E, nu, [gate, predicate, x]
ComputeSubmergedTriangleNodeStiffnessCommand(name, parent, **kwargs)¶