Abstract
The Finite Element Method Magnetics (FEMM) has emerged as a vital open-source tool for electromagnetic simulation, offering a cost-effective and reliable platform for electric motor analysis. This article presents a comprehensive overview of using FEMM for motor modeling and design validation, followed by its integration with MATLAB for automated simulation and data analysis. The methodology is demonstrated by designing an outer rotor permanent magnet motor (PMM), targeting 90 Nm of torque. Key steps such as geometry import, material assignment, winding configuration, meshing, solution processing, and torque-flux analysis are detailed. Furthermore, the automation process using MATLAB scripts allows efficient extraction of torque vs. current and torque vs. angle characteristics, which are critical for motor optimization. The framework presented offers researchers and engineers a validated, scalable workflow for accelerating motor development cycles.
1. Introduction
The demand for high-performance, energy-efficient electric motors continues to grow, especially in electric vehicles, industrial automation, and robotics sectors. Accurate electromagnetic simulation tools are indispensable for motor design and analysis, particularly during early-stage development and optimization. While commercial finite element (FE) tools are widely adopted in the industry, their high cost and licensing restrictions limit access for startups, academia, and prototyping efforts.
Finite Element Method Magnetics (FEMM) offers a compelling alternative: a free, open-source 2D solver for low-frequency electromagnetic problems. FEMM’s functionality is well-suited for modeling rotating machines, transformers, actuators, and other magnetic systems. Its effectiveness is significantly enhanced with MATLAB to automate multi-point simulation, parameter sweeps, and post-processing. FEMM and MATLAB create a lightweight yet powerful environment for electromagnetic design and analysis.
This article documents a structured approach for using FEMM and MATLAB to design and evaluate a high-torque outer rotor motor. It presents a replicable workflow that includes defining the geometry and materials, solving for magnetic fields, and calculating torque and losses, followed by MATLAB scripting for automated simulation and data extraction.
2. FEMM Fundamentals
FEMM is a finite element analysis tool for 2D planar and axisymmetric problems. It supports:
The tool consists of three components:
3. Methods
3.1 Motor Model Setup in FEMM
The motor under analysis is an outer rotor Permanent Magnet Synchronous Motor (PMSM) featuring:
Step-by-step process in FEMM:
3.2 MATLAB Automation for Parametric Simulation
Manual parameter variation is time-consuming. MATLAB scripts are used to:
Key MATLAB Functions Used:
mi_modifycircprop
mi_analyze
, mi_loadsolution
mo_blockintegral
, mo_groupselectblock
openfemm
, newdocument
, mi_selectcircle
Workflow:
.txt
files.4. Results
4.1 Magnetic Flux Density and Saturation
Simulation showed a peak flux density of 1.65 T under nominal operating conditions (5 A phase current). The motor design exhibited no magnetic saturation, confirming appropriate back iron and magnet dimensions.
4.2 Torque vs. Current Performance
At 5 A, the motor achieved approximately 90 Nm torque. Additional simulations at 8 A showed 140 Nm torque, indicating scalability. Multiple design variants (e.g., 12-slot, 22-slot) were simulated for comparative performance.
4.3 Resistive Losses
Using FEMM’s built-in analysis, copper losses were estimated at 27.4 W under nominal load. These losses increased predictably with current.
4.4 Automation Output
Automated MATLAB runs provided:
5. Discussion
The FEMM-MATLAB framework offers a significant advantage in motor design validation for low-cost development environments. Although FEMM is limited to 2D planar analysis, it provides sufficient fidelity for preliminary and mid-level motor evaluations. Integration with MATLAB expands its utility into batch simulation, data handling, and visualization.
The scripted automation enables:
For engineers seeking higher accuracy, results can be later benchmarked against 3D solvers or experimental test benches.
Limitations:
Despite these limitations, FEMM remains a valuable educational and prototyping tool, particularly when combined with MATLAB.
6. Practical Tips and Lessons Learned
7. Conclusion
This paper demonstrated a complete workflow for electromagnetic simulation of a surface-mounted PM motor using FEMM, augmented by MATLAB for automated evaluation. The results highlight FEMM’s effectiveness in modeling torque, flux, and losses and MATLAB’s capacity to automate and extend its functionality. Engineers and students can benefit from adopting this lightweight toolchain in early-stage motor development, enabling faster iteration, deeper insights, and a smoother path to final design validation.
Future work may expand the toolchain to include thermal modeling, 3D simulation benchmarking, and control-loop co-simulation with Simulink or Altair Embed.
YouTube Video
Leave a Reply