femm_health_check
Verify a solved magnetics model is physically sane: run checks on mesh, energy, saturation, boundary, torque, force, AC, flux, and PM operating points.
Instructions
Judge whether the loaded magnetics solution is physically sane. Needs femm_solve first.
Runs (subset via checks): mesh (element count, worst triangle angle), precision, energy
(W = W' and W = 1/2 sum I psi for linear models without magnets), saturation (share of steel
above b_limit T; linear iron over 2.2 T), boundary (|B| at the outer boundary vs peak),
torque (WST on rotor_groups vs -stator_groups; air-gap element torque if present), force
(force_groups vs -reaction_groups), ac (1/2 Re(V conj I) = losses), flux (two cuts
[[p1,p2],[p3,p4]] must carry the same flux), pm (magnet operating points).
Returns {checks: [{name, ok, value, expected, tolerance, message}], summary, facts}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checks | No | ||
| b_limit | No | ||
| session | No | main | |
| flux_lines | No | ||
| force_groups | No | ||
| rotor_groups | No | ||
| stator_groups | No | ||
| reaction_groups | No |