contact_setup
Define master-slave face pairs for surface-to-surface contact in a CalculiX FEM solve, set Coulomb friction, and enable nonlinear solving.
Instructions
Set up surface-to-surface contact between face pairs for a CalculiX solve and
flip the solver to nonlinear — no new solver (promotes the CCX contact/nonlinear
flags the FEM path already exposes). face_pairs is a list of
{a:{handle, tag|face}, b:{handle, tag|face}} (master, slave) pairs; friction is
the Coulomb coefficient (0 = frictionless); slope optionally sets the penalty
contact stiffness; nonlinear (default True) sets the solver's
GeometricalNonlinearity.
Run fem_run + fem_results after. Gate RELATIVE to a bonded reference on the same mesh: a bonded model is stiffer (less peak displacement) than frictional contact. Returns {contacts:[handles], n_pairs, friction, nonlinear}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Contact | |
| slope | No | ||
| analysis | Yes | ||
| friction | No | ||
| nonlinear | No | ||
| face_pairs | Yes |