DQCurrentController

Current controller in dq coordinate system

    DQCurrentController

Library

Modelica/Electrical/Machines/Utilities

Description

Simple Current controller

The desired d- and q-component of the space phasor current in rotor fixed coordinate system are given by inputs id and iq.Using the given rotor position (input phi), the actual three-phase currents are measured and transformed to the d-q coordinate system.Two PI-controllers determine the necessary d- and q- voltages, which are transformed back to three-phase (output y[3]).They can be used to feed a voltage source which in turn feeds a permanent magnet synchronous machine.

Inputs d and q can be given either as peak values (useRMS=false) or as RMS (useRMS=true).The correction by factor √2 is done automatically.The measured currents iActual[m] are assumed to be instantaneous values.

Note: No care is taken for current or voltage limiting, as well as for field weakening.

Parameters

DQCurrentController_0

NameLabelDescriptionData TypeValid Values

mo_p

p

Number of pole pairs

Scalar

mo_useRMS

useRMS

If true, inputs dq are multiplied by sqrt(2)

Scalar

true
false

mo_fsNominal

fsNominal

Nominal frequency

Scalar

mo_VsOpenCircuit

VsOpenCircuit

Open circuit RMS voltage per phase @ fsNominal

Scalar

mo_Rs

Rs

Stator resistance per phase

Scalar

mo_Ld

Ld

Inductance in d-axis

Scalar

mo_Lq

Lq

Inductance in q-axis

Scalar

mo_decoupling

decoupling

Use decoupling network

Scalar

true
false

mo_psiM

psiM

Approximation of magnetic flux linkage

Scalar

mo_nout

nout

Number of outputs

Scalar

DQCurrentController_1

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

'omega'
'Vd'
'Vq'

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

y

implicit

Connector of Real output signals

output

1

id

implicit

Reference of d-current

input

1

iq

implicit

Reference of q-current

input

2

phi

implicit

Rotor angle

input

3

iActual

implicit

Measured three-phase currents

input

4

See Also