Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

For a PMSM BLDC machine configured to use the PMSM Variable Ld/Lq motor type, a JSON file is required to define the motor characteristics. The file must contain the following information:


Parameter (JSON key)Value typeUnitDescriptionExample

PolePairs

int

Number of pole pairs of the machine.

"PolePairs": 2

DqTransformAngleOffset

doubledegree


Warning
Due to a known issue, this value is not taken into consideration during the simulation, however it must still be specified by the user.

Angle offset applied to the D-Q Transform, before Id and Iq are referenced to look up Ld, Lq, and Fm. A value of 0 indicates that the D axis is aligned with Phase A when the rotor angle θ=0. This is the default behavior.

For more information, see the D-Q Transform description.

"DqTransformAngleOffset": -90.0

Ra

doubleOhmPhase A Resistance of the machine"Ra": 0.04

Rb

doubleOhmPhase B Resistance of the machine"Rb": 0.04

Rc

doubleOhmPhase C Resistance of the machine"Rc": 0.04

Id_axis

double[]AOne dimensional array of the current values along the Direct axis of the stator."Id_axis": [
    -50.0,
    0.0,
    50.0
],

Iq_axis

double[]AOne dimensional array of the current values along the Quadratic axis of the stator."Iq_axis": [
    -50.0,
    0.0,
    50.0
],

Ld

double[][]H

Two dimensional array of the Direct inductance values. 

The first index is for the direct axis.

The second index is for the quadrature axis.

"Ld": [
    [
        0.0004,
        0.00042,
        0.00041
    ],
    [
        0.00041,
        0.00044,
        0.00043
    ],
    [
        0.0004,
        0.00042,
        0.000425
    ]
],

Lq

double[][]H

Two dimensional array of the Quadratic inductance values. 

The first index is for the direct axis.

The second index is for the quadrature axis.

"Ld": [
    [
        0.0004,
        0.00042,
        0.00041
    ],
    [
        0.00041,
        0.00044,
        0.00043
    ],
    [
        0.0004,
        0.00042,
        0.000425
    ]
],

Fm

double[][]Wb

Two dimensional array of the Permanent magnet flux values. 

The first index is for the direct axis.

The second index is for the quadrature axis.

"Fm": [
    [
        0.1,
        0.1,
        0.1
    ],
    [
        0.1,
        0.1,
        0.1
    ],
    [
        0.1,
        0.1,
        0.1
    ]
]


The image below describes the layout of the tables in the JSON file:


Click the following link to download an example of the Motor Model File in JSON format:  PMSM Variable Parameter JSON Example.json