femm_selftest
Verify the FEMM installation end-to-end by solving a known solenoid and comparing against analytic results; returns pass/fail per check.
Instructions
End-to-end check of the install with a known answer (~1-2 s). In a separate session "selftest" it builds an axisymmetric thick solenoid (a=10 mm, b=12 mm, L=100 mm, 500 turns, 1 A), solves, and compares |B| at the centre with the analytic formula B0 = mu0Jl*ln[(b+sqrt(b^2+l^2))/(a+sqrt(a^2+l^2))] (expect < 1 % error). Also checks library material loading, the error path for a FEMM 4.2 name, current-density units, bulk getters, circuit results and timing. Returns pass/fail per check.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep_session | No | ||
| tolerance_pct | No |