4.1.1.7.1.2. pyfem.models.Contact module

class Contact(props: object, globdat: object)[source]

Bases: BaseModel

Contact model for enforcing contact constraints in finite element simulations.

flag

Indicates if contact is active.

Type:

bool

dispDofs

Displacement DOF names.

Type:

list[str]

centre

Centre of the contact surface.

Type:

np.ndarray

direction

Contact movement direction.

Type:

np.ndarray

radius

Contact surface radius.

Type:

float

penalty

Penalty parameter for contact enforcement.

Type:

float

getTangentStiffness(props: object, globdat: object) None[source]

Compute and assemble the contact tangent stiffness matrix contribution.

Parameters:
  • props – Global properties object.

  • globdat – Global data/state object.