Disturbance-Observer-Based Grid-Forming Control#
In these notes, disturbance-observer-based grid-forming control is discussed [1]. This control method is available in the motulator.grid.control.ObserverBasedGridFormingControl
class. As can be realized by comparing the examples 12.5-kVA converter, RFPSC and 12.5-kVA converter, disturbance observer, the observer-based grid-forming control can be configured to behave practically identically with reference-feedforward power-synchronization control (PSC) [2]. Compared to reference-feedforward PSC, disturbance-observer-based grid-forming control is easier to analyze and extend with different operating modes (including grid-following and transparent current-control modes). The order of these two control methods is the same and their computational complexity is comparable.
System Model#
First, the system is modeled in general coordinates, whose angle with respect to the stationary coordinates is \(\vartheta_\mathrm{c}\) and the angular speed is \(\omega_\mathrm{c} = \mathrm{d}\vartheta_\mathrm{c}/\mathrm{d} t\). The dynamics of the inductor current \(\boldsymbol{i}_\mathrm{c}\) and the grid voltage \(\boldsymbol{u}_\mathrm{g}\) are modeled as
where \(L\) is the inductance and \(\omega_\mathrm{g}\) is the grid angular frequency. The grid voltage \(\boldsymbol{u}_\mathrm{g}\) is modeled as a disturbance; this same disturbance model for the grid voltage is also used in the development of Phase-Locked Loop. The active power fed to the grid is nonlinear in the state variables
For the purpose of grid-forming control, we may define the quasi-static converter voltage as an output variable as a function of the state variables,
This voltage is controllable (unlike the grid voltage which is the disturbance) and it equals the converter output voltage \(\boldsymbol{u}_\mathrm{c}\) in the steady state. The disturbance-observer-based PSC regulates the voltage magnitude \(|\boldsymbol{v}_\mathrm{c}|\) and the power \(p_\mathrm{g}\) fed to grid.
Control System#
The control system consists of a disturbance observer and a control law. The disturbance observer estimates the quasi-static converter voltage and the power fed to the grid. The control law generates the converter voltage reference based on the estimated grid voltage and power. The disturbance observer also provides the integral action for the control law. This control structure allows seamless switching between grid-forming and grid-following modes [1]. For simplicity, only the grid-forming mode is considered in the following.
Disturbance Observer#
Based on (1)–(3), a disturbance observer for the grid voltage can be formed [1], [3], [4]
where \(\hat \omega_\mathrm{g}\) is the nominal grid angular frequency and estimates are marked with hat.
Note
A conventional phase-locked loop (PLL) can be expressed in the same disturbance observer framework, see the Phase-Locked Loop notes. It can be realized that the measured grid voltage \(\boldsymbol{u}_\mathrm{g}\) used in the conventional PLL is replaced by its converter-voltage-based estimate \(\boldsymbol{u}_\mathrm{c} - \hat L (\mathrm{d} \boldsymbol{i}_\mathrm{c}/\mathrm{d} t) - \mathrm{j} \omega_\mathrm{c} \hat L \boldsymbol{i}_\mathrm{c}\) in the disturbance observer (4).
Control Law#
A nonlinear state feedback law is used
where \(p_\mathrm{g,ref}\) is the active power reference, \(v_\mathrm{c,ref}\) is the converter voltage magnitude reference, and \(\boldsymbol{k}_\mathrm{p}\) and \(\boldsymbol{k}_\mathrm{v}\) are the complex gains for the active-power and converter-voltage-magnitude channels, respectively. To ensure robust operation, similar to the reference-feedforward PSC, the complex gains can be selected as
where the gains \(R_\mathrm{a} = 0.2\) p.u. and \(k_\mathrm{v} = \alpha_\mathrm{o}/\omega_\mathrm{g}\) can be used.
Implementation Aspects#
To avoid the derivate on the right-hand side of (4), a new state variable \(\hat{\boldsymbol{u}}_\mathrm{g}' = \hat{\boldsymbol{u}}_\mathrm{g} + \alpha_\mathrm{o} \hat L \boldsymbol{i}_\mathrm{c}\) can be introduced [4]. Furthermore, the coordinate system for the implementation can be chosen freely. The simplest choice is to use the nominal grid frequency as the coordinate system frequency, \(\omega_\mathrm{c} = \hat \omega_\mathrm{g}\). Using these design choices, the whole control system consisting of the disturbance observer (4) and the control law (5) in the state-space form reduces to [1]
where the gains can be selected according to (6) and the converter voltage appearing in the observer has been replaced with its reference. Various control modes could be easily incorporated into the control system (7), simply by changing the feedback correction terms of the control law [1]. The switching between the modes is seamless since the control law does not have memory, but the integral action is provided by the disturbance observer (in addition to synchronization).
The control system implemented in the motulator.grid.control.ObserverBasedGridFormingControl
class corresponds to (7). In the example implementation, a transparent current-control mode is implemented. In the grid-forming mode, the observer bandwidth \(\alpha_\mathrm{o} = 1\) p.u. can be used. Furthermore, the inductance estimate can be set close to the lowest expected inductance value, e.g., \(\hat L = 0.15\) p.u. Using this configuration, the robust performance from strong grids to very weak grids can be achieved. This grid-forming control method can also be used with LCL filters, similarly to reference-feedforward PSC.
References