Skip to main content

API Overview

The public API is centered on the eMachineSim Python wheel. After installation, users import eMachineSim like a normal Python package.

The API is intentionally JSON-first:

  • existing input.json samples remain valid
  • users can run a full analysis with one call
  • advanced users can keep a Session and update JSON sections between solves
  • CSV diagnostics remain the main stable result format

Main API Groups

APIPurpose
eMachineSim.run_file(path, run_directory=None)Run an existing JSON input file.
eMachineSim.run(input_json, run_directory)Run from a Python dictionary.
eMachineSim.version()Return module and engine version information.
eMachineSim.run_self_test(name)Run built-in self-tests.
eMachineSim.SessionInitialize once, update input sections, and call solve().
eMachineSim.get_* helpersRead selected CSV outputs as Python dictionaries/lists.
eMachineSim.thermalThermal convenience namespace.
eMachineSim.structuralStructural convenience namespace.
eMachineSim.modalModal/NVH convenience namespace.

Public workflows should use the installed eMachineSim wheel; the internal development executable is not the documented user interface.