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.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

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
    ]
]

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

  • No labels