motulator.grid.control.grid_forming#

Controls for grid-forming converters.

Classes#

ObserverBasedGFMControl

Disturbance-observer-based grid-forming control for grid converters.

ObserverBasedGFMControlCfg

Disturbance-observer-based grid-forming control configuration.

RFPSCControl

Reference-feedforward power synchronization control for grid converters.

RFPSCControlCfg

Power synchronization control configuration.

Package Contents#

class motulator.grid.control.grid_forming.ObserverBasedGFMControl(cfg)[source]#

Bases: motulator.grid.control.GridConverterControlSystem

Disturbance-observer-based grid-forming control for grid converters.

This implements the RFPSC-type grid-forming mode of the control method described in [1]. Transparent current control is also implemented.

Parameters:

cfg (ObserverBasedGFMControlCfg) – Controller configuration parameters.

Notes

In this implementation, the control system operates in synchronous coordinates rotating at the nominal grid angular frequency, which is worth noticing when plotting the results. For other implementation options, see [1].

References

get_feedback_signals(mdl)[source]#

Get the feedback signals.

output(fbk)[source]#

Extend the base class method.

update(fbk, ref)[source]#

Extend the base class method.

class motulator.grid.control.grid_forming.ObserverBasedGFMControlCfg[source]#

Disturbance-observer-based grid-forming control configuration.

Parameters:
  • grid_par (GridPars) – Grid model parameters.

  • filter_par (FilterPars) – Filter model parameters.

  • max_i (float) – Maximum current modulus (A).

  • R_a (float) – Active resistance (Ω).

  • T_s (float, optional) – Sampling period of the controller (s). Default is 100e-6.

  • k_v (float, optional) – Voltage gain. The default is 1.

  • alpha_c (float, optional) – Current control bandwidth (rad/s). The default is 2*pi*400.

  • alpha_o (float, optional) – Observer gain (rad/s). The default is 2*pi*50.

  • C_dc (float, optional) – DC-bus capacitance (F). The default is None.

class motulator.grid.control.grid_forming.RFPSCControl(cfg)[source]#

Bases: motulator.grid.control.GridConverterControlSystem

Reference-feedforward power synchronization control for grid converters.

This implements the reference-feedforward power synchronization control (RFPSC) method [2].

Parameters:

cfg (PSCControlCfg) – Model and controller configuration parameters.

References

get_feedback_signals(mdl)[source]#

Get the feedback signals.

output(fbk)[source]#

Extend the base class method.

update(fbk, ref)[source]#

Extend the base class method.

class motulator.grid.control.grid_forming.RFPSCControlCfg[source]#

Power synchronization control configuration.

Parameters:
  • grid_par (GridPars) – Grid model parameters.

  • filter_par (FilterPars) – Filter model parameters.

  • max_i (float) – Maximum current modulus (A).

  • R_a (float) – Damping resistance (Ω).

  • T_s (float, optional) – Sampling period of the controller (s). The default is 100e-6.

  • w_b (float, optional) – Current low-pass filter bandwidth (rad/s). The default is 2*pi*5.

  • C_dc (float, optional) – DC-bus capacitance (F). The default is None.