Then, a detailed scheme of the proposed control for the negative sequence components, which only acts during the fault, is presented. Finally, once the converter voltage references of both sequences , , and are obtained, the switching pattern can be generated.
4.2. Positive Sequence Control Scheme
The proposed GFM control scheme for the positive sequence is shown in
Figure 4, which is composed of four blocks. The virtual-flux measurement (VFM) block calculates the positive sequence variable state for each phase,
by integrating the positive sequence voltage,
, plus the product of the positive sequence current,
, and the filter inductance. The calculation is expressed as follows, where
k = a,b,c denotes the phase:
Afterwards, a Clarke transformation is applied to obtain the
components of the positive sequence virtual flux, yielding:
In addition, within this block, the value of the positive active power
and positive reactive power
are obtained as follows:
The positive active power controller (
) block depicted in
Figure 4 is shown in
Figure 5. This block calculates the control angle
θ along which the positive sequence virtual-flux vector
must be oriented to reproduce the SG’s swing equation. The internal frequency
is obtained from the equation:
where the reference active power is represented by
, the measurement of the active power is denoted by
, and the inertia is represented by
, given in seconds and defined as twice the inertia constant H (
= 2H). The damping factor, in per unit, is denoted by
and
represents the rated frequency in rad/s.
As is depicted in
Figure 5, the angle
θ is obtained by the integration of the frequency
, which can also be expressed as the internal frequency
minus
plus
and
, yielding:
where
is the internal frequency obtained from the swing equation.
is the ouput of the power system stabilizer (PSS) block, which is added in order to compensate the insufficiently damped active power response when the inertia constant is significant and the damping factor is low.
is the output of the positive active current limiting (
) block, which ensures that the maximum active current value,
, is not exceeded. When this limit is approached, the
block restricts the control angle θ, thereby limiting the active current module [
43].
As a new feature in this control loop, the positive active current controller (
) block shown in
Figure 6 has been added, which only acts when a voltage fault is detected (
signal equals to 1). The output of this block is the frequency
.
As stated in the Spanish grid code, in the event of a fault, in addition to the reactive current injected, the converter must inject positive sequence active current up to the value of the rated current of the converter if there is remaining current headroom. This will depend on fault type, voltage depth, and constant K setting. More details will be provided below. To ensure that the maximum value of the current provided by the converter is reached and not exceeded, it must be ensured that:
where
and
are the positive and negative current modulus, respectively. As during the faults and only in case of unbalanced, the negative sequence current that will exist will be the
, and (11) can be expressed as:
where
is defined as:
Therefore, replacing (13) in (12) and using the value of the current references instead of their instantaneous value yields:
By subtracting from the equation,
is obtained:
When a voltage dip is detected (
signal equals to 1), the error between
and the positive sequence active current module
is passed through a proportional-integral (PI) regulator to obtain
, which modifies the angle θ until the
is reached. The
current is calculated from:
where the positive sequence module of the voltage
is limited to a value greater than zero (
) to avoid indeterminacies.
The positive reactive power controller (
) block depicted in
Figure 4 is illustrated in
Figure 7. The inputs of this block, depending on whether the VSC is operating as a PQ node or a PV node, are the positive sequence reference and measured reactive power (
and
, respectively) or voltage (
and
). As indicated in [
43], the reactive power exchanged by the converter depends on the difference between the module of the internal voltage
and the grid voltage
, where
is proportional to
. So, the reactive power can be controlled by a droop control where the virtual-flux module reference is obtained as:
being an initial virtual flux set to 1 p.u. and
the droop gain. In this case, the positive sequence modulus of the reference virtual flux is calculated using the positive sequence components of
and
. Furthermore, there are two additional terms in the proposed control loop,
and
.
The first one is the positive reactive current limiting (
) block output,
, which, similarly to the
block, ensures that the maximum positive sequence reactive current value,
, is not exceeded. When this limit is approached, the
block reduces the virtual-flux module reference, limiting as well the reactive current [
43].
The second term is the output of the positive reactive current controller (
) block,
, being the novelty within this control loop. This block is shown in
Figure 8 and operates in a very similar way as the
loop. According to the Spanish grid code, when a fault occurs, the VSC must inject positive sequence reactive current additional to the pre-fault reactive current and proportional to the positive sequence voltage error (
). As the pre-fault positive sequence reactive current is very low before the fault, this is disregarded for the tests performed, assuming that
is equal to
.
Therefore, in order to obtain the
, a
factor is applied to the positive sequence voltage error obtained and limiting its value to 1 and −1 p.u. The values of
and
for negative sequence are fixed at a certain value but, in the event that the sum of
and
exceeds 1 p.u., their value is automatically readjusted to ensure that it always satisfies that:
Then, when a voltage dip is detected, the error between
and the positive sequence reactive current module
is passed through a PI regulator to obtain
, which modifies the module of the positive sequence virtual-flux reference until the
is reached. The
current is calculated from:
where the positive sequence module of the voltage
is also limited to a value greater than zero (
) to avoid indeterminacies.
Therefore, the module of the positive sequence virtual-flux reference
is obtained as follows:
In
Table A1 of
Appendix A, it can be seen that the PI controller gains for the ACC+ and RCC+ blocks are different. This is due to the fact that the ACC+ controller acts directly on the control angle, which can worsen the system response in case of oscillations. In contrast, the RCC+ controller acts directly on the magnitude of the virtual flux, enabling a faster response without compromising the system behavior.
Lastly, the control scheme of the virtual-flux orientation (VFOC) depicted in
Figure 4 is shown in
Figure 9, which calculates the positive sequence converter voltage references
and
. In order to obtain the positive sequence dq components of the virtual flux, a Park transformation (αβ-dq) is applied to
and
, calculated through the VFM block.
After that, the q component is compared to 0 to align the virtual-flux module to the d-axis. Meanwhile, the d component is compared to the flux module reference calculated in the loop. Both error signals are passed through two PI regulators and then feedforward signals are added to compensate the cross-coupling terms.
4.3. Negative Sequence Control Scheme
To fulfill the current absorption/injection requirements during unbalanced faults of the Spanish grid code, the negative sequence control scheme shown in
Figure 10 has been implemented. The proposed control is composed by three different blocks, obtaining as outputs the negative sequence converter voltage references
and
.
The
calculation block obtains the negative sequence active and reactive powers in a similar way to (8) and (9) but using the negative sequence voltages and currents, resulting in:
The negative reactive current controller (
) block is shown in
Figure 11 and operates in a very similar way as the
loop. As required by the Spanish grid code, when an unbalanced fault occurs, the converter must inject negative sequence reactive current additional to the pre-fault reactive current and proportional to the negative sequence voltage error (
). As the pre-fault negative sequence reactive current is zero before the fault, the
is assumed equal to
.
To obtain the , a factor is applied to the negative sequence voltage error measured. In addition, the reference value is limited to 1 and −1 p.u. As with , its value is fixed at a certain value but is automatically readjusted when the sum of and exceeds 1 p.u. to ensure that the converter currents always satisfy (19).
Then, when a voltage dip is detected, the error between
and the negative sequence reactive current module
is passed through a regulator to obtain
. As a particular feature of this block, the PI gain must be of a negative sign because the modulus of
and the current component
are of the opposite sign. The
current is calculated similarly to (19) from the following equation:
where the negative sequence module of the voltage
is also limited to a value greater than zero (
) to avoid indeterminacies.
The negative active current controller (
) block depicted in
Figure 10 is illustrated in
Figure 12. This block operates as the
but, in this case, the reference is set to 0 in order to not inject negative sequence active current during the fault. As for the
, the gain of the PI regulator must be negative since the modulus of
and the negative sequence component
are opposite. The
current is calculated from:
where the positive sequence module of the voltage
is limited to a value greater than zero (
) to avoid indeterminacies.