This has not been tested in real life.
A buck converter with no feedback driven by a mosfet that is run by an adjustable duty cycle pwm source. IRL, you would (probably) need a mosfet driver, especially if you want to control the pwm with a microcontroller.