How eomys/pyleecan works
PYLEECAN is a multiphysics design and simulation framework for electrical machines and drives. Its main user workflow is to define a machine and materials, run electrical or field simulation, inspect calculated outputs, and optionally optimize or sweep design variables. The graph also preserves documented geometry import, meshing, loss-model, and GUI capabilities. Several subsystem links are documented in the README rather than shown in sampled implementation; those edges cite the README, and unsampled internals are not asserted.
Main entry points: MachineSIPMSM.py Machine models · Output.py Simulation outputs · solve_FEMM.py FEMM analysis · run_GUI.py Desktop GUI
Components 20
Machine design
- Machine models
pyleecan/Classes/MachineSIPMSM.py - Lamination geometry
pyleecan/Classes/Lamination.py - Geometry operations
pyleecan/Functions/Geometry - Winding models
pyleecan/Functions/Winding/gen_phase_list.py - DXF import
pyleecan/GUI/Dxf/DXF_Hole.py - Material models
pyleecan/Classes/Material.py
Simulation
- FEMM analysis
pyleecan/Methods/Simulation/MagFEMM/solve_FEMM.py - Elmer analysis
pyleecan/Methods/Simulation/MagElmer/solve_FEA.py - GMSH meshing
pyleecan/Functions/GMSH/draw_GMSH.py - Electrical models
pyleecan/Classes/Electrical.py - Loss models
pyleecan/Classes/Loss.py - Parameter sweep
pyleecan/Classes/VarSimu.py
Results and analysis
- Simulation outputs
pyleecan/Classes/Output.py - Plotting
pyleecan/Functions/Plot - Save and load
pyleecan/Functions/load.py
Optimization
- Design optimization
pyleecan/Classes/OptiProblem.py
User interface
- Desktop GUI
pyleecan/run_GUI.py - Machine setup
pyleecan/GUI/Dialog/DMachineSetup/DMachineSetup.py - Material library
pyleecan/GUI/Dialog/DMatLib/DMatLib.py
Other components
- Engineer
Connections 21
- Engineer → Desktop GUI: launches
pyleecan/run_GUI.py - Desktop GUI → Machine setup: opens setup
pyleecan/run_GUI.py - Desktop GUI → Material library: opens library
pyleecan/run_GUI.py - Machine setup → Machine models: configures
README.md - Material library → Material models: edits materials
pyleecan/GUI/Dialog/DMatLib/DMatLib.py - Machine models → Lamination geometry: comprises
README.md - Lamination geometry → Geometry operations: builds geometry
pyleecan/Classes/Lamination.py - DXF import → Lamination geometry: imports shapes
pyleecan/GUI/Dxf/DXF_Hole.py - Winding models → Machine models: supports winding
README.md - Machine models → FEMM analysis: simulates magnetics
README.md - Machine models → Elmer analysis: supplies machine
pyleecan/Methods/Simulation/MagElmer/solve_FEA.py - Machine models → GMSH meshing: meshes geometry
pyleecan/Functions/GMSH/draw_GMSH.py - Machine models → Electrical models: solves circuits
README.md - FEMM analysis → Loss models: feeds loss models
README.md - Machine models → Parameter sweep: varies parameters
README.md - Machine models → Design optimization: optimizes design
README.md - FEMM analysis → Simulation outputs: produces results
README.md - Elmer analysis → Simulation outputs: produces results
README.md - Electrical models → Simulation outputs: produces results
README.md - Simulation outputs → Plotting: visualizes results
README.md - Simulation outputs → Save and load: saves results
README.md