forked from 1b-agent/fieldcraft-upstream
explicit: deformable contact and friction, verified by bars, sliding blocks, the patch test and Hertz
Segment-to-segment penalty contact between element faces: each secondary face and each main face facing it are projected onto the secondary face's plane, split into triangles, clipped (Sutherland–Hodgman) and integrated with a three-point rule per sub-triangle (Puso–Laursen segmentation, the penalty at the integration points as Fischer–Wriggers), so a uniform pressure gives the consistent nodal forces on both meshes and the contact patch test passes on non-matching meshes. Every contact runs both ways at half the penalty: pairs with each surface as the secondary, general and self contact face against face. A bucket grid of face boxes every increment, faces integrated in parallel and their forces added in face order: the same numbers on any thread count. The penalty per area ε = s γ min(m/A)/Δt² comes from the lumped masses, each node's directional area and the stable increment, bounded by Gershgorin's row sums so contact never shortens the increment. Coulomb friction with exponential decay by a regularised return map at the secondary nodes; rigid walls take Coulomb impulses. Contact work and friction dissipation join the energy balance; each contact reports its peak force, first and last contact, deepest penetration, friction and the nodes adjusted at the start (initial penetrations adjusted strain-free or refused with the node, face and depth); a cap on contact faces. Verified (crates/explicit/tests/contact.rs, tests/oracle/explicit-*): colliding bars (2L/c +1.2%, ρcAv₀/2, KE kept to 0.005%, contact energy back to 8e-5 of it), blocks sliding to a stop on a rigid wall and on a plate under constant and decaying friction (0.005–0.2%), the patch test (σ_zz uniform to 0.06%), two spheres colliding against Hertz (peak +2.3%, duration −0.4%; the oracle case waits for a graded sphere mesher), a free body untouched by general contact, determinism across threads. Oracle measures gain `over` (ratios). Existing fixtures do not move. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NmAttHhUZTokgPeEJia8sm
This commit is contained in:
1 parent
ecf947c090
commit
a30d0b5c5b
37 files changed
+2459
-55
No files matched your search
+14
-2
@@ -255,7 +255,7 @@ number their degrees of freedom with `fieldcraft_fem::DofLayout` (docs/fem.md).
|
||||
increment. Other element kinds and formulations, couplings, reference points, rotary inertia,
|
||||
rotational springs and moments return "not supported yet". Masses are row-sum lumped. A zero-valued boundary condition holds a degree of freedom; a
|
||||
displacement value is reached at constant velocity over the step. Loads act in full from the
|
||||
start. The step lists initial velocities and fixed frictionless rigid planes by set.
|
||||
start. The step lists initial velocities and fixed rigid planes (with friction) by set.
|
||||
2. **Time step.** Each element's highest frequency is bounded in closed form (exact for a cube);
|
||||
the increment is the step's scale (0.9 by default) times the smallest element increment with
|
||||
Wilkins' bulk-viscosity correction, recomputed every increment. The ten controlling elements
|
||||
@@ -280,6 +280,15 @@ number their degrees of freedom with `fieldcraft_fem::DofLayout` (docs/fem.md).
|
||||
`fem::plasticity`. Elements whose damage reaches 1 or whose plastic strain reaches the
|
||||
material's erosion strain are eroded (reported with their energy; their nodes keep mass and
|
||||
momentum). The energy account adds the plastic work and the eroded energy.
|
||||
7. **Contact (X3).** The model's contacts (`interaction.contact.*`) become interfaces before the
|
||||
elements are built (nodes that start inside a surface are moved onto it or refused):
|
||||
segment-to-segment penalty contact both ways (projection, polygon clipping and quadrature over
|
||||
each pair of facing faces), a bucket-grid search every increment in parallel by faces, a
|
||||
penalty per area from the masses and the stable increment that never shortens it, and Coulomb
|
||||
friction by a return map at the secondary nodes; rigid walls take Coulomb impulses. The contact
|
||||
forces join the equations of motion beside the external ones, their work and the friction
|
||||
dissipation join the energy account, and each contact's peak force, first and last contact,
|
||||
deepest penetration and friction are reported (docs/fem.md).
|
||||
|
||||
Verification (`crates/explicit/tests/verification.rs` and `large_deformation.rs`, analytic
|
||||
only): stress waves in hex8 and tet4 bars (front at c·t, σ = ρ c v, work input), a bar striking a
|
||||
@@ -288,7 +297,10 @@ bit-for-bit repeatability; Dienes' simple shear for both rates, a stressed eleme
|
||||
by 90°, the J2 uniaxial curve and unloading at large strain, damage failure at the fracture
|
||||
strain, and the Taylor bar against Taylor's 1948 estimate; `crates/explicit/tests/one_d.rs`:
|
||||
spring–mass period, damped decay rate and period, a dashpot alone, two masses on a line spring,
|
||||
waves in rod2 and rod3 bars; in the engine (`solve.rs`), a
|
||||
waves in rod2 and rod3 bars; `crates/explicit/tests/contact.rs`: colliding bars, sliding
|
||||
blocks under constant and decaying friction on a rigid wall and on a plate, the contact patch
|
||||
test, Hertz's sphere impact, a free body untouched by general contact, initial penetrations and
|
||||
thread-count independence; in the engine (`solve.rs`), a
|
||||
cantilever's free-vibration period against `solve.frequency`.
|
||||
|
||||
## Lattice Boltzmann solver
|
||||
|
||||
Reference in new issue
Block a user