Files
shenw 255c7caf4f
FemLite CI / build-test (push) Has been cancelled
Advance V4 contact search and parallelism
2026-06-25 08:59:14 +08:00

1.4 KiB

contact_two_blocks_compression

Small V4.2 face-to-face contact example for two C3D8 elastic blocks.

Purpose:

  • Exercise element-surface contact with explicit face labels.
  • Exercise contact property inheritance through *SURFACE INTERACTION.
  • Exercise active-set and augmented-penalty contact CSV diagnostics.
  • Provide a compact two-body compression case for future nonlinear static contact work.

Model:

  • Two 0.10 m x 0.10 m x 0.05 m C3D8 blocks.
  • The upper block starts with 0.001 m initial penetration into the lower top face so contact is active immediately after the first force evaluation.
  • Lower bottom face is fixed in z; all nodes are fixed in x/y.
  • Upper top face is prescribed downward by 0.004 m over 1.0E-3 s.
  • Contact property: penalty = 1.0E7, damping = 1.0E2, augment = 0.20.

Run from the repository root:

Double-click run_case.bat in this directory, or run manually:

New-Item -ItemType Directory -Force examples\contact_two_blocks_compression\results | Out-Null
build-win-gcc-16\femlite.exe examples\contact_two_blocks_compression\two_blocks_compression.inp --output-dir examples\contact_two_blocks_compression\results --output-interval 10 --run

Check:

.\Python\.venv\Scripts\python.exe examples\contact_two_blocks_compression\check_contact_results.py examples\contact_two_blocks_compression\results

The double-click script writes repeatable output to results\auto_run.