power_PMSynchronousMachineParams
Convert manufacturer specifications to mask parameters of Permanent Magnet Synchronous Machine block
Syntax
power_PMSynchronousMachineParams
params = power_PMSynchronousMachineParams(spec)
Description
power_PMSynchronousMachineParams
opens a graphical user interface to
compute the parameters of the Permanent Magnet Synchronous Machine block from standard
manufacturer specifications.
params = power_PMSynchronousMachineParams(spec)
computes the block
parameters from the input structure spec
which contains the manufacturer
specifications. The solution is returned in the output structure params
.
This table shows the electrical and mechanical parameters of the Permanent Magnet Synchronous Machine block along with their units.
Parameter | Unit |
---|---|
Stator phase resistance, | ohm |
Stator phase inductance, | H |
Armature inductance, | H |
Inductances, | H |
Flux linkage established by magnets | V.s |
Voltage constant, | Vpeak/krpm |
Torque constant, | N.m/Apeak |
Inertia, | kg.m2 |
Viscous damping, | N.m.s |
Manufacturers provide machine parameters in several units, usually different from the units required by the Permanent Magnet Synchronous Machine block. This table provides the parameters and units commonly found in manufacturer specifications.
Manufacturer Specification | Units |
---|---|
Line-to-line resistance, | ohm (line-line) |
Line-to-line inductance, | mH (line-line) |
d- and q-axis phase inductances,
| mH |
Voltage Constant | Vpeak/krpm |
Torque Constant | N.m/Apeak |
Inertia | kg.m2 |
Viscous damping | N.m.s |
The power_PMSynchronousMachineParams
function converts the given
manufacturer parameters and units to the parameters required by the Permanent Magnet Synchronous
Machine block. The function computes the machine parameters using:
Stator phase resistance
Stator phase inductance
Armature inductance
Voltage constant
Torque constant
Inertia
Viscous damping
Input Arguments
spec
The manufacturer data is specified in a structure with the following fields.
Field | Description |
---|---|
| Specifies the shape of back EMF waveform
|
| Specifies the type of rotor |
| Line-to-line resistance (ohm) |
| Line-to-line inductance (mH). Specify this field only for a round, rotor machine. |
| d-axis phase inductance (mH). Specify this field only for a salient-pole rotor machine. |
| q-axis phase inductance (mH). Specify this field only for a salient-pole rotor machine. |
| Specifies the type of constant |
| Value of the voltage or torque constant |
| Units of the voltage or torque constant numerator
|
| Units of the voltage or torque constant denominator
|
| Moment of inertia |
| Units for moment of inertia |
| Viscous damping |
| Units for viscous damping |
| Number of pole pairs |
params
contains additional options to the function in a structure with
the following fields.
Output Arguments
params
The Permanent Magnet Synchronous Machine block parameters are returned in a structure with these fields.
Field | Description |
---|---|
| Flux induced by magnets (V.s) |
| Voltage constant (Vpeak/krpm) |
| Torque constant (N.m/Apeak) |
| Machine inertia (kg.m2) |
| Machine viscous damping (N.m.s) |
| Stator phase resistance (ohm) |
| Stator phase inductance (H). Computed for the round rotor machine |
| D-axis phase inductance (H). Computed for a sinusoidal back EMF with salient-pole rotor machine. |
| Q-axis phase inductance (H). Computed for a sinusoidal back EMF and salient-pole rotor machine. |
| Number of pole pairs |
Interface
You can also obtain the mask parameters of the Permanent Magnet Synchronous Machine block through the user interface of the function.
- Specifications
Enter the manufacturer specifications. Depending on the option that you select in the Back EMF waveform, Rotor type, and Specify parameters, some specifications are not available. Unavailable parameters are not taken into account in block parameter computation.
- Compute Block Parameters
Compute the electrical parameters and display the solution in the Block Parameters section. When you obtain the block parameters, the button is unavailable.
When you enter new values in the Specifications section, the button is enabled to indicate that the displayed block parameters no longer correspond to the displayed specifications.
- Block Parameters
Displays the parameters corresponding to the given manufacturer specifications. The first time that you open the interface, these fields are empty. You cannot edit these block parameters.
When the Rotor type is set to Salient-pole, the Armature inductance parameter is unavailable, indicating that its value is not computed using the Compute Block Parameters button.
When the Rotor type is set to Round, the Inductances parameter is unavailable, indicating that its value is not computed using the Compute Block Parameters button.
- Apply to Selected Block
Open your model, select the machine you want to parametrize, then click the Apply to selected block button to load the displayed block parameters in the block. When the Block Parameters fields are empty, the button is unavailable. The button is enabled when a valid solution is displayed in the Block Parameters section.
The button has no effect on a selected block that is not a Permanent Magnet Synchronous Machine block.
- Help
Opens the help page of the
power_PMSynchronousMachineParams
function.- Close
Closes the interface.
Examples
Consider a 4 kW, permanent magnet synchronous machine (round rotor and sinusoidal back emf) with this manufacturer specification.
Data | Values |
---|---|
| 0.36 ohm (line-line) |
| 1.67 mH (line-line) |
| 60.70 oz.in/Apeak |
| 5.5E-03 lb.in.sec^2 |
| 4.5 oz.in/krpm |
| 4 |
Based on this specification, to obtain the required mask parameters for the Permanent Magnet Synchronous Machine block, in the Command Window, enter these commands:
spec.backEMF = 'sinusoidal'; spec.rotorType = 'round' ; spec.R = 0.36; spec.Lab = 1.67; spec.suppliedConstant = 'torque'; spec.k = 60.70; spec.kUnitsNum = 'oz.in'; spec.kUnitsDenom = 'Apeak'; spec.J = 5.5e-3; spec.inertiaUnits = 'lb.in.s^2' ; spec.F = 4.5; spec.frictionUnits = 'oz.in/krpm'; spec.p = 4; params = power_PMSynchronousMachineParams(spec)
You obtain these results:
params = lambda: 0.0714 ke: 51.8307 kt: 0.4286 J: 6.2142e-004 F: 3.0345e-004 Rs: 0.1800 Ls: 8.3500e-004 Ld: [] Lq: [] p: 4