Documentation Home Page Power Electronics Add-On for NI VeriStand Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

PMSM Machine Model File [JSON]

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

Parameter (JSON key)

Value type

Unit

Description

Example

Parameter (JSON key)

Value type

Unit

Description

Example

PolePairs

int



Number of pole pairs of the machine.

"PolePairs": 2

DqTransformAngleOffset

double

degree

Angle offset applied to the abc to dq Transform, before Id and Iq are referenced to look up Ld, Lq, and Fm. A value of 0 indicates that the 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 Reference Frame Transformation description.

"DqTransformAngleOffset": 0

TableInputCutoffFrequency

double

Hz

Sets the low-pass filter cutoff frequency for the Id and Iq inputs of the Ld, Lq, and Fm lookup tables.

This parameter is optional, and if omitted from the JSON file, the default cutoff frequency is 200Hz. The parameter typically needs adjustment only if the Permanent Magnet Flux Linkage (Fm) table data is not constant, as improper tuning in this case can affect the PMSM output currents.

Please contact OPAL-RT Support for additional information.

"TableInputCutoffFrequency": 500

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 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 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-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-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 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 1 below describes how the inductance values are mapped from the JSON file array to the Permanent Magnet Flux Linkage table.

For the majority of use cases, the data entered in this table is constant, as shown in the example column. Entering variable data into this table may cause unexpected simulation results. If your application requires variable Permanent Magnet Flux Linkage values, it may be necessary to tune the TableInputCutoffFrequency. Please contact OPAL-RT Support for additional information.

JSONImage2.PNG
Figure 1: Layout of the Ld, Lq, and Flux tables as defined in the JSON file

 

An example Machine Model File in JSON format is available here: 

This file is intended for use as a template only; it does not contain valid simulation data.



OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter