winding
The winding attribute of the Project.stator corresponds to the Stator Winding CheckPoint in the GUI. It is an instance of the StatorWindingData class, which can be accessed through eMotorSolution.CheckPoints.Stator.Winding.
Parameters
- phase_number_expression:
str | intThe mathematical expression string or integer representing the number of phases in the stator winding. Default is3. - layer_configuration_init:
Literal["Single", "Distributed", "Concentrated"]Specifies the layer configuration of the stator winding. Default isSingle. - turns_per_coil_expression:
str | intThe mathematical expression string or integer representing the number of turns per coil in the stator winding. Default is9. - parallel_paths_expression:
str | intThe mathematical expression string or integer representing the number of parallel paths in the stator winding. Default is1. - coil_span_expression:
str | intThe mathematical expression string or integer representing the coil span in the stator winding. Default is6.
Additional Considerations for
coil_spanThe coil_span is influenced by the layer_configuration:
- For
Singlelayer configuration, thecoil_spanshould be equal to the pole pitch . - For
Distributedwinding, . - For
Concentratedwinding, coil span should be equal to .
- winding_material_init:
strThe name of the winding material. It should be one of the non-magnet materials in the project's materials collection. Default isCopper.
Methods
| Method | Description |
|---|---|
| set_phase_number(expression) | Sets the expression: str | int for phase_number. |
| set_layer_configuration(name) | Sets the name: Literal["Single", "Distributed", "Concentrated"] for layer_configuration. The coil_span will be adjusted accordingly. |
| set_turns_per_coil(expression) | Sets the expression: str | int for turns_per_coil. |
| set_parallel_paths(expression) | Sets the expression: str | int for parallel_paths. |
| set_coil_span(expression) | Sets the expression: str | int for coil_span. Effective only for Distributed winding. |
| set_winding_material(material_name) | Sets the material_name: str for winding_material. It should be one of the non-magnet materials in the project's materials collection. |
| validate() | Returns the validation status in dictionary format. |
Attributes
| Attribute | Description |
|---|---|
| phase_number | int Returns the evaluated number of phases in the stator winding. ⚠️ read-only |
| layer_configuration | Literal["Single", "Distributed", "Concentrated"] Returns the layer configuration of the stator winding. ⚠️ read-only |
| layer_number | int Returns the number of layers in the stator winding (1 for Single, 2 for Distributed and Concentrated). ⚠️ read-only |
| turns_per_coil | int Returns the evaluated number of turns per coil in the stator winding. ⚠️ read-only |
| parallel_paths | int Returns the evaluated number of parallel paths in the stator winding. ⚠️ read-only |
| coil_span | int Returns the evaluated coil span in the stator winding. ⚠️ read-only |
| winding_material | str Returns the name of the winding material. ⚠️ read-only |