DQCurrentController

Current controller in dq coordinate system

Diagram

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

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 (10)

nout

Value: m

Type: Integer

Description: Number of outputs

p

Value:

Type: Integer

Description: Number of pole pairs

useRMS

Value: true

Type: Boolean

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

fsNominal

Value:

Type: Frequency (Hz)

Description: Nominal frequency

VsOpenCircuit

Value:

Type: Voltage (V)

Description: Open circuit RMS voltage per phase @ fsNominal

Rs

Value:

Type: Resistance (Ω)

Description: Stator resistance per phase

Ld

Value:

Type: Inductance (H)

Description: Inductance in d-axis

Lq

Value:

Type: Inductance (H)

Description: Inductance in q-axis

decoupling

Value: false

Type: Boolean

Description: Use decoupling network

psiM

Value: sqrt(2) * VsOpenCircuit / (2 * pi * fsNominal)

Type: MagneticFlux (Wb)

Description: Approximation of magnetic flux linkage

Connectors (5)

y

Type: RealOutput[nout]

Description: Connector of Real output signals

id

Type: RealInput

Description: Reference of d-current

iq

Type: RealInput

Description: Reference of q-current

phi

Type: RealInput

Description: Rotor angle

iActual

Type: RealInput[m]

Description: Measured three-phase currents

Components (10)

fromDQ

Type: FromDQ

toDQ

Type: ToDQ

toPeak_d

Type: Gain

toPeak_q

Type: Gain

feedback_d

Type: Feedback

feedback_q

Type: Feedback

PI_d

Type: PI

PI_q

Type: PI

add

Type: Add[2]

deCoupling

Type: RealExpression[2]

Used in Examples (2)

SMPM_VoltageSource

Modelica.Electrical.Machines.Examples.SynchronousMachines

Test example: PermanentMagnetSynchronousMachine fed by FOC

SMPM_VoltageSource

Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines

Test example: PermanentMagnetSynchronousMachine fed by FOC