friction_setup

compas_cra.equilibrium.friction_setup(assembly, mu, penalty=False, friction_net=False)[source]

Set up friction matrix.

Parameters
  • assembly (Assembly) – The rigid block assembly.

  • mu (float, optional) – Friction coefficient value.

  • penalty (bool, optional) – if True then return penalty matrix.

  • friction_net (bool, optional) – Friction net formulation if True for the penalty formulation, friction plus formulation if True.

Returns

csr_matrix – Afr (penalty=False) or Afr@B (penalty=True)