The reference value iL,ref for the inner current loop is obtained from the multiplication between the
output of the voltage controller and the absolute value |Vs(t)|. A hysteresis controller provides a fast control for
the inductor current iL, resulting in a practically sinusoidal input current. The harmonics in the input current can
be reduced by reducing the hysteresis width. Figure 13 shows the closed loop circuit diagram in PSIM.