Skip to content

coilEM 0.5.0 Developer Preview

Choose a tag to compare

@github-actions github-actions released this 03 Nov 16:22
· 340 commits to main since this release
a25aa4b

coilEM 0.5.0 Developer Preview

Released November 3, 2026 from validated main a25aa4bcc00828f19997747790f5df248d938d80.
coilEM 0.5.0 is the performance release
(issue 143): it answers
"does this motor meet my spec across its operating range?" with torque–speed,
losses and efficiency. It bundles Magneto2D 0.4.0.

The release is measured at clean candidate
88aae101fd487795e7fe5300737679f4133790fd on Windows and macOS under
benchmark protocol 1.6.0, and the
release qualification gate
passes; all 63 guarded physics sources are unchanged from that candidate.
Every new number either passes a reference gate or is labelled experimental
with its reason. The release plan has the
full detail and the evidence index every report.

Torque–speed, efficiency and d/q

  • Results has a Torque–speed tab. It solves a flux-linkage map over current
    magnitude and angle (0° to 90°): 5 × 7 points on Preview, 7 × 10 on Standard.
    The map shows its progress, can be cancelled, resumes from its finished
    points and is reused for a lower peak current.
  • From the map it draws peak and continuous torque–speed and power–speed
    curves
    for the entered DC bus, currents and top speed, each sample labelled
    MTPA, field weakening or MTPV, with the solved point marked.
  • An efficiency map over the torque–speed plane, under MTPA or least-loss
    control, and apparent Ld and Lq against current with the MTPA trajectory.
  • A d/q card in Results gives Ld, Lq, the saliency and the characteristic
    current, then Torque–λdq agreement: the solved torque against
    1.5·P·(λd·iq − λq·id), which includes reluctance torque.

Winding, losses and magnet temperature

  • Design takes a wire, strands in hand, an end-turn extension and a winding
    temperature, and shows the phase resistance, mean turn length and slot fill.
    Without a wire, one is derived to fill 45% of the slot, and the app says so.
  • A Losses card gives copper loss, stator iron loss (hysteresis and eddy
    current, teeth and yoke) and efficiency at the solved point, with a map of
    where the loss is. Iron loss is available for M350-50A, and for M400-50A in
    the pinned Pyleecan Prius. Solve takes a constant mechanical loss.
  • Solve takes a magnet temperature: Br and HcJ are derated linearly from
    20 °C with the grade's cited coefficients for N35, N42, N48, N52 and N48SH.
    Above a grade's rating the run carries a warning.
  • The Pyleecan Prius gains an iron loss and a copper loss from its published
    conductor: 612 W iron, 6.72 kW copper and 90.9% efficiency at its loaded
    point, with torque unchanged at 353.95 N·m.

Exports and smaller changes

  • The Torque–speed tab downloads a performance PDF and CSV, an id/iq table and
    the map points. The run PDF and CSV add the d/q record, losses, efficiency,
    winding and magnet temperature.
  • Every new output carries its status and reason in the UI, the PDFs and the
    CSVs.
  • Kt is labelled per peak or per rms ampere everywhere
    (#153), and the Pyleecan
    Prius's tooth and yoke widths display rounded
    (#154).
  • The nonlinear stopping test now measures the actual permeability mismatch
    (#11), and each result
    records its convergence per position
    (Nonlinear convergence). Showing it in
    Results (#12) is planned for 0.5.1.

What is qualified

Output Status
Torque and back EMF of the tested combinations Qualified, as in 0.4.0, against the reviewed protocol 1.6.0 references
Phase resistance and copper loss, with a wire Qualified by the hand-calculation gate
Loaded λd and λq Qualified for a qualified single-layer concentrated SPM or flat-buried IPM design under sinusoidal current at γ 0°–60°
Magnet temperature derating Qualified for a qualified design from 20 °C to 100 °C
Ld, Lq, saliency, characteristic current Experimental: the d/q gates do not bound them tightly
Flux-linkage map, torque–speed, efficiency map, iron loss, efficiency Experimental

The d/q and temperature gates measured up to twice their fixtures' current, at
the derated Br; the grade coefficients are catalogue values. The owner set
these scopes on November 3, 2026 (decisions).
Validation gives each output's
claim boundary.

Benchmark evidence

  • A/B/C/D, protocol 1.6.0: 52 supported jobs on each platform. Windows and
    macOS each record 46 PASS, the planned unsupported legacy ORNL Prius and
    336/336 gates (Windows,
    macOS).
    The two platform records match each other within 0.36 of their tolerances.
  • References: 46 FEMM 4.2 records; the 29 legacy cases reproduce the
    0.4.0 references exactly. The owner accepted the reviewed bundle on
    November 3, 2026.
  • Pyleecan Prius: the exact-candidate Windows collection passes all 10
    software checks across 17 jobs and 568 field reports
    (report).

Two fixes change numbers that 0.4.0 qualified: the slot current now comes from
each coil side's meshed area, and the nonlinear stopping test is corrected.
On the 24 loaded cases both releases measured:

Group Cases Mean torque error vs FEMM Worst torque error Mean back-EMF error
A, SPM 8 0.27% → 0.33% 0.48% → 0.63% 0.07% → 0.08%
B, flat IPM 6 0.34% → 0.31% 0.64% → 0.66% 0.33% → 0.30%
B, V-shape IPM 6 4.55% → 5.13% 5.90% → 7.05% 2.39% → 6.50%
C, distributed 4 2.67% → 2.87% 4.90% → 5.20% 0.18% → 0.23%

These are the macOS figures; Windows differs by at most 0.04 points.

Installation and compatibility

The published package installs with:

uv tool install coilem
coilem

Use uv tool upgrade coilem to upgrade an existing installation. To select
this release explicitly, use uv tool install --force coilem==0.5.0. See Install for
platform requirements and source setup.

Wheels bundle the UI and Magneto2D, with Python 3.11–3.15 support on Windows
x64, macOS Apple silicon/Intel and Linux x86_64. The launcher normally serves
at http://127.0.0.1:2645; saved motor runs stay in the OS user-data folder.
New .coilem and existing .openem design files are supported, and new saves
record application version 0.5.0.

coilem benchmark now runs protocol 1.6.0: about 6 minutes with --quick,
about 2 hours in full.

Release verification

  • Production wheels: the tag run
    built the four wheels and passed installed-package acceptance on Windows x64,
    macOS Apple silicon and Intel, and Linux x86_64 with Python 3.11–3.15, and in a
    bare Ubuntu 22.04 container. After the PyPI upload, the same run installed
    coilem==0.5.0 from PyPI and passed acceptance on all four targets.
  • TestPyPI rehearsal: 0.5.0.dev416519445751 from the same commit
    (run) installed
    from TestPyPI and passed acceptance on all four targets. A local macOS Apple
    silicon install of it passed all 24 acceptance checks on Python 3.12 and 3.13.

Planned for 0.5.1

  • Show nonlinear convergence in Results, PDF and CSV (#12).
  • Cogging torque, with a Results view and FEMM benchmark gates (#185).
  • The separate loss and efficiency benchmark; until it records a reference,
    iron loss and efficiency stay experimental.
  • A recorded Standard-map run time on macOS and Windows (#139),
    and a recorded Windows check of the Torque–speed view (#142).

Qualification and remaining limits

  • Qualification is agreement with FEMM on the measured fixtures, with M350-50A
    steel and Precise meshes; it is a software comparison, not a hardware
    certification. Motor results are 2D estimates.
  • V-shape IPM stays experimental although all six fixtures pass: its mean
    fundamental back-EMF error grew from 2.4% in 0.4.0 to 6.5%, and the
    refined-reference control does not establish spatial convergence.
  • Losses not modelled: magnet and rotor eddy-current loss, AC copper loss
    and inverter loss. Iron loss comes from guaranteed grade limits and covers
    the stator only. Mechanical loss is one constant at every speed.
  • Torque–speed assumes sinusoidal steady-state current without inverter
    drops, dead time, PWM ripple or overmodulation. The continuous curve is a
    current limit, not a thermal rating; winding and magnet temperatures are
    inputs, and irreversible demagnetisation is not modelled.
  • Hardware correlation with the ORNL Prius and Honda Accord is planned after
    0.5.0. The legacy ORNL Prius benchmark row remains unsupported, distinct from
    the exact Pyleecan Prius.
  • Six-step is an ideal current-commanded model. Fast mesh, the fixed Prius
    references and unmeasured combinations remain experimental. Linux and
    Python 3.15 full numerical parity are not established by the hosted tests.
  • Elmer is disabled and not probed in the release environment; FEMM is a
    data-only reference and is not bundled. There is no thermal solver, desktop
    installer, automatic update, hosted service, account or telemetry.