This model shows how a flyback converter can step-up a 5V DC source into a 15V DC regulated supply. The voltage is increased by creating a time-varying voltage across a transformer primary. The transformer steps up the voltage which is then rectified back to DC by the diode. Closed-loop control over the output voltage is effected by controlling the switching frequency on the primary side. The model can be used to size the transformer inductance and smoothing capacitor values, as well as to design the feedback controller gains and switching frequency. The model includes a detailed representation of the switching device, in this case an enhancement-mode MOSFET, which lets you check that the switching device dissipated power is within acceptable limits. The Power Sensor block is used here in averaging mode, thereby calculating the average power over each PWM cycle. For an alternative workflow that uses Simscape™ logging instead of the Power Sensor block, see the Synchronous Buck Converter example.