CurrentController
Current controller
![]()
Library
Modelica/Magnetic/QuasiStatic/FundamentalWave/Utilities
Description
This is a simple current controller.The desired RMS values of d and q component of the quasi-static space phasor current in rotor fixed coordinate system are the inputs id_rms and iq_rms.Using the given rotor position input phi, the quasi-static m-phase output currents i[m] are calculated.The model output can be used to feed a quasi-static current source with phase input to supply synchronous machines.
Parameters

| Name | Label | Description | Data Type | Valid Values |
|---|---|---|---|---|
mo_m | m | Number of phases | Scalar | |
mo_p | p | Number of pole pairs | Scalar | |
mo_gamma0 | gamma0 | Offset added to electrical rotor angle | Scalar |

| Name | Label | Description | Data Type | Valid 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 | ||
mo__modifiers/attribute | Attribute | Cell of strings | 'start' | |
mo__modifiers/value | Value |
Ports
| Name | Type | Description | IO Type | Number |
|---|---|---|---|---|
id_rms | implicit | input | 1 | |
iq_rms | implicit | input | 2 | |
phi | implicit | input | 3 | |
I | implicit | Polyphase current phasors | output | 1 |
gamma | implicit | Reference angle of source | output | 2 |