10-kVA, LCL filter, GFL

10-kVA, LCL filter, GFL#

This example modifies 10-kVA, GFL by connecting the converter to the grid through an LCL filter. The LCL-filter dynamics are not taken into account in the control system.

from motulator.grid import control, model, utils

Compute base values based on the nominal values.

nom = utils.NominalValues(U=400, I=14.5, f=50, P=10e3)
base = utils.BaseValues.from_nominal(nom)

Configure the system model.

Configure the control system.

Set external references.

# Set the active and reactive power references
ctrl.set_power_ref(lambda t: (t > 0.02) * 5e3)
ctrl.set_reactive_power_ref(lambda t: (t > 0.04) * 4e3)

Create the simulation object and simulate it.

Plot the results.

  • plot 10kva lcl gfl
  • plot 10kva lcl gfl

Total running time of the script: (0 minutes 0.639 seconds)

Gallery generated by Sphinx-Gallery