10-kVA, DC bus, GFL

10-kVA, DC bus, GFL#

This example extends 10-kVA, GFL by modeling the DC-bus dynamics. The control system additionally includes a DC-bus voltage controller.

import numpy as np

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 the time-dependent reference and disturbance signals.

# Set the references for DC-bus voltage and reactive power
ctrl.set_dc_bus_voltage_ref(lambda t: 600 + (t > 0.02) * 50)
ctrl.set_reactive_power_ref(lambda t: (t > 0.04) * 4e3)

# Set the external current fed to the DC bus
dc_bus.set_external_dc_current(lambda t: (t > 0.06) * 10)

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

  • plot 10kva dc bus gfl
  • plot 10kva dc bus gfl

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

Gallery generated by Sphinx-Gallery