.ModelicaDEVS.Examples.Electrical.FlybackConverter.FlybackConverterDymola

Information

Dymola Flyback Converter

This model shows the flyback converter with a voltage source connected to the primary winding of the converter and a load to its secondary winding.

The flyback converter can be used to transform a given input voltage to a different output voltage. It belongs to the group of DC-DC converters.
The operation of the flyback converter consists of two phases: The two phases are repeated in high frequency (controlled by the boolean signal that is connected to the switch), thereby providing the load with an almost constant current.

The figure below shows the first two milliseconds of a simulation run of the flyback converter circuit. Additionally, it also shows a more detailed view (only 0.19 milliseconds) in order to illustrate the influence of the switch on the trajectory of the voltage/current at the load: when the switch (green) is closed, the resistor is driven by the capacitor, so the voltage (blue) and the current (red) at the resistor decreases slowly (phase 1) (note that given the fact that it is an IdealClosingSwitch, it is closed if the variable control equals 1). When the switch is open, it is the voltage source to power supply the resistor, so the resistor voltage/current increases (phase 2).







The converter circuit can be described by the following equations (consider the above figure for a definition of the variables):
U0 = constant
0 = if open1 then i0 else uS
uL = L * diL/dt
iC = C * duR/dt>
uR = R * iR
0 = if open2 then iD else uD
open2 = uD < 0 and iD <= 0
uT = -uL
iT = -iD
i0 = iL+iT
iD = iC+iR
u0 = uS+iL
0 = uT+uD+uR


Note that these equations give an acausal description of the flyback converter, which is not what we will need to set up a flyback model in ModelicaDEVS or PowerDEVS. However, this issue is explained in more detail in the documentation section of the FlybackConverterDEVS example.


Output:

The two output variables, Inductor_i and Resistor_u, give the current through the inductor and the voltage across the load resistance.


Generated at 2024-05-16T18:15:58Z by OpenModelicaOpenModelica 1.22.4 using GenerateDoc.mos