shell_patch_test
FemLite shell membrane patch test for linear S3 and S4 shell elements.
This example imposes the exact displacement field
ux = 0.01*x
uy = 0
uz = rx = ry = rz = 0
on every node of a small distorted 2x2 shell patch. The expected global plane-stress state is constant:
sigma_x = E/(1 - nu^2)*0.01 = 0.32
sigma_y = nu*E/(1 - nu^2)*0.01 = 0.08
tau_xy = 0
Benchmark data:
- Geometry: unit square midsurface in the global x-y plane, with interior nodes shifted to form a distorted patch.
- Thickness: 0.2.
- Material: E = 30.0, nu = 0.25, density = 1.0.
- Element decks:
shell_patch_s3.inp: 9 nodes, 8 S3 elements.shell_patch_s4.inp: 9 nodes, 4 S4 elements.
- Analysis: linear static solve with prescribed nodal displacement field.
Regenerate input decks:
Python\.venv\Scripts\python.exe examples\shell_patch_test\generate_shell_patch_test.py
Run from the repository root:
New-Item -ItemType Directory -Force examples\shell_patch_test\results\s3 | Out-Null
build-win-gcc-16\femlite.exe examples\shell_patch_test\shell_patch_s3.inp --output-dir examples\shell_patch_test\results\s3 --static-linear
New-Item -ItemType Directory -Force examples\shell_patch_test\results\s4 | Out-Null
build-win-gcc-16\femlite.exe examples\shell_patch_test\shell_patch_s4.inp --output-dir examples\shell_patch_test\results\s4 --static-linear
Check the results:
Python\.venv\Scripts\python.exe examples\shell_patch_test\check_shell_patch_results.py --case s3
Python\.venv\Scripts\python.exe examples\shell_patch_test\check_shell_patch_results.py --case s4
The checker compares:
- nodal displacement output against the exact field;
- element-average local shell stresses against the exact global stress tensor rotated into each element's local shell basis.
Current result:
| Deck | Max displacement error | Max local stress error |
|---|---|---|
shell_patch_s3.inp |
8.673617E-19 | 2.498002E-16 |
shell_patch_s4.inp |
8.673617E-19 | 5.551115E-17 |