Simulating SMPS with ideal switch in LTSpice?
Try this instead



In the model you had the series resistance was too high, the off resistance too low, you also had series inductance and a series voltage.

An ideal switch has zero resistance when on and infinite resistance when off and no series inductance.  LTspice wont let you have this but the model here is much closer.

When I run this simulation the output voltage settles around 52.7V

You also want to pick a different diode: I used a 1N4148 because you did but it wont handle the current.