Quickstart
This quickstart runs a small BDF thermal case from an installed eMachineSim
wheel, then reads the heat-balance CSV from Python.
1. Install
python -m pip install emachinesim-0.1.1-cp313-cp313-win_amd64.whl
2. Run a Sample from Python
from pathlib import Path
import eMachineSim
repo = Path(".") # repository root containing Examples/
run_dir = repo / "Examples" / "thermal" / "bdf"
result = eMachineSim.run_file(
str(run_dir / "input_sample_bdf_min_hexa_qvol.json"),
str(run_dir),
)
print(result["success"], result["analysis_type"], result["message"])
print(eMachineSim.get_global_heat_balance(str(run_dir)))
3. Inspect Outputs
For the small thermal case, start with:
thermal_fem_volume_heat.csv
thermal_global_heat_balance.csv
thermal_bdf_import_summary.csv
4. Next Step
After the quick case works, try the realistic motor steady thermal showcase in:
Examples/thermal/realistic_motor_steady/