Documentation Home Page OPAL-RT Schematic Editor Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

PMSM Variable DQ parameters file

How to specify variable DQ parameters in the Schematic Editor ?

The PMSM block has a "Motor configuration type" parameter,  in the "Electrical" tab, which is a dropdown. When the "Variable DQ" is selected, you are allowed to specify a file which should contain electrical parameters in the "Motor Configuration"field.

This file has to be in a specific format which is described below.

What is the format of the variable DQ parameters file ?

The electrical parameters are described in a JSON format. The following parameters must appear in the file.

Paremeter (JSON key)Value typeUnitDescriptionExample

PolePairs

intN.A.

Number of pole pairs of the machine.

"PolePairs": 2

DqTransformAngleOffset

doubledegreeAngle offset applied for the DQ Park Transform"DqTransformAngleOffset": -90.0

Ra

doubleOhmResistance of the phase A"Ra": 0.04

Rb

doubleOhmResistance of the phase B"Rb": 0.04

Rc

doubleOhmResistance of the phase C"Rc": 0.04

Id_axis

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

Iq_axis

double[]AOne dimensional array of the current values along the quadratic axis"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.

"Lq": [
    [
        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
    ]
]

TableInputCutoffFrequency (optional, default value 200 Hz)doubleHzCut-off frequency of the low-pass filter applied on Id and Iq inputs of Ld, Lq, and Fm look-up tables."TableInputCutoffFrequency": 500

All the examples above concatenated would give in a valid JSON format:

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323