This is an update to the basic class D amplifier: Use parameters for the PWM modulator, increase the output voltage to 200V: this yields in an output power of 2.7 kW. And nothing explodes (a benefit of the simulation)!
This one benefits again from the new PWM generator in ngspice-42, as the old one shows some dimples in the output, due to missing pulses.