For a PMSM BLDCmachine model configured to use the PMSM Variable Ld/Lq motor machine type, a JSON file is required to define the motor machine characteristics. The file must contain the following information:
Parameter (JSON key) | Value type | Unit | Description | Example | |||||
---|---|---|---|---|---|---|---|---|---|
PolePairs | int | Number of pole pairs of the machine. |
| ||||||
DqTransformAngleOffset | double | degree | Angle offset applied to the DQ abc to dq Transform, before Id and Iq are referenced to look up Ld, Lq, and Fm. A value of 0 indicates that the D direct axis is aligned with Phase A when the rotor angle θ=0. In other words, the active power reaches a maximum when Id is at a maximum. This is the default behavior. For more information, see the DQ Transform Reference Frame Transformation description. |
| |||||
Ra | double | Ohm | Phase A Resistance of the machine |
| |||||
Rb | double | Ohm | Phase B Resistance of the machine |
| |||||
Rc | double | Ohm | Phase C Resistance of the machine |
| |||||
Id_axis | double[] | A | One dimensional array of the current values along the Direct direct axis of the stator. This array must be the same size as Iq_axis, it can contain up to 128 values, and they must be arranged in ascending order. |
| |||||
Iq_axis | double[] | A | One dimensional array of the current values along the Quadratic quadratic axis of the stator. This array must be the same size as Id_axis, it can contain up to 128 values, and they must be arranged in ascending order. |
| |||||
Ld | double[][] | H | Two dimensional array of the Direct direct-axis inductance values. The size of this array must be n x n, where n is equal to the number of current values in Id_axis and Iq_axis. Figure 1 below describes how the inductance values are mapped from the JSON file array to the Ld table. |
| |||||
Lq | double[][] | H | Two dimensional array of the Quadratic quadratic-axis inductance values. The size of this array must be n x n, where n is equal to the number of current values in Id_axis and Iq_axis. Figure 1below describes how the inductance values are mapped from the JSON file array to the Lq table. |
| |||||
Fm | double[][] | Wb | Two dimensional array of the Permanent Magnet Flux Linkage values. The size of this array must be n x n, where n is equal to the number of current values in Id_axis and Iq_axis. Figure 1below describes how the inductance values are mapped from the JSON file array to the Permanent Magnet Flux Linkage table. |
|
...
An example Motor Machine Model File in JSON format is available here:
...