mpacts.contact.models.bending.commonedge. initialize_triangle_bending_contacts

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

import mpacts.contact.models.bending.commonedge.initialize_triangle_bending_contacts
#or assign it to a shorter name
import mpacts.contact.models.bending.commonedge.initialize_triangle_bending_contacts as ini
mpacts.contact.models.bending.commonedge.initialize_triangle_bending_contacts.initialize_triangle_bending_contacts(connectivity, t1, t2, reference_angle=0.0)

Python function to initialize the contact state between two triangles with bending forces. Analogous to the resolver’s member function called ‘initialize_newContact’. Returns a dictionary with all required members of the ContactState.

Parameters:

-connectivity connectivity object with triangleCorners and triangleEdges members

-t1 index of first triangle -t2 index of second triangle -reference_angle angle yielding no bending forces between the two triangles; defined as angle between the triangle normals.