mpacts.commands.force.constraints. areaconservation

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

import mpacts.commands.force.constraints.areaconservation
#or assign it to a shorter name
import mpacts.commands.force.constraints.areaconservation as are
mpacts.commands.force.constraints.areaconservation.AddAreaConservation(SimOrCmdList, ka, kd, mgr, triangle_mgr, node_mgr, normal_cmd, init_area_eq=True, use_cms=True)
mpacts.commands.force.constraints.areaconservation.AddAreaConservationArrays(mgr, triangle_mgr, node_mgr)
mpacts.commands.force.constraints.areaconservation.AreaConservation(deformable_PC, triangle_PC, ka, kd, ke=0.0, SimOrCmdList=None, init_area_eq=None, nonLinearLocalConservation=False, base_tension=0.0, **kwargs)

Adding Area conservation commands - we assume (and check) that the triangle normals and areas are correctly set at each time-step.

deformable_PC the parent ParticleContainer of the triangle_PC the ParticleContainer for triangles ka local area conservation constant kd global area conservation constant SimOrCmdList normally simulation object init_area_eq equilibrium area - if None (default), the initial area will be taken.