SKILLS / MCP + Coding AI
eMachineSim is used through a Python API and JSON input control files. In real motor development, however, engineers also need to reason about mesh regions, property IDs, loss sources, cooling paths, thermal equivalent circuits, gap coupling, and output diagnostics.
The eMachineSim SKILLS workflow is intended to make that process easier to start and easier to audit with coding AI. SKILLS provide reference knowledge for how an AI assistant should reason about eMachineSim workflows. The MCP server gives AI agents structured access to Examples, input JSON files, and diagnostic CSV outputs.
What Coding AI Can Help With
| Task | Typical AI-assisted work |
|---|---|
| Choose an example | Select the closest thermal, rotor structural, or modal/NVH example. |
Prepare input.json | Modify losses, boundary conditions, output settings, and coupling options. |
| Run an analysis | Generate a small Python script using eMachineSim.run_file() or Session.solve(). |
| Inspect results | Read heat balance, FEMH outflow, gap heat flow, and surface assignment CSV files. |
| Summarize findings | Produce a short Markdown summary of conditions, key values, and remaining assumptions. |
When the MCP server is available, an AI agent can also use tools to inspect:
| MCP-assisted check | Typical use |
|---|---|
| input JSON overview | Check metaData, BDF import, volume heat sources, gap coupling, and interface resistance settings. |
| Example discovery | Find thermal, realistic motor, rotor structural, modal/NVH, and electrostatic examples. |
| Thermal heat balance | Summarize thermal_global_heat_balance.csv and thermal_fem_volume_heat.csv. |
| Surface assignment | Check FEMH/gap overlap, unassigned external area, and gap-only area. |
| Thermal paths | Summarize gap coupling, shared-node interface resistance, and cooling path CSV files. |
| JSON variants | Create focused variants for gap h, gap Nu, or PM total_heat settings. |
Detailed MCP server setup, connection, and tool names are documented in the public repository under mcp_servers/emachinesim/README.md. This page focuses on what the workflow enables.
Typical Motor Analysis Flow
- State the engineering target, for example: "run steady thermal analysis with coil copper loss and PM loss."
- Ask the coding AI to select the relevant eMachineSim SKILL and Examples.
- Review the proposed
input.jsonchanges. - Run the analysis through the Python API.
- If the MCP server is available, let the AI inspect CSV diagnostics through structured tools.
- Adjust FEMH, gap coupling, or thermal-network parameters as needed.
Engineering Responsibility
SKILLS and the MCP server help prepare and inspect analysis workflows. They do not replace engineering judgment. Users should still verify material properties, mesh quality, boundary conditions, loss scaling, and any calibration against test data.
The MCP server assumes the public Python API / pyd workflow. User-facing analysis execution should use eMachineSim.run_file() or Session.solve(), not an internal debug executable.
For thermal motor examples, always inspect at least:
thermal_global_heat_balance.csvthermal_component_heat_balance.csvthermal_volume_heat_sources.csvthermal_surface_assignment_summary.csvthermal_cooling_path_summary.csvthermal_gap_coupling_summary.csvandthermal_gap_coupling_flow_summary.csvwhen gap coupling is used