I have to do e a transient simulation of an half bridge inverter with an igbt with a diod in anti-parallel, his name is ''IKW15T120'' by infineon. I don't know why the inductor's current is always negative, it's not alternate. some advice?
The Schmitt trigger hysteresis appears to be causing an offset in the modulation duty-cycle.
Try increasing the sinewave to 90V and the pulse input to +/- 100V A1, to minimize the effects of the hysteresis.
Or use a comparator without hysteresis for A1.