Rectangular Magnet


The Rectangular Magnet data class, SPM_SlotM15Data, is accessed through the eMotorSolution.CheckPoints.Rotor.SPMSM.SPM_SlotM15Data module.
Parameters
- W0_expression:
str | floatThe string mathematical expression or a float value forW0. - W0_unit:
Literal["deg", "rad"]The unit of theW0. Default is"deg". - W1_expression:
str | floatThe string mathematical expression or a float value forW1. - W1_unit:
Literal["deg", "rad"]The unit of theW1. Default is"deg". - H0_expression:
str | floatThe string mathematical expression or a float value forH0. - H0_unit:
Literal["m", "dm", "cm", "mm", "in", "ft"]The unit of theH0. Default is"m". - H1_expression:
str | floatThe string mathematical expression or a float value forH1. - H1_unit:
Literal["m", "dm", "cm", "mm", "in", "ft"]The unit of theH1. Default is"m".
Methods
| Method | Description |
|---|---|
| set_W0(expression, unit) | Sets the expression: str | float and unit: Literal["deg", "rad"] for W0. |
| set_W1(expression, unit) | Sets the expression: str | float and unit: Literal["deg", "rad"] for W1. |
| set_H0(expression, unit) | Sets the expression: str | float and unit: Literal["m", "dm", "cm", "mm", "in", "ft"] for H0. |
| set_H1(expression, unit) | Sets the expression: str | float and unit: Literal["m", "dm", "cm", "mm", "in", "ft"] for H1. |
| validate() | Returns the validation status in dictionary format. |
Attributes
| Attribute | Description |
|---|---|
| W0 | float Returns the evaluated value of W0 in deg. ⚠️ read-only |
| W1 | float Returns the evaluated value of W1 in deg. ⚠️ read-only |
| H0 | float Returns the evaluated value of H0 in m. ⚠️ read-only |
| H1 | float Returns the evaluated value of H1 in m. ⚠️ read-only |
| hints | dict[str, float] Returns the hints for the slot in m. ⚠️ read-only |