Pll

Pll is a synchronous-reference-frame phase-locked loop on a three-phase bus. It drives the q-axis voltage \(v_q\) to zero, so that \(\theta\) and \(\omega\) track the angle and frequency of the bus voltage \(\mathbf{v}\).

Block Diagram

None.

Model Parameters

Symbol

Units

JSON

Description

Note

\(K_P\)

\([\mathrm{rad}/(\mathrm{V\,s})]\)

Kp

Proportional gain

Required, positive

\(K_I\)

\([\mathrm{rad}/(\mathrm{V\,s^2})]\)

Ki

Integral gain

Required, positive

Parameter Validation

\[\begin{split}\begin{aligned} K_P &\in \mathbb{R}_{>0} \\ K_I &\in \mathbb{R}_{>0} \end{aligned}\end{split}\]

Model Derived Parameters

\[\omega^\mathrm{base} = 2\pi f^\mathrm{base}\]

Model Ports

Symbol

Port

Type

Units

Description

Note

\(\mathbf{v}\)

v

Input

[V]

Bus voltage, phases a, b and c

\(\mathbf{v} \in \mathbb{R}^3\)

\(\theta\)

theta

Output

[rad]

Angle

Internal variable

\(\omega\)

omega

Output

[rad/s]

Frequency

Submodels

None.

Submodel Validation

None.

Submodel Wiring

None.

Model Variables

Internal Variables

Differential

Symbol

Units

Description

Note

\(\theta\)

[rad]

Angle

\(x\)

[rad/s]

Integrator state

Algebraic

None.

External Variables

Differential

Symbol

Units

Description

Note

\(\mathbf{v}\)

[V]

Bus voltage vector owned by EMT bus

\(\mathbf{v} \in \mathbb{R}^3\)

Algebraic

None.

Model Equations

\[v_q = -\dfrac{2}{3}(v_a\sin\theta + v_b\sin(\theta - \tfrac{2\pi}{3}) + v_c\sin(\theta + \tfrac{2\pi}{3}))\]

Internal Equations

Differential

\[\begin{split}\begin{aligned} 0 &= -\dfrac{\mathrm{d}\theta}{\mathrm{d}t} + \omega \\ 0 &= -\dfrac{\mathrm{d}x}{\mathrm{d}t} + K_I v_q \end{aligned}\end{split}\]

Algebraic

None.

External Equations

\[\omega \leftarrow \omega^\mathrm{base} + K_P v_q + x\]

Initialization

None.

Monitors

Monitor

Units

Description

Note

theta

[rad]

Angle

x

[rad/s]

Integrator state

omega

[rad/s]

Frequency

Output