Verification oracle: tests/oracle cases, cargo xtask oracle, fixtures, docs/oracle.md, CI job

The oracle binary (modelcraft-testkit) runs each case's recipe through the
command engine, measures its quantities by JSON pointers into step outputs
or commands, compares them with the cited references and the frozen
fixtures, and writes docs/oracle.md. 20 theory cases (patch tests of every
solid element, Timoshenko cantilevers, Lame, Kirsch, beam frequencies,
torsion and bending through couplings, explicit waves and impact, CDT
invariants), 8 published benchmarks (MacNeal-Harder patch, straight and
curved cantilevers, thick cylinder, Scordelis-Lo with solids, NAFEMS LE1,
LE10, FV32) and 10 pending cases with citations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NmAttHhUZTokgPeEJia8sm
This commit is contained in:
jyvikoandClaude Opus 5.5 authored and Irakli Kourtis committed 2026-10-13 21:42:19 -04:00
1 parent a3cb6d749b
commit 6d9452ad84
144 files changed
+5162 -74

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
# NAFEMS FV32 cantilevered tapered membrane, free vibration (hex20 plane stress layer)
Our model of the published problem: a membrane 10 m long tapering symmetrically from 5 m at the
clamped edge to 1 m at the free end, 0.05 m thick, E = 200 GPa, ν = 0.3, ρ = 8000 kg/m³;
u_x = u_y = 0 on the root. In-plane (plane stress) vibration is modelled by half the thickness of
hex20 elements (16 × 8 × 1) with u_z = 0 on the mid-surface and the other face free.
+85
View File
@@ -0,0 +1,85 @@
{
"title": "NAFEMS FV32 cantilevered tapered membrane, free vibration (hex20 plane stress layer)",
"kind": "benchmark",
"source": "NAFEMS, The Standard NAFEMS Benchmarks, TNSB Rev. 3, October 1990, test FV32 (frequencies 44.623, 130.03, 162.70, 246.05, 379.90, 391.44 Hz); as reproduced in the Abaqus 2017 Benchmarks Guide, 'FV32: Cantilevered tapered membrane'",
"quantities": [
{
"id": "f1",
"quantity": "frequency of mode 1 (Hz)",
"measure": {
"from": "modes",
"pointer": "/modes/0/frequency"
},
"value": 44.623,
"tolerance": {
"relative": 0.01
},
"reason": "targets published to five figures for 2D plane stress; a thin solid layer with a free face differs from plane stress by O((t/L)²) and the 16 × 8 quadratic mesh is converged to about 0.1%"
},
{
"id": "f2",
"quantity": "frequency of mode 2 (Hz)",
"measure": {
"from": "modes",
"pointer": "/modes/1/frequency"
},
"value": 130.03,
"tolerance": {
"relative": 0.01
},
"reason": "targets published to five figures for 2D plane stress; a thin solid layer with a free face differs from plane stress by O((t/L)²) and the 16 × 8 quadratic mesh is converged to about 0.1%"
},
{
"id": "f3",
"quantity": "frequency of mode 3 (Hz)",
"measure": {
"from": "modes",
"pointer": "/modes/2/frequency"
},
"value": 162.7,
"tolerance": {
"relative": 0.01
},
"reason": "targets published to five figures for 2D plane stress; a thin solid layer with a free face differs from plane stress by O((t/L)²) and the 16 × 8 quadratic mesh is converged to about 0.1%"
},
{
"id": "f4",
"quantity": "frequency of mode 4 (Hz)",
"measure": {
"from": "modes",
"pointer": "/modes/3/frequency"
},
"value": 246.05,
"tolerance": {
"relative": 0.01
},
"reason": "targets published to five figures for 2D plane stress; a thin solid layer with a free face differs from plane stress by O((t/L)²) and the 16 × 8 quadratic mesh is converged to about 0.1%"
},
{
"id": "f5",
"quantity": "frequency of mode 5 (Hz)",
"measure": {
"from": "modes",
"pointer": "/modes/4/frequency"
},
"value": 379.9,
"tolerance": {
"relative": 0.01
},
"reason": "targets published to five figures for 2D plane stress; a thin solid layer with a free face differs from plane stress by O((t/L)²) and the 16 × 8 quadratic mesh is converged to about 0.1%"
},
{
"id": "f6",
"quantity": "frequency of mode 6 (Hz)",
"measure": {
"from": "modes",
"pointer": "/modes/5/frequency"
},
"value": 391.44,
"tolerance": {
"relative": 0.01
},
"reason": "targets published to five figures for 2D plane stress; a thin solid layer with a free face differs from plane stress by O((t/L)²) and the 16 × 8 quadratic mesh is converged to about 0.1%"
}
]
}
+29
View File
@@ -0,0 +1,29 @@
{
"note": "ModelCraft's accepted results for this case, written by `cargo xtask oracle --bless`. A result outside its band fails CI.",
"values": {
"f1": {
"band": 4.4623e-8,
"value": 44.62290209745542
},
"f2": {
"band": 1.3003463312585388e-7,
"value": 130.03463312585387
},
"f3": {
"band": 1.627e-7,
"value": 162.69825051149476
},
"f4": {
"band": 2.460539171824971e-7,
"value": 246.0539171824971
},
"f5": {
"band": 3.7990069011853704e-7,
"value": 379.900690118537
},
"f6": {
"band": 3.9144e-7,
"value": 391.4352970715355
}
}
}
+12
View File
@@ -0,0 +1,12 @@
[
{"command": "mesh.block", "params": {"body": "Membrane", "kind": "hex20", "corners": [[0, 0, 0], [10, 2, 0], [10, 3, 0], [0, 5, 0], [0, 0, 0.025], [10, 2, 0.025], [10, 3, 0.025], [0, 5, 0.025]], "divisions": [16, 8, 1], "faces": {"6": "root", "1": "mid"}}},
{"command": "model.set.create", "params": {"name": "all", "geometry": [{"body": "Membrane"}]}},
{"command": "model.set.create", "params": {"name": "root", "geometry": [{"body": "Membrane", "face": "root"}]}},
{"command": "model.set.create", "params": {"name": "mid", "geometry": [{"body": "Membrane", "face": "mid"}]}},
{"command": "model.material.create", "params": {"name": "Steel", "elastic": {"type": "isotropic", "young": 200000000000.0, "poisson": 0.3}, "density": 8000.0}},
{"command": "model.section.create", "params": {"name": "membrane", "set": "all", "material": "Steel", "kind": {"type": "solid"}}},
{"command": "model.boundary_condition.create", "params": {"name": "root", "type": "displacement", "target": {"set": "root"}, "values": [0, 0, null, null, null, null]}},
{"command": "model.boundary_condition.create", "params": {"name": "mid", "type": "symmetry", "target": {"set": "mid"}, "plane": "z"}},
{"command": "model.step.create", "params": {"name": "Modes", "procedure": {"type": "frequency", "modes": 6}, "boundary_conditions": ["root", "mid"], "loads": []}},
{"command": "solve.frequency", "params": {"step": "Modes"}, "id": "modes"}
]