Repository navigation
coilEM 0.4.0 Developer Preview
coilEM 0.4.0 Developer Preview
Released October 19, 2026 from validated main 2ede4e802f30af45b57e3cc2bb0d9063e544a3bf.
coilEM 0.4.0 bundles Magneto2D 0.3.3. The four production wheels passed the
platform/Python installation matrix, fresh PyPI installs and Windows app QA.
The numerical reports retain their original measured source identities;
all 53 registered physics sources are unchanged in this release.
See the release plan
and the production QA receipt attached below.
Motor model and solve changes
- Flux linkage credits the full slot-side turns. Fractional-slot concentrated
windings use a coil on each tooth, with the correct two-layer slot map and
parallel-path current. Sinusoidal current angle is measured from phase A's
own winding axis; ideal six-step uses the corresponding public sector table.
These corrections change affected results from 0.3.x. Recheck old comparisons
against the current winding model rather than expecting identical values. - Design exposes the supported winding layers and parallel paths and explains
invalid combinations. Distributed two-layer slots follow the physical
geometry in both meshing and visualization. - Precise is the qualified mesh-build default. Fast is a separate experimental
mesh-build control, independent of the Preview/Standard/High accuracy solve
plans; its lower construction cost does not establish numerical accuracy. - The motor-constants panel explains current and voltage conventions. Results
present Kt and Ke in datasheet units with SI values available, alongside the
stored operating point and model assumptions.
Exact Pyleecan Prius examples
Examples → Benchmarks contains Pyleecan Prius 8p48s · BEMF and
Pyleecan Prius 8p48s · Loaded torque. They load the pinned analytic geometry,
explicit winding, magnet directions and embedded M400-50A curve:
| Case | Reference operating point |
|---|---|
| Tutorial BEMF | 1000 rpm, 20°C magnets, zero phase current |
| Loaded torque | 2000 rpm, 60°C magnets, 250 A peak, Pyleecan d-axis Phi0 = 140° |
The model identity, case ID, temperature and current conventions survive
save/reopen and saved-run replay. The model geometry, winding and material
are fixed; operating-point and accuracy experiments retain their actual
requests. The 2D and 3D previews use the same analytic contours, including holes.
The 3D preview is an extrusion of the 2D model, not a 3D field solve.
The conversion notice
records source attribution and modifications. Attribution travels with saved
reference designs. There is no affiliation with or endorsement by EOMYS,
the Pyleecan project, or Toyota. Software-model reproduction does not establish
identity with the original paper or measured hardware accuracy.
Layout, preview and results
- Layout shows the winding as a ring with coil-side direction markers and end
turns. Slot positions come from the actual preview polygons, including the
reflected Prius clockwise numbering. Long parallel branches wrap within the
panel, and the solver explanation opens without covering the wiring. - Phases shows a one-second A/B/C current scope connected to the motor. Generic
sinusoidal, six-step and Pyleecan d-axis conventions follow the selected
solve. Zero-current examples show flat traces and no energized tooth tint. - Tooth poles is an independent 2D toggle, and rotor magnets carry readable N/S
labels. Wheel zoom uses the same motor origin as the shifted Phases drawing. - Design health and Solve setup collapse to leave more room for the motor.
Completed results lead with key values and a three-phase back-EMF sparkline;
the detailed run settings remain available. - The field view uses a fixed 0–2.0 T flux-density scale, supports combined
stator/PM field lines and axes, and links field position to result curves.
These displays do not extend the numerical qualification scope. - Stored field images use lossless WebP layers, shared PM mesh data is stored
once, and replay archives are generated on download. Deleting a run also
removes its raw solver cache. Existing saved designs and runs remain readable. - Release hardening improves process interruption and native Gmsh handling.
Minimal Linux installations get an actionable missing-library diagnostic.
Retained benchmark evidence
The v0.4.0 evidence report links the full PDFs,
HTML, JSON/CSV, fixtures, reference identities and reproduction commands.
| Collection | Measured source | Retained outcome |
|---|---|---|
| Windows native A/B/C/D, Precise | 5b6cb61 |
35 supported jobs; 28 PASS, 1 YELLOW, one planned unsupported legacy Prius row; every gate and value matches the preceding Windows report |
| Fresh FEMM 4.2 repeat | 0417736 |
29/29 physical payloads and extraction audits exactly match the retained reference; 1h49m05s |
| Pyleecan Prius software benchmark | d993d76 |
17 jobs, 568 field reports, 10 original software checks pass; complete thirteen-angle curve and separate angular/Fine controls |
Tutorial line RMS is 107.513838 V versus 107.558193 V in the retained software
reference (−0.0412%). Loaded mean torque is 353.950530 Nm versus 354.953115 Nm
in the matched FEMM control (−0.2825%). The largest mean difference across the
thirteen tested angles is 0.6282% of FEMM peak. The full report preserves the
upstream discrepancies and limits of the refinement controls.
The historical Honda Accord correlation
uses the blind N35 assumption and simplified rotor, with no pass/fail verdict.
Its existing results are not a new 0.4.0 hardware qualification. Separate Prius
hardware correlation (#69/#82) is deferred to v0.5.0.
Known reporting limitations
- Torque–EMF consistency for IPM operating points: The loaded Pyleecan Prius example can show 118.8% · CHECK. The current row compares measured torque with a no-load, magnet-only prediction. Current angle, reluctance torque and loaded-flux changes can move the ratio away from 100%; the percentage is not motor efficiency or a direct measure of solver error. Kt is the effective torque/current ratio at the displayed operating point. The loaded-flux torque cross-check and convention-aware presentation are tracked in #113 for v0.5.0.
- Pyleecan Prius tooth/yoke flux summaries: Peak tooth B = 0.00 T is unavailable data, not a measured zero field. The imported model retains the complete stator steel as one region tagged as yoke, with no separate tooth tags. The displayed Peak yoke B therefore covers the whole imported stator steel rather than an isolated return-yoke subset. The teeth are present in the solved geometry, but these two summary rows do not provide a separate tooth/yoke saturation assessment. Separate reporting will be addressed in a follow-up.
- Kt current convention in exports: Results shows Kt per rms ampere (for the example SPM 8p/12s Standard run, 0.356 N·m/A rms). The PDF report, the CSV and Compare runs show the same stored constant per peak ampere (0.251), labelled only N·m/A. Multiply the exported value by √2 to compare it with Results. Tracked in #153 for v0.5.0.
- Unrounded Pyleecan Prius yoke tooth width: The Advanced Geometry summary and the read-only Yoke Tooth Width field show the pinned value at full precision (7.086189721925985 mm). This is display only; the pinned geometry and its solves are unaffected. Tracked in #154 for v0.5.0.
Installation and compatibility
The published package installs with:
uv tool install coilem
coilemUse uv tool upgrade coilem to upgrade an existing installation.
To select this release explicitly, use uv tool install --force coilem==0.4.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 production release passed installed-package
acceptance on all four wheel targets and Python 3.11 through 3.15.
The launcher normally serves at http://127.0.0.1:2645; browser-local state
stays with its original origin/port, and saved motor runs stay in the OS
user-data folder. New .coilem and existing .openem design files are supported.
New saves record application version 0.4.0; immutable historical results and
bundled example creation versions retain their original identities.
Qualification and remaining limits
- Qualification covers the tested SPM and flat-buried IPM combinations in
Validation, against matched FEMM
gates with M350-50A steel and Precise meshes. It is a fixture-based software
comparison, not a hardware certification. - V-shape IPM remains experimental. Its baseline peak back-EMF discrepancy is
14.778701% (YELLOW). Fast mesh, the fixed Prius references and unmeasured
combinations remain experimental. The legacy ORNL Prius matrix row remains
unsupported, distinct from the two exact Pyleecan examples. - The bundled historical macOS record does not match the current physics-source
guard. A separate full macOS collection
at the original measured candidate4b88c4ematches Windows for all 30 rows
under the published platform tolerances. It retains its own measured identity.
Linux and Python 3.15 full numerical parity are not established by hosted
smoke/installation tests. - The frozen reference retains REVIEW_REQUIRED limitations, including steel
loss estimates, the Kt current base and peak-B sampling. Cogging, THD, losses,
thermal behavior and airgap harmonics are outside the qualification gates. - Six-step is an ideal wye current-commanded model without PWM, switching
ripple, dead time, startup or ESC dynamics. Motor results are 2D estimates. - Elmer is disabled, hidden, and not probed in the release environment;
COILEM_ENABLE_ELMER=1enables the separately installed development adapter.
FEMM is a data-only reference and is not bundled as a solver. - Halbach/tutorial workflows remain experimental. There is no dedicated
cogging results view, desktop installer, automatic update, hosted service,
account, telemetry or motor thermal solver in this release.
The original measured candidate 4b88c4e has complete sealed Windows/macOS
A/B/C/D and 17-job Prius qualification evidence. The reviewed integration and
shutdown fix #152, now on merged
main 2ede4e802f30af45b57e3cc2bb0d9063e544a3bf, preserve all 53 registered physics sources, numerical
inputs, materials, references and runtime locks. Those numerical reports keep
their original measured identities; this rehearsal does not restamp them.
TestPyPI rehearsal and installed QA (2026-10-19)
The exact-main workflow passed all 36 active jobs, including
20 platform/Python combinations, the minimal-Linux installation and four fresh
installs from TestPyPI 0.4.0.dev392939339831. All 579 hosted
installed-package assertions passed. The four published wheel SHA-256 values
exactly match the CI artifacts; the shutdown fix and pinned Prius assets in
every wheel match the accepted main tree byte for byte.
A fresh Windows TestPyPI installation passed 24/24 standalone checks and
6/6 production-browser scenarios without retries, failures or skips. These
exercise bundled examples, both Prius Design/Solve and 2D/3D paths, conversion
notices and save/reopen, valid winding-type switching, real Standard sine and
six-step solves, PDF/CSV/replay exports, saved-run comparison and cancellation.
The local browser server shut down cleanly. The actual published-wheel loaded
Prius control, at the registered 32 positions, produced
353.950530266 Nm, versus 353.950530266 Nm
retained qualification mean (delta +0 Nm), within the
unchanged published tolerance. The installed Windows physics guard reports
MATCH, 53 files. The machine-readable TestPyPI QA receipt is attached.
The first rehearsal exposed an application-exit cancellation semaphore race on
macOS arm64/Python 3.15. #152 fixes it without altering successful solve
calculations; deterministic regressions failed on the original code and pass
after the fix. The corrected wheel passes clean-interrupt acceptance on every
supported platform/Python combination. The known generic Torque–EMF and separate
tooth-B reporting limitations above remain explicit.
Production publication and installed QA (2026-10-19)
PyPI 0.4.0 is published from tag
v0.4.0 at 2ede4e802f30af45b57e3cc2bb0d9063e544a3bf. The production workflow
passed 37 active jobs, including 21 prepublication
installation environments and four fresh production-PyPI platform installs.
All 579 hosted installed-package assertions passed.
All four wheels have matching SHA-256 values across the tested CI artifacts,
production PyPI and this GitHub release.
Compared with the accepted TestPyPI rehearsal, the Linux and both macOS native
binaries are byte-for-byte identical. Windows differs by 24 bytes confined to
linker/debug metadata; the executable code and all remaining bytes match.
The packaged UI and backend code are unchanged apart from the package version
and build metadata. The production QA receipt retains these comparisons.
The actual production Windows package passed 24/24 standalone checks and
6/6 browser scenarios, with clean shutdown, no skips, failures or retries.
The registered 32-position loaded Prius control produced
353.950530266 Nm, matching the retained
353.950530266 Nm mean (delta +0 Nm).
The installed physics-source guard reports MATCH, 53 files.
The machine-readable production QA receipt
records wheel hashes, workflow results, the registered control and scope limits.
Complete retained final-candidate benchmark reports
These reports were measured at 4b88c4e; their complete evidence is retained
with original hashes. The final release reuses those numerical collections
through the unchanged 53-source physics identity, with independent package QA.
| Report | Measured result |
|---|---|
| Windows A/B/C/D PDF | 35 supported jobs; 28 PASS / 1 YELLOW / 1 planned unsupported legacy row; 42/42 BLDC gates |
| macOS A/B/C/D PDF | Same verdicts and gates; all 30 rows match Windows under the published platform tolerances |
| Pyleecan Prius PDF | 17 jobs, 568 field reports, 10/10 software checks; full angle curve and separate angular/Fine controls |
Full HTML, JSON/CSV, frozen inputs, retained native fields, original source,
workflow receipts and report assets are available in four independent ZIPs:
part 1, part 2, part 3, part 4. Extract all four into the same directory to preserve the relative
report links. Their 4,144 entries were read back and SHA-256 verified against
the sealed inventory, with no missing or duplicate paths.
The asset inventory,
sealed file manifest
and original file checksums
are attached separately. The archive includes the original qualification report
and complete source identities; historical owner/publication fields remain
unchanged, while this production receipt records the final release decision.
Existing numerical YELLOW/unsupported cases and the reporting limitations above
remain explicit. ORNL hardware correlation (#69/#82) and the deferred reporting
issues remain scheduled for v0.5.0. The Prius report retains the 25.45% no-load
line-RMS voltage discrepancy against the registered ORNL target. This release
does not claim hardware accuracy.