Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Contact and friction

Contact keeps surfaces of a model from passing through each other and transmits pressure and Coulomb friction across them. In explicit dynamics it is penalty contact integrated segment to segment over the overlaps of facing element faces; in nonlinear static steps it is mortar contact enforced by an augmented Lagrangian with its exact consistent tangent. Both pass the contact patch test on non-matching meshes. Planar rigid walls stop a set’s nodes in explicit dynamics.

Commandsinteraction.contact.pair, interaction.contact.general, interaction.contact.edit, interaction.contact.delete, interaction.contact.find, interaction.rigid_wall, interaction.rigid_wall.delete
Step procedure"explicit_dynamic" (pairs, general contact, rigid walls), "nonlinear_static" (pairs, general contact)
Solvercrates/explicit (penalty), crates/solver (mortar, augmented Lagrangian); geometry in crates/fem (contact, mortar, dual); CPU, f64
MethodExplicit: mortar segmentation with the penalty at the integration points (Puso & Laursen 2004; Fischer & Wriggers 2005). Static: mortar contact (Puso & Laursen 2004) by augmented Lagrangian (Simo & Laursen 1992; Alart & Curnier 1991)
Verified bycrates/explicit/tests/contact.rs, crates/explicit/tests/self_contact.rs, crates/solver/tests/contact.rs; oracle cases explicit-bars-collision, explicit-contact-patch, explicit-sliding-block-*, bar-rigid-wall-impact, nl-contact-patch*, nl-hertz-cylinder*, nl-friction-sliding-blocks

Synopsis

[
  {"command": "interaction.contact.pair", "params": {
    "name": "press", "main": "plate", "secondary": "punch",
    "friction": {"static": 0.3, "kinetic": 0.2, "decay": 10},
    "penalty_scale": 1, "initial_penetration": "adjust"}},
  {"command": "interaction.contact.general", "params": {"name": "all"}},
  {"command": "interaction.rigid_wall", "params": {
    "step": "Impact", "set": "front", "point": [0, 0, 0], "normal": [1, 0, 0]}}
]

A contact is a model definition, active in every step that takes it. Its surfaces are sets of element faces (element edges in a 2D model), so they survive remeshing like a pressure load.

Parameters

interaction.contact.pair and interaction.contact.general:

FieldValueDefaultMeaning
nametextrequiredUnique; at most 1000 contacts per model.
main, secondaryface setsrequired (pair)Two different surfaces. In nonlinear static steps secondary is the non-mortar side.
surfaceface setevery exterior face of the solids (2D: every exterior edge)General contact: every face against every other face of the surface (self contact).
friction.static0 to 100 (frictionless)Static coefficient μ_s.
friction.kinetic0 to 10the static oneKinetic coefficient μ_k; a different value needs a decay.
friction.decay0 to 10¹⁵ s/m0Decay d of μ = μ_k + (μ_s − μ_k) e^{−d γ̇} with the slip rate γ̇.
penalty_scale10⁻⁶ to 11Factor on the solver’s penalty: explicit, the stiffest that leaves the time increment alone; static, the augmented Lagrangian’s.
initial_penetration"adjust" | "refuse""adjust"Nodes that start inside the other surface. Explicit moves them onto it, strain-free; static takes the overlap out of their gap; both report them. refuse stops the analysis naming the first node, its depth and the face.

interaction.contact.edit replaces a contact with the model’s form: {"name", "surfaces": {"type": "pair", "main", "secondary"} | {"type": "general", "surface"}, "friction", "penalty_scale", "initial_penetration"}. interaction.contact.delete takes {"name"}.

interaction.contact.find:

FieldValueDefaultMeaning
tolerancelengtha tenth of the mean exterior face sizeDistance within which surfaces touch.
createboolfalseAdd two face sets and a contact pair per touching pair of parts, named find-N-main, find-N-secondary and find-N.
friction, penalty_scale, initial_penetrationas aboveas aboveOf the created pairs.

The solid elements are split into connected parts (elements sharing a node belong to one part); a node of one part’s exterior faces within tolerance of an exterior face of another makes the two parts touch there. Each touching pair is reported with the faces of each side that are close to the other. At most 1000 pairs are reported and 2 · 10⁸ point–face checks made.

interaction.rigid_wall (explicit dynamic steps only; the same list as the step’s rigid_walls):

FieldValueDefaultMeaning
stepnamethe model’s only explicit dynamic stepThe step the wall belongs to.
setnode setrequiredThe nodes the wall stops.
point[x, y, z]requiredA point on the plane.
normal[nx, ny, nz], non-zerorequiredToward the side the nodes stay on.
frictionas abovefrictionlessCoulomb friction.

The reply gives the step and the wall’s index; interaction.rigid_wall.delete takes {"step", "index"}.

Theory

Friction law

Coulomb’s law with a coefficient that falls from its static to its kinetic value with the slip rate γ̇ (the exponential decay of Rabinowicz’s observations):

μ = μ_k + (μ_s − μ_k) e^{−d γ̇}

A static step has no slip rate: a node takes the static coefficient while it sticks and the kinetic one once it slips.

Shared geometry

fieldcraft_fem::contact gives the closest point of a triangle (exact region tests) or of a bilinear quadrilateral (projected Newton with the exact Hessian, at most 30 iterations) to a point, with the signed gap along the face’s normal and the lateral offset, and a bucket grid of face boxes whose cell is twice the mean box, grown until the grid (at most 2²⁴ cells) and its entries (2²⁷) fit, queried by point or by box with the candidates in face order (Benson & Hallquist 1990).

Explicit dynamics: penalty, segment to segment

Kinematics. Each secondary face and each main face facing it (normals within 84° of opposite, a dot product below −0.1) are projected onto the secondary face’s plane, split into triangles and clipped against each other (Sutherland–Hodgman). On each overlap triangle a three-point rule takes the gap g = (x_s − x_m)·n_m between the faces’ closest points. Where g < 0, no deeper than half the main face’s element (the smallest of its undeformed thickness, its current thickness, volume over face area, and its thinnest current part under the face), a penalty pressure p = ε(−g) acts on the secondary face’s nodes with weights N_i^s along n_m and on the main face’s nodes with −N_j^m. For a uniform pressure across flat faces both meshes receive exactly the consistent nodal forces ∫ p N dA, so the contact patch test passes on non-matching meshes; node-to-segment contact fails it (Taylor & Papadopoulos 1991). Every contact runs both ways at half the penalty each: a pair with each surface as the secondary in turn, single-surface contact with every face against every other face that shares no node with it.

Self contact is general contact on one body’s faces, all its exterior faces or a set of them (single-surface contact: Benson & Hallquist 1990; Belytschko et al. 2014, ch. 10). Nothing in the search or the integration asks which body a face belongs to, so a body that folds onto itself meets itself as two bodies meet, with the same penalty, friction and energy account. Three rules keep a body from touching itself where it only bends or squeezes:

  • a face never meets a face that shares a node with it: its neighbours, however sharply the surface folds, are left out;
  • a face never meets a face of its own element (a hexahedron’s opposite faces share no node);
  • the depth limit is half the main face’s element, undeformed and as it is now, and as thin as it is now where it is thinnest (the nodes of the element that are not on the face, measured behind the face along its normal): a layer squeezed through its thickness brings the far side of its elements nearer than half an undeformed element, and an unevenly squeezed one nearer than half the average, but never nearer than the element’s thinnest part, so it is not taken for a surface its near side has passed.

Each normal force and its reaction act along the main face’s normal through both points, so the contact keeps linear momentum, and angular momentum where the point’s foot on the main face is not clamped to an edge (lateral offset zero). Friction acts at a node and, reversed, at the point of the face under it: a couple whose arm is the penetration plus that lateral offset, so with friction and a zero offset the angular momentum changes by at most δ_max μ ∫ F_n dt.

Penalty. Per area, from the masses and the stable increment Δt:

ε = s γ min_i (m_i / A_i) / Δt²,   γ = 0.3

over the contact’s nodes, m_i the lumped mass and A_i = κ_i max_d Σ_f a_f |n_f,d| the area that bounds node i’s contact stiffness (a_f its share of face f, κ_i = max_f Σ_d |n_f,d| ∈ [1, √3]). By Gershgorin’s theorem the contact adds at most 2 s γ / Δt² to the square of any frequency (Weyl’s inequality adds it to the elements’). With the default increment scale 0.9 (ω Δt ≤ 1.8), 1.8² + 2γ ≤ 4 keeps the step under the stability limit ω Δt = 2: contact never shortens the increment, and s ≤ 1 only softens it. The pressure stiffness is about a fifth of the smallest element’s M/h (M the constrained modulus), stiffer than the element-based penalty f K A²/V with f = 0.1 (Hallquist, Goudreau & Benson 1985), and a uniform ε keeps a uniform pressure uniform.

Friction at the secondary nodes by a regularised return map (Wriggers 2006, §5.2 and §10.3; Simo & Laursen 1992) against the main face that pressed each node most over the increment:

t* = P t_n − k_t Δu_T,   k_t = ε A_i / 2
stick: |t*| ≤ μ f_n → t = t*
slip:  t = μ f_n t*/|t*|, dissipating μ f_n (|t*| − μ f_n)/k_t

f_n is the node’s share of the pressure, Δu_T its tangential motion relative to the closest point of the main face, and the reaction goes to the main face’s nodes with −N_j. The slip rate is γ̇ = |Δu_T|/Δt. A node that leaves contact forgets its tangential force.

Rigid walls are kinematic (Hughes et al. 1976): a node that would cross its wall in the increment has its normal velocity set so it lands on it; friction is a tangential impulse at most μ times the normal one (the tangential velocity stops, or loses μ Δv_n when it slides).

Initial penetration. Before the analysis each secondary node is projected onto the main surface; a node behind a face it lies over (within a fiftieth of the face’s size), within the depth limit and with its own faces facing it, is moved onto it before the elements are built, or the analysis is refused, as the contact says.

Energy. Contact forces enter the equations of motion like external forces; their work (the penalty energy stored plus what friction dissipates) is integrated by the trapezoidal rule into the energy balance, and friction dissipation in contact and on rigid walls is reported apart.

Nonlinear static: mortar, augmented Lagrangian

Discretisation (fieldcraft_solver::contact): mortar contact, one pass, the pair’s secondary surface the non-mortar side. Each secondary node A carries a pressure p_A and the weighted gap

g̃_A = Σ_segments ∫ Φ_A (x_m − x_s) · n dA,   ĝ_A = g̃_A / A_A,   A_A = ∫ Φ_A dA

over the overlaps of its faces with the main faces facing them, Φ_A the secondary face’s own shape functions. The pressure field is interpolated like the displacements, so a uniform pressure crosses a non-matching interface as the consistent nodal forces of both meshes (McDevitt & Laursen 2000).

Segmentation (fieldcraft_fem::mortar). Both faces are projected along the secondary face’s unit normal onto its plane, the main polygon is clipped by the secondary one (Sutherland–Hodgman; a projected quadrilateral that is not convex goes as its two triangles), and the overlap’s fan of triangles is integrated with Radon’s seven-point degree-5 rule. At each point both faces’ coordinates come from inverting their projected maps (linear, or bilinear by the root of its quadratic), so the main point lies on the main surface along the normal, warped or not. A vertex within 10⁻⁸ of a clip edge’s length of its line is on it and never cut. The kernel is written over a generic scalar: f64 for values, forward-mode Dual for gradients and Hyper (gradient and packed Hessian in the 24 corner coordinates) for the consistent tangent, the exact linearisation of the segmentation, normal and projection (fieldcraft_fem::dual).

Quadratic faces (tri6, quad8: tet10, hex20; Puso, Laursen & Solberg 2008). Each face is segmented as four flat facets through its nodes (a tri6’s four sub-triangles, a quad8’s four quadrilaterals round its centre), each facet pair projected, clipped and integrated as linear faces are, with the quadratic shape functions at the facets’ points and the points interpolated quadratically from the nodes. On the secondary side the multiplier basis is transformed, Φ_c = N_c + α (N_m + N_m’) at a corner and Φ_m = (1 − 2α) N_m at a mid-side node: the standard functions integrate to 0 at a tri6’s corners and to −A/12 at a quad8’s, which leaves those nodes no area. α is the smallest that makes Φ non-negative over the face, 1/4 on a tri6 (Φ_c = L_c²) and 3/8 on a quad8, so every node’s weighted gap is a positive average of the gap; Φ remains a partition of unity spanning the same space, and the patch test holds. The automatic differentiation runs per facet pair over the facets’ 24 vertex coordinates and is chained to the nodes exactly. A node’s reported pressure is its nodal force in the transformed basis over its area.

2D models (plane strain, plane stress, axisymmetric). Each edge is oriented with its normal (t_y, −t_x) out of its element; the main edge is projected along the secondary edge’s normal onto its line, which maps main points to the secondary parameter linearly, so the overlap is an interval integrated with three-point Gauss–Legendre (exact for the degree-3 Φ_a N_b r of the axisymmetric patch test). The out-of-plane measure (the thickness, or 2πr at the secondary point) is in the weights, so A_A, g̃_A and the forces are totals over the slab or the ring, as the 2D elements’ are (Yang, Laursen & Meng 2005). Points keep z = 0 and the same 24 variables as faces, and the tangent blocks keep their in-plane rows. The element’s thickness under an edge is its area over the edge’s length.

General contact uses one face list, a set’s or every exterior face of the solids, as both sides: each face against every other one facing it that shares no node with its element and that it does not reach through more than half an element (the far side of a thin wall), paired both ways, so the folds of one body press on each other symmetrically.

Enforcement. With the multipliers λ_A fixed, p_A = ⟨λ_A − ε_A ĝ_A⟩ (⟨x⟩ = max(x, 0)), the derivative of

Π = Σ_A A_A/(2 ε_A) ⟨λ_A − ε_A ĝ_A⟩²

giving internal forces −p_A ∂g̃_A/∂x and the tangent

K_c = Σ_closed (ε_A/A_A) ∂g̃_A ⊗ ∂g̃_A − p_A ∂²g̃_A

(the second term the contact’s geometric stiffness). Once Newton converges an increment, λ_A ← p_A (Uzawa) and the increment is solved again from its solution, until every closed node’s gap is within 10⁻⁵ of the thickness of the element under it and no open node keeps a multiplier, at most 25 augmentations (then a warning). The penalty per length is

ε_A = s · 10 · 3Ḡ / h

Ḡ the mean shear modulus, h = V/A of the element under the face, s the penalty_scale: about ten times the local element stiffness; 3Ḡ rather than the constrained modulus keeps it so for nearly incompressible rubber.

Small and finite sliding. Without nonlinear geometry the face pairs (those within a main element’s thickness) and their mortar integrals D_ai = ∫ Φ_a N_i, M_aj = ∫ Φ_a N_j are fixed in the reference configuration, so g̃_a = n · (Σ M_aj x_j − Σ D_ai x_i) is linear. With nonlinear geometry the pairs are searched (a bucket grid of the main faces’ boxes grown by their depth limit) and integrated on the current configuration at every evaluation; a pair deeper than half the main element’s thickness has passed through and is left out.

Friction at the closed secondary nodes by a return map (Wriggers 2006, §5.2; Simo & Laursen 1992). The node’s weighted tangential slip since the last converged increment is

w_A = B_A Δx,   B_A = [∫ Φ_A N_i P, −∫ Φ_A N_j P],   P = I − n n,   ĝ_T = w_A / A_A

(the rate form of the mortar slip, McDevitt & Laursen 2000). The trial traction t* = P t_n − ε_A ĝ_T sticks when |t*| ≤ μ p_A and otherwise returns to the cone, t = μ p_A t*/|t*|, with the static coefficient for a node that stuck in the last increment and the kinetic one for one that slipped. The traction does the virtual work t · B_A δx, so a slipping interface carries exactly μ times its normal force. The tangent is symmetrised: it keeps (ε_A/A_A) Bᵀ B in stick and (ε_A μ p_A/(A_A |t*|)) Bᵀ (I − t̂ t̂) B in slip and leaves out the coupling to the pressure (μ t̂ ⊗ ∂p_A/∂x) and the change of B with the geometry. The residual is exact, so only the rate of convergence suffers while nodes slip. Tractions and slip states are committed when an increment converges.

Initial overclosure. Nodes whose gap starts negative are reported; adjust takes the overlap out of their weighted gap (an offset: strain-free, the nodes are not moved), refuse stops naming the node and the depth.

Algorithm

Explicit dynamics, every increment (explicit dynamics):

  1. Put each surface’s faces in a bucket grid with their boxes grown by their depth limit; each secondary face takes the main faces in the cells its box overlaps. Faces of eroded elements leave the contact.
  2. Integrate every facing pair’s overlap with the penalty from the current stable increment, both ways at half the penalty; apply friction at the secondary nodes.
  3. Faces are integrated in parallel, each on its own, and their forces added face by face in a fixed order: the result does not depend on the thread count.
  4. After the velocity update, rigid walls correct the velocities of crossing nodes, with friction.

Nonlinear static, inside each Newton iteration (nonlinear static):

  1. Evaluate gaps, pressures and forces; the max() decides which nodes are closed at every evaluation (semismooth Newton). The tangent’s pattern takes the blocks of the closed nodes’ face pairs on top of the mesh’s.
  2. With contact, the force scale of the convergence test is that of the converged states, the loads and the current state, not the largest force of every trial.
  3. An increment whose active set alternates between two states three times is cut back (chattering); for the rest of the step, nodes open by less than 10⁻³ of their element’s thickness keep their penalty in the tangent (their pressure, and the residual, stay exact).
  4. After convergence, update the multipliers and solve the increment again (augmentations), measured against the increment’s start and its first correction, until the gaps are within tolerance or 25 augmentations. The next increment’s size follows the increment’s own iterations.
  5. Commit tractions and slip states. Results do not depend on the thread count.

Output

Explicit dynamics (solve.explicit reply, contacts): per contact the nodes adjusted at the start (each reported in a warning with the deepest), the peak normal force and its time, the first and last time it carried a force, the deepest penetration and the friction dissipated. The histories (solve.history) give the normal force across each contact per sample; the energy account carries contact (penalty energy plus friction) and friction (in contact and on rigid walls).

Nonlinear static: per secondary node the pressure (its normal contact force over the area it carries, ∫ Φ_A over the overlaps, which is smoother than the multipliers at the contact’s edge), the multiplier, the gap ĝ, the status (open, closed; with friction stick or slip), and with friction the shear traction and the slip over the last increment; per contact the force on the secondary surface, the normal force Σ p_A ∫Φ_A, the deepest penetration and the augmentations. solve.nonlinear summarises each contact (normal_force, force, max_pressure, closed_nodes, slipping_nodes, penetration, augmentations), solve.probe gives a secondary node’s contact entries, and the results display draws contact_pressure, contact_gap, contact_status, contact_shear and contact_slip.

Decks. Abaqus writes *SURFACE INTERACTION with *FRICTION (exponential decay), *CONTACT PAIR and general *CONTACT; LS-DYNA writes *CONTACT_AUTOMATIC_SURFACE_TO_SURFACE and _SINGLE_SURFACE (fs, fd, dc, sfsa, sfsb). Nastran refuses contact by name.

A worked loading–unloading example is in contact loading and unloading.

Worked example

A steel roller of radius 20 mm pressed onto a steel plate in plane strain: Hertz line contact by mortar contact of the roller’s round edge on the plate’s flat edge, enforced by the augmented Lagrangian in a nonlinear static step. The two meshes do not match across the contact.

Geometryhalf model, symmetric about x = 0: the roller’s lower part, 4 mm wide and 6 mm high with its bottom edge the R20 arc; the plate 10 × 10 mm; unit thickness
Meshroller 20 × 12 quad4 graded towards the contact (bias 8, 8); plate 24 × 16 quad4 graded towards the contact (bias 10, 0.1); merge 0 keeps the bodies apart
Materialsteel: E = 210 000 MPa, ν = 0.3; plane strain sections
Contactpair Line: main flat (plate), secondary round (roller), frictionless
Boundary conditionsx held on the symmetry edges; y held on the plate’s base; a soft spring (0.01 N/mm per node) holds the roller’s top in y until the contact closes
Loadpressure 362.4915 MPa on the roller’s top edge: 1 449.97 N on the half, P = 2 899.93 N/mm on the whole roller, chosen for b = 0.8 mm
Stepnonlinear static, nonlinear_geometry false, max_iterations 60
Unitsmm, t, s, N, MPa
[
  {"command": "model.units", "params": {"system": "mm-t-s-N-MPa"}},
  {"command": "mesh.block", "params": {"body": "Roller", "kind": "quad4",
    "corners": [[0, 0, 0], [4.0, 0.40408205773457695, 0], [4.0, 6.0, 0], [0, 6.0, 0]],
    "divisions": [20, 12], "bias": [8, 8],
    "edges": [{"corners": [1, 2], "arc": {"center": [0, 20.0, 0]}, "name": "round"},
              {"corners": [3, 4], "name": "top"}, {"corners": [4, 1], "name": "sym"}]}},
  {"command": "mesh.block", "params": {"body": "Plate", "kind": "quad4",
    "corners": [[0, -10, 0], [10, -10, 0], [10, 0, 0], [0, 0, 0]],
    "divisions": [24, 16], "bias": [10, 0.1],
    "edges": [{"corners": [1, 2], "name": "base"}, {"corners": [3, 4], "name": "flat"}, {"corners": [4, 1], "name": "sym"}],
    "merge": 0}},
  {"command": "model.set.create", "params": {"name": "roller", "geometry": [{"body": "Roller", "face": "area"}]}},
  {"command": "model.set.create", "params": {"name": "plate", "geometry": [{"body": "Plate", "face": "area"}]}},
  {"command": "model.set.create", "params": {"name": "round", "geometry": [{"body": "Roller", "edge": "round"}]}},
  {"command": "model.set.create", "params": {"name": "flat", "geometry": [{"body": "Plate", "edge": "flat"}]}},
  {"command": "model.set.create", "params": {"name": "top", "geometry": [{"body": "Roller", "edge": "top"}]}},
  {"command": "model.set.create", "params": {"name": "base", "geometry": [{"body": "Plate", "edge": "base"}]}},
  {"command": "model.set.create", "params": {"name": "sym", "geometry": [{"body": "Roller", "edge": "sym"}, {"body": "Plate", "edge": "sym"}]}},
  {"command": "model.material.create", "params": {"name": "Steel", "elastic": {"type": "isotropic", "young": 210000, "poisson": 0.3}}},
  {"command": "model.section.create", "params": {"name": "Roller", "set": "roller", "material": "Steel", "kind": {"type": "plane_strain", "thickness": 1}}},
  {"command": "model.section.create", "params": {"name": "Plate", "set": "plate", "material": "Steel", "kind": {"type": "plane_strain", "thickness": 1}}},
  {"command": "interaction.contact.pair", "params": {"name": "Line", "main": "flat", "secondary": "round"}},
  {"command": "model.boundary_condition.create", "params": {"name": "Sym", "type": "displacement", "target": {"set": "sym"}, "values": [0, null, null, null, null, null]}},
  {"command": "model.boundary_condition.create", "params": {"name": "Base", "type": "displacement", "target": {"set": "base"}, "values": [null, 0, null, null, null, null]}},
  {"command": "model.spring.create", "params": {"name": "Hold", "type": "spring", "first": {"set": "top"}, "direction": {"dof": 2}, "stiffness": 0.01}},
  {"command": "model.load.create", "params": {"name": "Press", "type": "pressure", "set": "top", "magnitude": 362.4915}},
  {"command": "model.step.create", "params": {"name": "Press",
    "procedure": {"type": "nonlinear_static", "nonlinear_geometry": false, "max_iterations": 60},
    "boundary_conditions": ["Sym", "Base"], "loads": ["Press"]}},
  {"command": "solve.nonlinear", "params": {"step": "Press"}},
  {"command": "solve.probe", "params": {"step": "Press", "nodes": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 64]}},
  {"command": "results.contour", "params": {"step": "Press", "field": "von_mises"}},
  {"command": "results.deformed", "params": {"step": "Press", "show": true, "scale": 1}}
]

Hertz’s line contact of two bodies of one material on a flat (Johnson 1985, §4.3): 1/E* = 2 (1 − ν²)/E, b = √(4 P R / (π E*)), p₀ = 2 P / (π b), p(x) = p₀ √(1 − x²/b²). Results from the solve.nonlinear reply (seven increments, 46 Newton iterations, 1 341 equations, 0.2 s, Apple M4 Max, CPU):

QuantityFieldCraftReferenceDifference
contacts[0].max_pressure2 338.8 MPa (node 2, x = 0.059 mm)p₀ = 2 307.7 MPa+1.35 %
contacts[0].normal_force1 450.17 Napplied 1 449.97 N+0.014 %
closed_nodes9 (x ≤ 0.711 mm)b = 0.8 mm: the 9 roller nodes with x < b—
penetration3.8 × 10⁻⁷ mm0—
augmentations18——
slipping_nodes0frictionless—
max_von_mises1 393.9 MPa = 0.60 p₀ (node 64: on the axis, 0.53 mm inside the roller)——

The pressure at the roller’s edge nodes (solve.probe, contact[0].pressure; x from the graded mesh of the arc):

Node1234567891011
x (mm)00.0590.1240.1980.2790.3700.4720.5850.7110.8521.010
FieldCraft (MPa)2 287.72 338.82 281.02 236.62 185.02 054.61 819.71 690.7782.8112.70
Hertz (MPa)2 307.72 301.52 279.62 236.32 162.72 045.81 863.91 574.21 055.900

What to look at. The stress is largest inside both bodies, below the contact on the axis of symmetry, the subsurface maximum of Hertz contact; the contact edge carries little stress. The nodal pressure follows the semi-ellipse within 1.7 % over the inner half of the contact width and falls to zero between 0.71 and 1.01 mm, around b = 0.8 mm; at the edge each node’s pressure averages the distribution over the elements it carries, which flattens the steep fall there. Contact carries the whole load: the normal force equals the applied force to 0.014 %.

Verification

Explicit dynamics, oracle cases (results):

CaseReferenceQuantityErrorTolerance
explicit-bars-collisiontheory: 1D impact of equal barslast contact against 2L/c; peak interface force against ρcAv₀/2; struck bar’s far-end velocity; kinetic energy kept; contact energy after separation1.21 %; 2.94 %; 3.4 %; −0.0047 %; −7.7·10⁻⁵2 %; 4 %; 5 %; 1 %; ± 10⁻³
explicit-contact-patchtheory: contact patch test on non-matching meshesσ_zz ratios across the interface; interface force over σ_zz A; σ_xx/σ_zz≤ 0.056 %; 0.26 %; −3.6·10⁻⁴0.5 %; 1 %; ± 0.005
explicit-sliding-block-walltheory: v₀²/(2μg) on a rigid walldistance; friction dissipation over ½mv₀²−0.0053 %; 0.12 %1 %
explicit-sliding-block-contacttheory: decaying friction on a deformable plate, ∫ v dv / (g μ(v))distance−0.17 %1 %
bar-rigid-wall-impacttheory: contact for 2L/c, rebound at v₀end displacements; kinetic energy≤ 0.51 %; −0.54 %3 %; 2 %

Tests in crates/explicit/tests/contact.rs: colliding bars as a pair and as general contact (contact for 2L/c, interface force ρcAv₀/2, velocities exchanged, kinetic energy kept to 0.01 %, the contact energy back to 10⁻⁴ of it); a free body untouched by general contact on all its faces; a block sliding to a stop under constant and decaying friction on a rigid wall and on a deformable plate (distance and time to 0.1–0.5 %); the contact patch test (σ_zz uniform to 0.1 %); two spheres colliding against Hertz on a graded quarter-sphere mesh of 27 648 hex8 (spheres_collide_as_hertz_says: peak force +2.3 %, duration −0.4 %); initial penetrations adjusted or refused, the face cap, tetrahedra; bit-for-bit results on one and four threads.

Self contact, in crates/explicit/tests/self_contact.rs:

TestReferenceResultTolerance
hinged_bars_collide_like_two_bodies: two bars joined by a soft hinge cell over their joint (one body, general contact on all its faces) against the same bars unjoined (two bodies, a pair)the two-body run; wave theory (Graff 1991): contact 2L/c, force ρcAv₀/2peak force −0.022 %, contact time 0.000 %, rebound velocities within 1.6·10⁻³ v₀ of the two-body run; contact 1.2 % over 2L/c, peak force +0.3 % over ρcAv₀/2, velocities exchanged within 4·10⁻³ v₀; momentum to 2·10⁻¹⁴; balance 5·10⁻⁵1 %; 1 %; 0.005 v₀; 2 % (time), 5 % (force), 0.03 v₀; 10⁻¹⁰; 0.005
a_hairpin_closing_on_itself_keeps_momentum_and_energy: a U-shaped body whose arms are thrown at each other, one sliding along the otherconservation of linear and angular momentum; the friction couple’s bound δ_max μ ∫F_n dtlinear momentum to 5·10⁻¹⁵; angular momentum to 1.6·10⁻⁸ of itself frictionless, and with μ = 0.3 changed by 8.5·10⁻⁷ against the bound 1.7·10⁻⁵; balance 1.6·10⁻⁴; the same numbers on one and four threads; the arms overlap by at most 2.4·10⁻³ (the same arms without contact: 0.58)10⁻¹⁰; 10⁻⁶; the bound; 0.005; bit for bit; overlap < 0.01 (a tenth of an arm’s thickness)
a_ring_crushed_flat_carries_load_on_its_inner_surface (heavy): half a neo-Hookean ring (wall a tenth of the radius, two elements through it, plane strain) crushed between two punches from its height of 2.1 radii to 0.18, a little under its two wallswithout contact the walls pass; with it the inner surfaces carry the punch’s load; the penalty law p = ε(−g)without: the walls cross by 0.027 (27 % of the wall); with: no deeper than 0.0087, the contact carrying 99.6 % (inner surface) and 98 % (every face) of the punch’s force, 18 times the force bending alone takes; the force ε W ∫ d dx from the measured overlap, with the increments of the last samples, 7.1 to 11.1 around the reported 7.69crossing > 0.2 t; < 0.1 t; 3 %; > 10 times; within the bracket ± 5 %
a_bending_cantilever_feels_no_self_contact, an_ovalising_tube_feels_no_self_contact, a_squeezed_one_element_layer_feels_no_self_contact, a_squeezed_two_element_layer_feels_no_self_contact, a_tapered_two_element_stack_feels_no_self_contact, a_tapered_three_element_stack_feels_no_self_contact: a cantilever flung to a tip deflection of 0.78 of its length, a thick tube with a small bore squeezed oval by its own motion, a layer of foam one element thick squeezed by 60 % and two elements thick by 80 %, and stacks of two and three elements 0.001 thick over three corners and 1.0 over the fourththe same run without contactno contact force, the same frames bit for bit (before the depth limit followed the current element, the squeezed layers took false contact forces of 193 and 1 216 N, and before it followed the thinnest part the tapered stacks 52 and 43 N)exact
self_contact_cost_scales_with_the_exterior_faces (heavy): a slab n × n × 2 tumbling freely, n = 8 to 64—the contact’s time per increment and exterior face 13, 13, 6.4 and 5.1 µs for 192, 640, 2 304 and 8 704 faces (debug build; a guide to how the cost scales, not to speed): linear in the faces, the larger runs spread over more threads—

The fix that came with these tests (the depth limit also halving the current thickness at its thinnest, and a face never meeting a face of its own element) accepts no point that was refused before, and refuses a point that was accepted only where it lies deeper than half the current thickness of a squeezed element. Everywhere else nothing changes: the 14 solves of the contact tests that were there before the fix and are not marked heavy (crates/explicit/tests/contact.rs) give the same results bit for bit (compared by a digest of everything each run reports); the heavy spheres_collide_as_hertz_says was not compared that way and passes its own assertions.

Nonlinear static, oracle cases:

CaseReferenceQuantityErrorTolerance
nl-contact-patch (hex8), -plane-strain, -axisymmetric (quad4)theory: uniform σ, pressure equal to it, no lateral stressstress ratios, pressure, integrated pressure over reactionsmall sliding < 10⁻⁶; finite sliding ≤ 3.3·10⁻⁵10⁻⁶ rel.; 0.02 %
nl-contact-patch-quadratic (hex20)theory: uniform σ, pressure equal to it at corners and mid-side nodes, no lateral stressstress ratios, pressure, integrated pressure over reactionsmall sliding < 10⁻⁶; finite sliding ≤ 2.1·10⁻⁵10⁻⁶ rel.; 0.02 %
nl-hertz-cylinder, -plane-straintheory: Hertz line contactpeak pressure p₀; contact force; pressure at x = 0.296 and 0.367; σ_yy at depth 0.4710.25 %; 0.022 %; −2.9 %, 6.1 %; 1.9 %2 %; 0.2 %; 5 %, 10 %; 4 %
nl-hertz-cylinder-hex20 / -tet10 (curved quadratic faces, half the divisions)theory: Hertz line contactpeak pressure p₀; contact force; gap at x = 0.42 (inside b); pressure and separation at x = 0.72 (outside b)0.14 % / 1.7 %; 0.024 % / 0.023 %; < 10⁻⁷; 0; 4.5 % / 21 %2 % / 3 %; 0.2 %; 10⁻⁵ abs.; 1 abs.; 10 % / 25 %
nl-friction-sliding-blockstheory: Coulomb sliptangential over normal force (μ = 0.2); balance with the reaction; slipping nodes−10⁻⁶; < 10⁻⁶; 9 of 90.1 %; 10⁻⁶ rel.; exact

Tests in crates/solver/tests/contact.rs: the contact patch test on non-matching hex8, tet4 and (plane strain, axisymmetric) quad4 meshes, to 10⁻⁹ with small sliding and 10⁻⁴ with finite sliding, where the gaps the augmentation leaves enter through their geometric terms, and on hex20 and tet10 meshes against each other and against hex8 and tet4 ones (10⁻⁹ with small sliding, 2 × 10⁻⁴ with finite sliding, heavy); the chain rule of the quadratic pairs’ gradient and Hessian against central differences on curved faces; Hertz’s line contact (the half-width bracketed), and on hex20 and tet10 with their mid-side nodes on the circle (curved faces: peak pressure within 0.9 % and 4.2 %, the nodal pressures inside 0.6 b within 15 % of the ellipse as corners and mid-side nodes alternate, the half-width bracketed; heavy); Hertz’s sphere on a flat, a quarter model (peak pressure within 4 %, contact radius bracketed; heavy); Newton’s quadratic rate near the solution with finite sliding; Coulomb friction between pressed blocks (stick below the cone with the forces of glued blocks; slip carrying μ N to 0.1 % with small sliding and 3 % with finite sliding, and μ_k N once slipping); initial overclosure adjusted and refused; bit-for-bit results on one and four threads; the refusals. In 2D, Hertz’s line contact on quad4 edges matches the hex8 model to 10⁻⁵, and a hybrid Mooney–Rivlin C-ring closing on itself in plane strain moves as the one-layer solid ring with z held, node for node to 10⁻⁵. Under general (self) contact, a rubber ring’s two ends meet and press on each other without passing through, keeping the model’s mirror symmetry; a quarter rubber bellows squeezed axially by 0.8 folds onto itself (heavy suite).

Limitations

  • Nonlinear static contact takes linear and quadratic faces (tri3, quad4, tri6, quad8: tet4, tet10, wedge6, hex8, hex20) and in 2D the linear edges of tri3 and quad4; quadratic edges are refused by name, as is a mid-side node shared by a tri6 and a quad8 face of a secondary surface (their multiplier bases differ there).
  • On quadratic faces the reported nodal pressures alternate between corners and mid-side nodes where the pressure varies (by about a tenth in the Hertz test on hex20 and tet10); the forces are consistent, a node’s pressure is its force over its area in the transformed basis.
  • Arc-length steps refuse contact. The linear implicit analyses (static, frequency, buckling, heat) refuse contact by name.
  • The static friction tangent is symmetrised: convergence slows while nodes slip. A static step has no slip rate, so the exponential decay is not used there.
  • Explicit contact: faces exposed by eroded elements do not join the contact (eroding contact is not implemented).
  • Explicit self contact is face against face: two edges that cross without either touching the inside of a face (edge-to-edge contact) are not caught, and a node that slides off the edge of a surface into a sharp re-entrant corner may be caught late. It acts on hex8 and tet4 faces; explicit dynamics has no shells or beams yet.
  • One penalty per contact, from the lightest node per area of its whole surface: general contact on every exterior face of a model that joins very different materials or element sizes gets the penalty its lightest part allows, and its stiff parts sink further into each other. Name separate surfaces for such parts.
  • The depth limit follows the current element, at its thinnest: where the pressure is high enough that the penalty’s penetration p/ε passes half of the thinnest part of an element crushed under the face (for a tapered element, its thinnest corner), those points let go. The thickness is how far behind the face each of the element’s other nodes lies, taken at the closest point of the face’s own surface, so a warped face is measured as it is; that the far side of the layer is at least that far away is exact for flat layers and not proven for extreme warp. max_penetration reports only the points the depth limit accepts: a point that has let go is not counted, so it can stay small, or zero, while surfaces pass through each other, and it never shows a penetration deeper than the limit. A smaller penalty_scale makes the penetration larger. Under a pressure that drives p/ε past half a crushed element’s current thickness, the deepest points release and the run gives no warning: the remedy is a larger penalty_scale (a stiffer penalty) or a finer mesh, so that the element is not crushed that far.
  • Rigid walls are fixed planes in explicit dynamic steps only.
  • interaction.contact.find looks at solid elements only.
  • Caps: 1000 contacts per model; 10⁷ contact faces in explicit (max_contact_faces), 2 · 10⁶ in nonlinear static steps.

Implementation

  • crates/model/src/contact.rs: Contact, ContactSurfaces, Friction, InitialPenetration, validation and caps.
  • crates/explicit/src/contact.rs: penalty contact, search, friction, initial adjustment (GAMMA, FACING, DEPTH_FRACTION).
  • crates/explicit/src/integrate.rs: rigid walls (constrain, wall_friction).
  • crates/solver/src/contact.rs: mortar contact, augmented Lagrangian, friction, active set (PENALTY_FACTOR, GAP_TOLERANCE, MAX_AUGMENTATIONS, CHATTER_LIMIT, ENGAGED_BAND).
  • crates/fem/src/mortar.rs: segmentation and integration; crates/fem/src/dual.rs: Dual, Hyper; crates/fem/src/contact.rs: closest point, bucket grid.
  • crates/engine/src/cmd/contact.rs: the interaction.contact.* and interaction.rigid_wall* commands, find.

References

  • M. A. Puso, T. A. Laursen. A mortar segment-to-segment contact method for large deformation solid mechanics. CMAME 193:601–629, 2004.
  • M. A. Puso, T. A. Laursen, J. Solberg. A segment-to-segment mortar contact method for quadratic elements and large deformations. CMAME 197:555–566, 2008.
  • K. A. Fischer, P. Wriggers. Frictionless 2D contact formulations for finite deformations based on the mortar method. Comput. Mech. 36:226–244, 2005.
  • T. W. McDevitt, T. A. Laursen. A mortar-finite element formulation for frictional contact problems. IJNME 48:1525–1547, 2000.
  • J. C. Simo, T. A. Laursen. An augmented Lagrangian treatment of contact problems involving friction. Comput. Struct. 42(1):97–116, 1992.
  • P. Alart, A. Curnier. A mixed formulation for frictional contact problems prone to Newton like solution methods. CMAME 92:353–375, 1991.
  • B. Yang, T. A. Laursen, X. Meng. IJNME 62:1183–1225, 2005 (2D mortar contact).
  • P. Wriggers. Computational Contact Mechanics, 2nd ed., Springer 2006.
  • R. L. Taylor, P. Papadopoulos. On a patch test for contact problems in two dimensions, 1991.
  • D. J. Benson, J. O. Hallquist. A single surface contact algorithm for the post-buckling analysis of shell structures. CMAME 78:141–163, 1990.
  • T. Belytschko, W. K. Liu, B. Moran, K. I. Elkhodary. Nonlinear Finite Elements for Continua and Structures, 2nd ed. Wiley, 2014: ch. 10 (contact-impact).
  • K. F. Graff. Wave Motion in Elastic Solids. Dover, 1991: §2.1–2.3 (colliding bars).
  • J. O. Hallquist, G. L. Goudreau, D. J. Benson. Sliding interfaces with contact-impact in large-scale Lagrangian computations. CMAME 51:107–137, 1985.
  • T. J. R. Hughes, R. L. Taylor, J. L. Sackman, A. Curnier, W. Kanoknukulchai. A finite element method for a class of contact-impact problems. CMAME 8(3):249–276, 1976.
  • H. Hertz. J. reine angew. Math. 92:156–171, 1882; K. L. Johnson. Contact Mechanics, Cambridge 1985.