femm_experiment_torque_vs_angle
Compute rotor torque versus mechanical angle for finite-element models by rotating groups or stepping a periodic air-gap boundary; optionally apply dq phase currents.
Instructions
Rotor torque vs mechanical angle (degrees, end point included).
method='rotate': rotates rotate_groups about center (default [0, 0]) each step and re-meshes;
torque = WST block integral on torque_groups (default rotate_groups; exclude a rotor-side air
layer from torque_groups). Needs an air layer split by a circle in the gap so the rotor can turn.
method='age': the model has a FEMM 5 'Periodic Air Gap' boundary (BdryFormat 6) named
gap_boundary; its inner angle is stepped and torque = mo_gapintegral (mesh never changes).
drive = {"circuits": ["A","B","C"], "pole_pairs": p, "id": 0, "iq": 10, "theta0_deg": 0}
makes the phase currents follow the rotor (amplitude-invariant dq; theta_e = p*angle + theta0)
and adds a mean-torque check against 3/2 p (psi_d iq - psi_q id).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stop | No | ||
| drive | No | ||
| start | No | ||
| steps | No | ||
| angles | No | ||
| center | No | ||
| method | No | rotate | |
| session | No | main | |
| gap_boundary | No | ||
| rotate_groups | Yes | ||
| torque_groups | No |