modelInverter1phOpenSynch

Grid-tied 1-phase open-loop inverter with constant DC source

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example goes a step further than Inverter1phOpen and includes grid synchronization. Typically this is the condition for inverters in real-life situations. Both switched and averaged implementations are presented for comparison purposes and it can be seen that they both provide very similar results (excluding the fact that high frequencies are left out in the averaged model).

Inverter1phOpenSynch_Plot.png

Since this is still open-loop and there's no in-quadrature separation, the value of the current can't comfortably be specified to be of a certain value. Since the RL load has almost equal real and imaginary parts, the current that is drawn from the inverter has a power factor different than one.

A key value to pay attention to in this example is the gain that is placed in the Add block.

Inverter1phOpenSynchDialog.png

It's initially set at 0.5. The value is expressed as 580/580/2 to highlight the fact that this gain should be normalized to the DC voltage value. Above that, over-modulation will occur and the output current of the inverter will become quite ugly. Play around with this value (using values between 0 and 0.5) to see how the output current of the inverter changes.

Components

TypeNameDefaultDescription
Electrical.Assemblies.HBridgeSwitchedHBsw
Modelica.Electrical.Analog.Sources.ConstantVoltageDCsw
Modelica.Electrical.Analog.Sources.SineVoltageACsw
Modelica.Electrical.Analog.Basic.InductorLsw
Control.PLLpLL
Modelica.Blocks.Math.Cossin
Modelica.Blocks.Math.Addadd
Modelica.Blocks.Sources.Constantconst
Modelica.Electrical.Analog.Basic.ResistorRsw
PVSystems.Electrical.Assemblies.HBridgeHBav
Modelica.Electrical.Analog.Basic.InductorLav
Modelica.Electrical.Analog.Basic.ResistorRav
Modelica.Electrical.Analog.Basic.Groundgsw
Modelica.Blocks.Sources.RealExpressionVacSense
Modelica.Electrical.Analog.Sources.SineVoltageACav
Modelica.Electrical.Analog.Sources.ConstantVoltageDCav
Modelica.Electrical.Analog.Basic.Groundgav
Control.SwitchingPWMswitchingPWM
Control.DeadTimedeadTime