LTspicePowerSim
Active-clamp flyback — PI regulation
LTspicePowerSim's 24 V to 5 V active-clamp flyback, its clock, latch and dead-time blocks replaced by a PI switch and its complement.
Try this
Halve the load resistance: the output stays at 5 V while the input current doubles. Then press Run again.