femm_experiment_force_vs_position
Move grouped parts stepwise, re-solve, and record force vs position for actuators, plungers, and coilguns, including coenergy and flux linkage.
Instructions
Force vs position: move the parts in groups by (dx, dy) PROBLEM UNITS per step, re-solve,
and record the weighted-stress-tensor force on force_groups (default groups), the total
coenergy and every circuit's flux linkage. Health check: WST force vs virtual work dW'/ds.
Use for actuators, plungers, coilguns (axisymmetric: dy moves along z). The moving parts must be surrounded by air and carry their own group number (femm_set_group). Geometry is moved back at the end and the model is left solved at the start position. Example: femm_experiment_force_vs_position(groups=[1], dy=0.25, steps=9). Returns rows [position, Fx, Fy, F_along_motion, F_virtual_work, coenergy, psi_*] and csv/json/png paths.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dx | No | ||
| dy | No | ||
| steps | No | ||
| groups | Yes | ||
| session | No | main | |
| force_groups | No | ||
| start_offset | No |