12.5-kVA, DO-GFM, grid-voltage sag

12.5-kVA, DO-GFM, grid-voltage sag#

This example simulates a 12.5-kVA disturbance-observer-based grid-forming (DO-GFM) converter during a grid-voltage sag in a weak grid. Apart from the sag, the converter and grid models are the same as in 12.5-kVA, DO-GFM. The grid voltage drops to 0.5 p.u. while the active-power reference is kept at 1 p.u. The active-power reference is limited to a realizable level, prioritizing the reactive current [1].

from motulator.grid import control, model, utils

Compute base values based on the nominal values.

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

Configure the system model. The grid voltage drops to 0.5 p.u. at t = 0.4 s and recovers at t = 1 s.

ac_filter = model.LFilter(L_f=0.15 * base.L, R_f=0.05 * base.Z, L_g=0.74 * base.L)
ac_source = model.ThreePhaseSource(
    w_g=base.w, e_g=lambda t: (1 - (t > 0.4) * 0.5 + (t > 1) * 0.5) * base.u
)
converter = model.VoltageSourceConverter(u_dc=650)
mdl = model.GridConverterSystem(converter, ac_filter, ac_source)

Configure the control system, including the active-power reference limitation.

Set the references for converter output voltage magnitude and active power.

Create the simulation object, simulate, and plot the results in per-unit values.

  • plot 13kva do gfm sag
  • plot 13kva do gfm sag

References

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

Gallery generated by Sphinx-Gallery